Repository navigation
Conversation
Add codecov.yml configuration and upload steps to the PR test workflow. Coverage checks are informational only and will not block merges. Changes: - Makefile: add -coverprofile=cover.out to the test target - codecov.yml: project/patch status as informational, unittests flag with carryforward, ignore non-source directories - codecov-checks.yaml: new workflow to validate codecov.yml against the Codecov API - test.yaml: upload cover.out after make test using codecov/codecov-action v6 - .gitignore: add cover.out Assisted-by: Claude
PR Summary by QodoUpload PR and nightly unit-test coverage to Codecov
AI Description
Diagram
High-Level Assessment
Files changed (6)
|
Code Review by Qodo
1.
|
Add lint and unit-tests jobs to the nightly workflow. They run as separate jobs so a lint failure does not block test execution or coverage upload. Unit tests upload coverage to Codecov with the nightly flag across all release branches. The release-1.10 branch is bash-based: it is excluded from the lint job (no golangci-lint config) and its Codecov upload step is skipped (its Makefile does not produce cover.out). Renamed the workflow from "Nightly E2E Tests" to "Nightly Tests" to reflect the broader scope. Assisted-by: Claude
|
PR images are available (for 1 week):
|
The nightly workflow uploads coverage with the 'nightly' flag, but codecov.yml only defined 'unittests'. Add a 'nightly' flag entry with the same source paths and carryforward enabled so Codecov tracks nightly coverage correctly. Assisted-by: Claude
The codecov-checks workflow only triggered on main, so changes to codecov.yml on release branches or PRs targeting them would not be validated. Add the release branch pattern to both push and pull_request triggers, matching test.yaml. Assisted-by: Claude
45e5efa to
758817e
Compare
|
/cherrypick release-2.1 |
|
@rm3l: once the present PR merges, I will cherry-pick it on top of DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
PR images are available (for 1 week):
|
Description
Add Codecov integration for unit test coverage reporting, mirroring the setup in the rhdh-operator repo.
Coverage checks are informational only and will not block merges.
Which issue(s) does this PR fix or relate to
PR acceptance criteria
How to test changes / Special notes to the reviewer
preview from this branch: https://app.codecov.io/gh/redhat-developer/rhdh-must-gather/tree/rm3l%2Fredhat-developer-hub-must-gather%3ARHIDP-14400--collect-must-gather-coverage-upload-to-codecov-io/
The nightly workflow can be tested after merge.