diff --git a/.github/actions/setup-environment-action/action.yml b/.github/actions/setup-environment-action/action.yml index cddcd4f50443..4962366bdabc 100644 --- a/.github/actions/setup-environment-action/action.yml +++ b/.github/actions/setup-environment-action/action.yml @@ -81,7 +81,7 @@ runs: cache-disabled: ${{ inputs.disable-cache }} - name: Install Go if: ${{ inputs.go-version != '' }} - uses: actions/setup-go@v5 + uses: actions/setup-go@v6 with: go-version: ${{ inputs.go-version == 'default' && '1.25' || inputs.go-version }} # never set patch, to get latest patch releases. cache-dependency-path: $${{ inputs.disable-cache && '' || 'sdks/go.sum' }} diff --git a/.github/workflows/beam_Playground_CI_Nightly.yml b/.github/workflows/beam_Playground_CI_Nightly.yml index 8aae902ba881..b4336334190b 100644 --- a/.github/workflows/beam_Playground_CI_Nightly.yml +++ b/.github/workflows/beam_Playground_CI_Nightly.yml @@ -57,7 +57,7 @@ jobs: runs-on: [self-hosted, ubuntu-20.04, highmem] name: "beam_Playground_CI_Nightly" strategy: - matrix: + matrix: sdk: ["python", "java", "go"] fail-fast: false steps: @@ -66,6 +66,7 @@ jobs: uses: ./.github/actions/setup-environment-action with: python-version: default + go-version: '1.25' - name: Install requirements run: | cd $BEAM_ROOT_DIR/playground/infrastructure @@ -88,11 +89,11 @@ jobs: CONTAINER_ID=$(docker run -d -e PROTOCOL_TYPE=TCP apache/beam_playground-backend-${{ matrix.sdk }}:nightly) echo "container_id=$CONTAINER_ID" >> $GITHUB_ENV - name: Get Container IP - run: | + run: | CONTAINER_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ${{ env.container_id }}) echo "container_ip=$CONTAINER_IP" >> $GITHUB_ENV - name: Run CI - env: + env: SERVER_ADDRESS: ${{ env.container_ip }}:8080 BEAM_EXAMPLE_CATEGORIES: ${{ env.BEAM_ROOT_DIR }}/playground/categories.yaml SDK: ${{ matrix.sdk }} diff --git a/.test-infra/mock-apis/go.mod b/.test-infra/mock-apis/go.mod index 42161f63e239..888266c3cf61 100644 --- a/.test-infra/mock-apis/go.mod +++ b/.test-infra/mock-apis/go.mod @@ -20,9 +20,9 @@ // directory. module github.com/apache/beam/test-infra/mock-apis -go 1.23.0 +go 1.25.0 -toolchain go1.24.4 +toolchain go1.25.2 require ( cloud.google.com/go/logging v1.8.1 diff --git a/playground/backend/containers/go/Dockerfile b/playground/backend/containers/go/Dockerfile index 3d218faa334f..4e5ca18f2e6e 100644 --- a/playground/backend/containers/go/Dockerfile +++ b/playground/backend/containers/go/Dockerfile @@ -69,7 +69,7 @@ COPY kafka-emulator/kafka-emulator.tar /opt/playground/backend/kafka-emulator/ RUN cd /opt/playground/backend/kafka-emulator/ && tar -xvf kafka-emulator.tar && rm kafka-emulator.tar &&\ mv kafka-emulator/*.jar . && rmdir kafka-emulator/ &&\ mv beam-playground-kafka-emulator-*.jar beam-playground-kafka-emulator.jar -RUN apt-get update && apt-get install -y openjdk-11-jre-headless +RUN apt-get update && apt-get install -y openjdk-21-jre-headless # Create a user group `appgroup` and a user `appuser` RUN groupadd --gid 20000 appgroup \ diff --git a/playground/backend/containers/go/build.gradle b/playground/backend/containers/go/build.gradle index 04e86eb53d3f..ad236e10d50f 100644 --- a/playground/backend/containers/go/build.gradle +++ b/playground/backend/containers/go/build.gradle @@ -88,7 +88,7 @@ docker { buildArgs( ['BASE_IMAGE' : project.rootProject.hasProperty(["base-image"]) ? project.rootProject["base-image"] : - "golang:1-bullseye", + "golang:1.25", 'SDK_TAG' : project.rootProject.hasProperty(["sdk-tag"]) ? project.rootProject["sdk-tag"] : project.rootProject.sdk_version, 'SDK_TAG_LOCAL': project.rootProject.sdk_version,