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

sortpom-maven-plugin should fail maven checks but not running tests #19226

Closed
findepi opened this issue Oct 2, 2023 · 12 comments
Closed

sortpom-maven-plugin should fail maven checks but not running tests #19226

findepi opened this issue Oct 2, 2023 · 12 comments
Labels
good first issue Good for newcomers maintenance Project maintenance task

Comments

@findepi
Copy link
Member

findepi commented Oct 2, 2023

currently sortpom-maven-plugin fails pretty much every CI job
it should run in maven checks
it should not run eg in test matrix, of when building the test matrix

@findepi findepi added good first issue Good for newcomers maintenance Project maintenance task labels Oct 2, 2023
@findepi
Copy link
Member Author

findepi commented Oct 2, 2023

cc @nineinchnick @aczajkowski

@nineinchnick
Copy link
Member

@findepi can you include a link to an example run? Why it shouldn't run in the jobs you mentioned, are you concerned with the overhead?

@findepi
Copy link
Member Author

findepi commented Oct 2, 2023

I am solely concerned with the lack of test output from CI for what i see a really minor issue.

@aczajkowski
Copy link
Member

Agree, probably enough to fail only mvn checks. But this means in all other steps we will need to intentionally disable it.
Or change how current mvn configuration is done.

@findepi
Copy link
Member Author

findepi commented Oct 3, 2023

Yes, let's disable it in all other steps (just like we disable checkstyle for instance)

@u7452206
Copy link

u7452206 commented Oct 9, 2023

hi, does this task anyone work on right now? If not, I would like to help.

@nineinchnick
Copy link
Member

@u7452206 go ahead and give it a try

@ritishalaungani
Copy link

Hi @u7452206, have you been able to give this a shot? Wondering if I can give it a try..

Meanwhile, @nineinchnick, @findepi - I am new to contributing here and wanted to join the trino slack channel to ask a few questions. The 'join slack' link on this page seems to be expired. A new invite link is needed - are one of you able to help me get that? Thanks!

@u7452206
Copy link

u7452206 commented Nov 2, 2023

Hi @u7452206, have you been able to give this a shot? Wondering if I can give it a try..

Meanwhile, @nineinchnick, @findepi - I am new to contributing here and wanted to join the trino slack channel to ask a few questions. The 'join slack' link on this page seems to be expired. A new invite link is needed - are one of you able to help me get that? Thanks!

I didn't work this out. Feel free to continuous.

@nineinchnick
Copy link
Member

@ritishalaungani the Slack invite link has been updated, please try again, and thanks for reporting!

@ritishalaungani
Copy link

Thanks @nineinchnick

@findepi, AFAICT, sortpom-maven-plugin is not being used in this project atall (in any of the jobs or in pom.xml) - I couldn't find any results when I search for sortpom throughout the project. Perhaps it was being used before and was removed at some point? Am I missing something?

In addition, you mention above that checkstyle is disabled in other ci steps. I couldn't figure out where that is happening in the ci.yml file. Can you please point me to it? Thanks!

@hashhar
Copy link
Member

hashhar commented Sep 3, 2024

This should now work out of the box.

We use -Dair.check.skip-all=true in non-maven checks and that is respected in airbase for the sortpom plugin - https://github.com/airlift/airbase/blob/c824cada1c69286a9a666d6fe9dd55efa6075389/airbase/pom.xml#L1505-L1511

@hashhar hashhar closed this as completed Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers maintenance Project maintenance task
Development

No branches or pull requests

6 participants