Skip to content

WIP: [DO NOT MERGE] test gha-tools changes #18747

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

Draft
wants to merge 15 commits into
base: branch-25.08
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ci/build_cpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

set -euo pipefail

source ci/use_gha_tools_from_branch.sh
source ci/use_conda_packages_from_prs.sh

source rapids-configure-sccache

source rapids-date-string
Expand Down
3 changes: 3 additions & 0 deletions ci/build_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

set -euo pipefail

source ci/use_gha_tools_from_branch.sh
source ci/use_conda_packages_from_prs.sh

RAPIDS_VERSION="$(rapids-version)"
RAPIDS_VERSION_MAJOR_MINOR="$(rapids-version-major-minor)"
export RAPIDS_VERSION
Expand Down
3 changes: 3 additions & 0 deletions ci/build_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

set -euo pipefail

source ci/use_gha_tools_from_branch.sh
source ci/use_conda_packages_from_prs.sh

source rapids-configure-sccache

source rapids-date-string
Expand Down
3 changes: 3 additions & 0 deletions ci/build_wheel_cudf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

set -euo pipefail

source ci/use_gha_tools_from_branch.sh
source ci/use_wheels_from_prs.sh

source rapids-init-pip

package_dir="python/cudf"
Expand Down
3 changes: 3 additions & 0 deletions ci/build_wheel_cudf_polars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

set -euo pipefail

source ci/use_gha_tools_from_branch.sh
source ci/use_wheels_from_prs.sh

source rapids-init-pip

package_dir="python/cudf_polars"
Expand Down
3 changes: 3 additions & 0 deletions ci/build_wheel_dask_cudf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

set -euo pipefail

source ci/use_gha_tools_from_branch.sh
source ci/use_wheels_from_prs.sh

source rapids-init-pip

package_dir="python/dask_cudf"
Expand Down
3 changes: 3 additions & 0 deletions ci/build_wheel_libcudf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

set -euo pipefail

source ci/use_gha_tools_from_branch.sh
source ci/use_wheels_from_prs.sh

source rapids-init-pip

package_name="libcudf"
Expand Down
3 changes: 3 additions & 0 deletions ci/build_wheel_pylibcudf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

set -euo pipefail

source ci/use_gha_tools_from_branch.sh
source ci/use_wheels_from_prs.sh

source rapids-init-pip

package_dir="python/pylibcudf"
Expand Down
3 changes: 3 additions & 0 deletions ci/cudf_pandas_scripts/pandas-tests/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

set -euo pipefail

source ci/use_gha_tools_from_branch.sh
source ci/use_wheels_from_prs.sh

source rapids-init-pip

EXITCODE=0
Expand Down
3 changes: 3 additions & 0 deletions ci/cudf_pandas_scripts/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

set -eoxu pipefail

source ci/use_gha_tools_from_branch.sh
source ci/use_wheels_from_prs.sh

source rapids-init-pip

RAPIDS_TESTS_DIR=${RAPIDS_TESTS_DIR:-"${PWD}/test-results"}
Expand Down
3 changes: 3 additions & 0 deletions ci/test_cpp_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

set -euo pipefail

source ci/use_gha_tools_from_branch.sh
source ci/use_conda_packages_from_prs.sh

. /opt/conda/etc/profile.d/conda.sh

rapids-logger "Downloading artifacts from previous jobs"
Expand Down
5 changes: 5 additions & 0 deletions ci/test_cudf_polars_polars_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@

set -eou pipefail

source ci/use_gha_tools_from_branch.sh
source ci/use_wheels_from_prs.sh

source rapids-init-pip

rapids-logger "Download wheels"

RAPIDS_PY_CUDA_SUFFIX="$(rapids-wheel-ctk-name-gen "${RAPIDS_CUDA_VERSION}")"
Expand Down
3 changes: 3 additions & 0 deletions ci/test_java.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

set -euo pipefail

source ci/use_gha_tools_from_branch.sh
source ci/use_conda_packages_from_prs.sh

. /opt/conda/etc/profile.d/conda.sh

rapids-logger "Downloading artifacts from previous jobs"
Expand Down
3 changes: 3 additions & 0 deletions ci/test_notebooks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

set -euo pipefail

source ci/use_gha_tools_from_branch.sh
source ci/use_conda_packages_from_prs.sh

. /opt/conda/etc/profile.d/conda.sh

rapids-logger "Downloading artifacts from previous jobs"
Expand Down
3 changes: 3 additions & 0 deletions ci/test_python_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

set -euo pipefail

source ci/use_gha_tools_from_branch.sh
source ci/use_conda_packages_from_prs.sh

. /opt/conda/etc/profile.d/conda.sh

rapids-logger "Downloading artifacts from previous jobs"
Expand Down
3 changes: 3 additions & 0 deletions ci/test_wheel_cudf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

set -eou pipefail

source ci/use_gha_tools_from_branch.sh
source ci/use_wheels_from_prs.sh

source rapids-init-pip

RAPIDS_PY_CUDA_SUFFIX="$(rapids-wheel-ctk-name-gen "${RAPIDS_CUDA_VERSION}")"
Expand Down
3 changes: 3 additions & 0 deletions ci/test_wheel_cudf_polars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

set -eou pipefail

source ci/use_gha_tools_from_branch.sh
source ci/use_wheels_from_prs.sh

source rapids-init-pip

rapids-logger "Download wheels"
Expand Down
3 changes: 3 additions & 0 deletions ci/test_wheel_dask_cudf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

set -eou pipefail

source ci/use_gha_tools_from_branch.sh
source ci/use_wheels_from_prs.sh

source rapids-init-pip

RAPIDS_PY_CUDA_SUFFIX="$(rapids-wheel-ctk-name-gen "${RAPIDS_CUDA_VERSION}")"
Expand Down
29 changes: 29 additions & 0 deletions ci/use_conda_packages_from_prs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash
# Copyright (c) 2025, NVIDIA CORPORATION.

# download CI artifacts
LIBRMM_CHANNEL=$(rapids-get-pr-conda-artifact rmm 1909 cpp)
RMM_CHANNEL=$(rapids-get-pr-conda-artifact rmm 1909 python)

# 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=(
"${LIBRMM_CHANNEL}"
"${RMM_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
11 changes: 11 additions & 0 deletions ci/use_gha_tools_from_branch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
# Copyright (c) 2025, NVIDIA CORPORATION.

if [[ ! -d "/tmp/gha-tools" ]]; then
git clone \
--branch "gha-artifacts/consolidate-scripts" \
https://github.com/rapidsai/gha-tools.git \
/tmp/gha-tools

export PATH="/tmp/gha-tools/tools":$PATH
fi
21 changes: 21 additions & 0 deletions ci/use_wheels_from_prs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash
# Copyright (c) 2025, NVIDIA CORPORATION.

# initialize PIP_CONSTRAINT
source rapids-init-pip

RAPIDS_PY_CUDA_SUFFIX=$(rapids-wheel-ctk-name-gen "${RAPIDS_CUDA_VERSION}")

# download wheels, store the directories holding them in variables
LIBRMM_WHEELHOUSE=$(
RAPIDS_PY_WHEEL_NAME="librmm_${RAPIDS_PY_CUDA_SUFFIX}" rapids-get-pr-wheel-artifact rmm 1909 cpp
)
RMM_WHEELHOUSE=$(
RAPIDS_PY_WHEEL_NAME="rmm_${RAPIDS_PY_CUDA_SUFFIX}" rapids-get-pr-wheel-artifact rmm 1909 python
)

# write a pip constraints file saying e.g. "whenever you encounter a requirement for 'librmm-cu12', use this wheel"
cat > "${PIP_CONSTRAINT}" <<EOF
librmm-${RAPIDS_PY_CUDA_SUFFIX} @ file://$(echo ${LIBRMM_WHEELHOUSE}/librmm_*.whl)
rmm-${RAPIDS_PY_CUDA_SUFFIX} @ file://$(echo ${RMM_WHEELHOUSE}/rmm_*.whl)
EOF
Loading