Skip to content

ci: skip redundant Ubuntu snapshot saves after exact cache hits - #1381

Merged
zackees merged 2 commits into
masterfrom
infra/1286-ubuntu-exact-hit-save
Oct 18, 2026
Merged

zackees merged 2 commits into
masterfrom
infra/1286-ubuntu-exact-hit-save

Conversation

@zackees

@zackees zackees commented Oct 18, 2026

Copy link
Copy Markdown
Member

Summary

Refs #1286.

Actual same-revision Ubuntu ON consumer job 117564891385 restored the exact compiler-cache key, then spent about 11 seconds compressing the 5,491 MiB raw store before reservation of that immutable existing key failed. Add a restore-step ID and skip the save action on exact hits.

Compatible fallback restores and misses still save a new current key when the existing branch/event/size guards permit it. Restores, builds, tests, writer policy and the 8,192 MiB size cap are preserved. No new workflow file.

RED → GREEN

  • RED c14e209d1: new workflow regression fails because the restore has no ID and the save has no exact-hit guard.
  • GREEN: uv run -m unittest ci.test_ubuntu_cache_preserve ci.test_ci_toml ci.test_ci_tests_stdlib_only passes all 12 tests. Covers matching restore/save keys, required save guards, compatible fallback isolation, real size-guard shell behavior, declared cache families and standalone test compatibility.
  • git diff --check passes.

Configuration-only bug fix: local RED and separate GREEN commits pushed together under coordination policy. The observed 11 seconds is one actual avoided-work opportunity, not an end-to-end queue speedup claim. The consumer workflow is still active; this patch is not described as already runtime-verified.

@zackees
zackees enabled auto-merge October 18, 2026 02:34
@zackees
zackees added this pull request to the merge queue Oct 18, 2026
Merged via the queue into master with commit 348de9a Oct 18, 2026
22 checks passed
@zackees
zackees deleted the infra/1286-ubuntu-exact-hit-save 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