Skip to content

Download build artifacts from Github for CI jobs - #18539

Merged
rapids-bot[bot] merged 3 commits into
NVIDIA:branch-25.06from
jayavenkatesh19:download-from-github
Apr 24, 2025
Merged

Download build artifacts from Github for CI jobs#18539
rapids-bot[bot] merged 3 commits into
NVIDIA:branch-25.06from
jayavenkatesh19:download-from-github

Conversation

@jayavenkatesh19

@jayavenkatesh19 jayavenkatesh19 commented Apr 21, 2025

Copy link
Copy Markdown
Contributor

Description

This work is towards moving build artifacts from downloads.rapids.ai to Github Artifact Store (see https://github.com/rapidsai/build-infra/issues/237)

Updates conda and wheel artifact download source from S3 to GitHub across CI scripts.

Uses dynamic temporary paths for wheel downloads returned by rapids-download-wheels-from-github instead of using fixed directories, to streamline wheel downloads to conda downloads.

Also updates CI workflows to follow package-name convention between wheel build and wheel publish jobs.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@jayavenkatesh19 jayavenkatesh19 added 2 - In Progress Currently a work in progress improvement Improvement / enhancement to an existing function non-breaking Non-breaking change ci labels Apr 21, 2025
@jayavenkatesh19 jayavenkatesh19 self-assigned this Apr 21, 2025
@copy-pr-bot

copy-pr-bot Bot commented Apr 21, 2025

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@jayavenkatesh19

Copy link
Copy Markdown
Contributor Author

/ok to test

@jayavenkatesh19 jayavenkatesh19 changed the title [WIP] Download build artifacts from Github for CI jobs Download build artifacts from Github for CI jobs Apr 22, 2025
@jayavenkatesh19 jayavenkatesh19 added 3 - Ready for Review Ready for review by team and removed 2 - In Progress Currently a work in progress labels Apr 22, 2025
@jayavenkatesh19
jayavenkatesh19 marked this pull request as ready for review April 22, 2025 00:07
@jayavenkatesh19
jayavenkatesh19 requested a review from a team as a code owner April 22, 2025 00:07

@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.

Great! I looked through build and test logs for both conda and wheels and saw what I expected... the downloaded built-in-CI artifacts, not nightlies, were getting installed everywhere.

I left one question that I'd like answered before I approve this.

Comment thread ci/build_wheel_cudf.sh
LIBCUDF_WHEELHOUSE=$(RAPIDS_PY_WHEEL_NAME="libcudf_${RAPIDS_PY_CUDA_SUFFIX}" rapids-download-wheels-from-github cpp)
PYLIBCUDF_WHEELHOUSE=$(RAPIDS_PY_WHEEL_NAME="pylibcudf_${RAPIDS_PY_CUDA_SUFFIX}" rapids-download-wheels-from-github python)
echo "libcudf-${RAPIDS_PY_CUDA_SUFFIX} @ file://$(echo ${LIBCUDF_WHEELHOUSE}/libcudf_*.whl)" > /tmp/constraints.txt
echo "pylibcudf-${RAPIDS_PY_CUDA_SUFFIX} @ file://$(echo ${PYLIBCUDF_WHEELHOUSE}/pylibcudf_*.whl)" >> /tmp/constraints.txt

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.

Why is this PR only changing the rapids-download-* portion of CI scripts, and not also removing the upload-to-S3 logic? I'd expected all of the S3 uploading and downloading to get removed at the same time, once we were confident that GitHub artifact store is working for us.

For example, if nothing in CI calls rapids-download-wheels-from-s3 any more, what is the value of keeping lines like this?

https://github.com/rapidsai/cudf/blob/29fcf27d02ec3538d15e1a079ad4072e28289e81/ci/build_wheel_dask_cudf.sh#L13

@jayavenkatesh19 jayavenkatesh19 Apr 23, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This was discussed here as part of the roll out plan: https://github.com/rapidsai/ops/issues/2982#issuecomment-2669867781

The main reason to do so was that developers might some tooling dependent on downloading build artifacts from S3, and now that everyone has been notified that we are switching over to Github Artifacts, this gives everyone some time to adopt the newer paradigm, before we finally stop uploading to S3 altogether.

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.

Thanks. I did see that comment. It says

  1. Migrate each repository to download artifacts from GitHub Artifacts (one PR per repo)
  2. Stop publishing build artifacts to downloads.rapids.ai

Nothing in that comment suggested to me that the plan was for each item in that list to be a separate round of touch-every-RAPIDS-repo PRs. Those are expensive... they take up CI resources and reviewing time. I would have removed uploading to and downloading from S3 in the same round of PRs.

BUT... all that said, if this is the plan you, @ajschmidt8 , and @bdice have already agreed to, and since the developer-facing docs updates showing people how to migrate their local workflows aren't yet done (rapidsai/docs#593), I'll approve this and the other PRs like it and get out of the way.

@jameslamb
jameslamb self-requested a review April 23, 2025 22:16
@ajschmidt8

Copy link
Copy Markdown
Member

/merge

@rapids-bot
rapids-bot Bot merged commit c392018 into NVIDIA:branch-25.06 Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3 - Ready for Review Ready for review by team ci improvement Improvement / enhancement to an existing function non-breaking Non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants