Commit Graph
6 Commits
Author SHA1 Message Date
Alexander ShaduriandClaude Opus 5.5 f928701cf2 CI: Keep the warnings report within GitHub's comment size limit
Instead of cutting the rendered text (which could leave open <details>
tags), list fewer warnings in changed files (200, 100, 50, 20) until the
report fits, then fall back to the summary tables with a link to the
workflow run. Long diagnostic messages are shortened to 300 characters.

Also drop the msys-style path conversion (/d/... -> d:/...), which
misread Linux paths with a single-letter top-level directory; the
save-build-log action already records Windows paths as D:/...

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 19:26:19 +01:00
Alexander ShaduriandClaude Opus 5.5 9084a2e4d5 CI: Use a single-line module docstring in the report script
Codacy enables both pydocstyle D212 and D213, which contradict each
other for multi-line docstrings. Keep the docstring to one line and
move the details into comments.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 19:24:08 +01:00
Alexander ShaduriandClaude Opus 5.5 c90e4a727e CI: Keep the CodeQL category; fix Codacy findings in the report script
- Use the full category of the previous CodeQL configuration
  (.github/workflows/codeql-analysis.yml:analyze/language:cpp), so the
  existing analysis keeps receiving results and its alerts get closed.
- warnings_report.py: rename the Warning tuple to CompilerWarning (it
  shadowed the built-in), add docstrings for the __init__ methods and
  start the module docstring on its first line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 19:22:56 +01:00
Alexander ShaduriandClaude Opus 5.5 327d916024 CI: Reorganize the warnings report for readability
- Lead with a one-line verdict for the files changed by the PR, and
  flag builds whose log is missing.
- List warnings in changed files grouped by file, with links to the
  source lines at the PR head commit and the builds that reported them
  ("all compilers" when every compiler build did).
- Separate compiler warnings from clang-tidy findings; clang-tidy's
  re-reported compiler diagnostics are left to the compiler builds.
- Move whole-project breakdowns (by type, by file) into collapsed
  sections, and link the workflow run in the footer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 19:20:46 +01:00
Alexander ShaduriandClaude Opus 5.5 46618d42ea CI: Gather warnings from every CI build into one PR report
Add ci.yml, which calls tier 1 (Linux GCC, Windows UCRT64), tier 2
(macOS Apple Clang / LLVM, Linux Clang), sanitizers and clang-tidy as
reusable workflows, then posts a single warnings report to the PR.

Every build saves its log via the new save-build-log composite action
(with the platform title and its workspace path, so Windows and macOS
paths can be mapped to repository paths). The report lists per-platform
counts of warnings in changed files and in total, and the unique
warnings across all platforms, with the platforms that reported each.

The called workflows keep workflow_dispatch for manual runs; their own
push / pull_request triggers and concurrency settings move to ci.yml.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 19:18:46 +01:00
Alexander ShaduriandClaude Opus 5.5 4ec5de9b75 CI: Post a deduplicated clang-tidy / GCC warnings report on PRs
Replace clang-tidy.yml with warnings-report.yml, which builds with
clang-tidy 22 and with GCC 15 (project warning flags), then posts a
sticky PR comment with warnings in changed files and total warnings.

Warnings are deduplicated and limited to project files (dependencies,
system headers and generated files are excluded) by
.github/scripts/warnings_report.py. The comment is updated in place on
each push. For PRs from forks the token is read-only, so the report is
only written to the job summary.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 19:15:34 +01:00