Skip to content

ci: let only the backend job save the maven cache - #166

Merged
kymanirjarrett merged 1 commit into
mainfrom
ci/165-maven-cache
Nov 30, 2026
Merged

kymanirjarrett merged 1 commit into
mainfrom
ci/165-maven-cache

Conversation

@kymanirjarrett

Copy link
Copy Markdown
Owner

Closes #165

The backend job on main failed with 429 Too Many Requests from Maven Central while downloading surefire-junit-platform.

Root cause: backend and e2e share one setup-java Maven cache key. e2e builds with -DskipTests and saved the key first (run 46340298040: e2e "Cache saved", backend "Unable to reserve cache"). The cache therefore lacks the test-runner plugins, and backend downloaded them from Central on every run until Central rate-limited the runner.

Fix: cache-read-only: true on e2e, so only backend (which resolves everything, tests included) saves the cache. The incomplete cache entries for the current key are deleted, so the next backend run on main saves a complete one.

@kymanirjarrett
kymanirjarrett merged commit 5494ccb into main Nov 30, 2026
6 checks passed
@kymanirjarrett
kymanirjarrett deleted the ci/165-maven-cache branch November 30, 2026 21:30
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.

Backend CI downloads test plugins every run because e2e saves the Maven cache first

1 participant