[clang] [clang][test] add testing for the AST matcher reference (PR #94248)
LLVM Continuous Integration via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 27 05:13:53 PDT 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `clang-debian-cpp20` running on `clang-debian-cpp20` while building `clang` at step 6 "test-build-unified-tree-check-all".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/108/builds/4240
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
...
89.602 [921/17/227] Building CXX object tools/clang/unittests/StaticAnalyzer/CMakeFiles/StaticAnalysisTests.dir/NoStateChangeFuncVisitorTest.cpp.o
90.886 [920/17/228] Building CXX object tools/clang/unittests/Analysis/FlowSensitive/CMakeFiles/ClangAnalysisFlowSensitiveTests.dir/RecordOpsTest.cpp.o
91.707 [919/17/229] Building CXX object tools/clang/unittests/Analysis/FlowSensitive/CMakeFiles/ClangAnalysisFlowSensitiveTests.dir/SimplifyConstraintsTest.cpp.o
91.858 [918/17/230] Building CXX object tools/clang/unittests/StaticAnalyzer/CMakeFiles/StaticAnalysisTests.dir/RangeSetTest.cpp.o
93.014 [917/17/231] Building CXX object tools/clang/unittests/StaticAnalyzer/CMakeFiles/StaticAnalysisTests.dir/RegisterCustomCheckersTest.cpp.o
96.563 [916/17/232] Building CXX object tools/clang/unittests/Analysis/FlowSensitive/CMakeFiles/ClangAnalysisFlowSensitiveTests.dir/MultiVarConstantPropagationTest.cpp.o
98.839 [915/17/233] Building CXX object tools/clang/unittests/StaticAnalyzer/CMakeFiles/StaticAnalysisTests.dir/SValTest.cpp.o
100.510 [914/17/234] Building CXX object tools/clang/unittests/StaticAnalyzer/CMakeFiles/StaticAnalysisTests.dir/TestReturnValueUnderConstruction.cpp.o
100.563 [913/17/235] Building CXX object tools/clang/unittests/StaticAnalyzer/CMakeFiles/StaticAnalysisTests.dir/Z3CrosscheckOracleTest.cpp.o
100.889 [912/17/236] Generating ASTMatchersDocTests.cpp
FAILED: tools/clang/unittests/ASTMatchers/ASTMatchersDocTests.cpp /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/tools/clang/unittests/ASTMatchers/ASTMatchersDocTests.cpp
cd /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/tools/clang/unittests/ASTMatchers && /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang/utils/generate_ast_matcher_doc_tests.py --input-file /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang/include/clang/ASTMatchers/ASTMatchers.h --output-file /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/tools/clang/unittests/ASTMatchers/ASTMatchersDocTests.cpp
Traceback (most recent call last):
File "/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang/utils/generate_ast_matcher_doc_tests.py", line 1165, in <module>
main()
File "/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang/utils/generate_ast_matcher_doc_tests.py", line 1130, in main
[r.build_test_case() for r in results[0]],
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang/utils/generate_ast_matcher_doc_tests.py", line 1130, in <listcomp>
[r.build_test_case() for r in results[0]],
^^^^^^^^^^^^^^^^^^^
File "/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang/utils/generate_ast_matcher_doc_tests.py", line 620, in build_test_case
if not can_code_compile(self.code, self.headers, self.compile_args):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang/utils/generate_ast_matcher_doc_tests.py", line 477, in can_code_compile
res = run(invocation, cwd=tmp_path, check=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/subprocess.py", line 548, in run
with Popen(*popenargs, **kwargs) as process:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/subprocess.py", line 1026, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.11/subprocess.py", line 1950, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'clang'
101.059 [912/16/237] Building CXX object tools/clang/unittests/Analysis/FlowSensitive/CMakeFiles/ClangAnalysisFlowSensitiveTests.dir/SignAnalysisTest.cpp.o
101.548 [912/15/238] Building CXX object tools/clang/unittests/Analysis/FlowSensitive/CMakeFiles/ClangAnalysisFlowSensitiveTests.dir/TestingSupport.cpp.o
102.883 [912/14/239] Building CXX object tools/clang/unittests/Analysis/FlowSensitive/CMakeFiles/ClangAnalysisFlowSensitiveTests.dir/SingleVarConstantPropagationTest.cpp.o
104.557 [912/13/240] Building CXX object tools/clang/unittests/Analysis/FlowSensitive/CMakeFiles/ClangAnalysisFlowSensitiveTests.dir/TestingSupportTest.cpp.o
106.051 [912/12/241] Building CXX object tools/clang/unittests/Analysis/FlowSensitive/CMakeFiles/ClangAnalysisFlowSensitiveTests.dir/TransferBranchTest.cpp.o
108.553 [912/11/242] Building CXX object tools/clang/unittests/Analysis/FlowSensitive/CMakeFiles/ClangAnalysisFlowSensitiveTests.dir/WatchedLiteralsSolverTest.cpp.o
109.188 [912/10/243] Building CXX object tools/clang/unittests/StaticAnalyzer/CMakeFiles/StaticAnalysisTests.dir/BugReportInterestingnessTest.cpp.o
109.782 [912/9/244] Building CXX object tools/clang/unittests/StaticAnalyzer/CMakeFiles/StaticAnalysisTests.dir/IsCLibraryFunctionTest.cpp.o
110.328 [912/8/245] Building CXX object tools/clang/unittests/StaticAnalyzer/CMakeFiles/StaticAnalysisTests.dir/CallDescriptionTest.cpp.o
110.770 [912/7/246] Building CXX object tools/clang/unittests/Analysis/FlowSensitive/CMakeFiles/ClangAnalysisFlowSensitiveTests.dir/UncheckedOptionalAccessModelTest.cpp.o
111.574 [912/6/247] Building CXX object tools/clang/unittests/StaticAnalyzer/CMakeFiles/StaticAnalysisTests.dir/FalsePositiveRefutationBRVisitorTest.cpp.o
112.736 [912/5/248] Building CXX object tools/clang/unittests/StaticAnalyzer/CMakeFiles/StaticAnalysisTests.dir/ParamRegionTest.cpp.o
113.272 [912/4/249] Building CXX object tools/clang/unittests/StaticAnalyzer/CMakeFiles/StaticAnalysisTests.dir/StoreTest.cpp.o
113.745 [912/3/250] Building CXX object tools/clang/unittests/StaticAnalyzer/CMakeFiles/StaticAnalysisTests.dir/SymbolReaperTest.cpp.o
```
</details>
https://github.com/llvm/llvm-project/pull/94248
More information about the cfe-commits
mailing list