Skip to content

ci: prevent mixed Ubuntu compiler snapshots from blocking cache seeds - #1371

Merged
zackees merged 2 commits into
masterfrom
infra/1286-ubuntu-cache-compatibility
Oct 18, 2026
Merged

zackees merged 2 commits into
masterfrom
infra/1286-ubuntu-cache-compatibility

Conversation

@zackees

@zackees zackees commented Oct 18, 2026

Copy link
Copy Markdown
Member

Summary

Refs #1286. Restrict Ubuntu compiler restore fallbacks to the same OS, architecture, Rust mode and build configuration. Remove opposite-mode and broader cross-configuration prefixes; keep exact keys and older compatible snapshots.

Measured full run 39082733551:

  • OFF job 117542939491 restored ON, recorded 43 cached / 302 cold / 16 noncacheable calls, accumulated 9,526 MiB, and skipped its save under the 8,192 MiB guard. Thus it published no OFF seed. Its successful job took 619 s versus an unmatched cold 629 s.
  • ON job 117542939347 restored its own mode, recorded 200 cached / 145 cold / 16 noncacheable calls, accumulated 5,485 MiB, and successfully saved a 794,953,805-byte archive. Job 435 s versus unmatched cold 684 s.

This addresses the observed mixed-store seeding blocker. A missing compatible seed starts cold so a mode-specific snapshot can fit the existing guard. Both modes' long-term retention in the pooled nightly allowance remains unresolved; this does not promise persistence or a universal runtime gain. The full parent run was still active when this PR was prepared.

Validation

  • RED fc935c3f1: uv run --no-project -m unittest ci.test_ubuntu_cache_preserve — rejects foreign-mode restores in both matrix modes; two failures on old prefixes.
  • GREEN b6a2e7b2f: uv run --no-project -m unittest ci.test_ubuntu_cache_preserve ci.test_zccache ci.test_rust_cache_policy — 13 tests pass.
  • Coverage renders restore prefixes for both modes, retains compatible precedence, rejects foreign mode/configuration/runner/architecture, and executes the actual post-build size-guard shell at/below/above its limit.
  • git diff --check passes. No new workflow or C-test/public-header change. Existing obs-websocket dirt is excluded.

Live cold seeding and later compatible warm consumption after this change remain to verify; no duplicate full workflow has been dispatched for this PR. Required checks, C/C++ compiler caching, Rust safeguards, and the post-consumption save cap remain.

@zackees
zackees enabled auto-merge October 18, 2026 00:39
@zackees
zackees added this pull request to the merge queue Oct 18, 2026
Merged via the queue into master with commit e9092af Oct 18, 2026
22 checks passed
@zackees
zackees deleted the infra/1286-ubuntu-cache-compatibility 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