ci(codecov): carry forward coverage on skipped-test pushes - #772
Merged
Merged
Conversation
Coverage only runs when the pushed diff needs the test lanes; a narrowed push (docs, release metadata, chore) skips the whole test job and uploads nothing, leaving that commit - and the badge, when it lands on the default branch - without a report. Carrying forward the unit and webgl flags reuses each one's last real upload instead.
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.
Coverage only runs when the pushed diff needs the test lanes; a narrowed push (docs, release metadata, chore) skips the whole test job and uploads nothing. Checked against the live Codecov API: most commits on both
mainandnextcurrently carrytotals: null, and the repo-level totals arenullbecause Codecov's default branch (main) has such a commit as its latest.Adds
codecov.ymlwith carryforward enabled for theunitandwebglflags - the only two that ever upload coverage - so a commit with no new report reuses the last real one instead of showing none.Verification: config-only change; the fix takes effect on the next skipped-coverage push to
main/nextafter merge, which is the natural place to confirm it against the live badge and API.