[Lldb-commits] [lldb] [lldb/script] Migrate synthetic children providers onto ScriptedPythonInterface (PR #210845)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Jul 29 00:13:19 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 33388 tests passed
* 906 tests skipped
* 5 tests failed
## Failed Tests
(click on a test name to see its output)
### lldb-api
<details>
<summary>lldb-api.commands/frame/var-dil/basics/SyntheticDereference/TestFrameVarDILSyntheticDereference.py</summary>
```
Script:
--
C:/Python312/python.exe C:/_work/llvm-project/llvm-project/lldb\test\API\dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=C:/_work/llvm-project/llvm-project/build/./lib --env LLVM_INCLUDE_DIR=C:/_work/llvm-project/llvm-project/build/include --env LLVM_TOOLS_DIR=C:/_work/llvm-project/llvm-project/build/./bin --triple x86_64-pc-windows-msvc --build-dir C:/_work/llvm-project/llvm-project/build/lldb-test-build --lldb-module-cache-dir C:/_work/llvm-project/llvm-project/build/lldb-test-build/module-cache-lldb\lldb-api --clang-module-cache-dir C:/_work/llvm-project/llvm-project/build/lldb-test-build/module-cache-clang\lldb-api --executable C:/_work/llvm-project/llvm-project/build/./bin/lldb.exe --lldb-python-dir C:\_work\llvm-project\llvm-project\build\Lib\site-packages --compiler C:/_work/llvm-project/llvm-project/build/./bin/clang.exe --dsymutil C:/_work/llvm-project/llvm-project/build/./bin/dsymutil.exe --make C:/ProgramData/chocolatey/bin/make.exe --llvm-tools-dir C:/_work/llvm-project/llvm-project/build/./bin --lldb-obj-root C:/_work/llvm-project/llvm-project/build/tools/lldb --lldb-libs-dir C:/_work/llvm-project/llvm-project/build/./lib --cmake-build-type Release --env LLDB_LAUNCH_FLAG_USE_PIPES=1 C:\_work\llvm-project\llvm-project\lldb\test\API\commands\frame\var-dil\basics\SyntheticDereference -p TestFrameVarDILSyntheticDereference.py
--
Exit Code: 1
Command Output (stdout):
--
Skipping the following test categories: libc++, libstdcxx, dwo, dsym, gmodules, debugserver, objc, fork, pexpect
--
Command Output (stderr):
--
FAIL: LLDB (C:\_work\llvm-project\llvm-project\build\bin\clang.exe-x86_64) :: test_frame_var (TestFrameVarDILSyntheticDereference.DILSyntheticDereferenceTestCase.test_frame_var)
Log Files:
- C:\_work\llvm-project\llvm-project\build\lldb-test-build\commands\frame\var-dil\basics\SyntheticDereference\TestFrameVarDILSyntheticDereference\Failure_test_frame_var.log
======================================================================
FAIL: test_frame_var (TestFrameVarDILSyntheticDereference.DILSyntheticDereferenceTestCase.test_frame_var)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\_work\llvm-project\llvm-project\lldb\test\API\commands\frame\var-dil\basics\SyntheticDereference\TestFrameVarDILSyntheticDereference.py", line 27, in test_frame_var
self.expect_var_path("ptr_node->value", value="1")
File "C:\_work\llvm-project\llvm-project\lldb\packages\Python\lldbsuite\test\lldbtest.py", line 3035, in expect_var_path
value_check.check_value(self, eval_result)
File "C:\_work\llvm-project\llvm-project\lldb\packages\Python\lldbsuite\test\lldbtest.py", line 348, in check_value
test_base.assertSuccess(val.GetError())
File "C:\_work\llvm-project\llvm-project\lldb\packages\Python\lldbsuite\test\lldbtest.py", line 3043, in assertSuccess
self.fail(self._formatMessage(msg, "'{}' is not success".format(error)))
AssertionError: '<user expression>:1:11: Failed to dereference synthetic value: dereference failed: not a pointer, reference or array type: (wrap_ptr) ptr_node
1 | ptr_node->value
| ^~~~~' is not success
Config=x86_64-C:\_work\llvm-project\llvm-project\build\bin\clang.exe
----------------------------------------------------------------------
Ran 1 test in 3.581s
FAILED (failures=1)
--
```
</details>
<details>
<summary>lldb-api.functionalities/data-formatter/data-formatter-python-synth/TestDataFormatterPythonSynth.py</summary>
```
Script:
--
C:/Python312/python.exe C:/_work/llvm-project/llvm-project/lldb\test\API\dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=C:/_work/llvm-project/llvm-project/build/./lib --env LLVM_INCLUDE_DIR=C:/_work/llvm-project/llvm-project/build/include --env LLVM_TOOLS_DIR=C:/_work/llvm-project/llvm-project/build/./bin --triple x86_64-pc-windows-msvc --build-dir C:/_work/llvm-project/llvm-project/build/lldb-test-build --lldb-module-cache-dir C:/_work/llvm-project/llvm-project/build/lldb-test-build/module-cache-lldb\lldb-api --clang-module-cache-dir C:/_work/llvm-project/llvm-project/build/lldb-test-build/module-cache-clang\lldb-api --executable C:/_work/llvm-project/llvm-project/build/./bin/lldb.exe --lldb-python-dir C:\_work\llvm-project\llvm-project\build\Lib\site-packages --compiler C:/_work/llvm-project/llvm-project/build/./bin/clang.exe --dsymutil C:/_work/llvm-project/llvm-project/build/./bin/dsymutil.exe --make C:/ProgramData/chocolatey/bin/make.exe --llvm-tools-dir C:/_work/llvm-project/llvm-project/build/./bin --lldb-obj-root C:/_work/llvm-project/llvm-project/build/tools/lldb --lldb-libs-dir C:/_work/llvm-project/llvm-project/build/./lib --cmake-build-type Release --env LLDB_LAUNCH_FLAG_USE_PIPES=1 C:\_work\llvm-project\llvm-project\lldb\test\API\functionalities\data-formatter\data-formatter-python-synth -p TestDataFormatterPythonSynth.py
--
Exit Code: 1
Command Output (stdout):
--
-----------------------
Category: default
-----------------------
foo: Python class fooSynthProvider
wrapfoo: Python class wrapfooSynthProvider
-----------------------
Category: VectorTypes
-----------------------
-----------------------
Category: system
-----------------------
-----------------------
Category: cplusplus
-----------------------
-----------------------
Category: objc
-----------------------
Skipping the following test categories: libc++, libstdcxx, dwo, dsym, gmodules, debugserver, objc, fork, pexpect
(foo) f00_1 = (a = 1, fake_a = 33554432, r = 34)
(foo) f00_1 = (a = 1, fake_a = 33554432, r = 34)
--
Command Output (stderr):
--
UNSUPPORTED: LLDB (C:\_work\llvm-project\llvm-project\build\bin\clang.exe-x86_64) :: test_rdar10960550_with_run_command_dsym (TestDataFormatterPythonSynth.PythonSynthDataFormatterTestCase.test_rdar10960550_with_run_command_dsym) (test case does not fall in any category of interest for this run)
PASS: LLDB (C:\_work\llvm-project\llvm-project\build\bin\clang.exe-x86_64) :: test_rdar10960550_with_run_command_dwarf (TestDataFormatterPythonSynth.PythonSynthDataFormatterTestCase.test_rdar10960550_with_run_command_dwarf)
UNSUPPORTED: LLDB (C:\_work\llvm-project\llvm-project\build\bin\clang.exe-x86_64) :: test_rdar10960550_with_run_command_dwo (TestDataFormatterPythonSynth.PythonSynthDataFormatterTestCase.test_rdar10960550_with_run_command_dwo) (test case does not fall in any category of interest for this run)
UNSUPPORTED: LLDB (C:\_work\llvm-project\llvm-project\build\bin\clang.exe-x86_64) :: test_with_run_command_dsym (TestDataFormatterPythonSynth.PythonSynthDataFormatterTestCase.test_with_run_command_dsym) (test case does not fall in any category of interest for this run)
FAIL: LLDB (C:\_work\llvm-project\llvm-project\build\bin\clang.exe-x86_64) :: test_with_run_command_dwarf (TestDataFormatterPythonSynth.PythonSynthDataFormatterTestCase.test_with_run_command_dwarf)
Log Files:
- C:\_work\llvm-project\llvm-project\build\lldb-test-build\functionalities\data-formatter\data-formatter-python-synth\TestDataFormatterPythonSynth\Failure_test_with_run_command_dwarf.log
UNSUPPORTED: LLDB (C:\_work\llvm-project\llvm-project\build\bin\clang.exe-x86_64) :: test_with_run_command_dwo (TestDataFormatterPythonSynth.PythonSynthDataFormatterTestCase.test_with_run_command_dwo) (test case does not fall in any category of interest for this run)
======================================================================
FAIL: test_with_run_command_dwarf (TestDataFormatterPythonSynth.PythonSynthDataFormatterTestCase.test_with_run_command_dwarf)
Test data formatter commands.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\_work\llvm-project\llvm-project\lldb\packages\Python\lldbsuite\test\lldbtest.py", line 2168, in test_method
return attrvalue(self)
^^^^^^^^^^^^^^^
File "C:\_work\llvm-project\llvm-project\lldb\test\API\functionalities\data-formatter\data-formatter-python-synth\TestDataFormatterPythonSynth.py", line 15, in test_with_run_command
self.data_formatter_commands()
File "C:\_work\llvm-project\llvm-project\lldb\test\API\functionalities\data-formatter\data-formatter-python-synth\TestDataFormatterPythonSynth.py", line 79, in data_formatter_commands
self.expect("frame variable f00_1.fake_a", substrs=["%d" % fake_a_val])
File "C:\_work\llvm-project\llvm-project\lldb\packages\Python\lldbsuite\test\lldbtest.py", line 2848, in expect
self.runCmd(
File "C:\_work\llvm-project\llvm-project\lldb\packages\Python\lldbsuite\test\lldbtest.py", line 1114, in runCmd
self.assertTrue(self.res.Succeeded(), msg + output)
AssertionError: False is not true : Command 'frame variable f00_1.fake_a' did not return successfully
Error output:
error: <user expression>:1:7: "fake_a" is not a member of "(foo) f00_1"
1 | f00_1.fake_a
| ^~~~~~
Config=x86_64-C:\_work\llvm-project\llvm-project\build\bin\clang.exe
----------------------------------------------------------------------
Ran 6 tests in 1.635s
FAILED (failures=1, skipped=4)
--
```
</details>
<details>
<summary>lldb-api.functionalities/data-formatter/pyobjsynthprovider/TestPyObjSynthProvider.py</summary>
```
Script:
--
C:/Python312/python.exe C:/_work/llvm-project/llvm-project/lldb\test\API\dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=C:/_work/llvm-project/llvm-project/build/./lib --env LLVM_INCLUDE_DIR=C:/_work/llvm-project/llvm-project/build/include --env LLVM_TOOLS_DIR=C:/_work/llvm-project/llvm-project/build/./bin --triple x86_64-pc-windows-msvc --build-dir C:/_work/llvm-project/llvm-project/build/lldb-test-build --lldb-module-cache-dir C:/_work/llvm-project/llvm-project/build/lldb-test-build/module-cache-lldb\lldb-api --clang-module-cache-dir C:/_work/llvm-project/llvm-project/build/lldb-test-build/module-cache-clang\lldb-api --executable C:/_work/llvm-project/llvm-project/build/./bin/lldb.exe --lldb-python-dir C:\_work\llvm-project\llvm-project\build\Lib\site-packages --compiler C:/_work/llvm-project/llvm-project/build/./bin/clang.exe --dsymutil C:/_work/llvm-project/llvm-project/build/./bin/dsymutil.exe --make C:/ProgramData/chocolatey/bin/make.exe --llvm-tools-dir C:/_work/llvm-project/llvm-project/build/./bin --lldb-obj-root C:/_work/llvm-project/llvm-project/build/tools/lldb --lldb-libs-dir C:/_work/llvm-project/llvm-project/build/./lib --cmake-build-type Release --env LLDB_LAUNCH_FLAG_USE_PIPES=1 C:\_work\llvm-project\llvm-project\lldb\test\API\functionalities\data-formatter\pyobjsynthprovider -p TestPyObjSynthProvider.py
--
Exit Code: 1
Command Output (stdout):
--
Skipping the following test categories: libc++, libstdcxx, dwo, dsym, gmodules, debugserver, objc, fork, pexpect
--
Command Output (stderr):
--
FAIL: LLDB (C:\_work\llvm-project\llvm-project\build\bin\clang.exe-x86_64) :: test_print_array (TestPyObjSynthProvider.PyObjectSynthProviderTestCase.test_print_array)
Log Files:
- C:\_work\llvm-project\llvm-project\build\lldb-test-build\functionalities\data-formatter\pyobjsynthprovider\TestPyObjSynthProvider\Failure_test_print_array.log
======================================================================
FAIL: test_print_array (TestPyObjSynthProvider.PyObjectSynthProviderTestCase.test_print_array)
Test that expr -Z works
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\_work\llvm-project\llvm-project\lldb\test\API\functionalities\data-formatter\pyobjsynthprovider\TestPyObjSynthProvider.py", line 18, in test_print_array
self.provider_data_formatter_commands()
File "C:\_work\llvm-project\llvm-project\lldb\test\API\functionalities\data-formatter\pyobjsynthprovider\TestPyObjSynthProvider.py", line 57, in provider_data_formatter_commands
self.expect("frame variable f.Name", substrs=['"Enrico"'])
File "C:\_work\llvm-project\llvm-project\lldb\packages\Python\lldbsuite\test\lldbtest.py", line 2848, in expect
self.runCmd(
File "C:\_work\llvm-project\llvm-project\lldb\packages\Python\lldbsuite\test\lldbtest.py", line 1114, in runCmd
self.assertTrue(self.res.Succeeded(), msg + output)
AssertionError: False is not true : Command 'frame variable f.Name' did not return successfully
Error output:
error: <user expression>:1:3: "Name" is not a member of "(Foo) f"
1 | f.Name
| ^~~~
Config=x86_64-C:\_work\llvm-project\llvm-project\build\bin\clang.exe
----------------------------------------------------------------------
Ran 1 test in 1.097s
FAILED (failures=1)
--
```
</details>
<details>
<summary>lldb-api.python_api/formatters/TestFormattersSBAPI.py</summary>
```
Script:
--
C:/Python312/python.exe C:/_work/llvm-project/llvm-project/lldb\test\API\dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=C:/_work/llvm-project/llvm-project/build/./lib --env LLVM_INCLUDE_DIR=C:/_work/llvm-project/llvm-project/build/include --env LLVM_TOOLS_DIR=C:/_work/llvm-project/llvm-project/build/./bin --triple x86_64-pc-windows-msvc --build-dir C:/_work/llvm-project/llvm-project/build/lldb-test-build --lldb-module-cache-dir C:/_work/llvm-project/llvm-project/build/lldb-test-build/module-cache-lldb\lldb-api --clang-module-cache-dir C:/_work/llvm-project/llvm-project/build/lldb-test-build/module-cache-clang\lldb-api --executable C:/_work/llvm-project/llvm-project/build/./bin/lldb.exe --lldb-python-dir C:\_work\llvm-project\llvm-project\build\Lib\site-packages --compiler C:/_work/llvm-project/llvm-project/build/./bin/clang.exe --dsymutil C:/_work/llvm-project/llvm-project/build/./bin/dsymutil.exe --make C:/ProgramData/chocolatey/bin/make.exe --llvm-tools-dir C:/_work/llvm-project/llvm-project/build/./bin --lldb-obj-root C:/_work/llvm-project/llvm-project/build/tools/lldb --lldb-libs-dir C:/_work/llvm-project/llvm-project/build/./lib --cmake-build-type Release --env LLDB_LAUNCH_FLAG_USE_PIPES=1 C:\_work\llvm-project\llvm-project\lldb\test\API\python_api\formatters -p TestFormattersSBAPI.py
--
Exit Code: 1
Command Output (stdout):
--
Skipping the following test categories: libc++, libstdcxx, dwo, dsym, gmodules, debugserver, objc, fork, pexpect
--
Command Output (stderr):
--
PASS: LLDB (C:\_work\llvm-project\llvm-project\build\bin\clang.exe-x86_64) :: test_force_synth_off (TestFormattersSBAPI.SBFormattersAPITestCase.test_force_synth_off)
FAIL: LLDB (C:\_work\llvm-project\llvm-project\build\bin\clang.exe-x86_64) :: test_formatters_api (TestFormattersSBAPI.SBFormattersAPITestCase.test_formatters_api)
Log Files:
- C:\_work\llvm-project\llvm-project\build\lldb-test-build\python_api\formatters\TestFormattersSBAPI.test_formatters_api\Failure_test_formatters_api.log
======================================================================
FAIL: test_formatters_api (TestFormattersSBAPI.SBFormattersAPITestCase.test_formatters_api)
Test Python APIs for working with formatters
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\_work\llvm-project\llvm-project\lldb\test\API\python_api\formatters\TestFormattersSBAPI.py", line 148, in test_formatters_api
self.expect(
File "C:\_work\llvm-project\llvm-project\lldb\packages\Python\lldbsuite\test\lldbtest.py", line 2954, in expect
self.fail(log_msg)
AssertionError: Ran command:
"frame variable ccc"
Got output:
(CCC) ccc = CCC object with leading synthetic value No value {
a = 111
b = 222
c = 333
}
Expecting sub string: "CCC object with leading synthetic value (int) b = 222" (was not found)
Config=x86_64-C:\_work\llvm-project\llvm-project\build\bin\clang.exe
----------------------------------------------------------------------
Ran 2 tests in 6.966s
FAILED (failures=1)
--
```
</details>
<details>
<summary>lldb-api.python_api/sbvalue_set_type_synthetic/TestSBValueSetTypeSynthetic.py</summary>
```
Script:
--
C:/Python312/python.exe C:/_work/llvm-project/llvm-project/lldb\test\API\dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=C:/_work/llvm-project/llvm-project/build/./lib --env LLVM_INCLUDE_DIR=C:/_work/llvm-project/llvm-project/build/include --env LLVM_TOOLS_DIR=C:/_work/llvm-project/llvm-project/build/./bin --triple x86_64-pc-windows-msvc --build-dir C:/_work/llvm-project/llvm-project/build/lldb-test-build --lldb-module-cache-dir C:/_work/llvm-project/llvm-project/build/lldb-test-build/module-cache-lldb\lldb-api --clang-module-cache-dir C:/_work/llvm-project/llvm-project/build/lldb-test-build/module-cache-clang\lldb-api --executable C:/_work/llvm-project/llvm-project/build/./bin/lldb.exe --lldb-python-dir C:\_work\llvm-project\llvm-project\build\Lib\site-packages --compiler C:/_work/llvm-project/llvm-project/build/./bin/clang.exe --dsymutil C:/_work/llvm-project/llvm-project/build/./bin/dsymutil.exe --make C:/ProgramData/chocolatey/bin/make.exe --llvm-tools-dir C:/_work/llvm-project/llvm-project/build/./bin --lldb-obj-root C:/_work/llvm-project/llvm-project/build/tools/lldb --lldb-libs-dir C:/_work/llvm-project/llvm-project/build/./lib --cmake-build-type Release --env LLDB_LAUNCH_FLAG_USE_PIPES=1 C:\_work\llvm-project\llvm-project\lldb\test\API\python_api\sbvalue_set_type_synthetic -p TestSBValueSetTypeSynthetic.py
--
Exit Code: 1
Command Output (stdout):
--
Skipping the following test categories: libc++, libstdcxx, dwo, dsym, gmodules, debugserver, objc, fork, pexpect
--
Command Output (stderr):
--
FAIL: LLDB (C:\_work\llvm-project\llvm-project\build\bin\clang.exe-x86_64) :: test (TestSBValueSetTypeSynthetic.TestCase.test)
Log Files:
- C:\_work\llvm-project\llvm-project\build\lldb-test-build\python_api\sbvalue_set_type_synthetic\TestSBValueSetTypeSynthetic\Failure_test.log
======================================================================
FAIL: test (TestSBValueSetTypeSynthetic.TestCase.test)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\_work\llvm-project\llvm-project\lldb\test\API\python_api\sbvalue_set_type_synthetic\TestSBValueSetTypeSynthetic.py", line 32, in test
self.assertTrue(foos.IsValid())
AssertionError: False is not true
Config=x86_64-C:\_work\llvm-project\llvm-project\build\bin\clang.exe
----------------------------------------------------------------------
Ran 1 test in 3.874s
FAILED (failures=1)
--
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/210845
More information about the lldb-commits
mailing list