Repository navigation
Closes #5321: Fix Codecov “missing BASE report” by enabling coverage uploads on main - #5322
Conversation
… coverage uploads on main
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5322 +/- ##
========================================
Coverage ? 100.00%
========================================
Files ? 4
Lines ? 63
Branches ? 0
========================================
Hits ? 63
Misses ? 0
Partials ? 0
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:
|
Why these GitHub Actions triggers are definedThis workflow is configured to run under several different events to ensure CI coverage across all relevant ways code can enter or affect the repository. on:
push:
branches: [main]
pull_request:
merge_group:
workflow_dispatch:Trigger explanations:
Together, these triggers ensure CI runs consistently for PR validation, merge queue operations, direct merges to |
|
Note on Codecov warning: This PR changes the Codecov coverage flag. The “missing BASE report” warning is expected until this change is merged and CI runs on main, at which point main will upload coverage under the new flag and the warning will disappear. |
…uploads on main (#5322) # Fix Codecov “missing BASE report” by uploading coverage on `main` Codecov reports a persistent warning on PRs: >⚠️ Please upload report for BASE (main@…) Even when all modified lines are fully covered. ## Root cause - CI did **not run on pushes to `main`**, so Codecov never received a base coverage report. - The Codecov upload step used an **invalid flag** (`matrix.python-version`) in a job without that matrix. ## Changes - Add a `push` trigger for the `main` branch so coverage is uploaded for the base commit. - Replace the invalid Codecov flag with a stable constant flag (`python-coverage`). ## Result - Codecov can compute correct base-vs-PR coverage. - Removes “missing BASE report” warnings. - Restores reliable coverage regression detection. Closes #5321: Fix Codecov “missing BASE report” by enabling coverage uploads on main Co-authored-by: ajpotts <[email protected]>
Fix Codecov “missing BASE report” by uploading coverage on
mainCodecov reports a persistent warning on PRs:
Even when all modified lines are fully covered.
Root cause
main, so Codecov never received a base coverage report.matrix.python-version) in a job without that matrix.Changes
pushtrigger for themainbranch so coverage is uploaded for the base commit.python-coverage).Result
Closes #5321: Fix Codecov “missing BASE report” by enabling coverage uploads on main