Skip to content

Commit 8e0a449

Browse files
authored
Use JDK 21 and Go 1.25 for Playground CI (#36700)
1 parent 735864d commit 8e0a449

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

.github/actions/setup-environment-action/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ runs:
8181
cache-disabled: ${{ inputs.disable-cache }}
8282
- name: Install Go
8383
if: ${{ inputs.go-version != '' }}
84-
uses: actions/setup-go@v5
84+
uses: actions/setup-go@v6
8585
with:
8686
go-version: ${{ inputs.go-version == 'default' && '1.25' || inputs.go-version }} # never set patch, to get latest patch releases.
8787
cache-dependency-path: $${{ inputs.disable-cache && '' || 'sdks/go.sum' }}

.github/workflows/beam_Playground_CI_Nightly.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
runs-on: [self-hosted, ubuntu-20.04, highmem]
5858
name: "beam_Playground_CI_Nightly"
5959
strategy:
60-
matrix:
60+
matrix:
6161
sdk: ["python", "java", "go"]
6262
fail-fast: false
6363
steps:
@@ -66,6 +66,7 @@ jobs:
6666
uses: ./.github/actions/setup-environment-action
6767
with:
6868
python-version: default
69+
go-version: '1.25'
6970
- name: Install requirements
7071
run: |
7172
cd $BEAM_ROOT_DIR/playground/infrastructure
@@ -88,11 +89,11 @@ jobs:
8889
CONTAINER_ID=$(docker run -d -e PROTOCOL_TYPE=TCP apache/beam_playground-backend-${{ matrix.sdk }}:nightly)
8990
echo "container_id=$CONTAINER_ID" >> $GITHUB_ENV
9091
- name: Get Container IP
91-
run: |
92+
run: |
9293
CONTAINER_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ${{ env.container_id }})
9394
echo "container_ip=$CONTAINER_IP" >> $GITHUB_ENV
9495
- name: Run CI
95-
env:
96+
env:
9697
SERVER_ADDRESS: ${{ env.container_ip }}:8080
9798
BEAM_EXAMPLE_CATEGORIES: ${{ env.BEAM_ROOT_DIR }}/playground/categories.yaml
9899
SDK: ${{ matrix.sdk }}

.test-infra/mock-apis/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
// directory.
2121
module github.com/apache/beam/test-infra/mock-apis
2222

23-
go 1.23.0
23+
go 1.25.0
2424

25-
toolchain go1.24.4
25+
toolchain go1.25.2
2626

2727
require (
2828
cloud.google.com/go/logging v1.8.1

playground/backend/containers/go/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ COPY kafka-emulator/kafka-emulator.tar /opt/playground/backend/kafka-emulator/
6969
RUN cd /opt/playground/backend/kafka-emulator/ && tar -xvf kafka-emulator.tar && rm kafka-emulator.tar &&\
7070
mv kafka-emulator/*.jar . && rmdir kafka-emulator/ &&\
7171
mv beam-playground-kafka-emulator-*.jar beam-playground-kafka-emulator.jar
72-
RUN apt-get update && apt-get install -y openjdk-11-jre-headless
72+
RUN apt-get update && apt-get install -y openjdk-21-jre-headless
7373

7474
# Create a user group `appgroup` and a user `appuser`
7575
RUN groupadd --gid 20000 appgroup \

playground/backend/containers/go/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ docker {
8888
buildArgs(
8989
['BASE_IMAGE' : project.rootProject.hasProperty(["base-image"]) ?
9090
project.rootProject["base-image"] :
91-
"golang:1-bullseye",
91+
"golang:1.25",
9292
'SDK_TAG' : project.rootProject.hasProperty(["sdk-tag"]) ?
9393
project.rootProject["sdk-tag"] : project.rootProject.sdk_version,
9494
'SDK_TAG_LOCAL': project.rootProject.sdk_version,

0 commit comments

Comments
 (0)