-
Notifications
You must be signed in to change notification settings - Fork 3k
Split Hibernate ORM and Search dev-only modules #49399
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
/cc @gsmet (hibernate-orm,hibernate-search), @marko-bekhta (hibernate-search) |
This comment has been minimized.
This comment has been minimized.
🎊 PR Preview fd19048 has been successfully built and deployed to https://quarkus-pr-main-49399-preview.surge.sh/version/main/guides/
|
This comment has been minimized.
This comment has been minimized.
...rnate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/PersistenceUnitsHolder.java
Outdated
Show resolved
Hide resolved
bc43262
to
18f8c79
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Signed-off-by: Phillip Kruger <[email protected]>
…nsion Signed-off-by: Phillip Kruger <[email protected]>
…ch extension Signed-off-by: Phillip Kruger <[email protected]>
Main change is `HibernateOrmDevIntegrator` so we don't have to have a cyclic dependency on it in the runtime module
18f8c79
to
280a186
Compare
Rebased to get CI confirmation, as we just merged another very significant patch to the ORM extension ( #49408 ) |
Status for workflow
|
Status for workflow
|
Status | Name | Step | Failures | Logs | Raw logs | Build scan |
---|---|---|---|---|---|---|
⌛ | Native Tests - Messaging2 | Logs | Raw logs | 🚧 |
You can consult the Develocity build scans.
Flaky tests - Develocity
⚙️ JVM Tests - JDK 17
📦 extensions/smallrye-reactive-messaging/deployment
✖ io.quarkus.smallrye.reactivemessaging.hotreload.ConnectorChangeTest.testUpdatingConnector
- History
Expecting actual: ["-3","-5","-6","-7","-8","-9","-10","-11"] to start with: ["-3", "-4", "-5", "-6"]
-java.lang.AssertionError
java.lang.AssertionError:
Expecting actual:
["-3","-5","-6","-7","-8","-9","-10","-11"]
to start with:
["-3", "-4", "-5", "-6"]
at io.quarkus.smallrye.reactivemessaging.hotreload.ConnectorChangeTest.testUpdatingConnector(ConnectorChangeTest.java:36)
⚙️ JVM Tests - JDK 21
📦 extensions/scheduler/deployment
✖ io.quarkus.scheduler.test.PausedSchedulerTest.testSchedulerPauseResume
- History
expected: <false> but was: <true>
-org.opentest4j.AssertionFailedError
org.opentest4j.AssertionFailedError: expected: <false> but was: <true>
at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
at org.junit.jupiter.api.AssertFalse.failNotFalse(AssertFalse.java:63)
at org.junit.jupiter.api.AssertFalse.assertFalse(AssertFalse.java:36)
at org.junit.jupiter.api.AssertFalse.assertFalse(AssertFalse.java:31)
at org.junit.jupiter.api.Assertions.assertFalse(Assertions.java:231)
at io.quarkus.scheduler.test.PausedSchedulerTest.testSchedulerPauseResume(PausedSchedulerTest.java:47)
Thanks! |
Thanks! By the way, I just noticed the JS/UI files for the dev UI are still in the deployment module, at least in the case of Hibernate ORM. Do you know if that's really necessary, or if we can/should move them to runtime-dev? Maybe @phillip-kruger would know? |
No they should stay in deployment. (Deployment never ends up in runtime anyway) |
I was more thinking of app devs who use re-augmentation and may not like security scanners flagging dependencies in JS files... Which I thought was the point of runtime-dev. But it seems I was wrong. Thanks for confirming! |
IMO, it's a good point and ideally |
I'd be happy to help with that, in case extension authors are interested. Essentially, it would be making sure the code from different modules complies and classloading doesn't break. |
@phillip-kruger or are those resources must always be in deployment-only classpath? |
I think so yes. They are loaded, when in dev mode, by the build time process |
Sure, the question is whether only the deployment-only classpath elements are searched. If not, then they could easily be moved to runtime-dev dependencies. |
Based on original work by @phillip-kruger and @aloubyansky (kept the commits separated for now).
Had to apply a small change to restore separation of concert between runtime and runtime-dev modules (before that the first relied on some static references in a dev class, but now we use proper runtime only objects).