[clang] [clang-tools-extra] [clang-tidy] Add SARIF output to clang-tidy (PR #219182)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 1 07:24:30 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 91187 tests passed
* 1845 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### Clang Tools
<details>
<summary>Clang Tools.clang-tidy/infrastructure/export-SARIF-Thread-flows.cpp</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
grep -Ev "// *[A-Z-]+:" /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/export-SARIF-Thread-flows.cpp > /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/infrastructure/Output/export-SARIF-Thread-flows.cpp.tmp-input.cpp
# executed command: grep -Ev '// *[A-Z-]+:' /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/export-SARIF-Thread-flows.cpp
# note: command had no output on stdout or stderr
# RUN: at line 2
clang-tidy /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/infrastructure/Output/export-SARIF-Thread-flows.cpp.tmp-input.cpp -checks='-*,clang-analyzer*' -export-sarif=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/infrastructure/Output/export-SARIF-Thread-flows.cpp.tmp.sarif > /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/infrastructure/Output/export-SARIF-Thread-flows.cpp.tmp.msg 2>&1
# executed command: clang-tidy /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/infrastructure/Output/export-SARIF-Thread-flows.cpp.tmp-input.cpp '-checks=-*,clang-analyzer*' -export-sarif=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/infrastructure/Output/export-SARIF-Thread-flows.cpp.tmp.sarif
# note: command had no output on stdout or stderr
# RUN: at line 3
FileCheck -input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/infrastructure/Output/export-SARIF-Thread-flows.cpp.tmp.msg -check-prefix=CHECK-MESSAGES /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/export-SARIF-Thread-flows.cpp -implicit-check-not='{{warning|error|note}}:'
# executed command: FileCheck -input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/infrastructure/Output/export-SARIF-Thread-flows.cpp.tmp.msg -check-prefix=CHECK-MESSAGES /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/export-SARIF-Thread-flows.cpp '-implicit-check-not={{warning|error|note}}:'
# note: command had no output on stdout or stderr
# RUN: at line 4
FileCheck -input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/infrastructure/Output/export-SARIF-Thread-flows.cpp.tmp.sarif -check-prefix=CHECK-SARIF /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/export-SARIF-Thread-flows.cpp
# executed command: FileCheck -input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/infrastructure/Output/export-SARIF-Thread-flows.cpp.tmp.sarif -check-prefix=CHECK-SARIF /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/export-SARIF-Thread-flows.cpp
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/export-SARIF-Thread-flows.cpp:111:21: error: CHECK-SARIF-NEXT: expected string not found in input
# | //CHECK-SARIF-NEXT: "informationUri": "https://clang.llvm.org/docs/UsersManual.html",
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/infrastructure/Output/export-SARIF-Thread-flows.cpp.tmp.sarif:97:27: note: scanning from here
# | "fullName": "clang-tidy",
# | ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/infrastructure/Output/export-SARIF-Thread-flows.cpp.tmp.sarif:98:2: note: possible intended match here
# | "informationUri": "https://clang.llvm.org/extra/clang-tidy/",
# | ^
# |
# | Input file: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-tidy/infrastructure/Output/export-SARIF-Thread-flows.cpp.tmp.sarif
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-tidy/infrastructure/export-SARIF-Thread-flows.cpp
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 92: "ruleIndex": 0
# | 93: }
# | 94: ],
# | 95: "tool": {
# | 96: "driver": {
# | 97: "fullName": "clang-tidy",
# | next:111'0 { search range start (exclusive)
# | next:111'1 error: no match found in search range
# | 98: "informationUri": "https://clang.llvm.org/extra/clang-tidy/",
# | next:111'2 ? possible intended match
# | 99: "language": "en-US",
# | 100: "name": "clang-tidy",
# | 101: "rules": [
# | 102: {
# | 103: "defaultConfiguration": {
# | .
# | .
# | .
# | 117: }
# | 118: }
# | 119: }
# | 120: ],
# | 121: "version": "2.1.0"
# | 122: }
# | next:111'3 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 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/219182
More information about the cfe-commits
mailing list