Repository navigation
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
Conversation
…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
temporarily deployed
to
marketing-preview
November 29, 2026 11:24 — with
GitHub Actions
Inactive
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #849
What
The required
cargo-denycheck installs its pinned binary throughci-tools, which is checksum-verified, cached and downloaded with curl's bounded retries. It no longer usesEmbarkStudios/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-denythree 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 checkexit 0.test_a_first_attempt_504_is_retried_and_installsserves 504 then the tarball from a local server, and the real curl invocation installs it on the second request. With--retryremoved it fails. Both architectures' checksums were verified against the 0.20.2 release files. 0.20.2 is the version the action pinned, sodeny.tomlsemantics 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-060338df4848onbrians-MacBook-Pro· 2026-11-29T11:42:29Zmainis green with this change on it — the merge SHA, and the runthat 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
imagesbuilt, or correctly never ran because nothing that goes intoan image changed: — n/a — CI only
deployconverged — proved by a line the running process emitted, notby the image digest and not by the workflow conclusion: — run 46257159769 success; nothing deployed changed
deploy,drift,kind's nightly leg) is green, or knowingly red for a reason that is notthis change: — infra, devcontainer success
Donethrough the automation rather than byhand, 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
(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.ymlstill usesmozilla-actions/sccache-action; it's a disabled gh-aw workflow and not a required check, so it's left alone.🤖 Generated with Claude Code