Skip to content

ci: no retry around GitHub release CDN downloads — a partial 504 outage fails the whole rust gate #849

Done

Description

@athvin

What

2026-11-08 09:00–09:30 UTC: GitHub's release CDN served 504s for some objects/PoPs while others recovered. Every job of a rust.yml PR run failed in its setup step — sccache-action downloading sccache-v0.19.0-x86_64-unknown-linux-musl.tar.gz, install-actionlint.sh downloading the actionlint tarball, cargo-deny-action building. Three attempts (initial + 2 reruns) all red while the same URLs were already 200 from a laptop on a different CDN edge. PR #848 sat unmergeable with a locally-green make check.

The setup steps have no retry of their own: sccache-action's internal retry gave up after three attempts inside 40s; the actionlint installer curls once; cargo-deny-action builds once.

Proposal

  • Bump mozilla-actions/sccache-action if a newer pin retries harder (the pinned fc920bf is on an old release train; upstream added transient-failure handling), and/or
  • wrap the tarball fetches (scripts/ci/install-actionlint.sh and peers) in the repo's own retry with backoff, so a 60–120s CDN degradation is absorbed instead of failing the gate.

Done when

A simulated 504 on first attempt (e.g. via a pointing-at-a-504ing-URL test of the wrapper) still lets the job succeed on retry, and the rust gate survives a repeat of 2026-11-08's partial outage.

Size: 0.1w. Found while landing PR #848 (reruns 42465219146 attempts 1–3).


Product context (2026-11-26)

Why this matters for the API product: Merge-gate trust. A CDN blip should not block a green API change from merging.

Current state:

  • rust.yml no longer uses mozilla-actions/sccache-action. Only agent-task.yml:135 still does.
  • Compile jobs use ./.github/actions/ci-tools. It restores tool archives from actions/cache first, so a cache hit needs no network. On a miss it runs scripts/ci/install-tools.py:22-26, which adds curl retries with backoff and a 60s per-attempt cap.
  • The rust actionlint job uses the same action (rust.yml:449), so install-actionlint.sh (a single curl, lines 63-65) is no longer on the rust gate's path.
  • What still has no retry:
    • EmbarkStudios/cargo-deny-action (cargo-deny, a required check);
    • install-helm.sh:28, install-kind-tools.sh:17,20 and install-chart-tools.sh:20. These are deploy, kind and helm-lint paths, none of them a required check.
  • scripts/ci/test_ci_setup.py:39 checks that a failed download is bounded and never cached. It does not check that a first-attempt 504 is retried.

Definition of done: If kept open, narrow the scope:

  1. Add retry, or an equivalent, around cargo-deny, for example by installing the pinned binary through ci-tools.
  2. Add a unit test proving install-tools.py's curl invocation retries on a 5xx.

Otherwise close it as done by ce3fd01.

Size: ~0.1 engineer-weeks for the residual.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions