Skip to content

chore(ci): add the Actions cache cleaner the audit already points to - #361

Merged
DrunkOnJava merged 1 commit into
mainfrom
chore/clean-caches
Oct 27, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
chore/clean-caches

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

Since #198, tools/maintainer/audit.py has told a maintainer to "run tools/maintainer/clean_caches.py (--delete to act)" when the Actions cache passes 90% of its 10 GB limit, but the script never existed. On 2026-10-26 the cache stood at 9.95 GB (134 caches): close enough to the limit that GitHub's eviction could drop main's own caches. This adds the script.

It removes two kinds of cache, both safe to drop because every one is regenerable:

  • the caches of a pull request that is closed or merged, since a merge ref nobody builds again is never restored;
  • on every other ref, every cache but the most recently used one per key family, where the family is the key without its trailing hash parts.

Without --delete it only prints what it would remove and the space freed.

Spec reference

None; repository tooling (#198's audit).

Test plan

  • Dry run on the live repository: 134 caches, 9.95 GB; would delete 68 (52 for closed PRs, 16 superseded on main), 5.46 GB, leaving 4.48 GB.
  • --delete on the live repository. The audit's Actions-cache check is re-run after it.

Source-provenance declaration

Written for this repository; no external source consulted.

tools/maintainer/audit.py has told maintainers to run
tools/maintainer/clean_caches.py when the Actions cache passes 90% of its
10 GB limit since #198, but the script never existed. It lists, and with
--delete removes, the caches of closed pull requests and every cache but the
most recently used one per key family on each other ref.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T02:54:00.206702Z cdafbf6 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 27, 2026 02:52
@DrunkOnJava
DrunkOnJava merged commit 5e45219 into main Oct 27, 2026
25 checks passed
@DrunkOnJava
DrunkOnJava deleted the chore/clean-caches branch October 27, 2026 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant