Skip to content

Save caches only from the default branch and .x lines - #454

Merged
slachiewicz merged 1 commit into
maven-3.10.xfrom
agent/cache-save-policy-310x
Oct 24, 2026
Merged

slachiewicz merged 1 commit into
maven-3.10.xfrom
agent/cache-save-policy-310x

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

The IT workflow saved its caches from every push, including Dependabot and topic branches, and since v6 setup-java also cached each of the six JDKs it installs on three operating systems: 39 entries on one Dependabot branch on 2026-10-24. Builds now save only from pushes to the default branch and .x lines, restore read-only elsewhere, and do not cache JDKs.

Every push saved the Maven cache and, through setup-java 6's default, each
installed JDK into its own branch scope, where no other build reads it.
@slachiewicz slachiewicz added the build Pull requests that change the build process label Oct 24, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review October 24, 2026 20:56
@slachiewicz
slachiewicz merged commit 1917dab into maven-3.10.x Oct 24, 2026
19 of 21 checks passed
@slachiewicz
slachiewicz deleted the agent/cache-save-policy-310x branch October 24, 2026 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Pull requests that change the build process

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant