Repository navigation
ci: pin the Rust toolchain in rust-toolchain.toml, with Dependabot to propose each new release - #204
Merged
Merged
Conversation
… propose each new release Every build installed `stable`. A new Rust release could therefore turn `lint` red, or change what a test saw, on whatever change merged next, with nothing in the diff to show why. CI installs 1.100.0 today (2026-11-09), and the pin is that version. - rust-toolchain.toml: channel = "1.100.0". - .github/scripts/toolchain-channel.sh reads the pin. It refuses anything but one quoted MAJOR.MINOR.PATCH in [toolchain]: stable, nightly, 1.100, a second key, or a key in another table. - setup-rust installs that version through the same dtolnay/rust-toolchain step. Keeping the step keeps the environment it sets. - scripts/rs puts the pinned toolchain first on PATH, instead of rustup's stable, and says how to install it when it is missing. - .github/dependabot.yml: the rust-toolchain ecosystem, weekly, so each new stable comes as a pull request. A change to rust-toolchain.toml runs everything. - The two `cargo metadata` calls that build nothing (the `changes` job, test_plan_ci.py in ci-scripts) use the runner's own stable (RUSTUP_TOOLCHAIN=stable). Otherwise rustup would install the pin first, and a failed install would quietly turn every plan into a full run. - plan-ci.py: toolchain-channel.sh runs everything, like the toolchain file. - Docs: cicd.md (setup-rust, the pinned versions, the nightly run's purpose) and running.md (scripts/rs). Tests: - test-toolchain-channel.sh: 315 checks. They cover every value (exact, partial, named channels, pre-release, prefixed, empty), every quoting, and every place the key can sit (in [toolchain], another table, a comment, twice), with and without a trailing comment. Also a missing file, and the repository's own file. - 8 hand mutants of toolchain-channel.sh, each caught. - scripts/rs, in a copy of the tree: a pin that is not installed stops with the install command (exit 1); `stable` is refused; 1.100.0 runs. - Every ci-scripts test and deps guard under dash: 38/38. Refs: #49 Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 16, 2026
# Conflicts: # docs/src/architecture/cicd.md
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.
The second of the review's smaller CI fixes (
.agents/plans/cicd-review/PLAN.md): pin the Rust toolchain.Why
Every build installed
stable. A new Rust release could turnlintred, or change what a test saw, on whatever change happened to merge next, with nothing in the diff to explain it. CI installs 1.100.0 today (released 2026-11-09), so that is the pin.What
rust-toolchain.tomlsetschannel = "1.100.0"..github/scripts/toolchain-channel.shreads the pin. It refuses anything but exactly one quotedMAJOR.MINOR.PATCHin[toolchain], sostable,nightly,1.100, a second key, or a key in another table are all refused.setup-rustinstalls that version through the samedtolnay/rust-toolchainstep as before. Keeping the step keeps the environment it sets.scripts/rsfollows the pin instead of rustup'sstable. If the pinned toolchain is missing, it prints therustup toolchain installcommand..github/dependabot.ymluses therust-toolchainecosystem on a weekly schedule. Dependabot has supported this since August 2025. Each new stable arrives as a pull request, and a change torust-toolchain.tomlruns all of CI. Cargo dependencies and actions are deliberately not in it; adding them is a separate decision.cargo metadatacalls that build nothing (thechangesjob andtest_plan_ci.py) use the runner's own stable throughRUSTUP_TOOLCHAIN=stable. Without it, rustup would first install the pin there, and a failed install would quietly turn every plan into a full run.plan-ci.pytreatstoolchain-channel.shlike the toolchain file: changing it runs everything.cicd.mdandrunning.md. The nightly run no longer claims to catch a new stable toolchain; Dependabot does that now.Tests
test-toolchain-channel.sh(315 checks) covers every combination of:[toolchain], another table, a comment, or twice;It also covers a missing file and the repository's own file.
8 hand mutants of the reader, all caught.
scripts/rsin a copy of the tree:stableis refused;Every
ci-scriptstest anddepsguard under dash: 38/38, withscripts/rson 1.100.0.Overlap with #202
#202 (
--locked) edits the same "still open" sentence incicd.md. Whichever merges second will need main merged into it, which I'll do.Refs: #49
🤖 Generated with Claude Code