Skip to content

ci: Install the toolchain fresh in jobs that add Rust targets (Fixes #969) - #979

Merged
zackees merged 2 commits into
masterfrom
ci/soldr-cross-targets
Oct 16, 2026
Merged

zackees merged 2 commits into
masterfrom
ci/soldr-cross-targets

Conversation

@zackees

@zackees zackees commented Oct 16, 2026

Copy link
Copy Markdown
Member

Fixes #969. Unblocks master and the merge queue.

Cause (investigation: forge-ci/setup-soldr#507 comment, forge-ci/soldr#3793): setup-soldr's solo-toolchain-cache keys on declared targets only (...-tnone-soldrv0.9.33) and saves rustup's records from after the build with the file list from before it. The lint, rust-test and cross lanes run soldr rustup target add mid-job, so the saved Linux entry claimed x86_64-pc-windows-gnu was installed without its std. Later runs restored it, target add said "up to date", and soldr cargo --target x86_64-pc-windows-gnu failed with E0463 can't find crate for core (merge-queue job 116780150468, master push run 38837108308).

I already deleted the poisoned entry (cache id 9026195496), but the next save would re-poison it; this keeps it from coming back.

Change: solo-toolchain-cache: false on setup-soldr in the Rust Tests job and the Rust Cross Lint job. Cost: a few seconds of rustup install per run. Revert once #507 is fixed.

RED (first commit): ci/test_soldr_toolchain_cache.py checks that every job running a lint/rust-test/cross lane disables the cache; fails on master for both jobs.
GREEN (second commit): the workflow change; the test and test_workflow_duplicate_keys pass.

…ixes #969)

setup-soldr's solo-toolchain-cache keys on declared targets only (tnone)
and saves rustup's records from after the build with the file list from
before it (forge-ci/setup-soldr#507). The lint, rust-test and cross lanes
add targets mid-job, so the saved entry claimed x86_64-pc-windows-gnu was
installed without its std; every later run failed with E0463. Turn the
cache off in those two jobs until #507 is fixed (costs a few seconds of
rustup install).
@zackees zackees added the ci-full Run every CI job on this PR, including the release-gating OBS app builds and Flatpak label Oct 16, 2026
@zackees
zackees enabled auto-merge October 16, 2026 03:03
@zackees
zackees added this pull request to the merge queue Oct 16, 2026
@zackees
zackees removed this pull request from the merge queue due to a manual request Oct 16, 2026
@zackees
zackees added this pull request to the merge queue Oct 16, 2026
@zackees
zackees removed this pull request from the merge queue due to a manual request Oct 16, 2026
@zackees
zackees merged commit ee039ee into master Oct 16, 2026
28 checks passed
@zackees
zackees deleted the ci/soldr-cross-targets branch October 26, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-full Run every CI job on this PR, including the release-gating OBS app builds and Flatpak

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

ci: Local Gate (lint) fails on every PR: local-gate probe's windows-gnu link exits 101

1 participant