Skip to content

Commit 550d3bc

Browse files
authored
Use rapids-pip-retry in CI jobs that might need retries (#648)
Uses a retry wrapper for `pip` commands to try to alleviate CI failures due to hash mismatches that result from network hiccups xref rapidsai/gha-tools#132 This will retry failures that show up in CI like: ``` Collecting nvidia-cusolver-cu12 (from libraft-cu12==25.2.*,>=0.0.0a0) Downloading https://pypi.nvidia.com/nvidia-cusolver-cu12/nvidia_cusolver_cu12-11.7.2.55-py3-none-manylinux_2_27_aarch64.whl (260.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 226.5/260.1 MB 70.2 MB/s eta 0:00:01 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-cusolver-cu12 from https://pypi.nvidia.com/nvidia-cusolver-cu12/nvidia_cusolver_cu12-11.7.2.55-py3-none-manylinux_2_27_aarch64.whl#sha256=0fd9e98246f43c15bee5561147ad235dfdf2d037f5d07c9d41af3f7f72feb7cc (from libraft-cu12==25.2.*,>=0.0.0a0): Expected sha256 0fd9e98246f43c15bee5561147ad235dfdf2d037f5d07c9d41af3f7f72feb7cc Got 5ab0571003be61a02d3cbf59307e987c3e18a755fa472475a7f5178e77e12012 error: subprocess-exited-with-error × pip subprocess to install backend dependencies did not run successfully. │ exit code: 1 ╰─> See above for output. ``` ref: https://github.com/rapidsai/cuvs/actions/runs/13115119921/job/36588587993?pr=643#step:10:128 Authors: - Gil Forsyth (https://github.com/gforsyth) Approvers: - Bradley Dice (https://github.com/bdice) URL: #648
1 parent 95af521 commit 550d3bc

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

ci/build_wheel.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ rapids-logger "Building '${package_name}' wheel"
3838

3939
sccache --zero-stats
4040

41-
python -m pip wheel \
41+
rapids-pip-retry wheel \
4242
-w dist \
4343
-v \
4444
--no-deps \

ci/build_wheel_libcuvs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ rapids-dependency-file-generator \
1717
| tee /tmp/requirements-build.txt
1818

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

ci/test_wheel_cuvs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RAPIDS_PY_WHEEL_NAME="libcuvs_${RAPIDS_PY_CUDA_SUFFIX}" rapids-download-wheels-f
99
RAPIDS_PY_WHEEL_NAME="cuvs_${RAPIDS_PY_CUDA_SUFFIX}" rapids-download-wheels-from-s3 python ./dist
1010

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

0 commit comments

Comments
 (0)