[compiler-rt] [lldb] Replace Python's deprecated tempfile.mktemp() with secure temp APIs (PR #210123)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 16 19:49:46 PDT 2026
vitalybuka wrote:
> # 🐧 Linux x64 Test Results
> * 34085 tests passed
> * 506 tests skipped
> * 1 test failed
>
> ## Failed Tests
> (click on a test name to see its output)
>
> ### lldb-api
> lldb-api.python_api/run_locker/TestRunLocker.py
> ```
> 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/python_api/run_locker -p TestRunLocker.py
> --
> Exit Code: 1
>
> Command Output (stdout):
> --
> "can't evaluate expressions when the process is running."
> Skipping the following test categories: msvcstl, dsym, pdb, gmodules, debugserver, objc
>
> --
> Command Output (stderr):
> --
> FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_run_locker (TestRunLocker.TestRunLocker.test_run_locker)
> Log Files:
> - /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build/python_api/run_locker/TestRunLocker/Failure_test_run_locker.log
> PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_run_locker_stop_at_entry (TestRunLocker.TestRunLocker.test_run_locker_stop_at_entry)
> ======================================================================
> FAIL: test_run_locker (TestRunLocker.TestRunLocker.test_run_locker)
> Test that the run locker is set correctly when we launch
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/decorators.py", line 175, in wrapper
> return func(*args, **kwargs)
> ^^^^^^^^^^^^^^^^^^^^^
> File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/python_api/run_locker/TestRunLocker.py", line 23, in test_run_locker
> self.runlocker_test(False)
> File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/python_api/run_locker/TestRunLocker.py", line 126, in runlocker_test
> self.assertIn(
> AssertionError: "can't evaluate expressions when the process is running" not found in ''
> Config=x86_64-/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang
> ----------------------------------------------------------------------
> Ran 2 tests in 0.516s
>
> FAILED (failures=1)
>
> --
> ```
>
> 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.
Could this be related?
https://github.com/llvm/llvm-project/pull/210123
More information about the llvm-commits
mailing list