Skip to content

chore(ci): add codecov config to reduce noise on small refactors - #1044

Merged
alexanderankin merged 3 commits into
mainfrom
chore/codecov-config
Jun 6, 2026
Merged

chore(ci): add codecov config to reduce noise on small refactors#1044
alexanderankin merged 3 commits into
mainfrom
chore/codecov-config

Conversation

@Tranquility2

Copy link
Copy Markdown
Contributor

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/validateValid!.

Real coverage regressions will still surface (anything > 1% project drop), and contributors keep getting patch-coverage feedback — it just won't block.

@alexanderankin
alexanderankin merged commit f181fa3 into mainJun 6, 2026
8 checks passed
@alexanderankin
alexanderankin deleted the chore/codecov-config branch June 6, 2026 12:58
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@Tranquility2@alexanderankin