Add codecov threshold to unblock dependency update PRs#227
Merged
Conversation
Dependency update PRs (Renovate) cause minor coverage fluctuations (0.15-1.02%) due to how different compiler/library versions affect coverage measurement. Without a threshold, codecov/project blocks these PRs even though no source code changed. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Adds a Codecov configuration to relax the codecov/project status check so dependency-only Renovate PRs aren’t blocked by small coverage fluctuations.
Changes:
- Introduces
.codecov.ymlto allow up to a 2% project coverage drop. - Configures Codecov status checks for
project(and alsopatch).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #227 +/- ##
============================================
- Coverage 62.07% 61.59% -0.49%
+ Complexity 235 229 -6
============================================
Files 15 15
Lines 2070 2070
Branches 315 315
============================================
- Hits 1285 1275 -10
- Misses 607 611 +4
- Partials 178 184 +6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Summary
.codecov.ymlwith a 2% project coverage thresholdcodecov/projectdue to minor coverage fluctuations (0.15-1.02%) caused by dependency version changes, not source code changesCoverage failures across open PRs
All are within the 2% threshold.
Test plan
codecov/projectshould pass🤖 Generated with Claude Code