Skip to content

ci: preserve bounded CodeQL overlay cache reuse - #1316

Merged
zackees merged 2 commits into
masterfrom
ci/1286-codeql-cache-retention
Oct 17, 2026
Merged

zackees merged 2 commits into
masterfrom
ci/1286-codeql-cache-retention

Conversation

@zackees

@zackees zackees commented Oct 17, 2026

Copy link
Copy Markdown
Member

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.

@zackees
zackees force-pushed the ci/1286-codeql-cache-retention branch from f935273 to 0c2eec2 Compare October 17, 2026 18:44
@zackees
zackees added this pull request to the merge queue Oct 17, 2026
Merged via the queue into master with commit a4c1b91 Oct 17, 2026
29 checks passed
@zackees
zackees deleted the ci/1286-codeql-cache-retention branch October 26, 2026 15:42
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