Repository navigation
workflows: keep going and collect clang-tidy reports on CI - #538
Conversation
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
|
Documentation preview for this pull request is available at: |
fa2e7ea to
7c04793
Compare
There was a problem hiding this comment.
🟡 Changes recommended
The clang-tidy configuration unintentionally disables checks and contains a malformed check list.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Extends clang-tidy CI to continue after failures and publish diagnostics as artifacts and code-scanning results.
Changes:
- Collects raw clang-tidy reports and normalized SARIF.
- Adds privileged SARIF upload handling for fork PRs.
- Alters the enabled clang-tidy checks.
File summaries
| File | Description |
|---|---|
.github/workflows/lint.yml |
Collects and uploads clang-tidy reports. |
.github/workflows/lint_sarif_upload.yml |
Uploads fork-PR SARIF results. |
.github/tools/clean_clang_tidy_sarif.py |
Normalizes SARIF rules and paths. |
.clang-tidy |
Changes enabled and error-level checks. |
Review details
- Files reviewed: 4/4 changed files
- Comments generated: 2
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| readability-*, | ||
| -readability-avoid-const-params-in-decls, | ||
| -readability-avoid-return-with-void-value, | ||
| modernize-* |
| -readability-avoid-const-params-in-decls, | ||
| -readability-avoid-return-with-void-value, | ||
| modernize-* | ||
| -modernize-use-trailing-return-type, |
db24ff6 to
4c6d8de
Compare
7e0aab9 to
8867303
Compare
Stop the clang-tidy CI job from aborting on the first failure and upload reports as a workflow artifact.
Merge rules_lint's per-file clang-tidy SARIF reports into one upload with sarif-multitool. A helper script synthesizes a ruleId for each result from the check name clang-tidy appends to its message, and normalizes paths to be repo-root relative, since GitHub requires both and ignores rules_lint's own uriBaseId. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Fork PRs get a read-only GITHUB_TOKEN, so lint.yml could not upload clang-tidy SARIF to code scanning for pull_request events. Bundle the SARIF and PR number as an artifact instead, and add lint_sarif_upload.yml to upload it from a privileged workflow_run, which always runs with this repo's own permissions.
Reomove some warnings that cause lots of noise and contribute little to better code.
8867303 to
04ea763
Compare
Stop the clang-tidy CI job from aborting on the first failure and
upload reports as a workflow artifact.