Repository navigation
Cache janitor: sweep every two hours, drop dead buildkit blobs on sight, keep one CodeQL overlay base - #10488
Merged
Merged
Conversation
…ht, keep one CodeQL overlay base
|
You have reached your Codex usage limits for security reviews. Please try again later. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Member
Author
|
Report-mode dispatch of this branch finished: run 34199388011. No dead-family hits because the 67 buildkit entries were removed by hand before the run; the six candidates are superseded generations, same as the local report. |
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.
Why
The repo sat at 48.4 GB of its 50 GB Actions cache allowance with 131 entries. An inventory (2026-09-08) showed where it went:
buildkit-blob-*andindex-studio-*from docker/build-pushtype=gha, all written by one run before Publish Docker on the daily schedule, and move layer cache off the Actions quota #10429 moved the image build to registry cache. Nothing reads them any more.codeql-overlay-base-database-*andcodeql-trap-*. CodeQL default setup writes a fresh overlay base on every push tomain; a PR analysis restores by prefix and only ever takes the newest one.hf-*model caches the test jobs actually need.The 98 dead entries were deleted by hand already; the repo is at 30 GiB now. This PR keeps it that way.
What changes
.github/workflows/cache-janitor.yml:17 */2 * * *(every two hours) instead of once a day.buildkit-blob-*,buildkit-index-*,index-*are deleted on sight. Backstop for any futuretype=ghacache in a docker workflow.codeql-overlay-base-database-*andcodeql-trap-*keep one generation per prefix (their suffixes-<sha>-<run>-<attempt>and-<sha>are stripped for grouping). Everything else keepsKEEP(default 2) as before.dead-family candidatesrow.CodeQL scanning itself is untouched. Stopping the overlay writes at the source is a repository property (
github-codeql-disable-overlay) that needs an org custom property schema, which the tokens here cannot create; noted separately.Verification
The step script was run locally in report mode against
unslothai/unslothwith the same token scopes the workflow gets:Zero dead-family hits because the 67 buildkit entries were already removed; the rule is exercised by the same case statement that matched them in the inventory. A
workflow_dispatch mode=reportrun of this branch (34199388011) is queued behind the org runner backlog and will show the same table.