Skip to content

Fix Oracle JDK 21 e2e and warn on archived GA fallback - #1327

Merged
brunoborges merged 1 commit into
mainfrom
brunoborges-fix-oracle-21-e2e
Nov 14, 2026
Merged

brunoborges merged 1 commit into
mainfrom
brunoborges-fix-oracle-21-e2e

Conversation

@brunoborges

Copy link
Copy Markdown
Contributor

Description:
The scheduled Validate Java e2e workflow has been failing since at least 2026-11-11 on the three oracle 21 jobs (for example, run 43559040712). Oracle no longer serves JDK 21 under https://download.oracle.com/java/21/latest/. That URL returns 404, and so does the JDK 17 one. The installer correctly falls back to /java/21/archive/jdk-21_..., which is the original 21 GA build, so the version output is 21. The e2e check requires a concrete version for floating Oracle requests, so verify-java.sh failed with "Expected a concrete version output for a floating JDK".

Changes:

  • e2e (e2e-versions.yml): Oracle JDK floating-version coverage now uses JDK 25, which is still served under /latest/ (confirmed 200 on Linux, macOS and Windows x64). A single oracle 21 job on ubuntu-latest remains to cover the archive fallback, and it skips the concrete-version requirement.
  • Oracle installer: When a major-only request gets a 404 from /latest/ and falls back to /archive/, the action now logs a warning. The message says the archived GA release may not include security updates. Before this, users asking for 21 silently got the unpatched 21 GA build.

This affects distribution: oracle (Oracle JDK) only, not oracle-openjdk.

Related issue:
N/A

Check list:

  • Ran npm run check locally (format, lint, build, test) and all checks pass. (45 suites, 1719 tests passed)
  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

Oracle no longer serves JDK 21 under /java/21/latest/, so a major-only
request falls back to the archived 21 GA build and reports version 21.
The e2e check required a concrete version for floating Oracle requests,
so the oracle 21 jobs failed.

Move floating Oracle e2e coverage to JDK 25 and keep a single oracle 21
job that exercises the archive fallback without the concrete-version
requirement. Warn when a major-only request falls back from /latest/ to
the archived GA release, since that build may lack security updates.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@brunoborges
brunoborges requested a review from a team as a code owner November 14, 2026 05:03
Copilot AI balanced review requested due to automatic review settings November 14, 2026 05:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block approval of the Oracle JDK coverage and archive-fallback warning changes.

No open issues 🎉

What changed in this PR

This PR updates Oracle JDK end-to-end coverage and warns users when a major-only request falls back to an archived GA release that may lack security updates. It affects oracle, not oracle-openjdk.

Changes:

  • Moves floating Oracle JDK coverage to version 25 across Linux, macOS, and Windows.
  • Retains an Ubuntu JDK 21 archive-fallback case without requiring a concrete version output.
  • Adds the fallback warning, a unit test, and the corresponding runtime bundle update.
File Description
src/​distributions/​oracle/​installer.ts Warns when the latest endpoint is unavailable and archive fallback succeeds.
dist/​setup/​182.index.js Includes the warning in the generated runtime bundle.
.github/​workflows/​e2e-versions.yml Updates Oracle version coverage and exempts JDK 21 from the concrete-version check.
__tests__/​distributors/​oracle-installer.test.ts Tests the warning after a latest-endpoint 404 and successful archive fallback.

Review effort: Balanced

@brunoborges
brunoborges merged commit 3c7a629 into main Nov 14, 2026
101 checks passed
@brunoborges
brunoborges deleted the brunoborges-fix-oracle-21-e2e branch November 14, 2026 05:10
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.

2 participants