-
Notifications
You must be signed in to change notification settings - Fork 199
[DO NOT MERGE] Test RAFT 3052 #1431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
ec7f82a
13b0fec
fef8de5
13eb3e3
4b10d25
9db5917
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,30 @@ | ||||||||||||
| #!/bin/bash | ||||||||||||
| # SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION. | ||||||||||||
| # SPDX-License-Identifier: Apache-2.0 | ||||||||||||
|
|
||||||||||||
| # download CI artifacts | ||||||||||||
|
Comment on lines
+1
to
+5
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add strict shell options in this new CI helper. This new script lacks 💡 Proposed fix #!/bin/bash
# SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION.
# SPDX-License-Identifier: Apache-2.0
+
+set -euo pipefailAs per coding guidelines, new scripts under 🤖 Prompt for AI AgentsSources: Coding guidelines, Learnings |
||||||||||||
| LIBRAFT_CHANNEL=$(rapids-get-pr-artifact raft 3052 cpp conda) | ||||||||||||
| RAFT_CHANNEL=$(rapids-get-pr-artifact raft 3052 python conda) | ||||||||||||
|
Comment on lines
+6
to
+7
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid hard-coding a single upstream PR artifact ID. Line 6 and Line 7 pin artifact retrieval to raft PR 💡 Proposed fix- LIBRAFT_CHANNEL=$(rapids-get-pr-artifact raft 3052 cpp conda)
- RAFT_CHANNEL=$(rapids-get-pr-artifact raft 3052 python conda)
+ RAFT_PR_ID="${RAFT_PR_ID}"
+ LIBRAFT_CHANNEL=$(rapids-get-pr-artifact raft "${RAFT_PR_ID}" cpp conda)
+ RAFT_CHANNEL=$(rapids-get-pr-artifact raft "${RAFT_PR_ID}" python conda)📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||
|
|
||||||||||||
| # For `rattler` builds: | ||||||||||||
| # | ||||||||||||
| # Add these channels to the array checked by 'rapids-rattler-channel-string'. | ||||||||||||
| # This ensures that when conda packages are built with strict channel priority enabled, | ||||||||||||
| # the locally-downloaded packages will be preferred to remote packages (e.g. nightlies). | ||||||||||||
| # | ||||||||||||
| RAPIDS_PREPENDED_CONDA_CHANNELS=( | ||||||||||||
| "${LIBRAFT_CHANNEL}" | ||||||||||||
| "${RAFT_CHANNEL}" | ||||||||||||
| ) | ||||||||||||
| export RAPIDS_PREPENDED_CONDA_CHANNELS | ||||||||||||
|
|
||||||||||||
| # For tests and `conda-build` builds: | ||||||||||||
| # | ||||||||||||
| # Add these channels to the system-wide conda configuration. | ||||||||||||
| # This results in PREPENDING them to conda's channel list, so | ||||||||||||
| # these packages should be found first if strict channel priority is enabled. | ||||||||||||
| # | ||||||||||||
| for _channel in "${RAPIDS_PREPENDED_CONDA_CHANNELS[@]}" | ||||||||||||
| do | ||||||||||||
| conda config --system --add channels "${_channel}" | ||||||||||||
| done | ||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| #!/bin/bash | ||
| # SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| # initialize PIP_CONSTRAINT | ||
| source rapids-init-pip | ||
|
|
||
| RAPIDS_PY_CUDA_SUFFIX=$(rapids-wheel-ctk-name-gen "${RAPIDS_CUDA_VERSION}") | ||
|
Comment on lines
+1
to
+8
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add strict mode in the helper script entry. Line 1 introduces a standalone CI helper, but Suggested patch #!/bin/bash
# SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION.
# SPDX-License-Identifier: Apache-2.0
+set -euo pipefail
+
# initialize PIP_CONSTRAINT
source rapids-init-pipAs per coding guidelines, CI shell scripts should keep 🧰 Tools🪛 Shellcheck (0.11.0)[info] 6-6: Not following: rapids-init-pip was not specified as input (see shellcheck -x). (SC1091) 🤖 Prompt for AI AgentsSources: Coding guidelines, Learnings |
||
|
|
||
| # download wheels, store the directories holding them in variables | ||
| LIBRAFT_WHEELHOUSE=$(rapids-get-pr-artifact raft 3052 cpp wheel) | ||
| PYLIBRAFT_WHEELHOUSE=$(rapids-get-pr-artifact raft 3052 python wheel --pkg_name pylibraft) | ||
|
|
||
| # write a pip constraints file saying e.g. "whenever you encounter a requirement for 'librmm-cu12', use this wheel" | ||
| cat > "${PIP_CONSTRAINT}" <<EOF | ||
| libraft-${RAPIDS_PY_CUDA_SUFFIX} @ file://$(echo "${LIBRAFT_WHEELHOUSE}"/libraft_*.whl) | ||
| raft-${RAPIDS_PY_CUDA_SUFFIX} @ file://$(echo "${PYLIBRAFT_WHEELHOUSE}"/pylibraft_*.whl) | ||
| EOF | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Remove duplicate sourcing of
use_conda_packages_from_prs.sh.The script is already sourced at Line 17; sourcing again at Line 22 re-runs artifact/channel side effects (including
conda config --system --add channels) unnecessarily. Keep a single source call.🧰 Tools
🪛 Shellcheck (0.11.0)
[info] 22-22: Not following: ./ci/use_conda_packages_from_prs.sh was not specified as input (see shellcheck -x).
(SC1091)
🤖 Prompt for AI Agents