Skip to content

bug: rust/tools/linux-validate: Tier 2 fails on every run after the first since the 1.99.0 pin (#164) #180

Closed

Description

@zackees

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

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.

Activity

  1. added
    bug
    on Oct 11, 2026
  2. zackees commented on Oct 11, 2026

    @zackees
    MemberAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions