Skip to content

ci: pin ORT to 88.0.0 on JDK 21 (fix ORT Compliance) - #22

Merged
kbennett2000 merged 2 commits into
mainfrom
fix/ort-jdk25
Jun 22, 2026
Merged

ci: pin ORT to 88.0.0 on JDK 21 (fix ORT Compliance)#22
kbennett2000 merged 2 commits into
mainfrom
fix/ort-jdk25

Conversation

@kbennett2000

@kbennett2000 kbennett2000 commented Jun 22, 2026

Copy link
Copy Markdown
Owner

Problem

ort-analyze-report in ORT Compliance fails on every PR (and would on main). The job downloaded ORT's floating releases/latest, and ORT moved out from under JDK 21:

  1. ORT 89.0.0+ raised its launch baseline to Java 25UnsupportedClassVersionError (class file 69.0) under the pinned JDK 21.
  2. Bumping the runner to JDK 25 lets ORT launch, but then its bundled Gradle Inspector (Gradle 8.13) can't parse Java 25 bytecode while resolving app/build.gradleUnsupported class file major version 69. Chasing the JDK baseline just moves the break downstream.

This is repo-wide CI drift from the floating latest, not from any app change. It surfaced on #21 (a docs-only PR).

Fix

Pin ORT to 88.0.0 — the last release that both launches and resolves the Gradle project on JDK 21 (the exact combo that was green on main on 2026-06-10, when latest happened to be 88.0.0). Keep setup-java at 21. Swapping the floating releases/latest for a tagged releases/tags/88.0.0 download also makes the toolchain reproducible. A comment documents when to revisit (once ORT's Gradle Inspector supports Java 25).

Scope: only the prebuilt ORT CLI download + its JRE — the app's own Gradle build is untouched and stays on JDK 21 per CLAUDE.md.

Verify

This PR exercises the changed workflow; its own ORT Compliance check is the test.

🤖 Generated with Claude Code

kbennett2000 and others added 2 commits June 22, 2026 13:34
The "Install ORT" step downloads ORT's floating releases/latest. ORT's
current release targets Java 25 (class file 69.0), but the job pinned
setup-java to JDK 21 (class file 65.0), so `ort` failed at launch with
UnsupportedClassVersionError on every PR. Bump the runtime JDK to 25 to
match. Comment added so the coupling to ORT's floating latest is explicit.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Amends the JDK-25 approach. ORT 89.0.0+ raised its launch baseline to
Java 25, but even under JDK 25 its bundled Gradle Inspector (Gradle 8.13)
cannot parse Java 25 bytecode ("Unsupported class file major version 69"),
so bumping the runner JDK only moves the failure downstream. Instead pin
ORT to 88.0.0 — the last release that both launches and resolves the
Gradle project on JDK 21 (the combo that was green on main on 2026-06-10)
— and keep setup-java at 21. Replaces the floating releases/latest with a
tagged download so the toolchain is reproducible.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@kbennett2000 kbennett2000 changed the title ci: bump ORT Compliance JDK to 25 (fix UnsupportedClassVersionError) ci: pin ORT to 88.0.0 on JDK 21 (fix ORT Compliance) Jun 22, 2026
@kbennett2000
kbennett2000 merged commit cd273f6 into main Jun 22, 2026
2 of 3 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