Add codecov.yml with a 1% coverage threshold#683
Open
wbarnha wants to merge 1 commit into
Open
Conversation
The repo had no Codecov config, so Codecov applied its default project status (target: auto, threshold: 0%) and failed CI on any coverage decrease -- including the sub-0.1% jitter from async/threaded lines being counted differently between runs, which forced admin-merges on otherwise green PRs. Add a codecov.yml giving project and patch a 1% threshold so the gate tolerates that noise while still catching real regressions, and disable the per-PR comment.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The repo has no Codecov config, so Codecov applies its default project status —
target: auto,threshold: 0%— which fails thecodecov/projectcheck on any coverage decrease at all. In practice the drops are sub-0.1% jitter from async/threaded lines being counted slightly differently between runs (not real regressions), and they've been forcing admin-merges on otherwise-green PRs.This adds a root
codecov.ymlgivingprojectandpatcha 1% threshold — enough slack to absorb the noise while still flagging a genuine coverage regression — and disables the per-PR Codecov comment (the status checks already carry the signal).Notes:
Generated by Claude Code