-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Executing tests in Quarkus 3.13+ are extremely slow #42390
Comments
The slowness is also likely being exarcebated by the fact that under yet to be determined cases, we are leaking ClassLoaders |
@edeandrea I wonder if we need to make it clearer in the docs that |
I read this to mean that this issue is not a bug but the expected (default) behavior of annotation |
Yes, absolutely, but it seems like we need to make that clearer in the docs :) |
I think we need more than something in the Javadoc, we also need to document it very clearly in the doc. And we should also make it clear in the migration guide. We already had two reports of this and we are in the middle of the summer. |
Sure yeah, all that makes sense. @edeandrea are you up for it? |
BTW, @mschorsch you confirm that you didn't use |
Yes we do not use |
@mschorsch another small question to make sure I fully understand this: you had |
Yes, we used
Edit: To make it fully clear, we changed in all our tests |
If you want to be 100% backwards compatible with |
Also you need only one annotation if you're doing this ^ |
My question has been answered and the behavior of |
For the sake of completeness, what was the intention to change this behaviour? |
The old default behavior was super confusing to anyone that was not aware of it. |
Describe the bug
Since the introduction of the annotation
@WithTestResource(value = OidcWiremockTestResource.class)
, tests are executed extremely slowly because the application is started for each test class. If@WithTestResource(value = OidcWiremockTestResource.class, restrictToAnnotatedClass = false)
is used, the tests are fast again.Note: The constant restarts then also show the classloader problems which then lead to the OOMs (#42303, #42355).
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
./gradlew clean build
-> Extremly slow@WithTestResource(value = OidcWiremockTestResource.class)
with@WithTestResource(value = OidcWiremockTestResource.class, restrictToAnnotatedClass = false)
./gradlew clean build
-> Fast againOutput of
uname -a
orver
No response
Output of
java -version
Java 21
Quarkus version or git rev
Quarkus 3.13.1
Build tool (ie. output of
mvnw --version
orgradlew --version
)Gradle 8.8
Additional information
No response
The text was updated successfully, but these errors were encountered: