-
Notifications
You must be signed in to change notification settings - Fork 3k
Introduces native.surefire.skip to skip unit tests with -Dnative #10791
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
Conversation
|
As discussed in https://groups.google.com/d/msg/quarkus-dev/zoMscmKGXo4/xYOdXB4CCQAJ I hope I did not miss any native integration tests, I used |
|
Could you explain what's the rationale of this? Why do you need this? Thanks! |
It's an effort to reduce the time spent in Inspecting the log archive from [1] we get the following numbers per
$ for i in Native\ Tests\ -\ */; do echo -n "$i\t"; awk '/IT/ {next;} /Time elapsed/ {sum+=$14} /] Total time/ {total+=$5*60} END {print sum " seconds out of ~"total" ( ~"sum*100/total"% )" }' $i/*; done
Native Tests - Amazon/ 50.288 seconds out of ~600 ( ~8.38133% )
Native Tests - Cache/ 29.721 seconds out of ~900 ( ~3.30233% )
Native Tests - Data1/ 62.602 seconds out of ~1680 ( ~3.72631% )
Native Tests - Data2/ 68.245 seconds out of ~2100 ( ~3.24976% )
Native Tests - Data3/ 58.306 seconds out of ~1740 ( ~3.35092% )
Native Tests - Data4/ 47.887 seconds out of ~1500 ( ~3.19247% )
Native Tests - Data5/ 39.493 seconds out of ~1200 ( ~3.29108% )
Native Tests - gRPC/ 59.673 seconds out of ~2040 ( ~2.92515% )
Native Tests - HTTP/ 51.792 seconds out of ~1500 ( ~3.4528% )
Native Tests - Main/ 32.825 seconds out of ~540 ( ~6.0787% )
Native Tests - Messaging/ 57.275 seconds out of ~1260 ( ~4.54563% )
Native Tests - Misc1/ 60.54 seconds out of ~2321.58 ( ~2.60771% )
Native Tests - Misc2/ 20.797 seconds out of ~900 ( ~2.31078% )
Native Tests - Misc3/ 16.671 seconds out of ~420 ( ~3.96929% )
Native Tests - Misc4/ 14.771 seconds out of ~600 ( ~2.46183% )
Native Tests - Security1/ 42.237 seconds out of ~1080 ( ~3.91083% )
Native Tests - Security2/ 117.713 seconds out of ~1680 ( ~7.00673% )
Native Tests - Security3/ 37.152 seconds out of ~540 ( ~6.88% )
Native Tests - Spring/ 43.213 seconds out of ~1200 ( ~3.60108% )Note also that a similar [1] https://github.com/quarkusio/quarkus/pull/10787/checks?check_run_id=879134957 |
This patch allows native integration tests to run without also running the corresponding unit tests. To achieve this one needs to issue: mvn -Dnative -Dnative.surefire.skip verify or mvn -Dnative -Dnative.surefire.skip -pl integration-tests -amd verify or mvn -Dnative -Dnative.surefire.skip -pl integration-tests/artemis-core verify etc.
4b75c08 to
cbe5c92
Compare
|
This was brought up in https://groups.google.com/g/quarkus-dev/c/zoMscmKGXo4/m/U5vq7NjzCAAJ |
|
I like this approach. Any objections on getting this merged? |
|
Not from me |
|
Just a note here: Is the maven plugin expected to be used outside of this repo to generate integration tests? |
|
I am not sure what you mean, can you explain a little further? |
|
If I understand correctly, in https://github.com/quarkusio/quarkus/pull/10791/files#diff-02eb384f391430108d12ba7ff54c4a11 I am patching a template used by the This patch relies on: being present in So if the |
|
Hm... I think you are right. @aloubyansky would know more for sure :) |
|
@zakkak yes, create-extension can be used to create a standalone extension project. |
|
@aloubyansky in this case where is the best place to add |
|
integration-test-pom.xml i think. |
|
I opened #10932 to further discuss this. |
This patch allows native integration tests to run without also running
the corresponding unit tests. To achieve this one needs to issue:
mvn -Dnative -Dnative.surefire.skip verifyor
mvn -Dnative -Dnative.surefire.skip -pl integration-tests -amd verifyor
mvn -Dnative -Dnative.surefire.skip -pl integration-tests/artemis-core verifyetc.