-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Improvements in native.surefire.skip usage to skip unit tests with -Dnative #10932
Conversation
I moved:
inside each integration test's |
This however does not seem to work because in:
As a result I think that
must be in a parent pom file of the pom that includes:
so that it can get prioritized. |
cc @aloubyansky |
Yes, this change alone doesn't look right. I know there was a create-extension issue but keep in mind that that integration-test-pom.xml template is a Quarkus-specific part. create-extension however is something that can be used outside of the quarkus repo. |
The commit message shouldn't have the |
@aloubyansky In that case, if |
Yes, i think you can leave it for now. BTW, couldn't we move
to the |
@aloubyansky I am not sure we can. We want this to be enabled only for the native-image profile. |
I thought we could add pluginManagement to the native profile. Or even configure the plugin in the native profile and customize the configs where necessary in specific test projects. But perhaps that won't work, i'm not sure. I thought i'd ask whether you know. |
I am not that familiar with maven so I will have to give it a try and come back :) |
Great, please do :) |
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 a note that the commit message and the PR title need some love. We don't want any fixup!
in there.
I hate to say that and I'm sorry about it but my opinion on this patch (and given the discussion that took place in the other thread) is that it's not really worth the added complexity and the time spent on it. I think your time would be more valuable on other more pressing issues. Just my 2 cents though, others may have different opinion. |
@gsmet the way I see it this is not "spent time" for the following reasons:
Noted. Once we conclude our discussions/experiments this PR will either get out of Draft mode and those will get fixed, or just get closed. |
@zakkak See @aloubyansky is on the right track:
As long as all It becomes more complicated if some jar-submodules should not execute/test any native stuff. Downside of
|
@famod Thanks for the detailed explanation, I'll try that then.
Note that surefire is already (by #10791) made aware of this in the integration-tests/*/pom.xml files, e.g. quarkus/integration-tests/amazon-lambda-http/pom.xml Lines 90 to 92 in 05a0ec5
|
@zakkak the problem is that it also requires other people attention such as Alexey's and again I don't think it's worth it. As we mentioned it with Georgios, locally, we want to run the Java tests before the native ones because it's a safe check that avoids waiting for 5 minutes if there's an obvious issue. That lets us with CI and IMHO the benefit is not really worth it. |
FWIW this is still the case since this is an opt-in "feature" where one needs to use |
549c377
to
52b1df7
Compare
@aloubyansky done (there were some conflicts, so please make sure to review once more) |
@gsmet it's in your hands |
@gsmet are there any standing issues with this PR? |
@gsmet this one got away, should I rebase it to get it merged? |
@gsmet is on PTO this week. Good question though. |
@gsmet this is a kind reminder |
@zakkak go ahead and rebase it so we can merge it |
52b1df7
to
a093ab2
Compare
@gastaldi this is now rebased :) |
@zakkak weird, I still see conflicts in the PR. Are you sure you have rebased on the latest master? |
Reduce duplication of surefire plugin's configuration in the native-image profile for integration tests.
a093ab2
to
3993ebb
Compare
Sorry for that, it looks like I only fetched and never pulled Should be OK now |
@gastaldi this is a kind reminder |
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.
@zakkak sorry, that fell through the cracks. It looks good to me
@gsmet I'll let you push the Merge button once your concerns are addressed |
Hello, should I proceed with rebasing? |
I must have forgotten about this! I'm in the process of unifying the |
Fixes the issue described in #10791 (comment)