From af89140efc06c462ae531999b9f2db6ba0c7a528 Mon Sep 17 00:00:00 2001 From: Andreas Karatzas Date: Sat, 28 Mar 2026 11:47:42 -0500 Subject: [PATCH] [ROCm][CI] Fix UV install in Dockerfile.rocm to detect curl failures and retry (#38415) Signed-off-by: Andreas Karatzas --- docker/Dockerfile.rocm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile.rocm b/docker/Dockerfile.rocm index fe2b1882da..6db6d8b835 100644 --- a/docker/Dockerfile.rocm +++ b/docker/Dockerfile.rocm @@ -29,8 +29,11 @@ RUN if [ "$USE_SCCACHE" != "1" ]; then \ rm -f "$(which sccache)" || true; \ fi -# Install UV -RUN curl -LsSf https://astral.sh/uv/install.sh | env UV_INSTALL_DIR="/usr/local/bin" sh +# Install UV — download first, then run, so a curl failure is not masked by the pipe +RUN curl -LsSf --retry 3 --retry-delay 5 https://astral.sh/uv/install.sh -o /tmp/uv-install.sh \ + && env UV_INSTALL_DIR="/usr/local/bin" sh /tmp/uv-install.sh \ + && rm -f /tmp/uv-install.sh \ + && uv --version # This timeout (in seconds) is necessary when installing some dependencies via uv since it's likely to time out # Reference: https://github.com/astral-sh/uv/pull/1694