Skip to content

ci: Bypass soldr's rustc wrapper in the local gate - #161

Merged
zackees merged 2 commits into
masterfrom
fix/gate-no-zccache
Oct 10, 2026
Merged

zackees merged 2 commits into
masterfrom
fix/gate-no-zccache

Conversation

@zackees

@zackees zackees commented Oct 10, 2026

Copy link
Copy Markdown
Member

Refs #134 (the upstream soldr/zccache report is still open).

soldr's zccache replayed stale rustc output this week: soldr cargo clippy reported errors from an old version of cf_tokenizer.rs, and earlier lanes went green without compiling the current source. An attested gate lets CI skip the Linux Rust and Tier 2 jobs, so a replayed green can reach master.

RED: ci: RED test that the gate bypasses soldr's rustc wrapper

New ci/test_local_gate.py asserts that every soldr cargo command in the lint and rust-test lanes runs with SOLDR_RUSTC_WRAPPER=none. On master: 3 failures (fmt, clippy, test pass the caller's environment).

GREEN: ci: Run the gate's cargo commands without soldr's rustc wrapper

  • A soldr_cargo() helper sets SOLDR_RUSTC_WRAPPER=none. OBS_GATE_ZCCACHE=1 keeps the cache for local iteration.
  • The lint lane runs the gate's own unit tests.

Evidence

  • python3 -m unittest ci/test_local_gate.py: 2 tests OK.
  • End to end: appending compile_error!("GATE-PROBE"); to crc32.rs makes ci/local_gate.py --lane rust-test fail with error: GATE-PROBE. Before this change, soldr could replay the previous result instead of compiling.
  • The full local gate passes and is stamped.

Trade-off: CI's rust-tests-linux job runs these lanes, so it loses zccache hits and may run slower, until the cache bug is fixed upstream.

zackees and others added 2 commits October 10, 2026 16:23
soldr's zccache replayed stale rustc output (old diagnostics, and green
results without compiling the current source). Every cargo command the
gate attests must therefore run with SOLDR_RUSTC_WRAPPER=none. The lint
and rust-test lanes currently pass the caller's environment through.

Refs #134

Co-Authored-By: Claude Opus 5.5 <[email protected]>
soldr's zccache replayed stale rustc output: clippy reported errors from
an old version of a module, and earlier lanes went green without
compiling the current source. Since an attested gate lets CI skip the
Linux Rust and Tier 2 jobs, a replayed green is dangerous. Run fmt,
clippy and test with SOLDR_RUSTC_WRAPPER=none (OBS_GATE_ZCCACHE=1 keeps
the cache for local iteration), and run the gate's own unit tests in the
lint lane.

Refs #134

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Local-Gate: v1 tree=bc2644a99a4edea4e2522e39826ab6e72e662383 secs=236 lanes=lint:run,rust-test:run,tier2-linux:run
Ci-Attestation: {"at":1791674857,"gate":"rust/all/fmt","host":"linux-x86_64","key":"da979b085cb8c8d2fe3df0d074e953f318d0b8de55fc87ee964264a0f7bf2b04","lane":"lint","parents":["eeb8cfbafeaaab067d7190a26045646244a7e9ef"],"secs":86,"stamp":"a8d6ab5596d48fdf04b81a4457ac9645","tree":"bc2644a99a4edea4e2522e39826ab6e72e662383","v":1,"via":"run"}
Ci-Attestation: {"at":1791674857,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"da979b085cb8c8d2fe3df0d074e953f318d0b8de55fc87ee964264a0f7bf2b04","lane":"lint","parents":["eeb8cfbafeaaab067d7190a26045646244a7e9ef"],"secs":86,"stamp":"52bc31b05238f645df7f3d46a2e145de","tree":"bc2644a99a4edea4e2522e39826ab6e72e662383","v":1,"via":"run"}
Ci-Attestation: {"at":1791674857,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"2a862956823f74a7293df6fa3b3b030a03abee7139b2750aa8a14074b5708764","lane":"rust-test","parents":["eeb8cfbafeaaab067d7190a26045646244a7e9ef"],"secs":72,"stamp":"3db2e048675f076485fda6042ad75121","tree":"bc2644a99a4edea4e2522e39826ab6e72e662383","v":1,"via":"run"}
Ci-Attestation: {"at":1791674857,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"6dc1ee40ba3cd7f8973629a7923bb376c3ab41997cabc4558a15a4949f274c97","lane":"tier2-linux","parents":["eeb8cfbafeaaab067d7190a26045646244a7e9ef"],"secs":78,"stamp":"eae39f3d1ac6e9b8eb3f08ef91058ca8","tree":"bc2644a99a4edea4e2522e39826ab6e72e662383","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