Skip to content
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

Support incremental maven builds in PTL #11061

Conversation

findepi
Copy link
Member

@findepi findepi commented Feb 16, 2022

mvn install is typically faster than mvn clean install, but it
leaves previous launcher jar in the target/. Let bin/ptl pick it up
nicely.

This also prevents the script from picking up a way-too-old launcher
jar, i.e. after project version change.

@findepi findepi requested review from wendigo and losipiuk February 16, 2022 08:36
@cla-bot cla-bot bot added the cla-signed label Feb 16, 2022
@findepi findepi force-pushed the findepi/support-incremental-maven-builds-in-ptl-30c2ea branch from 86181d4 to 6ea94ea Compare February 16, 2022 08:46
@findepi
Copy link
Member Author

findepi commented Feb 16, 2022

phoenix failure might be unrelated

Copy link
Member

@hashhar hashhar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

testing/trino-product-tests-launcher/bin/run-launcher Outdated Show resolved Hide resolved
@findepi findepi requested a review from nineinchnick February 16, 2022 20:29
if which mvnd >/dev/null; then
# Using mvnd here can save more than 2 seconds compared to ./mvnw startup cost. This is especially important
# when invoking inspection commands like --help, env list, etc.
trino_version=$(mvnd -B help:evaluate -Dexpression=pom.version -q -DforceStdout --raw-streams)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to skip this if there's only one launcher jar?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure. What if the launcher jar is outdated?

@wendigo
Copy link
Contributor

wendigo commented Feb 17, 2022

Looks fine. Thanks!

`mvn install` is typically faster than `mvn clean install`, but it
leaves previous launcher jar in the target/. Let bin/ptl pick it up
nicely.

This also prevents the script from picking up a way-too-old launcher
jar, i.e. after project version change.
@findepi findepi force-pushed the findepi/support-incremental-maven-builds-in-ptl-30c2ea branch from 6ea94ea to 8ee5843 Compare February 18, 2022 13:54
@findepi findepi merged commit a721e05 into trinodb:master Feb 21, 2022
@findepi findepi deleted the findepi/support-incremental-maven-builds-in-ptl-30c2ea branch February 21, 2022 08:43
@github-actions github-actions bot added this to the 372 milestone Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants