You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci: tier2_front_cache.py's ccache download fails on GitHub's signed-URL 'HTTP Error 618: jwt:expired' without retrying #6062
ci/tier2_front_cache.py downloads the pinned ccache 4.14.3 release asset with one urllib.request.urlretrieve(URL, archive). GitHub serves release assets by redirecting to a short-lived signed URL. When that hop fails with HTTP Error 618: jwt:expired, the Rust Tier 2 Linux 🐧 (build) job fails, and the merge queue ejects the PR or its check goes red.
File "ci/tier2_front_cache.py", line 33, in install
urllib.request.urlretrieve(URL, archive)
urllib.error.HTTPError: HTTP Error 618: jwt:expired
Fix: retry the download a few times with backoff. Each attempt has to re-request the original github.com/.../releases/download URL, so a fresh signed redirect is issued. Keep the SHA-256 check, and add a self-test that fakes one 618 and then a success. Caching the archive under the job's persistent cache would also remove the network hop on warm runners.
Claiming: investigation. The fix is a bounded retry around the download, re-requesting the original github.com/.../releases/download URL on every attempt so GitHub issues a fresh signed redirect; the SHA-256 check stays. Plus a self-test that fakes one 618 and then a success. One PR.
Investigation complete: ci/tier2_front_cache.py:33 is a single urlretrieve; the 618 comes from the signed redirect hop, and retrying the original URL gets a fresh redirect. Retry with backoff, keep the SHA-256 check, add a RED/GREEN self-test. No workflow change.
ci/tier2_front_cache.py: factor the download into a bounded retry that re-requests the original URL each attempt (fresh signed redirect), with short exponential backoff; keep the SHA-256 verification.
RED/GREEN: a self-test that raises HTTPError 618 on the first attempt and succeeds on the second.
download_with_retry() re-requests the original release URL on each of up to 4 attempts (fresh signed redirect each time), 0.5 s exponential backoff (worst case 3.5 s), retries only HTTP 618, re-raises anything else. The SHA-256 check and extraction are unchanged.
RED: the new test fakes one 618 then success; against the old single urlretrieve it failed with the real HTTPError: HTTP Error 618: jwt:expired.
GREEN: 5/5 targeted tests pass; ruff clean; the lint lane passes.
Note: the module has two pre-existing Windows-only test errors (platform.machine() == "AMD64" and a cp1252 YAML read); both reproduce on unmodified master and are outside this issue. CI runs the module on Linux.
Activity
KelboLive commentedon Dec 1, 2026
Claiming: investigation. The fix is a bounded retry around the download, re-requesting the original
github.com/.../releases/downloadURL on every attempt so GitHub issues a fresh signed redirect; the SHA-256 check stays. Plus a self-test that fakes one 618 and then a success. One PR.KelboLive commentedon Dec 1, 2026
/ready
Investigation complete:
ci/tier2_front_cache.py:33is a singleurlretrieve; the 618 comes from the signed redirect hop, and retrying the original URL gets a fresh redirect. Retry with backoff, keep the SHA-256 check, add a RED/GREEN self-test. No workflow change.KelboLive commentedon Dec 1, 2026
Claiming: #6062 — implement the retry now.
ci/tier2_front_cache.py: factor the download into a bounded retry that re-requests the original URL each attempt (fresh signed redirect), with short exponential backoff; keep the SHA-256 verification.HTTPError 618on the first attempt and succeeds on the second.KelboLive commentedon Dec 1, 2026
PR opened: #6063 (head 875cbed).
download_with_retry()re-requests the original release URL on each of up to 4 attempts (fresh signed redirect each time), 0.5 s exponential backoff (worst case 3.5 s), retries only HTTP 618, re-raises anything else. The SHA-256 check and extraction are unchanged.urlretrieveit failed with the realHTTPError: HTTP Error 618: jwt:expired.ruffclean; the lint lane passes.platform.machine() == "AMD64"and a cp1252 YAML read); both reproduce on unmodified master and are outside this issue. CI runs the module on Linux.fix(test): close the fabricated HTTP errors in the ccache retry tests (…
fix(ci): retry the ccache download on a signed-URL expiry (obs-rust#6062
rdoupe commentedon Dec 5, 2026
Fixed by #6063 (merged 2026-12-01):
download_with_retryis on master inci/tier2_front_cache.py.