Commit 3a99217
committed
Coverage CI: gate OPAM cache save to master pushes (codex P2)
actions/cache/save@v5 on cache miss runs on every event including
pull_request, which creates PR-scoped cache entries tied to
refs/pull/<n>/merge. Those entries aren't restorable by master or
other PRs, so they consume storage and can evict the shared
master-saved entry, reducing hit rate.
Restrict the save to push events on refs/heads/master, matching the
pattern already used for the coverage-build-state cache. PRs still
benefit from full restore via the latest master cache; they just
don't write new entries.
Flagged by Codex review on #8434.1 parent 84b1662 commit 3a99217
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
121 | 125 | | |
122 | | - | |
| 126 | + | |
123 | 127 | | |
124 | 128 | | |
125 | 129 | | |
| |||
0 commit comments