From 9f6711d532baec67d9656bf5f10f9b98234cdc1d Mon Sep 17 00:00:00 2001 From: "Mateusz \"Serafin\" Gajewski" Date: Thu, 19 Sep 2024 11:26:25 +0200 Subject: [PATCH] Test JDK 24-ea --- .github/actions/setup/action.yml | 2 +- .github/workflows/ci.yml | 4 +-- .mvn/rrf/groupId-asm.txt | 1 + core/jdk/current | 2 +- core/jdk/temurin/jdk-23+37/arm64 | 1 - core/jdk/temurin/jdk-23+37/ppc64le | 1 - .../{jdk-23+37 => jdk-24+15-ea-beta}/amd64 | 2 +- core/jdk/temurin/jdk-24+15-ea-beta/arm64 | 1 + core/jdk/temurin/jdk-24+15-ea-beta/ppc64le | 1 + core/trino-server-rpm/src/main/rpm/preinstall | 17 +++++------- .../java/io/trino/server/rpm/ServerIT.java | 4 +-- pom.xml | 26 +++++++++++++++++-- 12 files changed, 41 insertions(+), 21 deletions(-) create mode 100644 .mvn/rrf/groupId-asm.txt delete mode 100644 core/jdk/temurin/jdk-23+37/arm64 delete mode 100644 core/jdk/temurin/jdk-23+37/ppc64le rename core/jdk/temurin/{jdk-23+37 => jdk-24+15-ea-beta}/amd64 (50%) create mode 100644 core/jdk/temurin/jdk-24+15-ea-beta/arm64 create mode 100644 core/jdk/temurin/jdk-24+15-ea-beta/ppc64le diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 66f8ed473321b..9b263089501d6 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -3,7 +3,7 @@ description: "Verify checked out commits and setup Java" inputs: java-version: description: "Java version to setup" - default: 23 + default: 24-ea cache: description: "Cache Maven repo (true/false/restore)" default: restore diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 00b643044056b..1e713f96e48d2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,7 +57,7 @@ jobs: fail-fast: false matrix: include: - - { java-version: 23, cache: 'restore', cleanup-node: true } + - { java-version: 24-ea, cache: 'restore', cleanup-node: true } timeout-minutes: 45 steps: - uses: actions/checkout@v4 @@ -516,7 +516,7 @@ jobs: with: cache: restore cleanup-node: ${{ format('{0}', matrix.modules == 'plugin/trino-singlestore' || matrix.modules == 'plugin/trino-exasol') }} - java-version: ${{ matrix.jdk != '' && matrix.jdk || '23' }} + java-version: ${{ matrix.jdk != '' && matrix.jdk || '24-ea' }} - name: Maven Install run: | export MAVEN_OPTS="${MAVEN_INSTALL_OPTS}" diff --git a/.mvn/rrf/groupId-asm.txt b/.mvn/rrf/groupId-asm.txt new file mode 100644 index 0000000000000..b050dd49ac0da --- /dev/null +++ b/.mvn/rrf/groupId-asm.txt @@ -0,0 +1 @@ +org.ow2.asm diff --git a/core/jdk/current b/core/jdk/current index cd5d9ebc723f0..8379836ac6064 100644 --- a/core/jdk/current +++ b/core/jdk/current @@ -1 +1 @@ -temurin/jdk-23+37 +temurin/jdk-24+15-ea-beta diff --git a/core/jdk/temurin/jdk-23+37/arm64 b/core/jdk/temurin/jdk-23+37/arm64 deleted file mode 100644 index 5ac35f006416a..0000000000000 --- a/core/jdk/temurin/jdk-23+37/arm64 +++ /dev/null @@ -1 +0,0 @@ -distributionUrl=https://api.adoptium.net/v3/binary/version/jdk-23+37/linux/aarch64/jdk/hotspot/normal/eclipse?project=jdk diff --git a/core/jdk/temurin/jdk-23+37/ppc64le b/core/jdk/temurin/jdk-23+37/ppc64le deleted file mode 100644 index 88c78963b9be9..0000000000000 --- a/core/jdk/temurin/jdk-23+37/ppc64le +++ /dev/null @@ -1 +0,0 @@ -distributionUrl=https://api.adoptium.net/v3/binary/version/jdk-23+37/linux/ppc64le/jdk/hotspot/normal/eclipse?project=jdk diff --git a/core/jdk/temurin/jdk-23+37/amd64 b/core/jdk/temurin/jdk-24+15-ea-beta/amd64 similarity index 50% rename from core/jdk/temurin/jdk-23+37/amd64 rename to core/jdk/temurin/jdk-24+15-ea-beta/amd64 index bd8bf43887562..a81eec689889f 100644 --- a/core/jdk/temurin/jdk-23+37/amd64 +++ b/core/jdk/temurin/jdk-24+15-ea-beta/amd64 @@ -1 +1 @@ -distributionUrl=https://api.adoptium.net/v3/binary/version/jdk-23+37/linux/x64/jdk/hotspot/normal/eclipse?project=jdk +distributionUrl=https://api.adoptium.net/v3/binary/version/jdk-24+15-ea-beta/linux/x64/jdk/hotspot/normal/eclipse?project=jdk diff --git a/core/jdk/temurin/jdk-24+15-ea-beta/arm64 b/core/jdk/temurin/jdk-24+15-ea-beta/arm64 new file mode 100644 index 0000000000000..b6e4028e2ba2b --- /dev/null +++ b/core/jdk/temurin/jdk-24+15-ea-beta/arm64 @@ -0,0 +1 @@ +distributionUrl=https://api.adoptium.net/v3/binary/version/jdk-24+15-ea-beta/linux/aarch64/jdk/hotspot/normal/eclipse?project=jdk diff --git a/core/jdk/temurin/jdk-24+15-ea-beta/ppc64le b/core/jdk/temurin/jdk-24+15-ea-beta/ppc64le new file mode 100644 index 0000000000000..670d6d2fd0f65 --- /dev/null +++ b/core/jdk/temurin/jdk-24+15-ea-beta/ppc64le @@ -0,0 +1 @@ +distributionUrl=https://api.adoptium.net/v3/binary/version/jdk-24+15-ea-beta/linux/ppc64le/jdk/hotspot/normal/eclipse?project=jdk diff --git a/core/trino-server-rpm/src/main/rpm/preinstall b/core/trino-server-rpm/src/main/rpm/preinstall index c2168e954d538..ea2964962da75 100644 --- a/core/trino-server-rpm/src/main/rpm/preinstall +++ b/core/trino-server-rpm/src/main/rpm/preinstall @@ -22,7 +22,7 @@ check_if_correct_java_version() { # candidate for JAVA_HOME). JAVA_VERSION=$(java_version "$1") JAVA_MAJOR=$(echo "$JAVA_VERSION" | cut -d'-' -f1 | cut -d'.' -f1) - if [ "$JAVA_MAJOR" -ge "22" ]; then + if [ "$JAVA_MAJOR" -ge "24" ]; then echo "$1" >/tmp/trino-rpm-install-java-home return 0 else @@ -34,14 +34,10 @@ check_if_correct_java_version() { if ! check_if_correct_java_version "$JAVA_HOME"; then java_found=false for candidate in \ - /usr/lib/jvm/java-22-* \ - /usr/lib/jvm/zulu-22 \ - /usr/lib/jvm/temurin-22 \ - /usr/lib/jvm/temurin-22-* \ - /usr/lib/jvm/java-23-* \ - /usr/lib/jvm/zulu-23 \ - /usr/lib/jvm/temurin-23 \ - /usr/lib/jvm/temurin-23-* \ + /usr/lib/jvm/java-24-* \ + /usr/lib/jvm/zulu-24 \ + /usr/lib/jvm/temurin-24 \ + /usr/lib/jvm/temurin-24-* \ /usr/lib/jvm/default-java \ /usr/java/default \ / \ @@ -57,11 +53,12 @@ fi # if no appropriate java found if [ "$java_found" = false ]; then + ls -laR /usr/lib/jvm cat 1>&2 < - 22 + 24 2024-09-18T01:24:05Z @@ -155,7 +155,7 @@ true true true - 22.0.0 + 24 syntax,reference,html,-missing 8 clean verify -DskipTests @@ -189,6 +189,8 @@ 268 2.9.6 4.13.2 + + 9.8-SNAPSHOT 1.12.0 1.12.772 4.17.0 @@ -2341,6 +2343,20 @@ + + + asm + https://repository.ow2.org/nexus/content/repositories/snapshots + + + + + + asm + https://repository.ow2.org/nexus/content/repositories/snapshots + + + @@ -2460,6 +2476,8 @@ org.apache.maven.plugins maven-enforcer-plugin + + true @@ -2496,6 +2514,10 @@ project.description + + + 23 +