From 57adf3ebe52e4736c615697fee5ac141d03e762e Mon Sep 17 00:00:00 2001 From: James Stocker Date: Wed, 3 Jun 2026 11:49:08 +0200 Subject: [PATCH] ci: bump Java 11 -> 17 and add build timeout (INFRA-923) 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) --- .github/workflows/ci.yml | 3 ++- .github/workflows/release-sonatype.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 56131a7..fd73c85 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,11 +10,12 @@ on: jobs: build: runs-on: ubuntu-latest + timeout-minutes: 30 steps: - uses: actions/checkout@v6 - uses: actions/setup-java@v4 with: - java-version: 11 + java-version: 17 distribution: "temurin" - uses: coursier/cache-action@v8 - name: Setup sbt launcher diff --git a/.github/workflows/release-sonatype.yml b/.github/workflows/release-sonatype.yml index 8ffc59d..768dfec 100644 --- a/.github/workflows/release-sonatype.yml +++ b/.github/workflows/release-sonatype.yml @@ -16,7 +16,7 @@ jobs: fetch-depth: 0 - uses: actions/setup-java@v4 with: - java-version: 11 + java-version: 17 distribution: "temurin" - uses: coursier/cache-action@v8 - id: test