Skip to content

Actions cache over 10 GB: no combined cache step may save on a pull request (scip-java, odbc, go, cargo, m2, images) #6675

Closed

Description

@squid-protocol

The Actions cache is over GitHub's 10 GB limit: 10.69 GB in 127 entries on 2026-10-25, oldest entry last accessed 10.6 h earlier. GitHub evicts least-recently-used entries past 10 GB, so caches saved by main (nightly, dispatch, push) survive about half a day. cache-prune.yml (#4847) trims to ~6 GB nightly; the run of 2026-10-25 planned 49 deletes (10.20 -> 5.96 GB), and PRs refilled it past the limit within ~12 h.

The leak is combined actions/cache steps in pull_request-triggered workflows: each saves under the PR's own ref, which no other PR can read. #4968 (java-compile) and #5024 (the corpora cache) already split their steps into restore + main-only save; 20 combined steps in 7 workflows were left:

Cache family Size now Entries Saved by PRs
scip-java (graph-accuracy-audit) 2.18 GB 7 7 (graph-accuracy never runs on main, so there is no main copy at all)
db2-odbc-cli (det-sweep, equivalence-e2e) 0.28 GB 11 9 (same key as main's: re-saved after main's copy was evicted)
setup-go (graph-accuracy-audit) 0.19 GB 7 7
cargo-registry (graph-accuracy-audit) 0.07 GB 7 7
m2, gnucobol-image, tree-sitter (cics-crucible, det-sweep, equivalence-e2e, ports-compile, smoke-test) small now whenever a PR changes the key input or main's copy was evicted

Change:

  • every combined actions/cache step in a pull_request-triggered workflow becomes actions/cache/restore + an actions/cache/save at the end of the job that runs only off pull requests and only on a miss (continue-on-error, as Siblings of #4968: per-PR cache saves (mainframe-corpora key) #5024);
  • setup-go's built-in cache is off on pull requests (26 MB of modules);
  • graph-accuracy-audit.yml gains a nightly schedule and workflow_dispatch, so main keeps one shared scip-java / cargo / go copy (and the graph gates get a main-side signal);
  • test_cache_keys.py fails on any combined cache step in a pull_request workflow, and on a save that can run on a PR.

Not touched: the pip caches of smoke-test.yml / mainframe-ground-truth.yml (owner-protected, #4935).

Activity

  1. added a commit that references this issue on Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions