Commit 2b025d5
authored
Fix Julia cache flood in CI workflows (#14410)
* Bump julia-actions/cache to v3
v2 is a composite action whose post-save and delete-old-caches steps
don't run reliably, letting per-run julia caches (~250 MB each)
accumulate on refs/heads/main until the repository hits its 10 GB
cache cap. v3 is a JavaScript rewrite with a proper post hook. It also
uses Node.js 24 directly, dropping the latent Node 20 exposure from
v2's transitive actions/cache dependency.
* Fix cleanup-caches workflow for fork PRs
pull_request events from forks ship a read-only GITHUB_TOKEN regardless
of the permissions: block, so gh cache delete fails with HTTP 403 and
the fork PR's ~1-2 GB of caches leak into the repo's 10 GB cache budget.
Observed on PR #14374 (8/8 deletes returned 403, run succeeded because
set +e swallowed the failures).
pull_request_target runs in the base-branch context with full write
permissions. Safe for this workflow: no PR code is checked out, the
steps only call gh cache list/delete.1 parent 266a416 commit 2b025d5
2 files changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
4 | 8 | | |
5 | 9 | | |
6 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
| 226 | + | |
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| |||
0 commit comments