Repository navigation
ci: pin the rustfmt nightly toolchain - #679
Merged
Merged
Conversation
CI resolved the floating nightly channel for cargo fmt, so a newer rustfmt failed checks that passed on an older local nightly. Pin the date in rustfmt-toolchain and route every fmt invocation (workflows, local scripts) through scripts/fmt.sh, which installs the pinned toolchain when missing. Drop the now-unused floating-nightly rustfmt install from the OS actions.
illuzen
approved these changes
Aug 31, 2026
This was referenced Aug 31, 2026
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.
Stacked on #675.
Problem
cargo +nightly fmtin CI uses whatever nightlyrustup updateresolves that day (rust-toolchain.tomlonly pins the stable build compiler, and+nightlybypasses it). rustfmt output drifts between nightlies, so formatting that passes on a local nightly fails in CI and vice versa — see the last failed run on #675, wherenightly-2026-08-30re-wrapped trailing comments a January nightly left alone.Change
rustfmt-toolchainholds the pinned nightly (nightly-2026-08-30, the version CI currently resolves; verified 0 diffs on the tree).scripts/fmt.shreads the pin, installs the toolchain with--profile minimal --component rustfmtif missing, and forwards its arguments tocargo fmt.ci.yml,dilithium-publish.yml,miner-api-publish.yml,pm-quality-check.yml,clippy.sh,scripts/pre_checkin_checks.sh,scripts/regenerate_weights.sh, README.Bumping
Edit the date in
rustfmt-toolchain, runscripts/fmt.sh --all, commit the reformat.