Skip to content

rust: Pin the toolchain to the soldr-supported 1.98.1 and enforce it in lint - #185

Merged
zackees merged 1 commit into
masterfrom
toolchain-pin-soldr
Oct 11, 2026
Merged

zackees merged 1 commit into
masterfrom
toolchain-pin-soldr

Conversation

@zackees

@zackees zackees commented Oct 11, 2026

Copy link
Copy Markdown
Member

Pins rust-toolchain.toml to 1.98.1 (latest supported natively by soldr 0.9.31/0.9.32, per soldr's own rust-toolchain.toml), MSRV 1.98. Tier 2 Docker image now installs the pinned toolchain, fixing 'Could not find toolchain 1.99.0'. ci/test_toolchain.py (run by ./lint) enforces the pin. Policy updated. Local gate stamped, tier2-linux passes.

…in lint

1.99.0 is beyond what soldr 0.9.31/0.9.32 support natively, and rustup
could not provision it for corrosion in the Tier 2 Docker lane. The image
now installs the toolchain pinned in rust-toolchain.toml.

Local-Gate: v1 tree=c08ca0c99fa20a754f3352d28600eeef519e6ff8 secs=236 lanes=lint:run,rust-test:run,tier2-linux:run
Ci-Attestation: {"at":1791686317,"gate":"rust/all/fmt","host":"linux-x86_64","key":"86022adca560d44d21df745744ce9189bcb9fae900bf324af052c860ce520450","lane":"lint","parents":["246ba33d1bca7fd1ca659da4a2f0edce5be41d0d"],"secs":34,"stamp":"e83ecdc16fa494a88a6e0d2e987c866c","tree":"c08ca0c99fa20a754f3352d28600eeef519e6ff8","v":1,"via":"run"}
Ci-Attestation: {"at":1791686317,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"86022adca560d44d21df745744ce9189bcb9fae900bf324af052c860ce520450","lane":"lint","parents":["246ba33d1bca7fd1ca659da4a2f0edce5be41d0d"],"secs":34,"stamp":"3b3d9c4b7a139c26272aa836ab97d30a","tree":"c08ca0c99fa20a754f3352d28600eeef519e6ff8","v":1,"via":"run"}
Ci-Attestation: {"at":1791686317,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"629b81291eead5aadaf73671aed45197646910f04ebd01cdfa11fafa8fceca86","lane":"rust-test","parents":["246ba33d1bca7fd1ca659da4a2f0edce5be41d0d"],"secs":37,"stamp":"88f6d5f21f80cb2ead870f9bee9ea5c5","tree":"c08ca0c99fa20a754f3352d28600eeef519e6ff8","v":1,"via":"run"}
Ci-Attestation: {"at":1791686317,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"a6ec7051b16edc241deb69ff6cb5acf0024a77d8dd394c9708758da82f5925e6","lane":"tier2-linux","parents":["246ba33d1bca7fd1ca659da4a2f0edce5be41d0d"],"secs":164,"stamp":"78c8f933da3ac5e116903a542bf6f6d7","tree":"c08ca0c99fa20a754f3352d28600eeef519e6ff8","v":1,"via":"run"}
@zackees
zackees merged commit 6875d7d into master Oct 11, 2026
20 checks passed
@zackees

zackees commented Oct 11, 2026

Copy link
Copy Markdown
Member Author

Added two commits on top. This was a fast-forward, not a force-push.

  • 4a9be7931 (RED): ci/test_repo_hygiene.py fails while any .pyc is tracked or bytecode is not ignored. On 6ae00d3ad, both tests failed, because this PR tracked five ci/__pycache__/*.pyc files. test_tier2_run.test_image_installs_pinned_toolchain checks that run.sh builds the image with RUST_TOOLCHAIN=<rust-toolchain.toml channel>. Against master's run.sh/Dockerfile it fails (build -q -t obs-rust-linux-validate … has no build arg). On this PR it passes.
  • e8d067c45 (GREEN): untracks the five ci/__pycache__ files and the two tools/leaderboard/__pycache__ files leaderboard: industrial style, merged-PR ranking, completeness checks #178 merged, and ignores __pycache__/ and *.py[cod].

The toolchain tests also go RED to GREEN. With this PR's test_toolchain.py run against master's tree, test_channel_is_the_soldr_supported_version ('1.99.0' != '1.98.1') and test_msrv_matches_pin fail. On this branch they pass.

Local gate on e8d067c45 with 1.98.1: lint, rust-test and tier2-linux all passed. Merging once CI is green.

zackees added a commit that referenced this pull request Oct 11, 2026
…_LIBOBS=ON

rustup's auto-install of rust-toolchain.toml is deprecated (rust-lang/rustup#4836)
and was what broke Tier 2 after the 1.99.0 pin (#180); install it explicitly,
as the Tier 2 image now does (#185).

Refs #143

Local-Gate: v1 tree=cf745e8b9398beee80d989502785c338f51992bc secs=93 lanes=lint:run,rust-test:run,tier2-linux:run
Ci-Attestation: {"at":1791687772,"gate":"rust/all/fmt","host":"linux-x86_64","key":"9c48a41145f4708d98a900d74ec2ecf4c58436ff012a23d08cd98e76fd12036f","lane":"lint","parents":["d6e212fb5c0f578581356f8f5850a20ba9e38890"],"secs":17,"stamp":"1a34a829bd3c4e83d6c4d4f45de6bb20","tree":"cf745e8b9398beee80d989502785c338f51992bc","v":1,"via":"run"}
Ci-Attestation: {"at":1791687772,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"9c48a41145f4708d98a900d74ec2ecf4c58436ff012a23d08cd98e76fd12036f","lane":"lint","parents":["d6e212fb5c0f578581356f8f5850a20ba9e38890"],"secs":17,"stamp":"354e69df08751212ba17cbc1a14bf4be","tree":"cf745e8b9398beee80d989502785c338f51992bc","v":1,"via":"run"}
Ci-Attestation: {"at":1791687772,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"7a8e339c11cfe3331cbc43e10651bae59647e856536b7bccf7ca151f6ec927ea","lane":"rust-test","parents":["d6e212fb5c0f578581356f8f5850a20ba9e38890"],"secs":41,"stamp":"2e69978320c00db4ae2aa7918b6add44","tree":"cf745e8b9398beee80d989502785c338f51992bc","v":1,"via":"run"}
Ci-Attestation: {"at":1791687772,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"9fc9f5fb384b754a913b3b9656abc68e70a3022f42e3eaf01e5ba966fcdfeafb","lane":"tier2-linux","parents":["d6e212fb5c0f578581356f8f5850a20ba9e38890"],"secs":34,"stamp":"3719087a0c66b49db58d7d9ba6fce886","tree":"cf745e8b9398beee80d989502785c338f51992bc","v":1,"via":"run"}
@zackees

zackees commented Oct 11, 2026

Copy link
Copy Markdown
Member Author

This was merged at 6ae00d3ad before my two commits landed on the branch, so the five .pyc files reached master. The fix is in #187, together with a second regression this PR caused. Tier 2 fails on any local /build volume configured before the pin change, with Could not find toolchain 'stable-x86_64-unknown-linux-gnu', because Corrosion caches the old rustc and cargo paths. The toolchain-pin-soldr branch can be deleted.

zackees added a commit that referenced this pull request Oct 11, 2026
ci: Follow-ups to #185 (tracked bytecode, stale Tier 2 build dirs)
zackees added a commit to chriscoveries/obsrust-fork that referenced this pull request Oct 11, 2026
./lint runs the ci/ tests, which writes __pycache__ next to them. Nothing
ignored it, so obs-rust#185 merged five ci/__pycache__/*.pyc files and obs-rust#178 two
tools/leaderboard/__pycache__/*.pyc files. test_repo_hygiene fails while
any .pyc is tracked or bytecode is not ignored.

Also adds test_tier2_run.test_image_installs_pinned_toolchain, which
guards obs-rust#185's fix: run.sh must build the image with RUST_TOOLCHAIN set
to the rust-toolchain.toml channel. It fails against run.sh before obs-rust#185.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
zackees added a commit to chriscoveries/obsrust-fork that referenced this pull request Oct 11, 2026
After obs-rust#185 the image installs only the pinned 1.98.1. A /build volume
configured before that still has Corrosion's cached stable rustc and
cargo paths, so tier2-linux fails at configure:

  Could not find toolchain 'stable-x86_64-unknown-linux-gnu'

StaleBuildTest describes reset_stale_build in
rust/tools/linux-validate/stale-build.sh, which does not exist yet.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
zackees added a commit to chriscoveries/obsrust-fork that referenced this pull request Oct 11, 2026
validate.sh records rustc -V (as rust-toolchain.toml selects it) next to
each build dir and removes the dir when the recorded version differs or
is missing. Volumes configured before obs-rust#185 configure fresh once, and
ccache keeps the C rebuild warm. On a volume that failed with "Could
not find toolchain 'stable-x86_64-unknown-linux-gnu'", Tier 2 now passes
56/56 OFF and ON.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Local-Gate: v1 tree=9352bb02fa7a526522995edb192bdac0bcd99716 secs=98 lanes=lint:run,rust-test:run,tier2-linux:run
Ci-Attestation: {"at":1791687870,"gate":"rust/all/fmt","host":"linux-x86_64","key":"140aee46b1af216c7062efbf15e418288557c3398bc5fe9f310e88c80d68adf7","lane":"lint","parents":["383da90f1706c1736e6161311f4f59b8655a88ff"],"secs":49,"stamp":"0dc371df353baa4e103cda50b6b21fe5","tree":"9352bb02fa7a526522995edb192bdac0bcd99716","v":1,"via":"run"}
Ci-Attestation: {"at":1791687870,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"140aee46b1af216c7062efbf15e418288557c3398bc5fe9f310e88c80d68adf7","lane":"lint","parents":["383da90f1706c1736e6161311f4f59b8655a88ff"],"secs":49,"stamp":"85994b7bab4201c1f8f4163e9da40ef6","tree":"9352bb02fa7a526522995edb192bdac0bcd99716","v":1,"via":"run"}
Ci-Attestation: {"at":1791687870,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"67cbe18565c80dacfa02d7037f1b56293a8e1985b1039ebd5214937321fbd80e","lane":"rust-test","parents":["383da90f1706c1736e6161311f4f59b8655a88ff"],"secs":27,"stamp":"d1cc3bb5ab18062f1a0f068325fff882","tree":"9352bb02fa7a526522995edb192bdac0bcd99716","v":1,"via":"run"}
Ci-Attestation: {"at":1791687870,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"ec4a1bdadaf00d07a3280aac5db6702d7ed9ea2cd2cc22e50347bdb0d39782cc","lane":"tier2-linux","parents":["383da90f1706c1736e6161311f4f59b8655a88ff"],"secs":22,"stamp":"76d463846177524d418e835bd6bf3bea","tree":"9352bb02fa7a526522995edb192bdac0bcd99716","v":1,"via":"run"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant