Skip to content

chore(ci): pin the CI toolchain to 1.97.0 instead of floating stable - #1749

Merged
robcohen merged 1 commit into
mainfrom
chore/pin-ci-toolchain
Jul 10, 2026
Merged

robcohen merged 1 commit into
mainfrom
chore/pin-ci-toolchain

Conversation

@robcohen

Copy link
Copy Markdown
Member

Floating @stable let Rust 1.97.0 land in CI overnight and redden every open PR on untouched code (new lints + the BQL parse-stack SIGABRT — #1745 has the story; it cost a working day across 15 PRs). All 36 floating toolchain: stable sites are pinned to 1.97.0 — the version everything on main is verified against — with an inline comment pointing at the incident so future bumps are deliberate. Nightly and MSRV pins untouched.

Trade-off acknowledged: pinning means staleness until someone bumps; the incident showed surprise breakage is the worse failure mode for this repo's 15-PR-wide review cadence.

🤖 Generated with Claude Code

Floating on dtolnay/rust-toolchain@stable meant the 1.97.0 release
(2026-07-07) landed in CI overnight and turned every open PR red on
code none of them touched — new clippy lints plus a debug-frame-size
change that SIGABRT'd the BQL parser tests (#1745 has the full
story; it cost a working day across 15 PRs). All 36 floating
`toolchain: stable` sites are now pinned to 1.97.0 with a comment
pointing at the incident; bump the pin deliberately, running the
local dual-toolchain check first (rustup stable + nix 1.96 MSRV).
Nightly and MSRV pins are untouched.

Co-Authored-By: Claude Fable 5 <[email protected]>
@robcohen
robcohen requested a review from a team as a code owner July 10, 2026 14:21
Copilot AI review requested due to automatic review settings July 10, 2026 14:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Pins the GitHub Actions “stable” Rust toolchain used across CI workflows to Rust 1.97.0 to prevent unexpected breakages from a floating stable toolchain (per the incident described in #1745), while leaving nightly/MSRV pins unchanged.

Changes:

  • Replaced toolchain: stable with toolchain: 1.97.0 across CI workflows that previously floated stable.
  • Added an inline comment at each pin site to document why stable is pinned and to encourage deliberate bumps.

Reviewed changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated no comments.

Show a summary per file
File Description
.github/workflows/wasm.yml Pins the Rust toolchain used for WASM tests/builds to 1.97.0.
.github/workflows/tla.yml Pins the Rust toolchain used for TLA-related checks to 1.97.0.
.github/workflows/tla-escalated.yml Pins the Rust toolchain for escalated TLA corpora generation to 1.97.0.
.github/workflows/supply-chain.yml Pins the Rust toolchain used for cargo-vet/SBOM generation to 1.97.0.
.github/workflows/release-test.yml Pins the Rust toolchain used in release test workflow to 1.97.0.
.github/workflows/release-publish.yml Pins the Rust toolchain used for publish + wasm packaging steps to 1.97.0.
.github/workflows/release-build.yml Pins the Rust toolchain used for release builds and matrix targets to 1.97.0.
.github/workflows/quality.yml Pins the Rust toolchain used for quality checks/coverage tooling to 1.97.0.
.github/workflows/profile.yml Pins the Rust toolchain used for profiling jobs to 1.97.0.
.github/workflows/parser-baselines.yml Pins the Rust toolchain used for parser baseline jobs to 1.97.0.
.github/workflows/mutation.yml Pins the Rust toolchain used for mutation testing to 1.97.0.
.github/workflows/kani.yml Pins the Rust toolchain used for Kani workflow setup steps to 1.97.0.
.github/workflows/downstream.yml Pins the Rust toolchain used for downstream builds to 1.97.0.
.github/workflows/compat.yml Pins the Rust toolchain used for compatibility workflows to 1.97.0.
.github/workflows/ci.yml Pins the Rust toolchain used across main CI jobs (fmt, doctests, build, etc.) to 1.97.0.
.github/workflows/cargo-vet-auto.yml Pins the Rust toolchain used for automated cargo-vet runs to 1.97.0.
.github/workflows/bench.yml Pins the Rust toolchain used for benchmark runs to 1.97.0.
.github/workflows/bench-pr.yml Pins the Rust toolchain used for PR benchmark workflow to 1.97.0.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions

Copy link
Copy Markdown
Contributor

✅ Compatibility Test Results

Metric Result
Check Compatibility 100%
BQL Compatibility 100%
Full AST Match 100%
Total Files 811
What's tested
  • Check: Exit codes and error counts match bean-check
  • BQL: Query results match bean-query
  • Files: ~800 test files downloaded from 10+ beancount repositories

Full results available in workflow artifacts

@codecov

codecov Bot commented Jul 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@robcohen
robcohen merged commit e978e80 into main Jul 10, 2026
40 of 41 checks passed
@robcohen
robcohen deleted the chore/pin-ci-toolchain branch July 10, 2026 14:47
robcohen added a commit that referenced this pull request Jul 10, 2026
…1751)

The #1749 workflow pin collided with rust-toolchain.toml's
channel = "stable": rustup's file-based override BEATS the toolchain
dtolnay installs targets for, so cargo ran under the auto-installed
"stable" toolchain while wasm32-wasip2 std was added only to the
"1.97.0" install — Component Parity failed on #1750 with "can't find
crate for `std`". Invisible on #1749's own CI because workflow-only
changes skip the component jobs (should_build gate).

rust-toolchain.toml now pins the same version, with LOCKSTEP notes in
both places so a future bump moves them together. Verified locally:
the file override resolves to 1.97.0 and the wasip2 component builds.

Co-authored-by: Claude Fable 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants