Commit 8d3fc93
authored
ci: lint full C++ surface via ci-linux-tidy preset (#59)
* ci: lint full C++ surface via ci-linux-tidy preset
The clang-tidy gate used ci-linux-release-server, which (a) omits the diagram
tool + examples from compile_commands, so changes there were silently un-linted
despite the paths filter matching them, and (b) writes to build-server/, which
the gate's -path build/<preset> never finds — so the gate had no compile DB at
all.
Add a dedicated ci-linux-tidy preset (tests + server + json + yaml + diagram +
examples; fuzz stays clang-only) using the default build/<preset> dir, and point
the caller at it with apt-packages: graphviz for the diagram tool's link deps.
Re-pin clang-tidy-diff.yml to the SHA carrying the new apt-packages input.
* test: temporary clang-tidy canary in diagram-tool (revert before merge)
Deliberate bugprone-integer-division in a previously-uncovered diagram-tool file
to prove the ci-linux-tidy gate (a) configures the grpc+graphviz feature union
and (b) now lints diagram-tool C++. Reverted once the annotation is confirmed.
* ci: pin clang-tidy gate to x64-linux to reuse the warm vcpkg cache
The gate inherited the shared workflow's x64-linux-static triplet default, which
has no warm binary cache in this repo, so configure rebuilt grpc from source and
hit the 30-min job timeout. Pin to x64-linux (the repo's CI triplet) so the gate
restores the server-enabled lane's cache — identical closure, no clobber risk.
* Revert "test: temporary clang-tidy canary in diagram-tool"
Canary validated: ci-linux-tidy configured the grpc+graphviz union, built the
diagram tool, and the gate annotated tools/viz_core/format.cpp inline (advisory,
green). Removing it leaves only the preset + caller change.1 parent 2b291ca commit 8d3fc93
2 files changed
Lines changed: 27 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
25 | 29 | | |
26 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
124 | 133 | | |
125 | 134 | | |
126 | 135 | | |
| |||
218 | 227 | | |
219 | 228 | | |
220 | 229 | | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
221 | 234 | | |
222 | 235 | | |
223 | 236 | | |
| |||
0 commit comments