Skip to content

ci: upload e2e coverage to codecov and restore the 75% project target #2213

Closed

Description

@TerryHowe

Follow-up to #2208. Blocked on #2209 — unblocked: #2209 was fixed by #2340, so the e2e-k8s job now writes test/e2e/coverage.txt and uploads it as the e2e-coverage-go<version> artifact (72.3% e2e-only in that PR's CI run).

Context

.github/.codecov.yml enforces an absolute floor:

coverage:
  status:
    project:
      default:
        target: 75%
        if_ci_failed: error

#2208 removes the e2e coverage contribution — roughly 27 points by a local go test -coverpkg=./... measurement (88.14% → ~61%) — so it lowered that target to 55% to keep CI green. As Codecov counts it, the unit-only project sits at 74.89% (base 61097e9, per the Codecov report on #2340), just under the 75% floor. Now that #2209 produces test/e2e/coverage.txt in the e2e-k8s job, the upload and the target restore should land together.

Proposed work

  1. Add a codecov/codecov-action step to .github/workflows/e2e-k8s.yml, pinned to a commit SHA per the convention in every other workflow (see ci: pin e2e-k8s.yml action refs to commit SHAs #2210). Codecov merges multiple uploads for the same commit, so no cross-job artifact passing is needed.
  2. Set codecov.notify.after_n_builds: 2 in .github/.codecov.yml (key confirmed valid via codecov.io/validate), plus comment.after_n_builds: 2 so the PR comment also waits for both uploads. Without it, build will usually land its unit-only report first and codecov will post a failing codecov/project status before the e2e-k8s upload arrives and corrects it, giving flapping red checks on every PR. Because unit-only is already just below 75%, this would hit essentially every PR.
  3. Restore target: 75%.

Step 3 has to be in the same PR as step 1. The coverage and the floor must move atomically, or there is a window where main is red.

Acceptance

codecov/project and codecov/patch green on the PR, with the codecov commit page showing two upload sessions and a total back near the pre-#2208 88.14%.

Activity

  1. added
    E2E testing
    on Oct 2, 2026
  2. added
    help wanted
    on Nov 18, 2026
  3. sinbumu commented on Nov 18, 2026

    @sinbumu
    Contributor

    I'd like to work on this follow-up to #2340. I'll add the KinD coverage upload using the same pinned Codecov action/authentication as build.yml, restore the 75% project target in the same change, and delay statuses and PR comments until two uploads have been processed. I'll validate the YAML and failure/missing-report behavior, and report fork-upload authentication and live Codecov verification separately. AI assistance will be used and disclosed in the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    E2E testingcihelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions