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

Quarkus restarts after each test class for multiple test classes decorated with the same @TestProfile (regression) #44593

Closed
jmdsc opened this issue Nov 20, 2024 · 3 comments
Labels
area/testing kind/bug Something isn't working triage/out-of-date This issue/PR is no longer valid or relevant

Comments

@jmdsc
Copy link

jmdsc commented Nov 20, 2024

Describe the bug

The bug seems to be similar to issue 44235 but occurs when using the @TestProfile annotation instead of using the @WithTestResource annotation. In other words, when different tests are decorated with the @TestProfile annotation having the same QuarkusTestProfile value, Quarkus restarts after each test.

The above behavior has been confirmed on all 3.16.x versions and also 3.17.0.CR1 - version 3.15.2 does not have the same problem/behavior.

Expected behavior

When different tests are decorated with the @TestProfile annotation having the same QuarkusTestProfile value, the expected behavior is that Quarkus does not restart after each of those tests - the same behavior that we witness in version 3.15.2 and earlier.

Actual behavior

When different tests are decorated with the @TestProfile annotation having the same QuarkusTestProfile value, Quarkus restarts after each test.

How to Reproduce?

Maven reproducer project: quarkus-sixteen.tar.gz

Output of uname -a or ver

Linux 6.8.0-49-generic #49-Ubuntu SMP PREEMPT_DYNAMIC Mon Nov 4 02:06:24 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Output of java -version

openjdk version "21.0.5" 2024-10-15 LTS OpenJDK Runtime Environment Zulu21.38+21-CA (build 21.0.5+11-LTS) OpenJDK 64-Bit Server VM Zulu21.38+21-CA (build 21.0.5+11-LTS, mixed mode, sharing)

Quarkus version or git rev

3.16.0, 3.16.1, 3.16.3, 3.17.0.CR1

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.9.9

Additional information

No response

@jmdsc jmdsc added the kind/bug Something isn't working label Nov 20, 2024
@geoand
Copy link
Contributor

geoand commented Nov 21, 2024

Is there any chance you can test this using 3.17.0 (you'll need to use quarkus-bom for the time being)?
Asking because this was likely fixed by #44532

@geoand geoand added area/testing triage/needs-feedback We are waiting for feedback. labels Nov 21, 2024
@jmdsc
Copy link
Author

jmdsc commented Nov 21, 2024

Just tested with 3.17.0 and the behavior is as expected - Quarkus no longer restarts after each test class when classes are decorated with the @TestProfile annotation having the same QuarkusTestProfile value.

@jmdsc jmdsc closed this as completed Nov 21, 2024
@geoand
Copy link
Contributor

geoand commented Nov 22, 2024

Thanks for checking!

@geoand geoand added triage/out-of-date This issue/PR is no longer valid or relevant and removed triage/needs-feedback We are waiting for feedback. labels Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/testing kind/bug Something isn't working triage/out-of-date This issue/PR is no longer valid or relevant
Projects
None yet
Development

No branches or pull requests

2 participants