Files
Marc-André Moreau 649ac65d0c ci: keep Rust cache keys stable and cancel superseded runs (#2268)
Swatinem/rust-cache hashes every installed toolchain into its key,
including the runner's preinstalled stable. Runner images currently ship
either stable 1.99.0 or 1.99.1, so the key splits while master saves
only one variant: macOS Checks found no cache in about half of pull
request runs and compiled all 1164 crates (about 22 minutes instead of
11), and Linux restored a stale cache. Uninstalling every toolchain
except the one pinned in rust-toolchain.toml before the cache step makes
the key depend only on the pinned toolchain and the lockfiles. The fuzz,
agentic RDP and release binary workflows get the same step; the release
workflow inlines it because it checks out the release tag, which may
predate the shared action.

Stacked pull requests receive two `synchronize` events per push (base
and head branch), which started two full CI runs on the same commit, and
a new push left the previous run going to completion. CI now keeps only
the latest run per pull request.

The build jobs no longer wait for the formatting check, which only
delayed them; `Success` still requires it.

The cache keys change, so pull request runs build without a cache until
the first master run after merge saves the new caches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 19:19:22 -04:00
..