Skip to content

Closes #5321: Fix Codecov “missing BASE report” by enabling coverage uploads on main - #5322

Merged
ajpotts merged 1 commit into
Bears-R-Us:mainfrom
ajpotts:5321_Fix_Codecov_missing_BASE_report
Jan 22, 2026
Merged

ajpotts merged 1 commit into
Bears-R-Us:mainfrom
ajpotts:5321_Fix_Codecov_missing_BASE_report

Conversation

@ajpotts

@ajpotts ajpotts commented Jan 20, 2026 •

Copy link
Copy Markdown
Contributor

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

@ajpotts ajpotts changed the title Closes #5321: Fix Codecov “missing BASE report” by enabling coverage… Closes #5321: Fix Codecov “missing BASE report” by enabling coverage uploads on main Jan 20, 2026
@ajpotts
ajpotts requested review from 1RyanK and drculhane January 20, 2026 11:54
@ajpotts ajpotts assigned jaketrookman and unassigned jaketrookman Jan 20, 2026
@ajpotts
ajpotts requested a review from jaketrookman January 20, 2026 12:16
@codecov

codecov Bot commented Jan 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@03aa4df). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff            @@
##             main     #5322   +/-   ##
========================================
  Coverage        ?   100.00%           
========================================
  Files           ?         4           
  Lines           ?        63           
  Branches        ?         0           
========================================
  Hits            ?        63           
  Misses          ?         0           
  Partials        ?         0           
Flag Coverage Δ
python-coverage 100.00% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ajpotts
ajpotts marked this pull request as ready for review January 20, 2026 17:13
@ajpotts
ajpotts marked this pull request as draft January 20, 2026 17:13
@ajpotts

ajpotts commented Jan 21, 2026

Copy link
Copy Markdown
Contributor Author

Why these GitHub Actions triggers are defined

This 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:

  • push (branches: main)
    Runs CI when commits are pushed directly to main. This ensures that any changes merged or pushed to the main branch are validated, including administrative merges or emergency fixes.

  • pull_request
    Runs CI for pull requests targeting the repository. This is the primary signal used to validate proposed changes before they are merged.

  • merge_group
    Runs CI for GitHub merge queue batches. This ensures compatibility when multiple pull requests are tested and merged together, preventing last‑minute integration failures.

  • workflow_dispatch
    Allows the workflow to be triggered manually from the GitHub UI. This is useful for debugging CI issues or re‑running checks without creating a new commit.

Together, these triggers ensure CI runs consistently for PR validation, merge queue operations, direct merges to main, and manual testing scenarios.

@ajpotts

ajpotts commented Jan 21, 2026

Copy link
Copy Markdown
Contributor Author

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.

@ajpotts
ajpotts marked this pull request as ready for review January 21, 2026 17:15

@jaketrookman jaketrookman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@1RyanK 1RyanK left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@ajpotts
ajpotts added this pull request to the merge queue Jan 21, 2026
github-merge-queue Bot pushed a commit that referenced this pull request Jan 21, 2026
…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]>
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jan 21, 2026
@ajpotts
ajpotts added this pull request to the merge queue Jan 22, 2026
Merged via the queue into Bears-R-Us:main with commit 4f55c3b Jan 22, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix Codecov “missing BASE report” by enabling coverage uploads on main

3 participants