Skip to content

Commit 832abd8

Browse files
authored
Use rapids-pip-retry in CI jobs that might need retries (#6293)
Uses a retry wrapper for `pip` commands to try to alleviate CI failures due to hash mismatches that result from network hiccups xref rapidsai/build-planning#148 This will retry failures that show up in CI like: ``` Collecting nvidia-cublas-cu12 (from libraft-cu12==25.2.*,>=0.0.0a0) Downloading https://pypi.nvidia.com/nvidia-cublas-cu12/nvidia_cublas_cu12-12.8.3.14-py3-none-manylinux_2_27_aarch64.whl (604.9 MB) ━━━━━━━━━━━━━━━━━━━━━ 350.2/604.9 MB 229.2 MB/s eta 0:00:02 ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them. nvidia-cublas-cu12 from https://pypi.nvidia.com/nvidia-cublas-cu12/nvidia_cublas_cu12-12.8.3.14-py3-none-manylinux_2_27_aarch64.whl#sha256=93a4e0e386cc7f6e56c822531396de8170ed17068a1e18f987574895044cd8c3 (from libraft-cu12==25.2.*,>=0.0.0a0): Expected sha256 93a4e0e386cc7f6e56c822531396de8170ed17068a1e18f987574895044cd8c3 Got 849c88d155cb4b4a3fdfebff9270fb367c58370b4243a2bdbcb1b9e7e940b7be ``` Authors: - Gil Forsyth (https://github.com/gforsyth) Approvers: - Bradley Dice (https://github.com/bdice) URL: #6293
1 parent 1bb7f47 commit 832abd8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ci/build_wheel.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ cd "${package_dir}"
1616
sccache --zero-stats
1717

1818
rapids-logger "Building '${package_name}' wheel"
19-
python -m pip wheel \
19+
rapids-pip-retry wheel \
2020
-w dist \
2121
-v \
2222
--no-deps \

ci/build_wheel_libcuml.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ rapids-dependency-file-generator \
1818
| tee /tmp/requirements-build.txt
1919

2020
rapids-logger "Installing build requirements"
21-
python -m pip install \
21+
rapids-pip-retry install \
2222
-v \
2323
--prefer-binary \
2424
-r /tmp/requirements-build.txt

ci/test_wheel.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RAPIDS_PY_WHEEL_NAME="cuml_${RAPIDS_PY_CUDA_SUFFIX}" rapids-download-wheels-from
99
RAPIDS_PY_WHEEL_NAME="libcuml_${RAPIDS_PY_CUDA_SUFFIX}" rapids-download-wheels-from-s3 cpp ./dist
1010

1111
# echo to expand wildcard before adding `[extra]` requires for pip
12-
python -m pip install \
12+
rapids-pip-retry install \
1313
./dist/libcuml*.whl \
1414
"$(echo ./dist/cuml*.whl)[test]"
1515

0 commit comments

Comments
 (0)