From 6661f3e4130ad06b10e3daba15d2f849cb190e83 Mon Sep 17 00:00:00 2001 From: Manfred Moser Date: Tue, 24 Nov 2026 11:15:47 -0700 Subject: [PATCH 1/7] Upgrade tarball to Trino 484 Update airbase to 418 to match the parent used by Trino 484. The RPM and custom Docker image follow in separate commits. --- pom.xml | 2 +- trino-server-custom/README.md | 12 ++++++------ trino-server-custom/pom.xml | 2 +- trino-server-custom/src/main/script/prefetch.sh | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/pom.xml b/pom.xml index 9c57356..0419b1b 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ io.airlift airbase - 395 + 418 io.trino diff --git a/trino-server-custom/README.md b/trino-server-custom/README.md index dffdc5f..d9aaaf0 100644 --- a/trino-server-custom/README.md +++ b/trino-server-custom/README.md @@ -52,7 +52,7 @@ characteristics: * `ml` functions plugin from `trino-server-core` removed. * `geospatial` functions plugin from `trino-server-core` removed. -The project is configured for Trino 483. +The project is configured for Trino 484. ## Building @@ -88,7 +88,7 @@ them by GAV during the `package` phase. After a successful build, you find the tarball in the `trino-packages/trino-server-custom/target` directory with the name -`trino-server-custom-483.tar.gz`. The specific version depends on the property +`trino-server-custom-484.tar.gz`. The specific version depends on the property `dep.trino.version` configured in `trino-packages/trino-server-custom/pom.xml`. The Maven `ci` profile adds a smoke test that runs after the package phase. @@ -112,20 +112,20 @@ test requires Java 25 on `PATH` and a free TCP port 8080 on the host. Build the project on any machine, and copy the tarball package from the `trino-server-custom/target` directory to the server on which you want to install Trino. The server must meet the Trino requirements for the specific -Trino version, for example Java 25 for Trino 483. +Trino version, for example Java 25 for Trino 484. Find details in the [Trino documentation](https://trino.io/docs/current/installation/deployment.html) Extract the `tar.gz` package to install Trino: ```shell -tar xfvz trino-server-custom-483.tar.gz +tar xfvz trino-server-custom-484.tar.gz ``` You can run Trino from the resulting directory for testing: ```shell -cd trino-server-custom-483 +cd trino-server-custom-484 ./bin/launcher run ``` @@ -171,7 +171,7 @@ other Trino documentation for more details. ## Updating to other Trino version -The project is configured to build a custom tarball for Trino 483. Updates to +The project is configured to build a custom tarball for Trino 484. Updates to newer versions can be contributed to the repository or can be done locally. The following steps are necessary: diff --git a/trino-server-custom/pom.xml b/trino-server-custom/pom.xml index b99b92a..54c4a7a 100644 --- a/trino-server-custom/pom.xml +++ b/trino-server-custom/pom.xml @@ -13,7 +13,7 @@ Trino - Server custom tarball package - 483 + 484 2.2.0 true false diff --git a/trino-server-custom/src/main/script/prefetch.sh b/trino-server-custom/src/main/script/prefetch.sh index 909a5d3..1292168 100755 --- a/trino-server-custom/src/main/script/prefetch.sh +++ b/trino-server-custom/src/main/script/prefetch.sh @@ -14,7 +14,7 @@ # runs do not re-download the ~300 MB core tarball. # # Arguments: -# $1 Trino version (for example 483) +# $1 Trino version (for example 484) # $2 Project basedir (the trino-server-custom module directory) # $3 Work directory for caching downloads (typically ${project.build.directory}) From d31a4929fe0d69807603e06d2bfd004894bedfcc Mon Sep 17 00:00:00 2001 From: Manfred Moser Date: Tue, 24 Nov 2026 11:15:47 -0700 Subject: [PATCH 2/7] Upgrade custom Docker image to Trino 484 --- custom-docker/Dockerfile | 2 +- custom-docker/README.md | 10 +++++----- custom-docker/build.sh | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/custom-docker/Dockerfile b/custom-docker/Dockerfile index ec39a92..db5defc 100644 --- a/custom-docker/Dockerfile +++ b/custom-docker/Dockerfile @@ -1,5 +1,5 @@ # Set default to invalid version to ensure override in build.sh -ARG TRINO_VERSION=483 +ARG TRINO_VERSION=484 FROM trinodb/trino-core:${TRINO_VERSION} # Add customization diff --git a/custom-docker/README.md b/custom-docker/README.md index 642cf37..0407ea8 100644 --- a/custom-docker/README.md +++ b/custom-docker/README.md @@ -44,7 +44,7 @@ limited subset of plugins to create a image with the following characteristics: * `geospatial` functions plugin removed. * `exchange-filesystem` plugin removed. -The project is configured for Trino 483. +The project is configured for Trino 484. Plugin zips are fetched from the [Trino GitHub release](https://github.com/trinodb/trino/releases) by the @@ -81,8 +81,8 @@ processor architectures locally with `docker images`: ``` REPOSITORY TAG IMAGE ID CREATED SIZE -trino-custom 483-arm64 67a3dcee3c85 About a minute ago 765MB -trino-custom 483-amd64 df994bb44819 About a minute ago 757MB +trino-custom 484-arm64 67a3dcee3c85 About a minute ago 765MB +trino-custom 484-amd64 df994bb44819 About a minute ago 757MB ``` The specific version depends on the parameter `TRINO_VERSION` set in `build.sh`. @@ -99,7 +99,7 @@ purposes. The Trino node functions both as a coordinator and a worker. To launch it, execute the following: ```shell -docker run -p 8080:8080 --name trino-custom trino-custom:483-arm64 +docker run -p 8080:8080 --name trino-custom trino-custom:484-arm64 ``` Wait for the following message log line: @@ -162,7 +162,7 @@ other Trino documentation for more details. ## Updating to other Trino version -The project is configured to build a custom image for Trino 483. Updates to +The project is configured to build a custom image for Trino 484. Updates to newer versions can be contributed to the repository or can be done locally. The following steps are necessary: diff --git a/custom-docker/build.sh b/custom-docker/build.sh index e6f2117..4d63d6d 100755 --- a/custom-docker/build.sh +++ b/custom-docker/build.sh @@ -9,7 +9,7 @@ Builds the Trino Docker image -h Display help -a Build the specified comma-separated architectures, defaults to amd64,arm64 --r Trino version, defaults to 483 +-r Trino version, defaults to 484 -t Image tag name, defaults to trino-custom EOF } @@ -17,7 +17,7 @@ EOF ARCHITECTURES=(amd64 arm64) # Set the desires Trino version. This version is also used automatically in the # Dockerfile. -TRINO_VERSION=483 +TRINO_VERSION=484 TAG_PREFIX=trino-custom while getopts ":a:r:t:h" o; do From fa2dc279b8bf0908227ad329ded4067bc7079cd0 Mon Sep 17 00:00:00 2001 From: Manfred Moser Date: Tue, 24 Nov 2026 11:15:47 -0700 Subject: [PATCH 3/7] Upgrade RPM to Trino 484 Use Temurin jdk-25.0.4+7 in the integration test and units 1.13, both matching Trino 484. --- trino-server-rpm/README.md | 6 +++--- trino-server-rpm/pom.xml | 4 ++-- trino-server-rpm/src/main/script/prefetch.sh | 2 +- .../src/test/java/io/trino/server/rpm/ServerIT.java | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/trino-server-rpm/README.md b/trino-server-rpm/README.md index bd2b666..bd68f59 100644 --- a/trino-server-rpm/README.md +++ b/trino-server-rpm/README.md @@ -21,7 +21,7 @@ The RPM archive contains the application, all plugins, the necessary default configuration files, default setups, and integration with the operating system to start as a service. -The project is configured for Trino 483. +The project is configured for Trino 484. ## Building @@ -53,7 +53,7 @@ by GAV during the `package` phase. After a successful build, you find the RPM in the `trino-packages/trino-server-rpm/target` directory with the name -`trino-server-rpm-483.noarch.rpm`. The specific version depends on the property +`trino-server-rpm-484.noarch.rpm`. The specific version depends on the property `dep.trino.version` configured in `trino-packages/trino-server-rpm/pom.xml`. To run the integration tests in `ServerIT` you must activate the `ci` profile. @@ -65,7 +65,7 @@ A local Docker installation is required: ## Updating to other Trino version -The project is configured to build an RPM for Trino 483. Updates to newer +The project is configured to build an RPM for Trino 484. Updates to newer versions can be contributed to the repository or can be done locally. The following steps are necessary: diff --git a/trino-server-rpm/pom.xml b/trino-server-rpm/pom.xml index c8a22dd..a60e79f 100644 --- a/trino-server-rpm/pom.xml +++ b/trino-server-rpm/pom.xml @@ -22,7 +22,7 @@ true 8 - 483 + 484 trino-server-${dep.trino.version} true @@ -51,7 +51,7 @@ io.airlift units - 1.10 + 1.13 test diff --git a/trino-server-rpm/src/main/script/prefetch.sh b/trino-server-rpm/src/main/script/prefetch.sh index 1bba764..4b38d2a 100755 --- a/trino-server-rpm/src/main/script/prefetch.sh +++ b/trino-server-rpm/src/main/script/prefetch.sh @@ -15,7 +15,7 @@ # runs do not re-download the multi-hundred MB server tarball. # # Arguments: -# $1 Trino version (for example 483) +# $1 Trino version (for example 484) # $2 Project basedir (the trino-server-rpm module directory) # $3 Work directory for caching downloads (typically ${project.build.directory}) diff --git a/trino-server-rpm/src/test/java/io/trino/server/rpm/ServerIT.java b/trino-server-rpm/src/test/java/io/trino/server/rpm/ServerIT.java index 7d35adb..9c2c0ec 100644 --- a/trino-server-rpm/src/test/java/io/trino/server/rpm/ServerIT.java +++ b/trino-server-rpm/src/test/java/io/trino/server/rpm/ServerIT.java @@ -75,8 +75,8 @@ public void testInstallUninstall() throws Exception { // Release names as in the https://api.adoptium.net/q/swagger-ui/#/Release%20Info/getReleaseNames - testInstall("jdk-25.0.3+9", "/usr/lib/jvm/temurin-25", "25"); - testUninstall("jdk-25.0.3+9", "/usr/lib/jvm/temurin-25"); + testInstall("jdk-25.0.4+7", "/usr/lib/jvm/temurin-25", "25"); + testUninstall("jdk-25.0.4+7", "/usr/lib/jvm/temurin-25"); } private void testInstall(String temurinReleaseName, String javaHome, String expectedJavaVersion) From 7f33b310c8107ee6319b3ac749e0302e582d05aa Mon Sep 17 00:00:00 2001 From: Manfred Moser Date: Tue, 24 Nov 2026 11:15:47 -0700 Subject: [PATCH 4/7] Document Trino 484 in top-level README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index bc00923..c1dd25c 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,7 @@ The packages in this repository are built and released against specific Trino versions, available as [tags in this repository](https://github.com/trinodb/trino-packages/tags): +* [484](https://github.com/trinodb/trino-packages/releases/tag/484) * [483](https://github.com/trinodb/trino-packages/releases/tag/483) * [482](https://github.com/trinodb/trino-packages/releases/tag/482) * [481](https://github.com/trinodb/trino-packages/releases/tag/481) From 495f1df26cff51837e7bf83a763f2d1d7a7e73c0 Mon Sep 17 00:00:00 2001 From: Manfred Moser Date: Tue, 24 Nov 2026 11:15:47 -0700 Subject: [PATCH 5/7] Update GitHub Actions - actions/checkout to v7 - actions/setup-java to v6 --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dd4bc32..f5f9884 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,9 +26,9 @@ jobs: timeout-minutes: 20 steps: - name: Checkout source - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Install required Java distribution - uses: actions/setup-java@v5 + uses: actions/setup-java@v6 with: java-version: ${{ matrix.java-version }} distribution: 'temurin' @@ -40,7 +40,7 @@ jobs: timeout-minutes: 15 steps: - name: Checkout source - uses: actions/checkout@v6 + uses: actions/checkout@v7 - name: Build custom-docker image # Restrict to amd64 to avoid QEMU emulation for arm64 on ubuntu-latest # runners. The Dockerfile is architecture-agnostic, so a single-arch From 36aa32007fbf711473a7652a9f9211fbf847c6c1 Mon Sep 17 00:00:00 2001 From: Manfred Moser Date: Tue, 24 Nov 2026 11:15:47 -0700 Subject: [PATCH 6/7] Update Provisio and Takari plugins - provisio-maven-plugin to 2.0.1 - takari-lifecycle-plugin to 2.4.0 --- trino-server-custom/pom.xml | 4 ++-- trino-server-rpm/pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/trino-server-custom/pom.xml b/trino-server-custom/pom.xml index 54c4a7a..63e5bf0 100644 --- a/trino-server-custom/pom.xml +++ b/trino-server-custom/pom.xml @@ -14,7 +14,7 @@ 484 - 2.2.0 + 2.4.0 true false true @@ -97,7 +97,7 @@ ca.vanzyl.provisio.maven.plugins provisio-maven-plugin - 2.0.0 + 2.0.1 true ${project.build.directory}/${project.artifactId}-${dep.trino.version} diff --git a/trino-server-rpm/pom.xml b/trino-server-rpm/pom.xml index a60e79f..d34e763 100644 --- a/trino-server-rpm/pom.xml +++ b/trino-server-rpm/pom.xml @@ -190,7 +190,7 @@ ca.vanzyl.provisio.maven.plugins provisio-maven-plugin - 2.0.0 + 2.0.1 unpack From 3e95583126d072358ce9c2e2f89e944cd72b3cc7 Mon Sep 17 00:00:00 2001 From: Manfred Moser Date: Tue, 24 Nov 2026 11:15:47 -0700 Subject: [PATCH 7/7] Update Maven to 3.10.2 Regenerate the wrapper script with Maven wrapper 3.3.4. --- .mvn/wrapper/maven-wrapper.properties | 20 ++--------- mvnw | 50 +++++++++++++++++++++++---- 2 files changed, 45 insertions(+), 25 deletions(-) diff --git a/.mvn/wrapper/maven-wrapper.properties b/.mvn/wrapper/maven-wrapper.properties index 95ac9af..f358bd2 100644 --- a/.mvn/wrapper/maven-wrapper.properties +++ b/.mvn/wrapper/maven-wrapper.properties @@ -1,19 +1,3 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -wrapperVersion=3.3.2 +wrapperVersion=3.3.4 distributionType=only-script -distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.16/apache-maven-3.9.16-bin.zip +distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.10.2/apache-maven-3.10.2-bin.zip diff --git a/mvnw b/mvnw index 19529dd..bd8896b 100755 --- a/mvnw +++ b/mvnw @@ -19,7 +19,7 @@ # ---------------------------------------------------------------------------- # ---------------------------------------------------------------------------- -# Apache Maven Wrapper startup batch script, version 3.3.2 +# Apache Maven Wrapper startup batch script, version 3.3.4 # # Optional ENV vars # ----------------- @@ -105,14 +105,17 @@ trim() { printf "%s" "${1}" | tr -d '[:space:]' } +scriptDir="$(dirname "$0")" +scriptName="$(basename "$0")" + # parse distributionUrl and optional distributionSha256Sum, requires .mvn/wrapper/maven-wrapper.properties while IFS="=" read -r key value; do case "${key-}" in distributionUrl) distributionUrl=$(trim "${value-}") ;; distributionSha256Sum) distributionSha256Sum=$(trim "${value-}") ;; esac -done <"${0%/*}/.mvn/wrapper/maven-wrapper.properties" -[ -n "${distributionUrl-}" ] || die "cannot read distributionUrl property in ${0%/*}/.mvn/wrapper/maven-wrapper.properties" +done <"$scriptDir/.mvn/wrapper/maven-wrapper.properties" +[ -n "${distributionUrl-}" ] || die "cannot read distributionUrl property in $scriptDir/.mvn/wrapper/maven-wrapper.properties" case "${distributionUrl##*/}" in maven-mvnd-*bin.*) @@ -130,7 +133,7 @@ maven-mvnd-*bin.*) distributionUrl="${distributionUrl%-bin.*}-$distributionPlatform.zip" ;; maven-mvnd-*) MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/ ;; -*) MVN_CMD="mvn${0##*/mvnw}" _MVNW_REPO_PATTERN=/org/apache/maven/ ;; +*) MVN_CMD="mvn${scriptName#mvnw}" _MVNW_REPO_PATTERN=/org/apache/maven/ ;; esac # apply MVNW_REPOURL and calculate MAVEN_HOME @@ -227,7 +230,7 @@ if [ -n "${distributionSha256Sum-}" ]; then echo "Please disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2 exit 1 elif command -v sha256sum >/dev/null; then - if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | sha256sum -c >/dev/null 2>&1; then + if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | sha256sum -c - >/dev/null 2>&1; then distributionSha256Result=true fi elif command -v shasum >/dev/null; then @@ -252,8 +255,41 @@ if command -v unzip >/dev/null; then else tar xzf${__MVNW_QUIET_TAR:+"$__MVNW_QUIET_TAR"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -C "$TMP_DOWNLOAD_DIR" || die "failed to untar" fi -printf %s\\n "$distributionUrl" >"$TMP_DOWNLOAD_DIR/$distributionUrlNameMain/mvnw.url" -mv -- "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain" "$MAVEN_HOME" || [ -d "$MAVEN_HOME" ] || die "fail to move MAVEN_HOME" + +# Find the actual extracted directory name (handles snapshots where filename != directory name) +actualDistributionDir="" + +# First try the expected directory name (for regular distributions) +if [ -d "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain" ]; then + if [ -f "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain/bin/$MVN_CMD" ]; then + actualDistributionDir="$distributionUrlNameMain" + fi +fi + +# If not found, search for any directory with the Maven executable (for snapshots) +if [ -z "$actualDistributionDir" ]; then + # enable globbing to iterate over items + set +f + for dir in "$TMP_DOWNLOAD_DIR"/*; do + if [ -d "$dir" ]; then + if [ -f "$dir/bin/$MVN_CMD" ]; then + actualDistributionDir="$(basename "$dir")" + break + fi + fi + done + set -f +fi + +if [ -z "$actualDistributionDir" ]; then + verbose "Contents of $TMP_DOWNLOAD_DIR:" + verbose "$(ls -la "$TMP_DOWNLOAD_DIR")" + die "Could not find Maven distribution directory in extracted archive" +fi + +verbose "Found extracted Maven distribution directory: $actualDistributionDir" +printf %s\\n "$distributionUrl" >"$TMP_DOWNLOAD_DIR/$actualDistributionDir/mvnw.url" +mv -- "$TMP_DOWNLOAD_DIR/$actualDistributionDir" "$MAVEN_HOME" || [ -d "$MAVEN_HOME" ] || die "fail to move MAVEN_HOME" clean || : exec_maven "$@"