Skip to content

Commit 8a85f8c

Browse files
Project coverage may move within a percent before its status fails (#2172)
With no threshold, codecov/project fails on any fall at all from the base commit's figure. Now that reports reach Codecov (#2162, #2165), that turns ordinary changes red: #2171 was at -0.02%, five lines that a new guard returns before. A threshold of 1% lets that movement through and still fails what the status is for, such as a test leg whose report goes empty, which moved the figure from 86.41% to 0.38%. Codecov's validator accepts the file and reads the threshold back as 1.0. Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 6d5d9e3 commit 8a85f8c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎.github/codecov.yml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ coverage:
1111
# never been valid, so none of it applied, the flags below included. Check an edit with
1212
# curl -s -X POST --data-binary @.github/codecov.yml https://api.codecov.io/validate
1313
status:
14+
# The project figure is compared with the base commit's, and with no threshold any fall at
15+
# all fails: #2171 was red at -0.02%, five lines a new guard returns before. A percent lets
16+
# the ordinary movement of a change through and still fails a leg whose report goes empty,
17+
# which moved the figure from 86.41% to 0.38%.
18+
project:
19+
default:
20+
threshold: 1%
1421
patch: no
1522
changes: no
1623

0 commit comments

Comments
 (0)