ci: make codecov patch status informational#1616
Open
zimeg wants to merge 1 commit into
Open
Conversation
The patch status had target: 30%, so PRs with 0% diff coverage (e.g. docs- or config-only changes with no measurable lines) failed with a misleading red "x" even when nothing testable changed. Marking the patch status informational keeps the coverage percentage visible on the PR without ever blocking or reporting a failing status. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1616 +/- ##
============================================
- Coverage 73.32% 73.30% -0.03%
+ Complexity 4520 4518 -2
============================================
Files 478 478
Lines 14300 14300
Branches 1490 1490
============================================
- Hits 10486 10483 -3
- Misses 2923 2925 +2
- Partials 891 892 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
zimeg
commented
Jun 30, 2026
zimeg
left a comment
Member
Author
There was a problem hiding this comment.
I'm leaving a comment of reference for the most wonderful readers 🤓
| patch: | ||
| default: | ||
| target: 30% | ||
| informational: true |
Member
Author
There was a problem hiding this 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.
This pull request makes the Codecov patch status informational so it no longer shows a misleading failing "x".
patch.defaultusedtarget: 30%, so any PR with 0% diff coverage (e.g. docs- or config-only changes with no measurable lines) failed the patch check even when nothing testable changed.informational: truekeeps the patch coverage percentage visible on the PR but never blocks or reports a failing status.projectstatus is unchanged.Preview
Before changes we find confusion in commit statuses despite passing tests:
After this change we might prefer to use @codecov comments and reviews
Category
Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you agree to those rules.