[release-1.10] ci: upload unit test coverage to Codecov [RHIDP-13388]#2859
Merged
rm3l merged 10 commits intoMay 18, 2026
Conversation
Add codecov.yml configuration and upload steps to the PR and nightly workflows. Coverage checks are informational only and will not block merges. Uploads happen after `make test` using codecov-action v6. The PR workflow uses override_commit/override_pr to handle the pull_request_target trigger correctly. The nightly workflow uses override_branch for the branch matrix. RHIDP-13388 Assisted-by: Claude
The operator image existence check is only needed for integration and E2E tests which deploy the operator. Lint, unit tests, and coverage upload do not depend on the image and should always run. Assisted-by: Claude
Validates the Codecov configuration against the Codecov API on changes to codecov.yml or the workflow itself. Assisted-by: Claude
Ensure coverage upload failures are surfaced as CI failures rather than silently ignored, so missing coverage data is caught early. Assisted-by: Claude
Capture the exact HEAD after checkout and pass it as override_commit to the Codecov action, ensuring the coverage report is associated with the correct commit regardless of scheduling timing. Assisted-by: Claude
Add --connect-timeout, --max-time, --retry and --retry-all-errors to prevent hangs and reduce transient failures. Non-200/400 responses after retries now emit a warning instead of failing the job. Assisted-by: Claude
Co-authored-by: Gustavo Lira e Silva <guga.java@gmail.com>
The env var is a generic checked-out HEAD reference, not specific to Codecov. Assisted-by: Claude
Co-authored-by: Gustavo Lira e Silva <guga.java@gmail.com>
2 tasks
|
rm3l
approved these changes
May 18, 2026
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.



This is an automated cherry-pick of #2828
/assign rm3l