Skip to content

ci/cleanup_caches: prune setup-msys2 package caches - #18327

Merged
kasper93 merged 3 commits into
mpv-player:masterfrom
kasper93:prune-msys2
Jul 31, 2026
Merged

kasper93 merged 3 commits into
mpv-player:masterfrom
kasper93:prune-msys2

Conversation

@kasper93

Copy link
Copy Markdown
Member

No description provided.

kasper93 added 3 commits July 31, 2026 17:06
A cleanup is not tied to the build that triggered it, it always operates
on the whole cache state. Just cancel them and let the newest one
finish.
The nested jq invocations were hard to extend and left no trace of what
they decided. Delete by id rather than by key, since a key is only
unique per ref, and log each deletion.

No change in which caches are selected.
setup-msys2 saves the pacman package cache under a key ending in a hash
of its contents. So with each update it saves more caches, what's more
important it saves it per each PR ref. We don't want that. Keep only the
msys2 cache on main branch and only the latest one per each
configuration. If PR saves new one, it will be dropped, we prefer master
branch case that can be used by all PR, rather then per PR cache of
this. The few packages that will be refetched are ok.

This change is an atempt to keep our cache under 10GB limit, to avoid
evicting more important ccache caches.
@kasper93
kasper93 merged commit 55146ec into mpv-player:master Jul 31, 2026
31 of 33 checks passed
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