Skip to content

workflows: keep going and collect clang-tidy reports on CI - #538

Merged
4og merged 4 commits into
mainfrom
fb/clang_tidy_reports
Sep 4, 2026
Merged

4og merged 4 commits into
mainfrom
fb/clang_tidy_reports

Conversation

@fbaeuerle

Copy link
Copy Markdown
Contributor

Stop the clang-tidy CI job from aborting on the first failure and
upload reports as a workflow artifact.

@github-project-automation github-project-automation Bot moved this to In Progress in BAS - Baselibs FT Sep 2, 2026
@github-actions github-actions Bot added c++ C++ code comp-filesystem Related to score/filesystem component labels Sep 2, 2026
@github-advanced-security

Copy link
Copy Markdown

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:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

Comment thread score/filesystem/error.cpp Fixed
Comment thread score/filesystem/error.cpp Fixed
Comment thread score/filesystem/error.cpp Fixed
Comment thread score/filesystem/error.cpp Fixed
Comment thread score/filesystem/error.cpp Fixed
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Documentation preview for this pull request is available at:
pr-538: https://eclipse-score.github.io/baselibs/pr-538/

Comment thread score/filesystem/error.cpp Fixed
Comment thread score/filesystem/error.cpp Fixed
@fbaeuerle
fbaeuerle force-pushed the fb/clang_tidy_reports branch 2 times, most recently from fa2e7ea to 7c04793 Compare September 3, 2026 11:44
@github-actions github-actions Bot removed c++ C++ code comp-filesystem Related to score/filesystem component labels Sep 3, 2026
@fbaeuerle
fbaeuerle marked this pull request as ready for review September 3, 2026 14:35
Comment thread .github/workflows/lint.yml Outdated
Comment thread .github/workflows/lint.yml Outdated
@4og
4og requested a balanced review from Copilot September 3, 2026 15:12
@4og 4og added the ci CI related changes label Sep 3, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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.

Comment thread .clang-tidy Outdated
readability-*,
-readability-avoid-const-params-in-decls,
-readability-avoid-return-with-void-value,
modernize-*
Comment thread .clang-tidy
Comment on lines +34 to +37
-readability-avoid-const-params-in-decls,
-readability-avoid-return-with-void-value,
modernize-*
-modernize-use-trailing-return-type,
@fbaeuerle
fbaeuerle force-pushed the fb/clang_tidy_reports branch 3 times, most recently from db24ff6 to 4c6d8de Compare September 3, 2026 15:53
@github-actions github-actions Bot added comp-static_reflection_with_serialization Related to score/static_reflection_with_serialization c++ C++ code labels Sep 3, 2026
@fbaeuerle
fbaeuerle force-pushed the fb/clang_tidy_reports branch 2 times, most recently from 7e0aab9 to 8867303 Compare September 4, 2026 06:10
fbaeuerle and others added 4 commits September 4, 2026 08:10
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.
@fbaeuerle
fbaeuerle force-pushed the fb/clang_tidy_reports branch from 8867303 to 04ea763 Compare September 4, 2026 06:10
@github-project-automation github-project-automation Bot moved this from In Progress to On Hold in BAS - Baselibs FT Sep 4, 2026
@4og
4og added this pull request to the merge queue Sep 4, 2026
@4og 4og removed the comp-static_reflection_with_serialization Related to score/static_reflection_with_serialization label Sep 4, 2026
Merged via the queue into main with commit 6ce163d Sep 4, 2026
28 checks passed
@4og
4og deleted the fb/clang_tidy_reports branch September 4, 2026 08:06
@github-project-automation github-project-automation Bot moved this from On Hold to Done in BAS - Baselibs FT Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ C++ code ci CI related changes

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants