Skip to content

[release-1.10] ci: upload unit test coverage to Codecov [RHIDP-13388]#2859

Merged
rm3l merged 10 commits into
redhat-developer:release-1.10from
openshift-cherrypick-robot:cherry-pick-2828-to-release-1.10
May 18, 2026
Merged

[release-1.10] ci: upload unit test coverage to Codecov [RHIDP-13388]#2859
rm3l merged 10 commits into
redhat-developer:release-1.10from
openshift-cherrypick-robot:cherry-pick-2828-to-release-1.10

Conversation

@openshift-cherrypick-robot
Copy link
Copy Markdown

This is an automated cherry-pick of #2828

/assign rm3l

rm3l and others added 10 commits May 18, 2026 14:11
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>
@sonarqubecloud
Copy link
Copy Markdown

@openshift-ci openshift-ci Bot added the lgtm label May 18, 2026
@rm3l rm3l merged commit 52ebcf6 into redhat-developer:release-1.10 May 18, 2026
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants