Repository navigation
ci: upload KinD coverage and restore the Codecov target - #2341
Merged
Merged
Conversation
Upload the collected e2e profile with the same pinned action and authentication as unit coverage. Name and explicitly select the two reports, wait for both uploads before publishing statuses and comments, and restore the 75% project floor in the same change. Signed-off-by: sinbumu <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2341 +/- ##
===========================================
+ Coverage 74.89% 90.23% +15.34%
===========================================
Files 157 157
Lines 6584 6584
===========================================
+ Hits 4931 5941 +1010
+ Misses 1364 379 -985
+ Partials 289 264 -25 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
TerryHowe
marked this pull request as ready for review
November 18, 2026 16:41
TerryHowe
requested review from
Wwwsylvia,
sabre1041,
sajayantony and
shizhMSFT
as code owners
November 18, 2026 16:41
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.
What this PR does / why we need it:
KinD now produces
test/e2e/coverage.txt, but only unit coverage reaches Codecov. This uploads the E2E profile and restores the 75% project target together. Both coverage statuses and the PR comment wait for two processed uploads, avoiding a unit-only status before the E2E report arrives.CODECOV_TOKENconvention.coverage.txtandtest/e2e/coverage.txt, disables extra file discovery, and names the uploadsunit-go1.26ande2e-go1.26for inspection in Codecov.codecov.notify.after_n_builds: 2andcomment.after_n_builds: 2, restores projecttarget: 75%, and removes the obsolete KinD coverage comment. The patch target remains 80% andif_ci_failed: erroris preserved.Validation:
Valid!, with both upload counts set to 2, project 75%, patch 80%, and the existing CI failure policy.git diff --checkpassed.go test -race -coverprofile=... -covermode=atomic -coverpkg=./... ./...passed and generated the unit report.do-upload --dry-run --disable-search --fail-on-errorselected exactly one unit/E2E report per invocation. A missing explicit report returned exit 1 despite other coverage files being present. No coverage data was uploaded locally.f9a107b9a423f14adafc8c6a92fabaa0e74908c8then independently passed all 660 race-enabled E2E specs, collected 72.3% Go statement coverage, and publishede2e-coverage-go1.26.Live acceptance on
f9a107b9a423f14adafc8c6a92fabaa0e74908c8:MERGEDupload sessions,unit-go1.26from build ande2e-go1.26from e2e-k8s. Combined coverage recovered to 90.23% from unit-only 74.89%; the issue's historical 88.14% is not used as an exact assertion.Both uploads succeeded from this fork PR using the existing authentication mechanism; no repository secrets or authentication/permission settings were changed. The successful run verifies the normal two-upload path. Remote cancelled, failed-test, and missing-collection scenarios were not deliberately triggered; missing-file rejection was checked locally, and the workflow conditions preserve the existing test/collection failures. Local Go statement coverage and Codecov line coverage are different metrics.
AI assistance was used for implementation and validation.
Which issue(s) this PR fixes:
Fixes #2213
Please check the following list: