CI: measure coverage on develop, not only on pull requests - #1162
Merged
Gui-FernandesBR merged 1 commit intoAug 15, 2026
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #1162 +/- ##
===========================================
+ Coverage 82.18% 83.53% +1.35%
===========================================
Files 122 130 +8
Lines 16355 17086 +731
===========================================
+ Hits 13441 14273 +832
+ Misses 2914 2813 -101 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Gui-FernandesBR
approved these changes
Aug 15, 2026
The tests workflow is the only one that uploads to Codecov and it runs on pull_request alone, so no commit on develop ever gets a report. Codecov then compares each pull request against the nearest older report it holds and prints how far behind that has fallen; the banner read 53 commits one day and 61 the next, and it grows with every merge. .codecov.yml already names master and develop under branches for both the project and the patch status, so the configuration expects these to be measured. docs.yml pairs pull_request with push the same way. Nothing in the jobs reads pull_request context, so the same matrix runs unchanged on a push. Signed-off-by: thc1006 <84045975+thc1006@users.noreply.github.com>
Gui-FernandesBR
force-pushed
the
ci/measure-coverage-on-develop
branch
from
August 15, 2026 01:49
3dcb0c1 to
18d4fb1
Compare
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.
Pull request type
Checklist
Current behavior
test_pytest.yamlis the only workflow that uploads to Codecov, and it runs onpull_requestalone. No commit ondevelopever gets a coverage report.Codecov falls back to the nearest older report it holds and says how far behind that is. The banner on my open pull requests read:
Report is 53 commits behind head on develop.Report is 61 commits behind head on develop.It grows with every merge, and the comparison is against whatever
developlooked like whenever that stale report was uploaded rather than against the base the pull request is actually built on..codecov.ymlalready namesmasteranddevelopunderbranches:for both the project and the patch status, so the configuration expects both to be measured. It is only the trigger that never produces the reports.New behavior
The same matrix also runs on a push to
masterordevelop, under the samepaths:filter the pull request trigger uses. Each merge leaves a report at the commit the next pull request will be compared against.docs.ymlpairspull_requestwithpushin the same shape, so this is the existing idiom in this repository rather than a new one.Breaking change
Additional information
Nothing in either job reads
pull_requestcontext: the only mention of the event in the file is the trigger itself, so the matrix and theCodecovUploadguard behave the same on a push. Forks still get an emptyCODECOV_TOKENandfail_ci_if_errorstill stays off for them; a push todevelopruns in this repository, so it has the token.Two things worth weighing:
.pyfile still uploads nothing, so the banner can still show a small number. That one is accurate: coverage did not change, and Codecov walking back one commit is the right answer. What this fixes is never getting a report at all.