ci: treat 95% or higher project coverage as passing - #513
Conversation
The project coverage status had no configuration, so Codecov applied its default of allowing no decrease at all. Any pull request that added well-tested code still nudged the overall percentage down a fraction and failed the check. Set an explicit 95% target for project coverage. Coverage of the lines a pull request changes keeps its default behaviour, so new code is still expected to be tested.
✅ Deploy Preview for commit-check ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Warning Review limit reached
Next review available in: 27 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Keeps the repository root tidy, matching where dependabot and the other repository configuration already live. Codecov reads its configuration from the repository root, .github, or dev, so this location is equivalent.
|



Problem
The repository has no
codecov.yml, so the project coverage status falls back to Codecov's default target ofautowith a0%threshold — meaning any decrease fails the check.In practice this fails pull requests that are well tested. For example, in #512 Codecov reported:
…while
codecov/projectstill failed at 97.43% (-0.11%), purely because adding 32 well-covered lines shifted the overall percentage by a fraction of a point.Change
Add a
codecov.ymlthat sets an explicit 95% target for project coverage. The project sits comfortably above that (currently ~97.4%), so the status now answers "is this project well covered?" rather than "did the percentage move at all?".Coverage of the lines a pull request changes (
codecov/patch) keeps Codecov's default behaviour, so new code is still expected to be tested.Effect on open pull requests
Once this is on
main, re-running CI on an open pull request will pick up the new configuration.Generated by Claude Code