Skip to content

Hold java on Adoptium mainline LTS via a renovate rule that actually matches - #78

Merged
dfalling merged 1 commit into
mainfrom
evaluate-pull-75-java
Aug 21, 2026
Merged

Hold java on Adoptium mainline LTS via a renovate rule that actually matches#78
dfalling merged 1 commit into
mainfrom
evaluate-pull-75-java

Conversation

@dfalling

Copy link
Copy Markdown
Owner

Why #75 fails

PR #75 (java25.0.4+101.0.LTS) is Adoptium's interim respin jdk-25.0.4.1+1, built for alpine-linux/x64 and mac/x64 only. mise resolves java per platform, so on linux/x64 there is no metadata at all and mise install hard-fails before any build step — both CI jobs die nine seconds in:

mise ERROR Failed to install core:java@temurin-25.0.4+101.0.LTS: no metadata found for version temurin-25.0.4+101.0.LTS

mise ls-remote java confirms temurin-25.0.4+7.0.LTS is still the newest 25.x build available here.

Why the existing rule didn't stop it

#76 added a rule for exactly this, but it never fired. The mise manager reports this dep as depName java, packageName java-jdk, and matchPackageNames tests the packageName — so matchPackageNames: ["java"] silently matched nothing. Confirmed by running Renovate 43.288.0 (the version CI uses) locally at debug level: with main's config it still resolves newValue: 25.0.4+101.0.LTS. That also explains why yesterday's Renovate run left #75 open instead of pruning it. matchDepNames is what binds the rule to the dep.

Why LTS-only

With the rule live, the respin is filtered and the next candidate becomes the non-LTS major 26.0.2+10 — masked until now, and not something the Android build JDK should drift onto. One allowedVersions regex covers both cases by admitting only mainline LTS builds:

version verdict
25.0.4+7.0.LTS allowed — mainline LTS
25.0.4+101.0.LTS blocked — respin (patch * 100 + build lands at +1xx)
26.0.2+10 blocked — non-LTS major

Verification

RENOVATE_PLATFORM=local runs against the live Adoptium version list:

  • at the current pin (25.0.4+7.0.LTS) → 0 flattened updates found
  • from an older pin (25.0.1+8.0.LTS) → offers 25.0.4+7.0.LTS, so mainline LTS patches still come through
  • gradle-wrapper checked for the same pitfall — its depName and packageName are both gradle, so the <9.7 ceiling is fine

bunx tsc --noEmit, bun run lint, bun run test -- --ci (51 tests) all pass.

Once this lands, Renovate should autoclose #75 on its next run; it can also be closed by hand.

🤖 Generated with Claude Code

The rule added in #76 to keep java off Adoptium's respins never fired:
the mise manager reports this dep as depName `java` but packageName
`java-jdk`, and matchPackageNames tests the packageName, so the rule was
inert and Renovate kept offering 25.0.4+101.0.LTS (PR #75, which fails
`mise install` on linux/x64 nine seconds into both CI jobs). Matching on
matchDepNames is what binds the rule to the dep.

With the rule live, the respin is filtered and the next candidate is the
non-LTS major 26.0.2+10 — not something the Android build JDK should
drift onto. A single allowedVersions regex covers both cases by admitting
only mainline LTS builds: three-part version, 1-2 digit build (respins
encode as `patch * 100 + build`, landing at +1xx), `.0.LTS` suffix.

Verified against the live Adoptium version list with
`RENOVATE_PLATFORM=local renovate`: at the current pin no update is
offered, and from an older pin (25.0.1+8.0.LTS) the mainline
25.0.4+7.0.LTS patch still comes through.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@dfalling
dfalling enabled auto-merge (squash) August 21, 2026 15:10
@dfalling
dfalling merged commit f7ed7cd into main Aug 21, 2026
2 checks passed
@dfalling
dfalling deleted the evaluate-pull-75-java branch August 21, 2026 15:15
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