Skip to content

MINOR: Stabilize Maven cache key#11

Draft
xborder wants to merge 1 commit into
mainfrom
ci-stabilize-maven-cache-key
Draft

MINOR: Stabilize Maven cache key#11
xborder wants to merge 1 commit into
mainfrom
ci-stabilize-maven-cache-key

Conversation

@xborder

@xborder xborder commented Jun 13, 2026

Copy link
Copy Markdown
Owner

This removes **/*.java from the Docker volume cache key used by the Linux test matrix.

The cached Docker volume contains Maven dependencies and plugins under ~/.m2, which change when pom.xml files or the compose setup changes, not when Java source files change. Keeping Java sources in the key makes Java-only PRs miss the primary cache and then upload a fresh large cache.

The key now hashes only compose.yaml and **/pom.xml, while keeping the same restore prefix. Dependency changes still produce a new cache key, but Java-only PRs can reuse the existing Maven dependency cache.

Validation: the Test workflow passed. Compared with control PR #7, this first run is mostly a cache-seeding run, so Linux timings are similar. The cache logs show the new stable JDK/Maven key was saved once, and parallel jobs using the same key skipped saving because another job had already created it.

@xborder xborder added the chore label Jun 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant