Skip to content

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

Closed as not planned

Description

@zackees

Symptom

Since around 01:00 UTC on 2026-10-16, `Build 🧱 / Rust Tests 🦀 (ubuntu-26.04)` fails at the step Local Gate (lint) 🧪 on unrelated PRs and in the merge queue:

The only failing check is:

ERROR: test_changed_source_fails_the_rust_test_lane (test_local_gate_probe.RustSourceProbeTest)
  ci/local_gate.py:259  soldr_cargo(["test","--workspace","--locked","--no-run","--target","x86_64-pc-windows-gnu"], ...)
CalledProcessError: ... returned non-zero exit status 101.

(The `missing release assets ... .deb` line also appears in passing runs, so it is not the cause.)

Evidence that it comes from the environment

  • Same base, opposite results. The frontend: Fix the GPU light reading "OpenGL" as the adapter, and the startup red flash (#846) #929 merge-queue run on base 6423c6b passed this step (job 116754167411). It ran on a cold cook cache and saved an 842 MB `cook-cache-base` (`...soldrv0.9.33`). Every later run restores that cache (`exact=true`), and the probe then fails.
  • The PRs don't touch it. None of the failing PRs touch Rust, `ci/local_gate.py` or the probe.
  • It passes locally. The same command passes on a developer machine with soldr 0.9.33.

Cause, as far as known

`ci/test_local_gate_probe.py` creates its scratch crate inside `/target/`, the directory CI restores the cache into. Building the probe there fails the windows-gnu link. The exact cargo error isn't in these logs; #950 added the stderr print after these runs.

Fix

Create the scratch crate in the system temp directory, outside the repo.

Acceptance criteria

  • RED: CI runs above.
  • GREEN: the fix PR's `Rust Tests (ubuntu-26.04)` passes Local Gate (lint) with the restored `soldrv0.9.33` cook cache.
  • The probe still fails on a changed source, which is what it exists to check.

Related: #949 (this probe is also one of the slowest tests in `./lint`).

Activity

  1. zackees commented on Oct 16, 2026

    @zackees
    MemberAuthor

    Root cause is still live after #972: merge-queue run for #936 (job 116780150468, Rust Tests ubuntu-26.04) fails in lane rust-test itself, not the probe:

    error[E0463]: can't find crate for `core`
      = note: the `x86_64-pc-windows-gnu` target may not be installed
    error: could not compile `getrandom` (lib)
    == lane rust-test: FAILED (101)
    

    lane_rust_test runs soldr rustup target add x86_64-pc-windows-gnu and then soldr cargo test ... --target x86_64-pc-windows-gnu, but the std for that target is not in the toolchain cargo uses. setup-soldr logs Runner rustup home ... does not already contain toolchain 1.98.1; using managed RUSTUP_HOME under the setup cache root, so the target add and the build likely see different rustup homes, or the restored 842 MB cook cache holds a toolchain without the windows-gnu std.

    Master is red on it too (push run 38837108308 at 0c531fe failed), so the queue can't land anything until this is fixed. Locally it passes because the host rustup home already has the target.

  2. zackees commented on Oct 16, 2026

    @zackees
    MemberAuthor

    Root cause found upstream. The rust-test failure matches forge-ci/setup-soldr#507 (open): setup-soldr's solo-toolchain-cache saves a ...tnone-soldrv0.9.33 entry after the lane adds the windows-gnu target mid-job, so the entry records the rust-std as installed without its files. Later runs take an exact hit and skip the rustup install. soldr rustup target add then prints "up to date" with no download, and soldr cargo --target x86_64-pc-windows-gnu fails with E0463. Evidence: forge-ci/setup-soldr#507 (comment). Soldr not self-healing this is filed as forge-ci/soldr#3793. The log shows one RUSTUP_HOME for both steps, so this is not a split-home problem. The current Linux entry (cache id 9026195496, created 01:26 UTC) can be deleted to unblock the queue; the next run will rebuild it, and may poison it again until #507 is fixed.

  3. zackees commented on Oct 16, 2026

    @zackees
    MemberAuthor

    Deleted the poisoned Linux toolchain cache entry 9026195496 (solo-toolchain-v3-linux-x64-glibc-rustc1.98.1-cb6b9e404-tnone-soldrv0.9.33, created 01:26 UTC) so the next run reinstalls rustup and the windows-gnu std. It can be re-poisoned until forge-ci/setup-soldr#507 is fixed; the durable workaround is cross-targets: x86_64-pc-windows-gnu on setup-soldr (puts the target in the cache key).

  4. zackees commented on Oct 16, 2026

    @zackees
    MemberAuthor

    GREEN in #970: Rust Tests (ubuntu-26.04) passed Local Gate (lint) (4m53s, job 116781929063). Before the fix it failed at about 1.5 minutes.

  5. zackees commented on Oct 16, 2026

    @zackees
    MemberAuthor

    Duplicate of #971, fixed by #972.

  6. added a commit that references this issue on Oct 16, 2026
    ee039ee
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

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions