Skip to content

Commit 201f7c7

Browse files
authored
Add Java 23 to the smoke test matrix (#12323)
1 parent 66dc0a5 commit 201f7c7

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

smoke-tests/images/servlet/build.gradle.kts

+13-13
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ val extraTag = findProperty("extraTag")
2424
// Dockerfile name, args key passes raw arguments to docker build
2525
val targets = mapOf(
2626
"jetty" to listOf(
27-
ImageTarget(listOf("9.4.53"), listOf("hotspot", "openj9"), listOf("8", "11", "17", "21"), mapOf("sourceVersion" to "9.4.53.v20231009")),
28-
ImageTarget(listOf("10.0.19"), listOf("hotspot", "openj9"), listOf("11", "17", "21"), mapOf("sourceVersion" to "10.0.19")),
29-
ImageTarget(listOf("11.0.19"), listOf("hotspot", "openj9"), listOf("11", "17", "21"), mapOf("sourceVersion" to "11.0.19"), "servlet-5.0"),
30-
ImageTarget(listOf("12.0.6"), listOf("hotspot", "openj9"), listOf("17", "21"), mapOf("sourceVersion" to "12.0.6"), "servlet-5.0"),
27+
ImageTarget(listOf("9.4.53"), listOf("hotspot", "openj9"), listOf("8", "11", "17", "21", "23"), mapOf("sourceVersion" to "9.4.53.v20231009")),
28+
ImageTarget(listOf("10.0.19"), listOf("hotspot", "openj9"), listOf("11", "17", "21", "23"), mapOf("sourceVersion" to "10.0.19")),
29+
ImageTarget(listOf("11.0.19"), listOf("hotspot", "openj9"), listOf("11", "17", "21", "23"), mapOf("sourceVersion" to "11.0.19"), "servlet-5.0"),
30+
ImageTarget(listOf("12.0.6"), listOf("hotspot", "openj9"), listOf("17", "21", "23"), mapOf("sourceVersion" to "12.0.6"), "servlet-5.0"),
3131
),
3232
"liberty" to listOf(
3333
ImageTarget(listOf("20.0.0.12"), listOf("hotspot", "openj9"), listOf("8", "11"), mapOf("release" to "2020-11-11_0736")),
@@ -41,18 +41,18 @@ val targets = mapOf(
4141
ImageTarget(listOf("5.2020.6", "5.2021.8"), listOf("hotspot", "openj9"), listOf("8", "11")),
4242
// Test application is not deployed when server is sarted with hotspot jdk version 21
4343
ImageTarget(listOf("6.2023.12"), listOf("hotspot"), listOf("11", "17"), war = "servlet-5.0"),
44-
ImageTarget(listOf("6.2023.12"), listOf("openj9"), listOf("11", "17", "21"), war = "servlet-5.0")
44+
ImageTarget(listOf("6.2023.12"), listOf("openj9"), listOf("11", "17", "21", "23"), war = "servlet-5.0")
4545
),
4646
"tomcat" to listOf(
4747
ImageTarget(listOf("7.0.109"), listOf("hotspot", "openj9"), listOf("8"), mapOf("majorVersion" to "7")),
48-
ImageTarget(listOf("8.5.98"), listOf("hotspot", "openj9"), listOf("8", "11", "17", "21"), mapOf("majorVersion" to "8")),
49-
ImageTarget(listOf("9.0.85"), listOf("hotspot", "openj9"), listOf("8", "11", "17", "21"), mapOf("majorVersion" to "9")),
50-
ImageTarget(listOf("10.1.18"), listOf("hotspot", "openj9"), listOf("11", "17", "21"), mapOf("majorVersion" to "10"), "servlet-5.0"),
48+
ImageTarget(listOf("8.5.98"), listOf("hotspot", "openj9"), listOf("8", "11", "17", "21", "23"), mapOf("majorVersion" to "8")),
49+
ImageTarget(listOf("9.0.85"), listOf("hotspot", "openj9"), listOf("8", "11", "17", "21", "23"), mapOf("majorVersion" to "9")),
50+
ImageTarget(listOf("10.1.18"), listOf("hotspot", "openj9"), listOf("11", "17", "21", "23"), mapOf("majorVersion" to "10"), "servlet-5.0"),
5151
),
5252
"tomee" to listOf(
5353
ImageTarget(listOf("7.0.9", "7.1.4"), listOf("hotspot", "openj9"), listOf("8")),
54-
ImageTarget(listOf("8.0.16"), listOf("hotspot", "openj9"), listOf("8", "11", "17", "21")),
55-
ImageTarget(listOf("9.1.2"), listOf("hotspot", "openj9"), listOf("11", "17", "21"), war = "servlet-5.0"),
54+
ImageTarget(listOf("8.0.16"), listOf("hotspot", "openj9"), listOf("8", "11", "17", "21", "23")),
55+
ImageTarget(listOf("9.1.2"), listOf("hotspot", "openj9"), listOf("11", "17", "21", "23"), war = "servlet-5.0"),
5656
),
5757
"websphere" to listOf(
5858
ImageTarget(listOf("8.5.5.22", "9.0.5.14"), listOf("openj9"), listOf("8"), windows = false),
@@ -62,12 +62,12 @@ val targets = mapOf(
6262
ImageTarget(
6363
listOf("17.0.1.Final", "21.0.0.Final"),
6464
listOf("hotspot", "openj9"),
65-
listOf("8", "11", "17", "21")
65+
listOf("8", "11", "17", "21", "23")
6666
),
6767
ImageTarget(
6868
listOf("28.0.1.Final", "29.0.1.Final", "30.0.1.Final"),
6969
listOf("hotspot", "openj9"),
70-
listOf("11", "17", "21"),
70+
listOf("11", "17", "21", "23"),
7171
war = "servlet-5.0"
7272
),
7373
),
@@ -153,7 +153,7 @@ fun configureImage(
153153
val image = "ghcr.io/open-telemetry/opentelemetry-java-instrumentation/smoke-test-servlet-$server:$version-jdk$jdk$vmSuffix$platformSuffix-$extraTag"
154154

155155
val jdkImage = if (vm == "hotspot") {
156-
if (jdk == "21") {
156+
if (jdk == "24") {
157157
// "The only tags which will continue to receive updates beyond July 2022 will be Early Access
158158
// builds (which are sourced from jdk.java.net), as those are not published/supported by any
159159
// of the above projects."

smoke-tests/images/servlet/src/wildfly.dockerfile

+5-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ RUN groupadd -r jboss -g 1001 && useradd -u 1001 -r -g jboss -m -d /opt/jboss -s
1414
# Set the working directory to jboss' user home directory
1515
WORKDIR /opt/jboss
1616

17+
# latest eclipse-temurin docker images have removed curl in favor of wget (https://github.com/adoptium/containers/issues/630)
18+
# but ibm-semeru-runtimes docker images lack wget
19+
RUN apt-get update && apt-get -y install wget
20+
1721
# Specify the user which should be used to execute all commands below
1822
USER jboss
1923

@@ -27,7 +31,7 @@ RUN echo curl -O -L $DOWNLOAD_URL
2731
# Add the WildFly distribution to /opt, and make wildfly the owner of the extracted tar content
2832
# Make sure the distribution is available from a well-known place
2933
RUN cd $HOME \
30-
&& curl -O -L $DOWNLOAD_URL \
34+
&& wget -nv $DOWNLOAD_URL \
3135
&& tar xf wildfly-$WILDFLY_VERSION.tar.gz \
3236
&& mv $HOME/wildfly-$WILDFLY_VERSION $JBOSS_HOME \
3337
&& rm wildfly-$WILDFLY_VERSION.tar.gz \

0 commit comments

Comments
 (0)