From 236ebfae393aa34fdde35379fd0e7ba09ddc236a Mon Sep 17 00:00:00 2001 From: Jesper Terkelsen Date: Wed, 18 Feb 2026 20:54:00 +0100 Subject: [PATCH] fix: add Docker Engine 29 workaround for Testcontainers GitHub recently upgraded runners to Docker Engine 29.1 which requires API version 1.44+. Testcontainers 1.x defaults to API version 1.32, causing DockerClientProviderStrategy IllegalStateException on all test runs that use Testcontainers. Add docker-java.properties workaround to all shared workflows that run Gradle tests: sonar-cloud, code-coverage-kotlin, component-test-kotlin. Ref: https://github.com/testcontainers/testcontainers-java/issues/11491 Co-Authored-By: Claude Opus 4.6 --- .github/workflows/code-coverage-kotlin.yml | 2 ++ .github/workflows/component-test-kotlin.yml | 2 ++ .github/workflows/sonar-cloud.yml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/.github/workflows/code-coverage-kotlin.yml b/.github/workflows/code-coverage-kotlin.yml index 0b610b3..ed7d835 100644 --- a/.github/workflows/code-coverage-kotlin.yml +++ b/.github/workflows/code-coverage-kotlin.yml @@ -112,6 +112,8 @@ jobs: java-version: ${{ inputs.java-version }} distribution: "corretto" cache: "gradle" + - name: Configure Docker API version for Testcontainers + run: echo 'api.version=1.44' > ~/.docker-java.properties - name: Run tests with Kover env: GHL_USERNAME: ${{ secrets.GHL_USERNAME }} diff --git a/.github/workflows/component-test-kotlin.yml b/.github/workflows/component-test-kotlin.yml index 4db3408..73811f4 100644 --- a/.github/workflows/component-test-kotlin.yml +++ b/.github/workflows/component-test-kotlin.yml @@ -79,6 +79,8 @@ jobs: distribution: "corretto" java-version: ${{ inputs.java-version }} cache: 'gradle' + - name: Configure Docker API version for Testcontainers + run: echo 'api.version=1.44' > ~/.docker-java.properties - name: Test project env: GHL_USERNAME: ${{ secrets.GHL_USERNAME }} diff --git a/.github/workflows/sonar-cloud.yml b/.github/workflows/sonar-cloud.yml index 216f1fd..e10a19f 100644 --- a/.github/workflows/sonar-cloud.yml +++ b/.github/workflows/sonar-cloud.yml @@ -70,6 +70,8 @@ jobs: path: ~/.sonar/cache key: ${{ runner.os }}-sonar restore-keys: ${{ runner.os }}-sonar + - name: Configure Docker API version for Testcontainers + run: echo 'api.version=1.44' > ~/.docker-java.properties - name: Build and analyze env: GHL_USERNAME: ${{ secrets.GHL_USERNAME }}