Repository navigation
CI: retry the sccache download and support Windows in install-sccache - #3670
Conversation
Downloads of the pinned rapidsai/sccache release fail intermittently (HTTP 618, dropped connections). Retry up to 5 times in the shell: `curl --retry` skips 618, and manylinux_2_28's curl 7.61 has no `--retry-all-errors`. Also take numba-cuda-mlir's Linux + Windows version of the action, so cuda-python, numba-cuda-mlir and CuPy can share one file verbatim.
|
/ok to test bd02a4c |
|
No actionable comments were generated in the recent review. Summary
Change: Bug fix Merge Risk:
|
|
juenglin
left a comment
There was a problem hiding this comment.
The retry loop and Windows support look good. I checked all four pinned SHA-256 values against the release assets and they match, and the Windows binaries pass the embedded-roots check (both greps return 0, so they defer to the OS trust store). Two small suggestions to align with the other retry paths in this repo:
- Log the retries.
upgrade-ca-certificatesanddownload-artifact-retryemit a message per retry and an::error::after the last attempt. Here the final failure is a bareexit 1, so the CI annotation has no context and curl's real exit code is lost. Something likeecho "::warning::sccache download failed (attempt ${attempt}); retrying in 10s"and an::error::on the last attempt would match. - Add timeouts to the
curlcall, e.g.--connect-timeout 30 --max-time 300. Without them a stalled connection hangs until the job timeout, and the retry loop never gets a chance to help.
juenglin
left a comment
There was a problem hiding this comment.
Quick question on the motivation: what does HTTP status 618 mean? It isn't a registered HTTP status code (the IANA registry has nothing in the 6xx range), and I couldn't find any documentation for it. Do we know which hop emits it (GitHub's release redirect, the CDN or storage host, a proxy on the runner network)? If it is not known, it might be worth capturing the response headers (e.g. curl -sSIL) the next time it happens, so we can report it upstream and confirm that a plain retry is the right fix and that we are not masking something else.
Port .github/actions/install-sccache/action.yml verbatim from NVIDIA/cuda-python#3670 (bd02a4c7ab876211f82e6cfd5352a43cb418e684). The only change for this repo is retrying the download up to 5 times in the shell, since GitHub release downloads fail intermittently.
|
Thanks @juenglin, and sorry: I merged before I saw your review. On 618: it comes from GitHub's release-asset serving. Later that day GitHub opened Intermittent Issues with Release Downloads: "Customers may experience intermittent 618 response codes when fetching release assets." The root-cause analysis is still pending. In CuPy, 5 of 293 downloads failed between 01:44 and 04:51 UTC on Dec 1 (win-64, linux-64, linux-aarch64). The failures were interleaved with successes and reruns passed, so retrying each request is the right fix. None of the 343 downloads since then has failed. Both suggestions make sense. I'll open a follow-up that logs each retry with curl's exit code, ends with an -- Leo's bot |
Description
The pinned rapidsai/sccache download fails intermittently. On 2026-12-01, five CuPy CI jobs using the same download failed with
curl: (22) The requested URL returned error: 618(example); reruns passed. This action makes a singlecurlattempt, so cuda-python is exposed as well.The download is now retried up to 5 times in the shell.
curl --retrydoes not retry 618, and--retry-all-errorsis missing from curl 7.61 inmanylinux_2_28, where numba-cuda-mlir runs this action.The action also gains numba-cuda-mlir's Windows support, so numba-cuda-mlir and CuPy can copy this file verbatim (NVIDIA/numba-cuda-mlir#500, cupy/cupy#10519). cuda-python still calls it on Linux only.
Checklist
-- Leo's bot