Commit e3baa42
ci: measure 95% project floor over production code only
The >=95% project floor was computed over the full coverage.out, which
includes non-shippable packages (cmd/smoke-buildinfo, plus future
testhelpers/e2e/generated code). That dilutes the denominator and turns a
coverage gate into noise from diagnostic binaries. Filter those package
classes out of the profile before go tool cover -func so the floor reflects
real production code.
Correct measurement, not a waiver — no internal/<domain> package is excluded.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent dffb66c commit e3baa42
1 file changed
Lines changed: 20 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
75 | 89 | | |
76 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
77 | 94 | | |
78 | 95 | | |
79 | | - | |
| 96 | + | |
0 commit comments