Commit c258dc7
feat(rust-ci-reusable): real owned coverage gate (llvm-cov + ratcheted floor)
The coverage job was opt-in tarpaulin -> external codecov with NO enforced
threshold (just an upload), so 'covered' claims were unbacked estate-wide.
Now, when enable_coverage is set, it:
- measures line coverage with cargo-llvm-cov (accurate, no external service);
- enforces a caller-supplied coverage_floor (new input, default 0 = report-only)
and FAILS the job below it — a gate we OWN on our own runner;
- reports the % to the job summary.
Ratchet model: set coverage_floor at the repo's honest baseline and raise it
toward target over time; never lower it. First consumer: hybrid-automation-router
(floor 84). This is the banked 'reusable tests for all repos' coverage gate.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent c4d2410 commit c258dc7
1 file changed
Lines changed: 30 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
72 | 77 | | |
73 | 78 | | |
74 | 79 | | |
| |||
254 | 259 | | |
255 | 260 | | |
256 | 261 | | |
257 | | - | |
258 | | - | |
| 262 | + | |
| 263 | + | |
259 | 264 | | |
260 | 265 | | |
261 | 266 | | |
| |||
264 | 269 | | |
265 | 270 | | |
266 | 271 | | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
267 | 275 | | |
268 | 276 | | |
269 | 277 | | |
| |||
276 | 284 | | |
277 | 285 | | |
278 | 286 | | |
| 287 | + | |
279 | 288 | | |
280 | | - | |
281 | | - | |
| 289 | + | |
| 290 | + | |
282 | 291 | | |
283 | | - | |
284 | | - | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
285 | 301 | | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
0 commit comments