Repository navigation
fix(ci): channel-only rust-toolchain.toml — kill the implicit component sync - #1756
Merged
Merged
Conversation
…nt sync
The file listed components/targets, so rustup implicitly synced them on
the first cargo invocation of EVERY CI job — a transactional install
that intermittently fails on hosted runners ("detected conflict:
bin/cargo-clippy", #1754 twice, while identical runs pass: per-runner
dice roll). CI jobs already declare components/targets explicitly via
dtolnay inputs; with the file channel-only the sync has nothing to do
and the class is dead. Non-nix dev setup documented in the file.
Co-Authored-By: Claude Fable 5 <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adjusts the repository’s Rust toolchain pin to be channel-only, removing components and targets from rust-toolchain.toml to avoid rustup’s implicit transactional component/target sync on first cargo invocation in CI jobs.
Changes:
- Removed
components = [...]andtargets = [...]fromrust-toolchain.toml, leaving onlychannel = "1.97.0". - Expanded the file’s comments to document why components/targets are intentionally managed by CI workflow steps (dtolnay action inputs) rather than via rustup override sync.
- Added developer guidance for manually installing needed components/targets.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Contributor
✅ Compatibility Test Results
What's tested
Full results available in workflow artifacts |
Co-Authored-By: Claude Fable 5 <[email protected]>
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.
What
Trims
rust-toolchain.tomlto channel only, removing thecomponents/targetslists.Why (#1754's blocking failure, twice)
With components listed, rustup implicitly syncs them on the first cargo invocation of every CI job — a transactional install that intermittently fails on hosted runners:
failed to install component: 'clippy-preview…', detected conflict: 'bin/cargo-clippy', thenrolling back changes. #1754 hit it on two consecutive runs while byte-identical syncs succeeded on main minutes earlier (same runner-image version, same toolchain point release) — a per-runner dice roll, and re-rolling per run isn't acceptable CI.Every CI job already declares what it needs via the dtolnay action's
components:/targets:inputs (verified: clippy job passesclippy, fmt passesrustfmt, wasm/downstream jobs pass their targets, quality/release passllvm-tools-preview) — nothing relies on the file's sync. Channel-only, the sync has nothing to install and the failure class is structurally dead.Non-nix developer setup is documented in the file (
rustup component add …once).Sequencing
Merge before #1754/#1755 re-run; their branches pick this up via update-branch.
🤖 Generated with Claude Code