Skip to content

ci: cargo-deny installs through ci-tools, so a CDN 504 is retried, and a test proves a first-attempt 504 recovers (#849) - #1436

Merged
athvin merged 1 commit into
mainfrom
ci/849-cargo-deny-retry
Nov 29, 2026
Merged

athvin merged 1 commit into
mainfrom
ci/849-cargo-deny-retry

Conversation

@athvin

@athvin athvin commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

Closes #849

Post-merge is part of this pull request. The ledger below records whether
the follow-up work actually happened. /land-pr closes it.

What

The required cargo-deny check installs its pinned binary through ci-tools, which is checksum-verified, cached and downloaded with curl's bounded retries. It no longer uses EmbarkStudios/cargo-deny-action. A new test proves a first-attempt 504 is retried and installs.

Why

The 2026-11-08 partial CDN outage failed cargo-deny three times running. The action rebuilds a Docker image every run (a Docker Hub base pull, then a bare curl with no retry). The narrowed done-when: (1) retry, or an equivalent, around cargo-deny; (2) a unit test proving the install retries on a 5xx.

Proof

make check exit 0. test_a_first_attempt_504_is_retried_and_installs serves 504 then the tarball from a local server, and the real curl invocation installs it on the second request. With --retry removed it fails. Both architectures' checksums were verified against the 0.20.2 release files. 0.20.2 is the version the action pinned, so deny.toml semantics are unchanged.

Risk & rollback

The job now installs the stable toolchain (as every compile job does) instead of running in the action's container. If the new job misbehaves, revert: git revert <merge-sha>. CI on this PR runs the new job itself.

Post-merge ledger

Closed by: agent · session Claude Code:24d16c2e-fec6-49d8-9797-060338df4848 on brians-MacBook-Pro · 2026-11-29T11:42:29Z

  • main is green with this change on it — the merge SHA, and the run
    that proves it. A later head SHA with this commit as an ancestor counts;
    a cancelled run with zero jobs does not: — 10505ce; its own rust 46257047422 was cancelled by the next merge's concurrency group; rust 46257483424 on e7bc7f5 (contains it) success, where the new cargo-deny job passed: toolchain, ci-tools, cargo deny check all success
  • images built, or correctly never ran because nothing that goes into
    an image changed: — n/a — CI only
  • deploy converged — proved by a line the running process emitted, not
    by the image digest and not by the workflow conclusion: — run 46257159769 success; nothing deployed changed
  • the push-only surface no pull request can pre-test (deploy, drift,
    kind's nightly leg) is green, or knowingly red for a reason that is not
    this change: — infra, devcontainer success
  • the board card reached Done through the automation rather than by
    hand, and the issue closed: — ci: no retry around GitHub release CDN downloads — a partial 504 outage fails the whole rust gate #849 CLOSED by ci: cargo-deny installs through ci-tools, so a CDN 504 is retried, and a test proves a first-attempt 504 recovers (#849) #1436 via automation
  • follow-ups are open for everything deferred here — numbers: — none
  • what was learned is written down where the next session will find it
    (a skill, a reference, memory) — or nothing new was learned: — cargo-deny is now a ci-tools pin; bump it in tools.json + tools-arm64.json with both checksums verified

Specific to this change

Context — plan, discoveries, measurements, files

Plan

Discoveries

Measurements

Files

agent-task.yml still uses mozilla-actions/sccache-action; it's a disabled gh-aw workflow and not a required check, so it's left alone.

🤖 Generated with Claude Code

…d a test proves a first-attempt 504 recovers (#849)

On 2026-11-08 a partial GitHub-CDN outage failed the required
cargo-deny check on three attempts while the same URLs were healthy
elsewhere. EmbarkStudios/cargo-deny-action rebuilds a Docker image on
every run, pulling a Docker Hub base and curling the release tarball
with no retry.

The security job now installs the pinned cargo-deny binary through
ci-tools, so it is checksum-verified, cached and downloaded with curl's
bounded retries, then runs the same check advisories licenses bans
sources. The version is 0.20.2, which is what the action ran, so deny.toml
means what it meant. Both architectures' checksums are verified against
the release files.

test_a_first_attempt_504_is_retried_and_installs serves a 504 and then
the tarball from a local server, and the real curl invocation must
install it. With --retry removed it fails.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@athvin
athvin merged commit 10505ce into main Nov 29, 2026
47 checks passed
@athvin
athvin temporarily deployed to marketing-preview November 29, 2026 11:24 — with GitHub Actions Inactive

This branch was previously deployed

1 inactive deployment
marketing-preview — e3f344e1 Deployed Nov 29, 2026 by athvin via remove closed PR previews #164
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants