[Lldb-commits] [lldb] [lldb/script] Add scripting extension template generator (PR #209647)

via lldb-commits lldb-commits at lists.llvm.org
Tue Jul 14 15:58:48 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 34079 tests passed
* 506 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### lldb-api
<details>
<summary>lldb-api.functionalities/scripting_extension_generate/TestScriptingExtensionGenerate.py</summary>

```
Script:
--
/usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib --env LLVM_INCLUDE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include --env LLVM_TOOLS_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin --libcxx-include-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 --libcxx-include-target-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1 --libcxx-library-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib/x86_64-unknown-linux-gnu --triple x86_64-unknown-linux-gnu --build-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build --lldb-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build/module-cache-lldb/lldb-api --clang-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build/module-cache-clang/lldb-api --executable /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/lldb --lldb-python-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/local/lib/python3.12/dist-packages --compiler /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang --dsymutil /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/dsymutil --make /usr/bin/gmake --llvm-tools-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin --lldb-obj-root /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb --lldb-libs-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib --cmake-build-type Release /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/functionalities/scripting_extension_generate -p TestScriptingExtensionGenerate.py
--
Exit Code: 1

Command Output (stdout):
--
Skipping the following test categories: msvcstl, dsym, pdb, gmodules, debugserver, objc

--
Command Output (stderr):
--
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_generate_operating_system (TestScriptingExtensionGenerate.TestScriptingExtensionGenerate.test_generate_operating_system)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_generate_scripted_breakpoint_resolver (TestScriptingExtensionGenerate.TestScriptingExtensionGenerate.test_generate_scripted_breakpoint_resolver)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_generate_scripted_frame_provider (TestScriptingExtensionGenerate.TestScriptingExtensionGenerate.test_generate_scripted_frame_provider)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_generate_scripted_hook (TestScriptingExtensionGenerate.TestScriptingExtensionGenerate.test_generate_scripted_hook)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_generate_scripted_hook_for_stop_hook (TestScriptingExtensionGenerate.TestScriptingExtensionGenerate.test_generate_scripted_hook_for_stop_hook)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_generate_scripted_platform (TestScriptingExtensionGenerate.TestScriptingExtensionGenerate.test_generate_scripted_platform)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_generate_scripted_process (TestScriptingExtensionGenerate.TestScriptingExtensionGenerate.test_generate_scripted_process)
FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_generate_scripted_thread_plan (TestScriptingExtensionGenerate.TestScriptingExtensionGenerate.test_generate_scripted_thread_plan)
Log Files:
 - /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build/functionalities/scripting_extension_generate/TestScriptingExtensionGenerate/Failure_test_generate_scripted_thread_plan.log
======================================================================
FAIL: test_generate_scripted_thread_plan (TestScriptingExtensionGenerate.TestScriptingExtensionGenerate.test_generate_scripted_thread_plan)
   ScriptedThreadPlan: generate, import, and drive via `thread
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/functionalities/scripting_extension_generate/TestScriptingExtensionGenerate.py", line 100, in test_generate_scripted_thread_plan
    self.run_and_assert_no_traceback(f"command script import {path}")
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/functionalities/scripting_extension_generate/TestScriptingExtensionGenerate.py", line 49, in run_and_assert_no_traceback
    self.assertNotIn(
AssertionError: 'Traceback (most recent call last)' unexpectedly found in 'error: module importing failed: Traceback (most recent call last):\n  File "<string>", line 1, in <module>\n  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build/functionalities/scripting_extension_generate/TestScriptingExtensionGenerate/generated_ScriptedThreadPlan.py", line 7\n    \n    ^\nIndentationError: expected an indented block after class definition on line 5\n' : command 'command script import /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build/functionalities/scripting_extension_generate/TestScriptingExtensionGenerate/generated_ScriptedThreadPlan.py' raised a Python exception:
error: module importing failed: Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build/functionalities/scripting_extension_generate/TestScriptingExtensionGenerate/generated_ScriptedThreadPlan.py", line 7
    
    ^
IndentationError: expected an indented block after class definition on line 5

Config=x86_64-/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang
----------------------------------------------------------------------
Ran 8 tests in 0.609s

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/209647


More information about the lldb-commits mailing list