[CI][lldb] Unrelated lldb-api test failures on my PR
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
My PR https://github.com/llvm/llvm-project/pull/179001 is failing the Linux x64 CI due to lldb-api test failures, but my PR does not touch any lldb files.
https://github.com/llvm/llvm-project/pull/179001#issuecomment-3826812108
> # 🐧 Linux x64 Test Results
> * 169035 tests passed
> * 3022 tests skipped
> * 2 tests failed
>
> ## Failed Tests
> (click on a test name to see its output)
>
> ### lldb-api
> lldb-api.lang/c/calling-conventions/TestCCallingConventions.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 --arch x86_64 --build-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex --lldb-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-lldb/lldb-api --clang-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-clang/lldb-api --executable /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/lldb --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/lang/c/calling-conventions -p TestCCallingConventions.py
> --
> Exit Code: 1
>
> Command Output (stdout):
> --
> lldb version 23.0.0git (https://github.com/llvm/llvm-project revision 2d0a0eaf3d4913927a7a2fa983a2293f0fc4c1a2)
> clang revision 2d0a0eaf3d4913927a7a2fa983a2293f0fc4c1a2
> llvm revision 2d0a0eaf3d4913927a7a2fa983a2293f0fc4c1a2
> 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_fastcall (TestCCallingConventions.TestCase.test_fastcall)
> PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_ms_abi (TestCCallingConventions.TestCase.test_ms_abi)
> PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_pascal (TestCCallingConventions.TestCase.test_pascal)
> PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_regcall (TestCCallingConventions.TestCase.test_regcall)
> PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_stdcall (TestCCallingConventions.TestCase.test_stdcall)
> PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_sysv_abi (TestCCallingConventions.TestCase.test_sysv_abi)
> FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_vectorcall (TestCCallingConventions.TestCase.test_vectorcall)
> ======================================================================
> FAIL: test_vectorcall (TestCCallingConventions.TestCase.test_vectorcall)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/lang/c/calling-conventions/TestCCallingConventions.py", line 75, in test_vectorcall
> self.expect_expr("func(1.0)", result_type="int", result_value="1")
> File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 2619, in expect_expr
> value_check.check_value(self, eval_result, str(eval_result))
> File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 306, in check_value
> test_base.assertSuccess(val.GetError())
> File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 2654, in assertSuccess
> self.fail(self._formatMessage(msg, "'{}' is not success".format(error)))
> AssertionError: 'Expression evaluation in pure C not supported. Ran expression as 'ISO C++'.
> error: Couldn't look up symbols:
> func@@8
> Hint: The expression tried to call a function that is not present in the target, perhaps because it was optimized out by the compiler.
> ' is not success
> Config=x86_64-/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang
> ----------------------------------------------------------------------
> Ran 7 tests in 1.169s
>
> FAILED (failures=1)
>
> --
> ```
>
> lldb-api.lang/cpp/thread_local/TestThreadLocal.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 --arch x86_64 --build-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex --lldb-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-lldb/lldb-api --clang-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build.noindex/module-cache-clang/lldb-api --executable /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/lldb --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/lang/cpp/thread_local -p TestThreadLocal.py
> --
> Exit Code: 1
>
> Command Output (stdout):
> --
> lldb version 23.0.0git (https://github.com/llvm/llvm-project revision 2d0a0eaf3d4913927a7a2fa983a2293f0fc4c1a2)
> clang revision 2d0a0eaf3d4913927a7a2fa983a2293f0fc4c1a2
> llvm revision 2d0a0eaf3d4913927a7a2fa983a2293f0fc4c1a2
> Skipping the following test categories: msvcstl, dsym, pdb, gmodules, debugserver, objc
>
> --
> Command Output (stderr):
> --
> UNSUPPORTED: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_thread_local_dsym (TestThreadLocal.PlatformProcessCrashInfoTestCase.test_thread_local_dsym) (test case does not fall in any category of interest for this run)
> FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_thread_local_dwarf (TestThreadLocal.PlatformProcessCrashInfoTestCase.test_thread_local_dwarf)
> FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_thread_local_dwo (TestThreadLocal.PlatformProcessCrashInfoTestCase.test_thread_local_dwo)
> ======================================================================
> FAIL: test_thread_local_dwarf (TestThreadLocal.PlatformProcessCrashInfoTestCase.test_thread_local_dwarf)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 1844, in test_method
> return attrvalue(self)
> ^^^^^^^^^^^^^^^
> File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/lang/cpp/thread_local/TestThreadLocal.py", line 47, in test_thread_local
> self.expect(
> File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 2476, in expect
> self.assertFalse(
> AssertionError: True is not false : Command 'expr tl_local_int' is expected to fail!
> Config=x86_64-/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang
> ======================================================================
> FAIL: test_thread_local_dwo (TestThreadLocal.PlatformProcessCrashInfoTestCase.test_thread_local_dwo)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 1844, in test_method
> return attrvalue(self)
> ^^^^^^^^^^^^^^^
> File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/lang/cpp/thread_local/TestThreadLocal.py", line 47, in test_thread_local
> self.expect(
> File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/packages/Python/lldbsuite/test/lldbtest.py", line 2476, in expect
> self.assertFalse(
> AssertionError: True is not false : Command 'expr tl_local_int' is expected to fail!
> Config=x86_64-/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang
> ----------------------------------------------------------------------
> Ran 3 tests in 0.756s
>
> FAILED (failures=2, skipped=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.
Contributor guide
Research direction
Start with lldb/test/API/lang/c/calling-conventions/TestCCallingConventions.py and lldb/test/API/lang/cpp/thread_local/TestThreadLocal.py, then rerun the corresponding lldb-api tests using lldb/test/API/dotest.py. Compare the failures at the reported revision and determine whether they reproduce independently of the referenced PR. Done means the unrelated CI failures are explained and the affected tests pass or are appropriately tracked.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, cpp, python
- Domain
- compilers, testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100