Let me check on the AnySearchTest later ;-) Maybe some hidden regression …
Am Montag, Oktober 26, 2026 09:20 CET, schrieb Francesco Chicchiriccò <[email protected]>: Update: all integration tests are passing (!) Hence, since the change mentioned below seems to affect only unit tests, I would be fine to just ignore it here. Regards. On 26/10/26 08:02, Francesco Chicchiriccò wrote: > Hi, > we are racing to zero failures of JPA unit tests (integration tests will > follow, though...). > > After applying locally the draft fixes for OPENJPA-3021, OPENJPA-3022 and > OPENJPA-3023, only four test cases, all from the same class AnySearchTest [1] > are not passing. > > This class defines a @BeforeEach method that stores a PlainAttr value into > the JPA entity with id 1417acbe-cbf6-4277-9372-e75e04f97000 (a.k.a. rossini). > > When the whole class is run, I can observe 4 failures; when each of the > failing cases is run alone, all is working again. > > In particular [2] works alone but fails when executed right after [3] (which > succeeds). > The code in these two methods do not perform any actual change, just > searches, e.g. SELECT. > > Moreover, when adding > > OpenJPAEntityManagerFactory emf = > entityManagerFactory.unwrap(OpenJPAEntityManagerFactory.class); > emf.getStoreCache().evict(JPAUser.class, > "1417acbe-cbf6-4277-9372-e75e04f97000"); > > at the beginning of the @BeforeEach method, all is passing fine. > > It looks like the JPA entity with id 1417acbe-cbf6-4277-9372-e75e04f97000 > (a.k.a. rossini) is somehow interfering with the query results. > > Thank you again. > Regards. > > [1] > https://github.com/apache/syncope/blob/master/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/inner/AnySearchTest.java > [2] > https://github.com/apache/syncope/blob/master/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/inner/AnySearchTest.java#L989 > [3] > https://github.com/apache/syncope/blob/master/core/persistence-jpa/src/test/java/org/apache/syncope/core/persistence/jpa/inner/AnySearchTest.java#L952 > -- Francesco Chicchiriccò Tirasa - Open Source Excellence http://www.tirasa.net/ Member at The Apache Software Foundation Syncope, CXF, OpenJPA https://about.me/ilgrosso
