Skip to content

ci: install GA Oracle JDK with actions/setup-java, not oracle-actions - #6851

Merged
vlsi merged 1 commit into
apache:masterfrom
vlsi:ci-oracle-setup-java
Nov 5, 2026
Merged

vlsi merged 1 commit into
apache:masterfrom
vlsi:ci-oracle-setup-java

Conversation

@vlsi

@vlsi vlsi commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator

oracle-actions/setup-java downloads a GA release only from https://download.oracle.com/java/<N>/latest/, and Oracle removes a release from there once its free (NFTC) updates end. Jobs that picked Oracle with Java 17 or 21 then failed in "Set up Java" with a checksum error, and f410a04 (#6848) worked around it by limiting Oracle jobs to Java 25 and later. Java 25 will hit the same failure when its free updates end.

The actions/setup-java step with distribution: oracle that runs next already installs Oracle JDK for these jobs, Java 21 for Gradle included: it tries /latest/ and falls back to /archive/jdk-<N>_.... oracle-actions/setup-java now runs only for the EA build from jdk.java.net, and the Oracle version limit in matrix.mjs becomes >= 17, which no longer needs an edit when Oracle drops a release. The cost is that a release past its free updates is tested with its first GA build (21.0.0), not its last update.

The matrix picks Oracle rows at random, so this PR's CI may not run an Oracle job. I checked by HEAD requests that /archive/jdk-<N>_linux-x64_bin.tar.gz and _windows-x64_bin.zip return 200 for 17, 21, and 25 (macOS is already excluded for Oracle). The same change in pgjdbc: pgjdbc/pgjdbc#4520.

🤖 Generated with Claude Code

oracle-actions/setup-java downloads a GA release only from
https://download.oracle.com/java/<N>/latest/. Oracle removes a release
from /latest/ once its free (NFTC) updates end, and the job then fails
in "Set up Java" with a checksum error before the build starts. That
happened to JDK 17 and 21, and f410a04 responded by limiting Oracle
jobs to Java 25 and later; the next removal would need the same edit.

The actions/setup-java step that runs next already installs Oracle JDK
for these jobs (Java 21 for Gradle included): it tries /latest/ and
falls back to /archive/jdk-<N>_..., which Oracle keeps. Run
oracle-actions/setup-java only for the EA build from jdk.java.net, and
allow Oracle jobs for Java 17 and later again.

A release whose free updates have ended is tested with its first GA
build from the archive, such as 21.0.0, not with its last update.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vlsi
vlsi merged commit ba2e9ba into apache:master Nov 5, 2026
6 of 7 checks passed
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