Skip to content

Wire Build stacks to Codecov (Phase 2: tokened uploads + main reports) #4665

Closed

Description

@Yicong-Huang

Task Summary

Phase 2 follow-up to #4645. Wire CODECOV_TOKEN to the four Codecov upload steps in .github/workflows/build.yml (frontend, scala, python, agent-service) so coverage reports from push events on protected branches (main, release/**) actually land on Codecov.

Why this is needed — Phase 1 deferred the INFRA token wiring, betting on Codecov's tokenless flow. In practice the tokenless flow only authenticates fork PR uploads. Push events on the Codecov-protected default branch get rejected with:

Upload queued for processing failed: {"message":"Token required because branch is protected"}

This has been silent because fail_ci_if_error: false. As a result Codecov has zero reports on apache:main (https://codecov.io/api/v2/github/apache/repos/texera/branches/main → 404) and every branch listed there is a fork PR. Without main reports Codecov has no baseline to diff PR coverage against, and a coverage badge would render "unknown".

Plan — Add token: ${{ secrets.CODECOV_TOKEN }} to each of the four codecov/codecov-action uses. The CODECOV_TOKEN secret has been added at the repo level.

Still out of scope (deferred to a later phase):

  • Flipping fail_ci_if_error to true — once Phase 2 is verified working, otherwise we'd just turn the silent failure into a noisy one.
  • PR comments / commit status / quality-gate (codecov.yml) configuration.
  • Fixing Codecov's stale "default branch = master" repo setting.
  • Adding a coverage badge to README.

Task Type

  • DevOps / Deployment / CI

Activity

  1. added theissue type on May 2, 2026
  2. changed the title [-]Wire CODECOV_TOKEN so main coverage actually lands on Codecov[/-] [+]Wire Build stacks to Codecov (Phase 2: tokened uploads + main reports)[/+] on May 2, 2026
  3. added a commit that references this issue on May 2, 2026
    887f00f
  4. added a commit that references this issue on May 2, 2026
    1780287
  5. added a commit that references this issue on Jun 22, 2026
    900bf62
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions