Skip to content

Conversation

mbellade
Copy link
Member

@mbellade mbellade commented Aug 7, 2025

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).

@quarkus-bot quarkus-bot bot added area/dependencies Pull requests that update a dependency file area/hibernate-orm Hibernate ORM area/hibernate-search Hibernate Search labels Aug 7, 2025
Copy link

quarkus-bot bot commented Aug 7, 2025

/cc @gsmet (hibernate-orm,hibernate-search), @marko-bekhta (hibernate-search)

This comment has been minimized.

Copy link

github-actions bot commented Aug 7, 2025

🎊 PR Preview fd19048 has been successfully built and deployed to https://quarkus-pr-main-49399-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.

@aloubyansky
Copy link
Member

Thanks a lot @mbellade!

@yrodiere you may want to review this one.

This comment has been minimized.

@mbellade mbellade force-pushed the hibernate-orm-dev branch from bc43262 to 18f8c79 Compare August 7, 2025 13:14

This comment has been minimized.

This comment has been minimized.

@Sanne Sanne requested a review from gsmet August 7, 2025 16:26
phillip-kruger and others added 5 commits August 7, 2025 17:28
Main change is `HibernateOrmDevIntegrator` so we don't have to have a cyclic dependency on it in the runtime module
@Sanne Sanne force-pushed the hibernate-orm-dev branch from 18f8c79 to 280a186 Compare August 7, 2025 16:28
@Sanne
Copy link
Member

Sanne commented Aug 7, 2025

Rebased to get CI confirmation, as we just merged another very significant patch to the ORM extension ( #49408 )

Copy link

quarkus-bot bot commented Aug 7, 2025

Status for workflow Quarkus Documentation CI

This is the status report for running Quarkus Documentation CI on commit 280a186.

✅ 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

quarkus-bot bot commented Aug 7, 2025

Status for workflow Quarkus CI

This is the status report for running Quarkus CI on commit 280a186.

Failing Jobs

Status Name Step Failures Logs Raw logs Build scan
Native Tests - Messaging2 ⚠️ Check → 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)

@gsmet gsmet merged commit c813157 into quarkusio:main Aug 7, 2025
58 of 59 checks passed
@quarkus-bot quarkus-bot bot added this to the 3.26 - main milestone Aug 7, 2025
@gsmet
Copy link
Member

gsmet commented Aug 7, 2025

Thanks!

@mbellade mbellade deleted the hibernate-orm-dev branch August 8, 2025 06:28
@yrodiere
Copy link
Member

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?

@phillip-kruger
Copy link
Member

No they should stay in deployment. (Deployment never ends up in runtime anyway)

@yrodiere
Copy link
Member

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!

@aloubyansky
Copy link
Member

IMO, it's a good point and ideally -dev dependencies should be pulled in only in dev mode. It will probably require further refactoring to implement this split cleaner and it will be specific to each extension, of course.

@aloubyansky
Copy link
Member

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.

@aloubyansky
Copy link
Member

@phillip-kruger or are those resources must always be in deployment-only classpath?

@phillip-kruger
Copy link
Member

I think so yes. They are loaded, when in dev mode, by the build time process

@aloubyansky
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dependencies Pull requests that update a dependency file area/hibernate-orm Hibernate ORM area/hibernate-search Hibernate Search triage/flaky-test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants