Skip to content

make artifact uploads optional#340

Merged
jameslamb merged 1 commit intobranch-25.06from
optional-uploads
May 7, 2025
Merged

make artifact uploads optional#340
jameslamb merged 1 commit intobranch-25.06from
optional-uploads

Conversation

@jameslamb
Copy link
Copy Markdown
Member

@jameslamb jameslamb commented May 7, 2025

Contributes to #336
Contributes to https://github.com/rapidsai/build-infra/issues/237

Proposes the following for {conda-cpp, conda-python, wheel}-build.yaml workflows:

  • adds boolean input upload-artifacts, to opt out of uploading GitHub Actions artifacts (see Make artifact uploads optional in build workflows #336 for reasoning)
  • makes package-type input required
  • removes conditions that skipped artifact uploads if package-type was an empty string

Notes for Reviewers

Why are these package-type changes part of this? Are the safe?

Stuff like this...

- uses: actions/upload-artifact@v4
if: inputs.package-type != ''

... was added early on in the effort to support GitHub Actions artifact uploads in these workflows (#297), and made optional so those changes could be merged prior to all repos being migrated.

It's now safe to make this stricter. I searched all of the GitHub orgs I have read access to (GitHub search), and the only place where package-type is NOT provided is in cuspatial: https://github.com/rapidsai/cuspatial/blob/c0f92e5b95f21ccc58d187689bb06adb2fd2bc56/.github/workflows/pr.yaml#L152-L160

cuspatial support is getting dropped right now (rapidsai/docs#600), so we probably don't even need to update that one.

How I tested this

rapidsai/integration#760

@jameslamb jameslamb added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels May 7, 2025
@jameslamb jameslamb changed the title make artifact uploads optional WIP: make artifact uploads optional May 7, 2025
@jameslamb jameslamb changed the title WIP: make artifact uploads optional make artifact uploads optional May 7, 2025
@jameslamb jameslamb requested a review from bdice May 7, 2025 21:13
@jameslamb jameslamb marked this pull request as ready for review May 7, 2025 21:13
@jameslamb jameslamb requested a review from a team as a code owner May 7, 2025 21:13
@jameslamb jameslamb merged commit 070a5c3 into branch-25.06 May 7, 2025
1 check passed
@jameslamb jameslamb deleted the optional-uploads branch May 7, 2025 21:31
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