Repository navigation
Upgrade to Trino 481 - #8
Merged
Merged
Conversation
Assisted-by: Claude Opus 4.7 <noreply@anthropic.com>
mosabua
force-pushed
the
481
branch
2 times, most recently
from
May 20, 2026 22:59
9f30d41 to
26b3411
Compare
- Bump airbase parent from 253 to 375 to match Trino 481 upstream. - Bump dep.trino.version from 475 to 481 in trino-server-custom. - Add src/main/script/prefetch.sh wired into the validate phase via exec-maven-plugin. The script parses active <artifact> entries from src/main/provisio/trino-custom.xml, downloads the core tarball and the selected plugin zips from the GitHub release, and installs each one into the local Maven repository so provisio resolves them by GAV. trino-server-core and the plugin zips no longer publish to Maven Central as of Trino 477. - Drop the redundant trino-server-core <dependency> declaration; the artifact is now resolved exclusively via provisio after prefetch. - Cache check in prefetch.sh skips artifacts already in ~/.m2/repository, so repeated clean builds do not re-download the ~300 MB core tarball. - Re-sort trino-server-custom/pom.xml to satisfy the sortpom verifier that airbase 375 enables by default. - Add `io.trino.server.Server=INFO` to etc/log.properties so the `======== SERVER STARTED ========` banner is written to `var/log/server.log` when the launcher runs in daemon mode, while keeping `io.trino=WARN` to suppress unrelated startup noise. Without this override the banner is filtered out and there is no in-log confirmation that the server finished initializing. - Update trino-server-custom/README.md: 475 to 481, Java 23 to 25, document the GitHub-release fetching mechanism, describe the new logging configuration, and explain how to confirm startup readiness via the banner line in `var/log/server.log`. The trino-server-rpm and custom-docker modules are intentionally left on 475 in this commit and will be updated separately. Assisted-by: Claude Opus 4.7 <noreply@anthropic.com>
- Bump default TRINO_VERSION from 475 to 481 in build.sh and the Dockerfile placeholder ARG. - Add downloadGithubTrinoPlugin helper in build.sh that fetches plugin zips from the Trino GitHub release. Trino plugin zips are no longer published to Maven Central as of Trino 477, so this is the default source for current versions. - Switch the active plugin downloads in processPluginsForCustomizations to use the GitHub helper. Repoint the downloadUrlPlugin example at the GitHub URL so it still works with the new release layout. - Keep downloadTrinoPlugin, downloadGavPlugin, and downloadUrlPlugin functions intact. They remain available for downloading plugins from a Maven repository (for example an internal Nexus or Artifactory mirror) or any other URL. - Update README.md to reflect 481, the GitHub-release source, and the continued availability of the Maven-repository helpers. The custom-docker image was built and verified for the amd64 architecture. The trino-server-rpm module is the next planned update. Assisted-by: Claude Opus 4.7 <noreply@anthropic.com>
- Bump dep.trino.version from 475 to 481 in trino-server-rpm.
- Bump project.build.targetJdk to 25 and air.java.version to 25.0.1
to match Trino 481's Java 25 requirement.
- Add src/main/script/prefetch.sh wired into the validate phase via
exec-maven-plugin. It downloads the full trino-server tarball from
the GitHub release (Trino no longer publishes the server tarball to
Maven Central as of Trino 477) and installs it into the local Maven
repository so provisio can resolve it via the existing <artifact>
entry in src/main/provisio/trino.xml. A local-repo cache check
skips the download when the artifact for the requested version is
already installed.
- Update ServerIT.testInstallUninstall to install Temurin jdk-25.0.2+10
in the integration test container and assert Java major version 25.
- Re-sort trino-server-rpm/pom.xml to satisfy the sortpom verifier
that airbase 375 enables by default.
- Reformat the PathInfo record declaration in ServerIT.java to use
`{}` (no space) so airstyle:check passes.
- Add `io.trino.server.Server=INFO` to dist/config/log.properties as a
defensive override so the `======== SERVER STARTED ========` banner
is always written to /var/log/trino/server.log even if an operator
later sets `io.trino=WARN` in the bundled file. The
testInstallUninstall integration test in ServerIT also waits for that
banner via testcontainers, so this keeps the wait condition working
regardless of how operators tune log levels.
- Drop `-Djava.security.manager=allow` from dist/config/jvm.config.
That flag was added for Java 21-24 to keep the deprecated-but-allowed
Security Manager available. Java 25 removed Security Manager support
entirely, so the flag now aborts JVM startup with "A command line
option has attempted to allow or enable the Security Manager.
Enabling a Security Manager is not supported." before airlift wires
up logging, leaving no server.log and causing the testcontainers
wait for SERVER STARTED to time out. The matching upstream change is
in trino-server-core's bundled jvm.config for 481.
- Update trino-server-rpm/README.md: 475 to 481, Java 23 to 25, and
document the GitHub-release fetching mechanism.
Assisted-by: Claude Opus 4.7 <noreply@anthropic.com>
Add src/main/script/smoke-test.sh and wire it into trino-server-custom's ci profile via exec-maven-plugin in the integration-test phase. The script extracts the built tarball into target/smoke-test, starts the launcher in daemon mode, polls http://localhost:8080/v1/info until the node reports state=ACTIVE, and stops the server. On timeout it dumps launcher.log and the tail of server.log so the failure mode is visible in CI output. The cleanup trap stops any leftover process even if the poll loop exits abnormally. The smoke test runs both locally (./mvnw -P ci verify) and in the GitHub Actions ci job. It catches regressions that the existing build/package steps cannot, like the Java 25 incompatibility that landed in the RPM jvm.config but went unnoticed in trino-server-custom until the tarball was actually launched. Also document the smoke test in trino-server-custom/README.md with the invocation command, what the script does, and the host requirements (Java 25 on PATH, free TCP port 8080). Assisted-by: Claude Opus 4.7 <noreply@anthropic.com>
Run custom-docker/build.sh as a sibling job to the existing Maven build on every push and pull request. The job is restricted to amd64 so the ubuntu-latest runner builds the image natively. The Dockerfile and build script are architecture-agnostic, so a single-arch build is enough to verify that the bundled customization, the trino-core base image pull, and the plugin downloads from the Trino GitHub release all still work. arm64 and ppc64le builds remain available locally for anyone who needs to produce multi-arch images. Keeping this as a separate workflow job rather than wrapping build.sh in a Maven module avoids adding a pom.xml that does no Java work and lets the docker build run in parallel with the Maven build. Assisted-by: Claude Opus 4.7 <noreply@anthropic.com>
- actions/checkout: v4 -> v6 (latest is v6.0.2, runs on node 24). - actions/setup-java: v4 -> v5 (latest is v5.2.0, runs on node 24). Both bumps are pure runtime upgrades to node 24; the action inputs we use (checkout default options, setup-java's java-version and distribution) are unchanged across these majors. ubuntu-latest runners already ship a runner version new enough to execute node 24 actions. Assisted-by: Claude Opus 4.7 <noreply@anthropic.com>
Add a section about the custom container (Docker) image alongside the existing RPM and custom tarball sections, with a link to the README in the custom-docker folder and a note about deployment via the Trino Helm charts on Kubernetes as well as direct use with Docker and Docker compose. Assisted-by: Claude Opus 4.7 <noreply@anthropic.com>
List the tagged Trino versions that the packages in this repository are built against, with links to the corresponding release tags, and note that other versions can be used by following the per-package update instructions, starting from the nearest lower tagged version. Assisted-by: Claude Opus 4.7 <noreply@anthropic.com>
This was referenced May 21, 2026
electrum
approved these changes
May 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Also includes testing and verification improvements