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
WFLY-15838 + WFLY-15839 + WFLY-15840 + WFLY-15841 + WFLY-15842 Upgrade to Hibernate Search 6 (EE 9 + ORM 6) #15185
Conversation
Dependency Tree Analyzer Output: New Dependencies:
Removed Dependencies:
CC @wildfly/prod |
As far as I can see the failure in Linux - JDK 11 is the one about compat tests, which Scott mentioned in #15165. I didn't look at the other failures. I ran the tests related to Hibernate Search locally though, and I found one failure. It's caused by a bug in Hibernate ORM 6: hibernate/hibernate-orm#4777 |
@yrodiere fyi, https://github.com/scottmarlow/wildfly/tree/orm6_fixup2 has more updates to pass more tests (especially if you use the latest ORM 6.0 snapshot build). |
@scottmarlow Thanks for the heads-up, I just rebased. Let's see how it goes... |
@yrodiere I think that ORM 6 (in JPA/Persistence compatible mode) needs queries to include a
To:
And from:
To:
And from:
To:
|
If you see failures due to the CDI Bean Manager not being available, that is likely caused by a change to not enable CDI by default. jakartaee/platform-tck#874 mentions you can workaround that a few ways like specifying that beans are Application scoped (and a few other ways mentioned in the pr). |
Thanks @scottmarlow , I rebased on your PR with your fixes, and also fixed CDI bean detection in Hibernate Search tests. Tests pass locally, let's see about CI... |
@scottmarlow Thanks for the heads-up, I rebased on your branch. |
It looks like all of the test failures are for microprofile + clustering, I don't see any Hibernate test failures which is great! |
Ah, I didn't know someone else was watching the build results. Sorry about the back and forth, I'm struggling to find the right profiles where to disable tests (disable HSearch tests with the security manager, disable HSearch 5 tests when testing EE9, etc.). It seems we're almost there, indeed. I'll look into the remaining failures... there's one related to HSearch with the security manager, in particular. |
Ok, this should remove the last remaining failure related to Hibernate Search (5, in this case). Do I need to do something about the gazilion failures related to microprofile + clustering? Or is this something that already fails on your PR or the main branch? |
No, you can ignore those failures as I don't believe they should be related to the Hibernate Search upgrade. |
Ok. It seems there are even fewer failures after rebasing on main; none are related to Hibernate Search. This PR is ready as far as I'm concerned. Since your PR will have test failures until Hibernate Search gets upgraded, maybe you should integrate this PR into your own? So that we'll eventually merge the ORM 6 + Search 6 upgrades simultaneously. |
@bstansberry @darranl do you have a preference for whether #15165 + #15185 are merged as one or separate pull requests? #15165 does not fix one of the Hibernate Search test failures but that will be addressed by #15185. |
@yrodiere 108f013#diff-74bfacd78cff4d8815bf930dda24f8402d5b0d2741ae39de85a355ff243da292 adds org.junit.Ignore to disable the testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/hibernate/search/HibernateSearchJPATestCase.java Search test (see comment After #15165 is merged and you sync up, could you please remove the @ignore from testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/hibernate/search/HibernateSearchJPATestCase.java since your pull request will allow that test to work again. Thanks |
@scottmarlow Thanks for the heads-up. I rebased on your branch and removed the |
Hi @scottmarlow, I see your PR (#15165) was merged, so I rebased this one on main; it's ready for review. Please let me know if I need to change anything! The only test failures before my rebase seemed unrelated (something about JMS and something about the WildFly client); I don't expect anything different after the rebase, since I didn't change anything. But let's see. |
ee-9/common/src/main/resources/modules/system/layers/base/org/apache/lucene/main/module.xml
Outdated
Show resolved
Hide resolved
...ources/modules/system/layers/base/org/hibernate/search/backend/elasticsearch/main/module.xml
Outdated
Show resolved
Hide resolved
...ain/resources/modules/system/layers/base/org/hibernate/search/backend/lucene/main/module.xml
Outdated
Show resolved
Hide resolved
...on/src/main/resources/modules/system/layers/base/org/hibernate/search/engine/main/module.xml
Outdated
Show resolved
Hide resolved
It's a dependency of Lucene 8.x and Hibernate Search 6.x.
…client It's a dependency of Hibernate Search 6.x's Elasticsearch backend.
So that we can add more tests in sibling packages.
Thanks @scottmarlow. I addressed all your comments (copyright years, JIRA ticket for TODOs). Please let me know if there's anything else. |
@yrodiere The Linux Security Manager CI job failures are due to https://issues.redhat.com/browse/WFCORE-5908. Why this PR has surfaced this bug needs investigation though. The failure indicates an earlier test (org.jboss.as.test.integration.ejb.mdb.vaultedproperties.MDBWithVaultedPropertiesTestCase) is not properly cleaning up after itself, but we only see that when testing this PR. |
testsuite/integration/basic/pom.xml
Outdated
<execution> | ||
<id>basic-integration-default-web.surefire</id> | ||
<configuration> | ||
<excludes> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe adding 'combine.children="append"' will fix the CI failure. This profile is superseding the entire list of excludes from this execution instead of just adding to it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never mind; that doesn't work.
There are only 3 tests involved here so it's better to drop the pom stuff and add @BeforeClass methods that call org.jboss.as.test.shared.util.AssumeTestGroupUtil.assumeSecurityManagerDisabled()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are only 3 tests involved here so it's better to drop the pom stuff and add @BeforeClass methods that call org.jboss.as.test.shared.util.AssumeTestGroupUtil.assumeSecurityManagerDisabled()
Done; thanks for the hint, I was looking for something like this :)
…s for WildFly This is LGPL code written by coworkers of mine and myself, so it's perfectly safe to copy to WildFly.
…sses in Hibernate Search
…-coordination-outbox-polling for experiments
…kend-elasticsearch
Thanks @bstansberry , I applied the changes you requested and the previously failing tests now pass. I think we're good to merge? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yrodiere Looks good, but I want to confirm that the jboss-api settings in the various module.xml files are as expected. Most are not set, making the module public API.
(Note that even if things are public in WF, EAP can use jboss-api="unsupported" downstream if it doesn't want to support direct use of a module.)
@bstansberry I confirm jboss-api settings are as intended. To clarify the intent:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yrodiere Thanks so much for such a thorough answer! If you don't mind I'll copy that into a comment in WFLY-15838 as it's excellent design documentation and will remain more visible there.
No problem, thanks for merging :) |
Based on #15174 (WFLY-15992) and #15165 (WFLY-15440), which need to be merged first.=> DoneSupersedes #15031.