Repository navigation
ci: skip redundant Ubuntu snapshot saves after exact cache hits - #1381
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
c14e209d1: new workflow regression fails because the restore has no ID and the save has no exact-hit guard.uv run -m unittest ci.test_ubuntu_cache_preserve ci.test_ci_toml ci.test_ci_tests_stdlib_onlypasses 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 --checkpasses.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.