Skip to content

ci: enable codecov for Python test coverage#1575

Open
ramakrishnap-nv wants to merge 5 commits into
mainfrom
ci/enable-codecov
Open

ci: enable codecov for Python test coverage#1575
ramakrishnap-nv wants to merge 5 commits into
mainfrom
ci/enable-codecov

Conversation

@ramakrishnap-nv

@ramakrishnap-nv ramakrishnap-nv commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

Removes the explicit run_codecov: false override, adds codecov.yml (patch checks informational, never blocks), suppresses spurious coverage.py warnings, and excludes codecov.yml from changed-files triggers.

Requires CODECOV_TOKEN to be set as a repo/org secret.

Removes the explicit `run_codecov: false` override in pr.yaml and
test.yaml, restoring the shared-workflow default (true). Adds
codecov.yml at repo root with patch checks set to informational so
coverage never blocks a PR. Adds disable_warnings to .coveragerc to
suppress spurious coverage.py noise. Excludes codecov.yml from
changed-files triggers so a config-only edit does not re-run CI.

Note: requires CODECOV_TOKEN to be set as a repo or org secret.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Ramakrishna Prabhu <ramakrishnap@nvidia.com>
@ramakrishnap-nv ramakrishnap-nv requested review from a team as code owners July 14, 2026 19:48
@ramakrishnap-nv ramakrishnap-nv self-assigned this Jul 14, 2026
@ramakrishnap-nv ramakrishnap-nv added non-breaking Introduces a non-breaking change improvement Improves an existing functionality labels Jul 14, 2026
@coderabbitai

coderabbitai Bot commented Jul 14, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The head commit changed during the review from c06c38f to 044c38d.

📝 Walkthrough

Walkthrough

Changes

Codecov CI integration

Layer / File(s) Summary
Coverage configuration
codecov.yml, python/.coveragerc
Adds Codecov status, annotation, comment, and patch-threshold settings, while suppressing selected Python coverage warnings.
Workflow coverage integration
.github/workflows/pr.yaml
Excludes codecov.yml from four change groups and removes the explicit run_codecov: false input from conda Python tests.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: iroy30, kylefromnvidia

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes the main change: enabling Codecov for Python test coverage.
Description check ✅ Passed The description is directly related to the changeset and summarizes the Codecov and coverage updates.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/enable-codecov

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Jul 14, 2026

Copy link
Copy Markdown

CI Test Summary

2 failed · 29 passed · 0 skipped

@ramakrishnap-nv

Copy link
Copy Markdown
Collaborator Author

/ok to test 003e569

ramakrishnap-nv and others added 4 commits July 15, 2026 10:43
Signed-off-by: Ramakrishna Prabhu <ramakrishnap@nvidia.com>
Switch conda-python-tests in pr.yaml to secrets: inherit so CODECOV_TOKEN
reaches the shared-workflow codecov step. S3/AWS secrets are not needed
for PR builds (nightly_report_helper skips S3 when RAPIDS_BUILD_TYPE!=nightly).

Re-add run_codecov: false to test.yaml conda-python-tests since S3 explicit
secrets are required there for nightly report aggregation, leaving no slot
for CODECOV_TOKEN until rapidsai/shared-workflows#<TBD> lands.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Ramakrishna Prabhu <ramakrishnap@nvidia.com>
Use the same key/value pattern as S3/AWS secrets to pass CODECOV_TOKEN
to the conda-python-tests shared workflow. Requires rapidsai/shared-workflows#593.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Ramakrishna Prabhu <ramakrishnap@nvidia.com>
This reverts commit c06c38f.

Signed-off-by: Ramakrishna Prabhu <ramakrishnap@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Improves an existing functionality non-breaking Introduces a non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant