You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: rust/tools/linux-validate: Tier 2 fails on every run after the first since the 1.99.0 pin (#164) #180
Since #164 pinned rust-toolchain.toml to 1.99.0, the Tier 2 lane (rust/tools/linux-validate) passes on the first run in a checkout and fails on every later run in the same checkout. CI always gets a fresh build volume, so it doesn't see this. Locally, ./unittest and ci-lint local-gate run break after the first run.
Symptom (second run)
== [ON] configure + build
-- Rust Toolchain: 1.99.0-x86_64-unknown-linux-gnu
CMake Error at /build/rust-ON/_deps/corrosion-src/cmake/FindRust.cmake:23 (message):
Could not find toolchain '1.99.0-x86_64-unknown-linux-gnu'
Available toolchains:
`stable-x86_64-unknown-linux-gnu`
Cause
The Tier 2 image installs only stable. Today that's 1.99.0, but it's namedstable, and Corrosion matches the toolchain by name.
The per-checkout build volume (infra: Use a per-checkout Docker volume for the Tier 2 build #135) keeps /build/rust-ON/CMakeCache.txt with Rust_TOOLCHAIN=1.99.0-x86_64-unknown-linux-gnu. The next run's container has only stable, Corrosion validates the cached toolchain against rustup toolchain list, and configure fails.
Repro
rust/tools/linux-validate/run.sh twice in the same checkout.
Fix
In validate.sh, install the pinned toolchain before configuring, e.g. (cd /src && rustup toolchain install), which reads rust-toolchain.toml (rustup ≥ 1.28). Alternatively, bake the version into the Dockerfile with --default-toolchain read from rust-toolchain.toml. Either way, stop relying on rustup's deprecated auto-install, which upstream plans to remove. CI would then also break on a fresh volume.
Workaround: delete /build/rust-ON*/CMakeCache.txt in the obs-rust-linux-validate-build-<id> volume.
Fixed by #185: the Tier 2 image now installs the toolchain pinned in rust-toolchain.toml (1.98.1), so containers no longer depend on rustup's deprecated auto-install. Verified locally: two consecutive ci/local_gate.py --lane tier2-linux runs in the same checkout both pass (IDENTICAL (1752 symbols)).
Left over: an existing build volume keeps the previous pin in its CMake cache after the pin changes, and fails until the cache is cleared. That's 186.
Activity
zackees commentedon Oct 11, 2026
Fixed by #185: the Tier 2 image now installs the toolchain pinned in
rust-toolchain.toml(1.98.1), so containers no longer depend on rustup's deprecated auto-install. Verified locally: two consecutiveci/local_gate.py --lane tier2-linuxruns in the same checkout both pass (IDENTICAL (1752 symbols)).Left over: an existing build volume keeps the previous pin in its CMake cache after the pin changes, and fails until the cache is cleared. That's 186.
infra: sanitize.sh installs the pinned Rust toolchain for ENABLE_RUST…