Commit f181fa3
authored
chore(ci): add codecov config to reduce noise on small refactors (#1044)
The repo currently has no `codecov.yml`, so Codecov uses its strict
defaults: any coverage drop (project) and any patch under 100% are
reported as failing statuses on PRs.
This produces frequent red checks on small refactors even when coverage
is unchanged or trivially impacted (e.g. #1035, #1038).
This change adds a minimal `codecov.yml` that keeps useful signal while
removing the noise:
- `coverage.status.project.default.threshold: 1%` — allow up to a 1%
project-coverage drop without failing.
- `coverage.status.project.default.if_ci_failed: success` — don't
double-report when the CI run itself failed.
- `coverage.status.patch.default.informational: true` — still report
patch coverage, but never block PRs on it.
- `comment.require_changes: true` — only post a PR comment when coverage
actually changes.
Validated with `curl --data-binary @codecov.yml
https://codecov.io/validate` → `Valid!`.
Real coverage regressions will still surface (anything > 1% project
drop), and contributors keep getting patch-coverage feedback — it just
won't block.1 parent ba42586 commit f181fa3
1 file changed
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
0 commit comments