Skip to content

ci: bump Java 11 -> 17 and add build timeout (INFRA-923)#42

Open
Rumbles wants to merge 1 commit into
masterfrom
INFRA-923/ci-java-17
Open

ci: bump Java 11 -> 17 and add build timeout (INFRA-923)#42
Rumbles wants to merge 1 commit into
masterfrom
INFRA-923/ci-java-17

Conversation

@Rumbles
Copy link
Copy Markdown
Contributor

@Rumbles Rumbles commented Jun 3, 2026

Summary

CI build jobs on recent PRs (#40, #41) ran for the full 360-minute default timeout and were cancelled.

Root cause: sbt test loads eclipse-collections (pulled in transitively via mapdb), which is compiled for Java 17 (class file v61.0). On the workflow's pinned Java 11 runtime this throws UnsupportedClassVersionError. The error surfaces on a cats-effect io-compute-blocker thread and never propagates to the sbt test runner, so the suite hangs indefinitely until GitHub kills it at 6h. It is unrelated to what #40/#41 changed — a latent dependency/runtime mismatch any PR now hits.

Changes

  • ci.yml & release-sonatype.yml: java-version 11 → 17
  • ci.yml: add timeout-minutes: 30 to the build job so a future hang fails fast instead of burning 6h of runner time

Verification

Ran sbt test locally on Java 17 (Corretto 17.0.4) — all green:

[info] Passed: Total 14, Failed 0, Errors 0, Passed 14
[success] Total time: 22 s

No UnsupportedClassVersionError; mapdb/eclipse-collections (heavy reflection/Unsafe users) load fine.

Tracked under INFRA-923.

🤖 Generated with Claude Code

The build hung for the full 360-min default timeout on PRs #40 and #41:
sbt test loaded eclipse-collections (transitively via mapdb), which is
compiled for Java 17 (class file v61). On the Java 11 runtime this threw
UnsupportedClassVersionError on a cats-effect io-compute-blocker thread,
which never propagated to the sbt test runner, so the suite hung until
GitHub cancelled it at 6h.

- ci.yml / release-sonatype.yml: java-version 11 -> 17
- ci.yml: add timeout-minutes: 30 so a future hang fails fast

Verified locally: sbt test passes on Java 17 (14/14).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Rumbles Rumbles requested a review from a team as a code owner June 3, 2026 09:49
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