Skip to content

ci: retain Rust cache correctness safeguard across native consumers - #1368

Merged
zackees merged 2 commits into
masterfrom
infra/1286-rust-wrapper-coverage
Oct 18, 2026
Merged

zackees merged 2 commits into
masterfrom
infra/1286-rust-wrapper-coverage

Conversation

@zackees

@zackees zackees commented Oct 18, 2026

Copy link
Copy Markdown
Member

Summary

Refs #1286. Extend the existing Rust stale-source safeguard beyond Fast Gate to all native Rust consumers in the existing build and release workflows.

Pinned soldr 0.9.35 defaults to ManagedZccache when SOLDR_RUSTC_WRAPPER is absent (crates/soldr-cli/src/zccache.rs, rustc_wrapper_mode_from_env_var). Its Disabled plan removes the managed Rust wrapper. The previously published source probe reproduces stale output with this pin, and forge-ci/zccache#1943 remains open. Only ci/local_gate.py previously set the safeguard, leaving native Rust tests and release consumers exposed.

Both existing workflows now set SOLDR_RUSTC_WRAPPER: none at workflow scope, covering setup/cook, native matrix jobs, and the Linux job container. Standalone C/C++ caches, cook/target archives, remote save policy, required checks and test assertions are preserved. This does not solve the distinct restored-target fingerprint hazard or rework cache publication. No new workflow is added.

Validation

  • RED 81f232917: uv run --no-project -m unittest ci.test_rust_cache_policy failed for both workflows' missing shared safeguard.
  • GREEN eb05818d0: uv run --no-project -m unittest ci.test_rust_cache_policy ci.test_cook_profiles — six tests pass.
  • git diff --check passes.
  • Regression coverage checks inheritance, prevents child re-enablement, and prevents global disabling of native compiler caches.
  • Runtime stale-source reproduction and evidence were previously published in ci: reproduce stale Rust cache hits and preserve gate safeguard #1290; this change extends its established safeguard. CI verification is pending.

Configuration and documentation change: Rust/C ABI and protocol test tiers do not apply. The preexisting dirty obs-websocket submodule is excluded from the commits.

@zackees
zackees enabled auto-merge October 18, 2026 00:17
@zackees
zackees added this pull request to the merge queue Oct 18, 2026
Merged via the queue into master with commit 50fe226 Oct 18, 2026
22 checks passed
@zackees
zackees deleted the infra/1286-rust-wrapper-coverage branch October 26, 2026 15:45
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