ci: bump Java 11 -> 17 and add build timeout (INFRA-923)#42
Open
Rumbles wants to merge 1 commit into
Open
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CI
buildjobs on recent PRs (#40, #41) ran for the full 360-minute default timeout and were cancelled.Root cause:
sbt testloadseclipse-collections(pulled in transitively viamapdb), which is compiled for Java 17 (class file v61.0). On the workflow's pinned Java 11 runtime this throwsUnsupportedClassVersionError. The error surfaces on a cats-effectio-compute-blockerthread 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-version11 → 17ci.yml: addtimeout-minutes: 30to the build job so a future hang fails fast instead of burning 6h of runner timeVerification
Ran
sbt testlocally on Java 17 (Corretto 17.0.4) — all green:No
UnsupportedClassVersionError; mapdb/eclipse-collections (heavy reflection/Unsafe users) load fine.Tracked under INFRA-923.
🤖 Generated with Claude Code