Skip to content

CI: restore Maven cache from older keys when pom.xml changes - #421

Merged
adamw merged 3 commits into
mainfrom
ci-maven-cache-restore-keys
Dec 1, 2026
Merged

adamw merged 3 commits into
mainfrom
ci-maven-cache-restore-keys

Conversation

@adamw

@adamw adamw commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Dependency update PRs change pom.xml, so setup-java's Maven cache (exact key match only) never hits. Every job then downloads all dependencies from Maven Central, and sometimes fails with Failed to read artifact descriptor for ...central-publishing-maven-plugin.

This switches to actions/cache with restore-keys, so such PRs start from the latest main cache.

  • Separate cache keys for ci and fray-tests, since they download different artifacts.
  • Jox's own artifacts are excluded, as fray-tests installs them locally.
  • The year is part of the key, so the cache starts fresh each year instead of growing forever.
  • fray-tests jobs no longer cancel each other when one fails, so the ones that pass still save the cache.

@adamw
adamw merged commit 0935f01 into main Dec 1, 2026
8 checks passed
@adamw
adamw deleted the ci-maven-cache-restore-keys branch December 1, 2026 08:26
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