Skip to content

Commit 8e4558d

Browse files
committed
Upgrade contract tests to utilize Java version 21.
1 parent bf4f265 commit 8e4558d

File tree

19 files changed

+33
-21
lines changed

19 files changed

+33
-21
lines changed

.github/workflows/main-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ jobs:
194194
fetch-depth: 0
195195
- uses: actions/setup-java@v4
196196
with:
197-
java-version: 17
197+
java-version: 21
198198
distribution: 'temurin'
199199
- uses: gradle/wrapper-validation-action@v1
200200

@@ -219,7 +219,7 @@ jobs:
219219
key: ${{ runner.os }}-maven-local-${{ hashFiles('.github/patches/opentelemetry-java*.patch') }}
220220

221221
- name: Pull base image of Contract Tests Sample Apps
222-
run: docker pull public.ecr.aws/docker/library/amazoncorretto:17-alpine
222+
run: docker pull public.ecr.aws/docker/library/amazoncorretto:21-alpine
223223

224224
- name: Build snapshot with Gradle
225225
uses: gradle/gradle-build-action@v3

.github/workflows/nightly-upstream-snapshot-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ jobs:
120120
fetch-depth: 0
121121
- uses: actions/setup-java@v4
122122
with:
123-
java-version: 17
123+
java-version: 21
124124
distribution: 'temurin'
125125
- uses: gradle/wrapper-validation-action@v1
126126

@@ -136,7 +136,7 @@ jobs:
136136
registry: public.ecr.aws
137137

138138
- name: Pull base image of Contract Tests Sample Apps
139-
run: docker pull public.ecr.aws/docker/library/amazoncorretto:17-alpine
139+
run: docker pull public.ecr.aws/docker/library/amazoncorretto:21-alpine
140140

141141
- name: Build snapshot with Gradle
142142
uses: gradle/gradle-build-action@v3

.github/workflows/pr-build.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,28 @@ jobs:
8181
with:
8282
arguments: build integrationTests --stacktrace -PenableCoverage=true -PlocalDocker=true
8383

84+
- name: Set up Java version for tests
85+
uses: actions/setup-java@v4
86+
with:
87+
java-version: 21
88+
distribution: temurin
89+
8490
- name: Pull base image of Contract Tests Sample Apps
8591
if: ${{ matrix.os == 'ubuntu-latest' }}
86-
run: docker pull public.ecr.aws/docker/library/amazoncorretto:17-alpine
92+
run: docker pull public.ecr.aws/docker/library/amazoncorretto:21-alpine
8793

8894
- name: Run contract tests
8995
uses: gradle/gradle-build-action@v3
9096
if: ${{ matrix.os == 'ubuntu-latest' }}
9197
with:
9298
arguments: contractTests -PlocalDocker=true -i
9399

100+
- name: Set up Java version for image build
101+
uses: actions/setup-java@v4
102+
with:
103+
java-version: 17
104+
distribution: temurin
105+
94106
- name: Get current version
95107
if: ${{ matrix.os == 'ubuntu-latest' }}
96108
shell: bash

appsignals-tests/images/aws-sdk/aws-sdk-v1/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ tasks {
5353
}
5454
jib {
5555
configureImages(
56-
"public.ecr.aws/docker/library/amazoncorretto:17-alpine",
56+
"public.ecr.aws/docker/library/amazoncorretto:21-alpine",
5757
"aws-appsignals-tests-aws-sdk-v1",
5858
localDocker = rootProject.property("localDocker")!! == "true",
5959
multiPlatform = false,

appsignals-tests/images/aws-sdk/aws-sdk-v2/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ tasks {
5353
}
5454
jib {
5555
configureImages(
56-
"public.ecr.aws/docker/library/amazoncorretto:17-alpine",
56+
"public.ecr.aws/docker/library/amazoncorretto:21-alpine",
5757
"aws-appsignals-tests-aws-sdk-v2",
5858
localDocker = rootProject.property("localDocker")!! == "true",
5959
multiPlatform = false,

appsignals-tests/images/grpc/grpc-client/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ tasks {
4141
}
4242
jib {
4343
configureImages(
44-
"public.ecr.aws/docker/library/amazoncorretto:17-alpine",
44+
"public.ecr.aws/docker/library/amazoncorretto:21-alpine",
4545
"grpc-client",
4646
localDocker = rootProject.property("localDocker")!! == "true",
4747
multiPlatform = false,

appsignals-tests/images/grpc/grpc-server/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ tasks {
4646
}
4747
jib {
4848
configureImages(
49-
"public.ecr.aws/docker/library/amazoncorretto:17-alpine",
49+
"public.ecr.aws/docker/library/amazoncorretto:21-alpine",
5050
"grpc-server",
5151
localDocker = rootProject.property("localDocker")!! == "true",
5252
multiPlatform = false,

appsignals-tests/images/http-clients/apache-http-client/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ tasks {
4343
}
4444
jib {
4545
configureImages(
46-
"public.ecr.aws/docker/library/amazoncorretto:17-alpine",
46+
"public.ecr.aws/docker/library/amazoncorretto:21-alpine",
4747
"aws-appsignals-tests-apache-http-client-app",
4848
localDocker = rootProject.property("localDocker")!! == "true",
4949
multiPlatform = false,

appsignals-tests/images/http-clients/native-http-client/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ tasks {
4242
}
4343
jib {
4444
configureImages(
45-
"public.ecr.aws/docker/library/amazoncorretto:17-alpine",
45+
"public.ecr.aws/docker/library/amazoncorretto:21-alpine",
4646
"aws-appsignals-tests-native-http-client-app",
4747
localDocker = rootProject.property("localDocker")!! == "true",
4848
multiPlatform = false,

appsignals-tests/images/http-clients/netty-http-client/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ tasks {
4343
}
4444
jib {
4545
configureImages(
46-
"public.ecr.aws/docker/library/amazoncorretto:17-alpine",
46+
"public.ecr.aws/docker/library/amazoncorretto:21-alpine",
4747
"aws-appsignals-tests-netty-http-client-app",
4848
localDocker = rootProject.property("localDocker")!! == "true",
4949
multiPlatform = false,

0 commit comments

Comments
 (0)