This is an automated email from the ASF dual-hosted git repository.
yhu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/master by this push:
new 8e0a449aad2 Use JDK 21 and Go 1.25 for Playground CI (#36700)
8e0a449aad2 is described below
commit 8e0a449aad285f95444b772a97b6333df608430f
Author: Vitaly Terentyev <[email protected]>
AuthorDate: Sun Nov 2 17:20:28 2025 +0400
Use JDK 21 and Go 1.25 for Playground CI (#36700)
---
.github/actions/setup-environment-action/action.yml | 2 +-
.github/workflows/beam_Playground_CI_Nightly.yml | 7 ++++---
.test-infra/mock-apis/go.mod | 4 ++--
playground/backend/containers/go/Dockerfile | 2 +-
playground/backend/containers/go/build.gradle | 2 +-
5 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/.github/actions/setup-environment-action/action.yml
b/.github/actions/setup-environment-action/action.yml
index cddcd4f5044..4962366bdab 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 8aae902ba88..b4336334190 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 42161f63e23..888266c3cf6 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 3d218faa334..4e5ca18f2e6 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 04e86eb53d3..ad236e10d50 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,