Repository navigation
ci: preserve bounded CodeQL overlay cache reuse - #1316
Merged
Merged
Conversation
zackees
force-pushed
the
ci/1286-codeql-cache-retention
branch
from
October 17, 2026 18:44
f935273 to
0c2eec2
Compare
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.
Refs #1286.
Evidence and policy
Default CodeQL setup writes overlay databases outside repository workflow files. PR run 39057119695 job 117467259478 successfully restored a master C++ base in ~3.7 s. The live cache API showed a 131,294,279-byte C++ base and Python bases around 11 MB, but no declared family matched their keys. The janitor therefore removes observed useful reuse as unknown after its grace window.
Declare the exact overlay-key prefix with a 200 MB LRU allowance. This accommodates the observed active C++/Python bases while bounding old generations. It does not add an action, workflow, cache writer, or required dependency. Repository snapshot occupancy was 4,389,323,635 bytes across 43 entries, beneath the 10 GB budget. Analysis-time savings versus cold remain unmeasured; do not infer them from a cache HIT.
Validation
RED 42e6065: captured live keys match zero families. GREEN f935273: both keys match one bounded LRU family; three focused retention/stdlib tests pass, and git diff --check passes. The pinned janitor source confirms explicit prefixes are recognized and LRU retains entries up to the declared footprint. Live janitor retention and subsequent restore remain to verify.