Skip to content

Re-enable Python code coverage#2290

Merged
rapids-bot[bot] merged 1 commit into
NVIDIA:mainfrom
josephine-wolf-oberholtzer:josephine/reenable-python-code-coverage
Jul 2, 2026
Merged

Re-enable Python code coverage#2290
rapids-bot[bot] merged 1 commit into
NVIDIA:mainfrom
josephine-wolf-oberholtzer:josephine/reenable-python-code-coverage

Conversation

@josephine-wolf-oberholtzer

Copy link
Copy Markdown
Collaborator

Contributes to: https://github.com/rapidsai/build-infra/issues/367

We've finally found a CODECOV_TOKEN secret value and added it as a repo-scoped secret.

Let's turn code coverage back on for Python tests.

@josephine-wolf-oberholtzer josephine-wolf-oberholtzer requested a review from a team as a code owner July 2, 2026 16:32
@josephine-wolf-oberholtzer josephine-wolf-oberholtzer added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels Jul 2, 2026

@jameslamb jameslamb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving so this can be /merge'd if it works, but I'm unsure if it'll be enough. Apologies if I've just misunderstood how secrets: inherit works.

Comment thread .github/workflows/pr.yaml
if: fromJSON(needs.changed-files.outputs.changed_file_groups).test_python_conda
with:
build_type: pull-request
run_codecov: false

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we're using secrets: inherit in this workflow, won't it still end up getting the CODECOV_TOKEN secret from the rapidsai org (the source of the workflow), referenced here?

https://github.com/rapidsai/shared-workflows/blob/700fd392ec991347a9627f08f27a87b6e4296bff/.github/workflows/conda-python-tests.yaml#L254

And if so won't we still hit these auth issues?

If I'm wrong about that and having an identically-named repo-scoped variable works, then great.

But if I'm right and that's how this works, I think we'll need to update conda-python-tests.yaml to accept a codecov token as an input in secrets: (see https://github.com/rapidsai/shared-workflows/blob/700fd392ec991347a9627f08f27a87b6e4296bff/.github/workflows/conda-python-tests.yaml#L72).

@josephine-wolf-oberholtzer josephine-wolf-oberholtzer Jul 2, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK, secrets: inherit is the totality of secrets this repo sees in the NVIDIA org, not the secrets the shared workflows see in the rapidsai org. If the opposite was true, then the conda uploads would have worked. But I had to punch those secrets into this repo by hand.

I've punched an explicit repo-scoped CODECOV_TOKEN into this repo's secrets config.

If the conda-python-tests jobs run their codecov steps successfully, then this will have worked.

If not, I'll punch the secrets into the jobs by hand. All good either way just for the knowledge.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Side-note: I really wanna discourage / get rid of secrets: inherit.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Side-note: I really wanna discourage / get rid of secrets: inherit.

same

codecov upload works again 😄

great, ship it!

@josephine-wolf-oberholtzer

Copy link
Copy Markdown
Collaborator Author

We have codecov.io data again:

Screenshot 2026-07-02 at 1 21 50 PM

@josephine-wolf-oberholtzer

Copy link
Copy Markdown
Collaborator Author

/merge

@rapids-bot rapids-bot Bot merged commit 77e350b into NVIDIA:main Jul 2, 2026
164 of 167 checks passed
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.

2 participants