Skip to content

Commit 830a4cb

Browse files
authored
Merge branch 'main' into chore/release-template-updates
2 parents e0f6f6d + ba8fbf3 commit 830a4cb

File tree

12 files changed

+60
-41
lines changed

12 files changed

+60
-41
lines changed

.github/ISSUE_TEMPLATE/update-product-trino.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ Add/Change/Remove anything that isn't applicable anymore
3030
### Trino
3131

3232
- [ ] Update `versions.py` to reflect the agreed upon versions in the spreadsheet (including the removal of old versions).
33-
- [ ] Upload new version (see `trino/*.sh` scripts).
3433
- [ ] Update `versions.py` to the latest supported version of JVM (base and devel).
3534
- [ ] Update other dependencies if applicable (eg: jmx_exporter, opa_authorizer, storage_connector, etc).
3635
- [ ] Check other operators (getting_started / kuttl / supported-versions) for usage of the versions. Add the PR(s) to the list below.

.github/workflows/ubi-rust-builder.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ on:
77
push:
88
branches:
99
- main
10+
paths:
11+
- ubi9-rust-builder/**
12+
- ubi10-rust-builder/**
13+
- .github/actions/**
14+
- .github/workflows/ubi-rust-builder.yml
15+
- .github/workflows/reusable_build_image.yaml
1016
schedule:
1117
- cron: '30 4 * * *'
1218
workflow_dispatch:

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ All notable changes to this project will be documented in this file.
3737
- superset: Add version `4.1.2` ([#1102]).
3838
- trino: check for correct permissions and ownerships in /stackable folder via
3939
`check-permissions-ownership.sh` provided in stackable-base image ([#1025]).
40+
- trino: Add `476` ([#1095]).
41+
- trino-storage-connector: Add `476` ([#1095]).
4042
- zookeeper: check for correct permissions and ownerships in /stackable folder via
4143
`check-permissions-ownership.sh` provided in stackable-base image ([#1043]).
4244
- nifi: Build and add OPA authorizer plugin nar ([#1058]).
@@ -65,6 +67,7 @@ All notable changes to this project will be documented in this file.
6567
- kubectl: Bump products to use `1.33.0` ([#1090]).
6668
- yq: Bump products to use `4.45.2` ([#1090]).
6769
- cyclonedx-bom: Bump airflow and superset to use `6.0.0` ([#1090]).
70+
- trino-cli: Bump to `476` ([#1095]).
6871
- vector: Bump to `0.46.1` ([#1098]).
6972
- spark: update dependencies for 3.5.5 ([#1094]).
7073
- nifi: include NAR SBOMs ([#1119]).
@@ -104,6 +107,8 @@ All notable changes to this project will be documented in this file.
104107

105108
- ci: Remove Nexus steps from build, mirror and release workflows ([#1056]).
106109
Also remove the old release workflow.
110+
- trino: Remove `455` ([#1095]).
111+
- trino-storage-connector: Remove `455` ([#1095]).
107112
- zookeeper: Remove 3.9.2 ([#1093]).
108113
- Remove ubi8-rust-builder image ([#1091]).
109114
- spark: remove 3.5.2 ([#1094]).
@@ -142,6 +147,7 @@ All notable changes to this project will be documented in this file.
142147
[#1091]: https://github.com/stackabletech/docker-images/pull/1091
143148
[#1093]: https://github.com/stackabletech/docker-images/pull/1093
144149
[#1094]: https://github.com/stackabletech/docker-images/pull/1094
150+
[#1095]: https://github.com/stackabletech/docker-images/pull/1095
145151
[#1097]: https://github.com/stackabletech/docker-images/pull/1097
146152
[#1098]: https://github.com/stackabletech/docker-images/pull/1098
147153
[#1099]: https://github.com/stackabletech/docker-images/pull/1099

trino-cli/versions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# It's therefore ok if we only support a single version at a time.
33
versions = [
44
{
5-
"product": "470",
6-
"java-base": "23",
5+
"product": "476",
6+
"java-base": "24",
77
},
88
]

trino/Dockerfile

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,22 @@ cd "$(/stackable/patchable --images-repo-root=src checkout trino ${PRODUCT})"
2727
# Create snapshot of the source code including custom patches
2828
tar -czf /stackable/trino-${PRODUCT}-src.tar.gz .
2929

30-
# Trino is using something (git-commit-id-plugin in the past, maybe something else now) that is
31-
# reading the Git history and searches for a tag to pull the version from. It sounds weird to me
32-
# why someone would do that over just picking the version from the pom.xml, but they propably
33-
# have their reasons. See e.g. https://github.com/trinodb/trino/discussions/18963.
34-
# So we fake it till we make it and create a Git repo and the correct tag. The trino-operator
35-
# smoke test checks that "select version()" is working.
36-
# Also, we need to initialize a new Git repo because `git-commit-id-maven-plugin` has a problem with worktrees, see https://github.com/git-commit-id/git-commit-id-maven-plugin/issues/215
37-
rm .git
38-
git init
39-
git config user.email "[email protected]"
40-
git config user.name "Fake commiter"
41-
git commit --allow-empty --message "Fake commit, so that we can create a tag"
42-
git tag ${PRODUCT}
30+
SKIP_PROJECTS="!docs"
31+
if [ "$PRODUCT" = "470" ] || [ "$PRODUCT" = "451" ]; then
32+
SKIP_PROJECTS="$SKIP_PROJECTS,!core/trino-server-rpm"
33+
fi
4334

4435
# We need to use ./mvnw instead of mvn to get a recent maven version (which is required to build Trino)
45-
./mvnw --batch-mode --no-transfer-progress package -DskipTests --projects="!docs,!core/trino-server-rpm"
36+
./mvnw \
37+
--batch-mode \
38+
--no-transfer-progress \
39+
package \
40+
`# -Dmaven.test.skip # Unable to skip test compilation without an unused dependency error for software.amazon.awssdk:identity-spi` \
41+
-DskipTests `# Skip test execution` \
42+
-Dcheckstyle.skip `# Skip checkstyle checks. We dont care if the code is properly formatted, it just wastes time` \
43+
-Dmaven.javadoc.skip=true `# Dont generate javadoc` \
44+
-Dmaven.gitcommitid.skip=true `# The gitcommitid plugin cannot work with git workspaces (ie: patchable)` \
45+
--projects="$SKIP_PROJECTS"
4646

4747
# Delete intermediate build products to free some space and keep runners happy
4848
rm -r plugin/*/target core/trino-server/target/trino-server-${PRODUCT}

trino/stackable/patches/455/0001-Add-CycloneDX-plugin.patch renamed to trino/stackable/patches/476/0001-Add-CycloneDX-plugin.patch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From c91df97de99bfaf1d1740374170d6cb53e24b0af Mon Sep 17 00:00:00 2001
1+
From 8391e69280bcdb675faf36ce1a259f0aceb2e022 Mon Sep 17 00:00:00 2001
22
From: Lukas Voetmand <[email protected]>
33
Date: Fri, 6 Sep 2024 17:53:52 +0200
44
Subject: Add CycloneDX plugin
@@ -8,20 +8,20 @@ Subject: Add CycloneDX plugin
88
1 file changed, 18 insertions(+)
99

1010
diff --git a/pom.xml b/pom.xml
11-
index 41ca1580021..f2ed3f54f40 100644
11+
index 579d46b764..8e2d10ec16 100644
1212
--- a/pom.xml
1313
+++ b/pom.xml
14-
@@ -2681,6 +2681,24 @@
14+
@@ -2834,6 +2834,24 @@
1515
</excludes>
1616
</configuration>
1717
</plugin>
1818
+ <plugin>
1919
+ <groupId>org.cyclonedx</groupId>
2020
+ <artifactId>cyclonedx-maven-plugin</artifactId>
21-
+ <version>2.8.0</version>
21+
+ <version>2.9.1</version>
2222
+ <configuration>
2323
+ <projectType>application</projectType>
24-
+ <schemaVersion>1.5</schemaVersion>
24+
+ <schemaVersion>1.6</schemaVersion>
2525
+ <skipNotDeployed>false</skipNotDeployed>
2626
+ </configuration>
2727
+ <executions>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
base = "e212460ea0aa663f0de9b16fecd480c4ad6490cc"
21
mirror = "https://github.com/stackabletech/trino.git"
2+
base = "7f3746a7fa0b27ace2470340e848feaf3ee73f48"

trino/storage-connector/Dockerfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,13 @@ tar -czf /stackable/trino-storage-connector-${PRODUCT}-src.tar.gz .
2323
mvn versions:set -DnewVersion=${PRODUCT}
2424

2525
# We need to use ./mvnw instead of mvn to get a recent maven version (which is required to build Trino)
26-
./mvnw --batch-mode --no-transfer-progress package -DskipTests -Dmaven.gitcommitid.skip=true
26+
./mvnw \
27+
--batch-mode \
28+
--no-transfer-progress \
29+
package \
30+
-Dmaven.test.skip `# Skip test compilation` \
31+
-DskipTests `# Skip test execution` \
32+
-Dcheckstyle.skip `# Skip checkstyle checks. We dont care if the code is properly formatted, it just wastes time` \
33+
-Dmaven.javadoc.skip=true `# Dont generate javadoc` \
34+
-Dmaven.gitcommitid.skip=true `# The gitcommitid plugin cannot work with git workspaces (ie: patchable)`
2735
EOF

trino/storage-connector/stackable/patches/455/0001-Add-CycloneDX-plugin.patch renamed to trino/storage-connector/stackable/patches/476/0001-Add-CycloneDX-plugin.patch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 16f22c658fa54a9b4d7cc5ece65bcc92f104816d Mon Sep 17 00:00:00 2001
1+
From dd682ba1999455aefc683003cada4fe1677d909c Mon Sep 17 00:00:00 2001
22
From: Lukas Voetmand <[email protected]>
33
Date: Fri, 6 Sep 2024 17:53:52 +0200
44
Subject: Add CycloneDX plugin
@@ -8,20 +8,20 @@ Subject: Add CycloneDX plugin
88
1 file changed, 18 insertions(+)
99

1010
diff --git a/pom.xml b/pom.xml
11-
index 6471642..492e222 100644
11+
index 5433be6..c3f2fc7 100644
1212
--- a/pom.xml
1313
+++ b/pom.xml
14-
@@ -555,6 +555,24 @@
14+
@@ -584,6 +584,24 @@
1515
</dependency>
1616
</dependencies>
1717
</plugin>
1818
+ <plugin>
1919
+ <groupId>org.cyclonedx</groupId>
2020
+ <artifactId>cyclonedx-maven-plugin</artifactId>
21-
+ <version>2.8.0</version>
21+
+ <version>2.9.1</version>
2222
+ <configuration>
2323
+ <projectType>application</projectType>
24-
+ <schemaVersion>1.5</schemaVersion>
24+
+ <schemaVersion>1.6</schemaVersion>
2525
+ <skipNotDeployed>false</skipNotDeployed>
2626
+ </configuration>
2727
+ <executions>
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
base = "869a735d8be527117a19150e161ad8ca69317578"
21
mirror = "https://github.com/stackabletech/trino-storage.git"
2+
base = "1729ac627e9d5549f414c64060bee0c0d97fde01"

0 commit comments

Comments
 (0)