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

Use quarkus-security-test-utils and quarkus-arc-test-supplement dependencies within a test scope #46497

Conversation

michalvavrik
Copy link
Member

I mentioned scope of these dependencies isn't what I expected when I analyzed Quarkus core dependencies that are not managed by Quarkus BOM. I expected they will have a test scope but nope.

  • quarkus-security-test-utils here I am pretty sure that compile scope doesn't make sense because we don't expect other deployment modules of extensions will use this internal tool; if they need it, they should include it explicitly
  • quarkus-arc-test-supplement seems like purely test scope dependency, but there can be a reason why it must be in a compile scope I don't know about

@quarkus-bot quarkus-bot bot added area/arc Issue related to ARC (dependency injection) area/resteasy-classic area/security labels Feb 25, 2025
Copy link

quarkus-bot bot commented Feb 25, 2025

Status for workflow Quarkus Documentation CI

This is the status report for running Quarkus Documentation CI on commit 0e2f257.

✅ The latest workflow run for the pull request has completed successfully.

It should be safe to merge provided you have a look at the other checks in the summary.

Warning

There are other workflow runs running, you probably need to wait for their status before merging.

Copy link

🎊 PR Preview 453add3 has been successfully built and deployed to https://quarkus-pr-main-46497-preview.surge.sh/version/main/guides/

  • Images of blog posts older than 3 months are not available.
  • Newsletters older than 3 months are not available.

Copy link

quarkus-bot bot commented Feb 26, 2025

Status for workflow Quarkus CI

This is the status report for running Quarkus CI on commit 0e2f257.

✅ The latest workflow run for the pull request has completed successfully.

It should be safe to merge provided you have a look at the other checks in the summary.

You can consult the Develocity build scans.


Flaky tests - Develocity

⚙️ JVM Tests - JDK 17 Windows

📦 extensions/hibernate-orm/deployment

io.quarkus.hibernate.orm.applicationfieldaccess.PublicFieldAccessInheritanceTest.testFieldAccess - History

  • Expecting actual not to be null - java.lang.AssertionError
java.lang.AssertionError: 

Expecting actual not to be null
	at io.quarkus.hibernate.orm.applicationfieldaccess.PublicFieldAccessInheritanceTest$FieldAccessEnhancedDelegate$2.assertValue(PublicFieldAccessInheritanceTest.java:152)
	at io.quarkus.hibernate.orm.applicationfieldaccess.PublicFieldAccessInheritanceTest.doTestFieldAccess(PublicFieldAccessInheritanceTest.java:100)
	at io.quarkus.hibernate.orm.applicationfieldaccess.PublicFieldAccessInheritanceTest.testFieldAccess(PublicFieldAccessInheritanceTest.java:61)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at io.quarkus.test.QuarkusUnitTest.runExtensionMethod(QuarkusUnitTest.java:513)
  • Expecting actual not to be null - java.lang.AssertionError
java.lang.AssertionError: 

Expecting actual not to be null
	at io.quarkus.hibernate.orm.applicationfieldaccess.PublicFieldAccessInheritanceTest$FieldAccessEnhancedDelegate$2.assertValue(PublicFieldAccessInheritanceTest.java:152)
	at io.quarkus.hibernate.orm.applicationfieldaccess.PublicFieldAccessInheritanceTest.doTestFieldAccess(PublicFieldAccessInheritanceTest.java:100)
	at io.quarkus.hibernate.orm.applicationfieldaccess.PublicFieldAccessInheritanceTest.testFieldAccess(PublicFieldAccessInheritanceTest.java:61)
	at java.base/java.lang.reflect.Method.invoke(Method.java:569)
	at io.quarkus.test.QuarkusUnitTest.runExtensionMethod(QuarkusUnitTest.java:513)

@michalvavrik
Copy link
Member Author

hey @mkouba , is changing scope of the quarkus-arc-test-supplement correct?

@mkouba
Copy link
Contributor

mkouba commented Feb 26, 2025

hey @mkouba , is changing scope of the quarkus-arc-test-supplement correct?

It looks ok but until now I had no idea what quarkus-arc-test-supplement actually is. It might be better to ask @Ladicek!

@Ladicek
Copy link
Contributor

Ladicek commented Feb 26, 2025

Making quarkus-arc-test-supplement test-scoped is OK, I'm not sure why I didn't make it test-scoped initially. It's only used in deployment tests.

@michalvavrik
Copy link
Member Author

Making quarkus-arc-test-supplement test-scoped is OK, I'm not sure why I didn't make it test-scoped initially. It's only used in deployment tests.

Alright, thanks.

@gsmet gsmet merged commit 600c293 into quarkusio:main Feb 26, 2025
60 checks passed
@quarkus-bot quarkus-bot bot added this to the 3.21 - main milestone Feb 26, 2025
@gsmet
Copy link
Member

gsmet commented Feb 26, 2025

Good catch!

@michalvavrik michalvavrik deleted the feature/move-some-deployment-deps-to-test-scope branch February 26, 2025 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants