Skip to content

ci: harden clang-tidy ratchet coverage - #1124

Merged
justinjoy merged 1 commit into
mainfrom
agent/issue-1122
Aug 18, 2026
Merged

ci: harden clang-tidy ratchet coverage#1124
justinjoy merged 1 commit into
mainfrom
agent/issue-1122

Conversation

@justinjoy

Copy link
Copy Markdown
Collaborator

Closes #1122

Strengthens the clang-tidy ratchet against false-clean coverage regressions:

  • compares supported LLVM per-major --dump-config values, including header filters
  • adds source and header sensitivity fixtures
  • tracks NOLINT/NOLINTNEXTLINE suppression counts per scan and alternate configuration
  • fails on new suppressions, including combined clang-tidy suppression summaries
  • adds guard unit coverage to the tidy Meson suite

Validation:

  • full build passed
  • tidy suite: 4/4 passed
  • full Meson suite: 293 tests passed; existing environment-dependent perf skips remain

justinjoy added a commit that referenced this pull request Aug 18, 2026
CLAUDE.md said "58 files today" and "The 13 files that are not clean
yet"; tests/meson.build and clang-tidy-supported-majors.txt carried the
same 13.  Every one of them became wrong the moment a file was promoted,
and this branch promotes three at once, so no per-branch number could
have been correct.

Delete the counts rather than decrement them.  clang-tidy-backlog.txt's
own header already argues the point for diagnostic counts -- "NO
DIAGNOSTIC COUNTS.  A count would look like useful precision and is not"
-- and the same reasoning applies to file counts, which move on every
promotion.  ci-pr.yml already derives both sizes at runtime.

scripts/ci/check-clang-tidy-ratchet.py carries the same stale sentence at
:33 and is deliberately left alone: PR #1124 is rewriting that file, and
a one-line comment edit there would conflict for no gain.

Refs #1074, #1082, #1083
@justinjoy
justinjoy merged commit 95800f9 into main Aug 18, 2026
29 of 32 checks passed
@justinjoy
justinjoy deleted the agent/issue-1122 branch August 18, 2026 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

clang-tidy ratchet: two unguarded one-line edits make it report a false clean

1 participant