Skip to content

Stop Release Drafter saving the Maven repository cache - #343

Merged
slachiewicz merged 1 commit into
v5from
agent/release-drafter-no-maven-cache
Oct 14, 2026
Merged

slachiewicz merged 1 commit into
v5from
agent/release-drafter-no-maven-cache

Conversation

@slachiewicz

@slachiewicz slachiewicz commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

Release Drafter's detect-version job runs help:evaluate with cache: 'maven', so on every default-branch push it saves a 2 MB local repository under setup-java-Linux-x64-maven-<pom hash>, the key Verify's Linux jobs use. It finishes first; the Linux jobs then restore the stub, report a primary-key hit and skip their own save, so they download their dependencies on every build until a POM changes.

Seen across the estate on 2026-10-14: seven of the nineteen default-branch Maven repository caches are 2 MB stubs, in maven, maven-archiver, maven-common-artifact-filters, maven-doxia-converter and maven-jar-plugin.

Verified: maven-doxia-converter run 38452597491 (Release Drafter) logs Cache saved with the key: setup-java-Linux-x64-maven-6eb7f48e… at 21:16; Verify job 115490280972 restores that key (Cache Size: ~2 MB) and logs Cache hit occurred on the primary key …, not saving cache.

The stubs already saved stay until their key changes or they are deleted.

Its detect-version job ran help:evaluate with cache: 'maven' and saved a 2 MB
repository under the same key as Verify's Linux jobs. Release Drafter finishes
first, so those jobs restored the stub and skipped their own save.
@slachiewicz slachiewicz added the bug Something isn't working label Oct 13, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review October 14, 2026 00:16
@slachiewicz
slachiewicz merged commit 18b80f8 into v5 Oct 14, 2026
10 checks passed
@slachiewicz
slachiewicz deleted the agent/release-drafter-no-maven-cache branch October 14, 2026 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant