Skip to content

[NEVER MERGE] remove --skip-existing from upload tools - #265

Closed
jameslamb wants to merge 2 commits into
mainfrom
test-uploads
Closed

[NEVER MERGE] remove --skip-existing from upload tools#265
jameslamb wants to merge 2 commits into
mainfrom
test-uploads

Conversation

@jameslamb

Copy link
Copy Markdown
Member

Never merge this... just opening to show the changes being tested in rapidsai/shared-workflows#586

rapids-bot Bot pushed a commit to rapidsai/shared-workflows that referenced this pull request Jun 29, 2026
Contributes to #505

As described there, it's not uncommon for pulling the `rapidsai/ci-wheel` images to take 3-4 minutes.

This is extra painful for jobs like `wheels-publish`, which just need lightweight publishing tools and not CUDA libraries, compiler toolchain, etc.

This PR proposes working around that by doing the following:

* using a small `python:3.14-slim` image instead
* installing just the small set of necessary tools at runtime of the `wheels-publish`  job

## Notes for Reviewers

### Benefits

* faster `conda-uploads-packages` and `wheels-publish`, which means reduced end-to-end time for RAPIDS nightly pipeline (see "how I tested this")
* would allow us to stop installing `anaconda-client` and its dependencies in the `rapidsai/ci-conda` and `rapidsai/ci-wheel` images at https://github.com/rapidsai/ci-imgs
  - _that project has a lot of dependencies, so that might have a small but notable improvement in image size, build time, and pull time_
  - _that'd affect all wheel builds and conda building + testing jobs_

### Costs / Risks

* adds more network calls and package installs at runtime of `wheels-publish`, which might lead to more transient failures from network issues
* adds complexity to the workflow code

### Why not pre-build a `wheels-publish` image?

That WOULD make this even faster and avoid all those package installs at runtime.

But new images need to go through a compliance/legal approval process that's a bit heavier than this use case justifies, in my opinion. In my testing, installing tools took 15-20 seconds, so that's the most we'd save by having a pre-built image with everything installed.

### How I tested this

`rmm`'s `main` branch was already pointed at this branch for package-uploading jobs from #585.

Put up changes in a `gha-tools` branch (rapidsai/gha-tools#265) to force-overwrite existing packages, so the upload time to anaconda.org is included in the timings.

Clicked "re-run all jobs" on `rmm`'s most recent run on `main`.

| workflow                         | previous `main` (as of #585)  |  this PR           |
|----------------------------------:|:-----------------------------------------:|:------------------:|
| upload-conda                 |    1m32s                                     |   **1m15s** |
| wheels-publish-cpp       |   2m51s                                      |  **0m37s**  |
| wheels-publish-python |   3m3s                                        |   **0m41s** |

*builds from `rmm`: ([previous main](https://github.com/rapidsai/rmm/actions/runs/28388699537/attempts/2) | [this PR](https://github.com/rapidsai/rmm/actions/runs/28388699537/job/84139196301))*

Authors:
  - James Lamb (https://github.com/jameslamb)

Approvers:
  - Bradley Dice (https://github.com/bdice)

URL: #586
@jameslamb

Copy link
Copy Markdown
Member Author

This testing is done, this PR can be closed.

@jameslamb jameslamb closed this Jun 29, 2026
@jameslamb
jameslamb deleted the test-uploads branch June 29, 2026 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant