GRI-1761: run cargo deny without downloading the pinned toolchain #119

Merged
vivy merged 1 commit from fix/GRI-1761-deny-without-toolchain-download into dev 2026-11-10 20:25:18 +00:00
Owner

Required cargo deny has been red on every commit since 18:44 UTC today, dev tip included. Blocks #116.

Cause (reproduced on this host with the action's own Dockerfile): the action's entrypoint runs rustup show || rustup toolchain install, which installs the toolchain from rust-toolchain.toml (1.99.0, rustc alone 109 MB) from static.rust-lang.org. The host's download speed is now 0.4–1 MB/s, and rustup fails with operation timed out at 2m30s — exactly the CI failure time.

Fix: RUSTUP_TOOLCHAIN=1.85.0 on both deny steps, so the image's own Rust is used. cargo-deny only needs cargo metadata. With it, check bans licenses sources on dev tip reads bans ok, licenses ok, sources ok in the same container.

Workflow file only; no Rust or front-end change.

Required `cargo deny` has been red on every commit since 18:44 UTC today, `dev` tip included. Blocks #116. **Cause (reproduced on this host with the action's own Dockerfile):** the action's entrypoint runs `rustup show || rustup toolchain install`, which installs the toolchain from `rust-toolchain.toml` (1.99.0, rustc alone 109 MB) from static.rust-lang.org. The host's download speed is now 0.4–1 MB/s, and rustup fails with `operation timed out` at 2m30s — exactly the CI failure time. **Fix:** `RUSTUP_TOOLCHAIN=1.85.0` on both deny steps, so the image's own Rust is used. cargo-deny only needs `cargo metadata`. With it, `check bans licenses sources` on `dev` tip reads `bans ok, licenses ok, sources ok` in the same container. Workflow file only; no Rust or front-end change.
GRI-1761: run cargo deny on the action image's Rust, not a 109 MB toolchain download
Some checks failed
CI / the pre-push hook (pull_request) Successful in 6s
CI / cargo fmt (pull_request) Successful in 7s
CI / cargo deny advisories (pull_request) Failing after 1m5s
CI / cargo deny (pull_request) Successful in 1m58s
CI / repository boundary (pull_request) Successful in 5s
CI / frontend-web (pull_request) Successful in 9m50s
CI / cargo clippy (pull_request) Successful in 12m3s
CI / cargo test (pull_request) Successful in 13m6s
CI / Notify gate failed (pull_request) Has been skipped
CI / CI (pull_request) Successful in 3s
536cf57cf3
The action's entrypoint installs the toolchain from rust-toolchain.toml
before it runs. On a slow link that download times out after ~2.5 minutes
and both deny jobs go red with no code change, as on every commit since
18:44 UTC on 2026-11-10. cargo-deny only needs cargo metadata, which the
image's own Rust 1.85.0 provides. Reproduced and verified with the action's
Dockerfile on this host.
vivy merged commit d323b98d7e into dev 2026-11-10 20:25:18 +00:00
vivy deleted branch fix/GRI-1761-deny-without-toolchain-download 2026-11-10 20:25:19 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Grimoirix/grimoire-of-digital-signage!119
No description provided.