-
-
Notifications
You must be signed in to change notification settings - Fork 7
chore(trino): Bump trino ahead of 25.7.0 #1095
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
c92ff53
chore(trino): Remove 455
NickLarsenNZ f4ac4ee
chore(trino): Add 476
NickLarsenNZ 23b8bb3
Merge remote-tracking branch 'origin/main' into chore/bump-trino-befo…
NickLarsenNZ a3c45fd
chore(trino): Patch 476
NickLarsenNZ 683a028
fix(trino): Use correct reference to storage-connector
NickLarsenNZ 893af7a
fix(trino): Selectively skip projects by version
NickLarsenNZ 270dc30
Merge branch 'main' into chore/bump-trino-before-25.7.0
NickLarsenNZ 9f8acd0
chore(trino): Update the instructions in the issue template
NickLarsenNZ 896d585
Merge branch 'main' into chore/bump-trino-before-25.7.0
NickLarsenNZ File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,22 +27,22 @@ cd "$(/stackable/patchable --images-repo-root=src checkout trino ${PRODUCT})" | |
# Create snapshot of the source code including custom patches | ||
tar -czf /stackable/trino-${PRODUCT}-src.tar.gz . | ||
|
||
# Trino is using something (git-commit-id-plugin in the past, maybe something else now) that is | ||
# reading the Git history and searches for a tag to pull the version from. It sounds weird to me | ||
# why someone would do that over just picking the version from the pom.xml, but they propably | ||
# have their reasons. See e.g. https://github.com/trinodb/trino/discussions/18963. | ||
# So we fake it till we make it and create a Git repo and the correct tag. The trino-operator | ||
# smoke test checks that "select version()" is working. | ||
# 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 | ||
rm .git | ||
git init | ||
git config user.email "[email protected]" | ||
git config user.name "Fake commiter" | ||
git commit --allow-empty --message "Fake commit, so that we can create a tag" | ||
git tag ${PRODUCT} | ||
SKIP_PROJECTS="!docs" | ||
if [ "$PRODUCT" = "470" ] || [ "$PRODUCT" = "451" ]; then | ||
SKIP_PROJECTS="$SKIP_PROJECTS,!core/trino-server-rpm" | ||
fi | ||
|
||
# We need to use ./mvnw instead of mvn to get a recent maven version (which is required to build Trino) | ||
./mvnw --batch-mode --no-transfer-progress package -DskipTests --projects="!docs,!core/trino-server-rpm" | ||
./mvnw \ | ||
--batch-mode \ | ||
--no-transfer-progress \ | ||
package \ | ||
`# -Dmaven.test.skip # Unable to skip test compilation without an unused dependency error for software.amazon.awssdk:identity-spi` \ | ||
-DskipTests `# Skip test execution` \ | ||
-Dcheckstyle.skip `# Skip checkstyle checks. We dont care if the code is properly formatted, it just wastes time` \ | ||
-Dmaven.javadoc.skip=true `# Dont generate javadoc` \ | ||
-Dmaven.gitcommitid.skip=true `# The gitcommitid plugin cannot work with git workspaces (ie: patchable)` \ | ||
--projects="$SKIP_PROJECTS" | ||
|
||
# Delete intermediate build products to free some space and keep runners happy | ||
rm -r plugin/*/target core/trino-server/target/trino-server-${PRODUCT} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From c91df97de99bfaf1d1740374170d6cb53e24b0af Mon Sep 17 00:00:00 2001 | ||
From 8391e69280bcdb675faf36ce1a259f0aceb2e022 Mon Sep 17 00:00:00 2001 | ||
From: Lukas Voetmand <[email protected]> | ||
Date: Fri, 6 Sep 2024 17:53:52 +0200 | ||
Subject: Add CycloneDX plugin | ||
|
@@ -8,20 +8,20 @@ Subject: Add CycloneDX plugin | |
1 file changed, 18 insertions(+) | ||
|
||
diff --git a/pom.xml b/pom.xml | ||
index 41ca1580021..f2ed3f54f40 100644 | ||
index 579d46b764..8e2d10ec16 100644 | ||
--- a/pom.xml | ||
+++ b/pom.xml | ||
@@ -2681,6 +2681,24 @@ | ||
@@ -2834,6 +2834,24 @@ | ||
</excludes> | ||
</configuration> | ||
</plugin> | ||
+ <plugin> | ||
+ <groupId>org.cyclonedx</groupId> | ||
+ <artifactId>cyclonedx-maven-plugin</artifactId> | ||
+ <version>2.8.0</version> | ||
+ <version>2.9.1</version> | ||
+ <configuration> | ||
+ <projectType>application</projectType> | ||
+ <schemaVersion>1.5</schemaVersion> | ||
+ <schemaVersion>1.6</schemaVersion> | ||
+ <skipNotDeployed>false</skipNotDeployed> | ||
+ </configuration> | ||
+ <executions> | ||
|
2 changes: 1 addition & 1 deletion
2
trino/stackable/patches/455/patchable.toml → trino/stackable/patches/476/patchable.toml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
base = "e212460ea0aa663f0de9b16fecd480c4ad6490cc" | ||
mirror = "https://github.com/stackabletech/trino.git" | ||
base = "7f3746a7fa0b27ace2470340e848feaf3ee73f48" |
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
38 changes: 0 additions & 38 deletions
38
trino/storage-connector/stackable/patches/455/0001-Add-CycloneDX-plugin.patch
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From c14ba9cd92451a2c8a7ad7da2ff2e3f5cdbf2201 Mon Sep 17 00:00:00 2001 | ||
From dd682ba1999455aefc683003cada4fe1677d909c Mon Sep 17 00:00:00 2001 | ||
From: Lukas Voetmand <[email protected]> | ||
Date: Fri, 6 Sep 2024 17:53:52 +0200 | ||
Subject: Add CycloneDX plugin | ||
|
@@ -8,20 +8,20 @@ Subject: Add CycloneDX plugin | |
1 file changed, 18 insertions(+) | ||
|
||
diff --git a/pom.xml b/pom.xml | ||
index 7304dac..d73dacf 100644 | ||
index 5433be6..c3f2fc7 100644 | ||
--- a/pom.xml | ||
+++ b/pom.xml | ||
@@ -544,6 +544,24 @@ | ||
@@ -584,6 +584,24 @@ | ||
</dependency> | ||
</dependencies> | ||
</plugin> | ||
+ <plugin> | ||
+ <groupId>org.cyclonedx</groupId> | ||
+ <artifactId>cyclonedx-maven-plugin</artifactId> | ||
+ <version>2.8.0</version> | ||
+ <version>2.9.1</version> | ||
+ <configuration> | ||
+ <projectType>application</projectType> | ||
+ <schemaVersion>1.5</schemaVersion> | ||
+ <schemaVersion>1.6</schemaVersion> | ||
+ <skipNotDeployed>false</skipNotDeployed> | ||
+ </configuration> | ||
+ <executions> | ||
|
2 changes: 1 addition & 1 deletion
2
...ctor/stackable/patches/455/patchable.toml → ...ctor/stackable/patches/476/patchable.toml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
base = "869a735d8be527117a19150e161ad8ca69317578" | ||
mirror = "https://github.com/stackabletech/trino-storage.git" | ||
base = "1729ac627e9d5549f414c64060bee0c0d97fde01" |
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just pointing out that we cannot skip compilation yet, else we hit this issue:
Slack thread discussing whether to patch out the unused dependency, or just continue compiling tests even though we skip running them.
I'll mark this comment as resolved after approval