testlens-app[bot] commented on PR #15568:
URL: https://github.com/apache/grails-core/pull/15568#issuecomment-4373898765

   ## 🚨 TestLens detected 3 failed tests 🚨
   
   Here is what you can do:
   
   1) Inspect the test failures carefully.
   2) If you are convinced that some of the tests are flaky, you can mute them 
below.
   3) Finally, trigger a rerun by checking the rerun checkbox.
   
   ### Test Summary
   
   | Check | Project/Task | Test | Runs |
   |---|---|---|---|
   | [CI - Groovy Joint Validation Build / 
build\_grails](https://github.com/apache/grails-core/actions/runs/25338428472/job/74290034619?pr=15568)
 | :grails-data-hibernate7-dbmigration:integrationTest | 
AutoRunWithMultipleDataSourceSpec > runs app with a multiple datasource | ❌ |
   | [CI - Groovy Joint Validation Build / 
build\_grails](https://github.com/apache/grails-core/actions/runs/25338428472/job/74290034619?pr=15568)
 | :grails-data-hibernate7-dbmigration:integrationTest | 
AutoRunWithSingleDataSourceSpec > runs app with a single datasource | ❌ |
   | [CI - Groovy Joint Validation Build / 
build\_grails](https://github.com/apache/grails-core/actions/runs/25338428472/job/74290034619?pr=15568)
 | :grails-data-hibernate7-dbmigration:integrationTest | DbUpdateCommandSpec > 
test the transaction behaviour in the changeSet with grailsChange and GORM | ❌ |
   
   🏷️ Commit: d9da8e7c1140bb21ceda329d6fa17183d1e8abf3
   ▶️ Tests:  11614 executed
   🟡 Checks: 10/30 completed
   
   ### Test Failures
   
   <details>
   
   <summary><strong>AutoRunWithMultipleDataSourceSpec > runs app with a 
multiple datasource</strong> 
(:grails-data-hibernate7-dbmigration:integrationTest in <a 
href="https://github.com/apache/grails-core/actions/runs/25338428472/job/74290034619?pr=15568";>CI
 - Groovy Joint Validation Build / build_grails</a>)</summary>
   
   ```
   java.lang.IllegalStateException: Failed to load ApplicationContext for 
[WebMergedContextConfiguration@40699137 testClass = 
org.grails.plugins.databasemigration.AutoRunWithMultipleDataSourceSpec, 
locations = [], classes = [databasemigration.Application], 
contextInitializerClasses = [], activeProfiles = ["multiple-datasource"], 
propertySourceDescriptors = [], propertySourceProperties = 
["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true",
 "server.port=0"], contextCustomizers = 
[org.spockframework.spring.mock.SpockContextCustomizer@0, 
org.springframework.boot.test.context.PropertyMappingContextCustomizer@0, 
org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@717d7587,
 
org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@1eff3cfb,
 
org.springframework.boot.web.server.context.SpringBootTestRandomPortContextCustomizer@7e9f2c32,
 org.springframework.test.context.support.Dynamic
 PropertiesContextCustomizer@0, 
org.springframework.boot.test.context.SpringBootTestAnnotation@9c4fa980], 
resourceBasePath = "src/main/webapp", contextLoader = 
grails.boot.test.GrailsApplicationContextLoader, parent = null]
        at 
org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.lambda$loadContext$0(DefaultCacheAwareContextLoaderDelegate.java:195)
        at 
org.springframework.test.context.cache.DefaultContextCache.put(DefaultContextCache.java:214)
        at 
org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:160)
        at 
org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:128)
        at 
org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:156)
        at 
org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:111)
        at 
org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:260)
        at 
org.spockframework.spring.SpringTestContextManager.prepareTestInstance(SpringTestContextManager.java:56)
        at 
org.spockframework.spring.SpringInterceptor.interceptInitializerMethod(SpringInterceptor.java:46)
        at 
org.spockframework.runtime.extension.AbstractMethodInterceptor.intercept(AbstractMethodInterceptor.java:24)
        at 
org.spockframework.runtime.extension.MethodInvocation.proceed(MethodInvocation.java:101)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
        at 
org.spockframework.runtime.model.MethodInfo.invoke(MethodInfo.java:156)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
   Caused by: org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'hibernateDatastore': Failed to instantiate 
[org.grails.orm.hibernate.HibernateDatastore]: Constructor threw exception
        at 
org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:321)
        at 
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:309)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1382)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1221)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:565)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:525)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:333)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:371)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:331)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
        at 
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:413)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1362)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1194)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:565)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:525)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:333)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:371)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:331)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.instantiateSingleton(DefaultListableBeanFactory.java:1218)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingleton(DefaultListableBeanFactory.java:1184)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:1121)
        at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:994)
        at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:621)
        at 
org.springframework.boot.web.server.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143)
        at 
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:756)
        at 
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:445)
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:321)
        at grails.boot.GrailsApp.run(GrailsApp.groovy:100)
        at grails.boot.GrailsApp.run(GrailsApp.groovy:394)
        at grails.boot.GrailsApp.run(GrailsApp.groovy:383)
        at databasemigration.Application.main(Application.groovy:32)
        at 
org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:281)
        at 
org.springframework.boot.test.context.SpringBootContextLoader.lambda$loadContext$1(SpringBootContextLoader.java:148)
        at 
org.springframework.boot.test.context.SpringBootContextLoader$ContextLoaderHook.lambda$runMain$0(SpringBootContextLoader.java:593)
        at 
org.springframework.util.function.ThrowingSupplier.get(ThrowingSupplier.java:58)
        at 
org.springframework.util.function.ThrowingSupplier.get(ThrowingSupplier.java:46)
        at 
org.springframework.boot.SpringApplication.withHook(SpringApplication.java:1465)
        at 
org.springframework.boot.test.context.SpringBootContextLoader$ContextLoaderHook.run(SpringBootContextLoader.java:600)
        at 
org.springframework.boot.test.context.SpringBootContextLoader$ContextLoaderHook.runMain(SpringBootContextLoader.java:592)
        at 
org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:143)
        at 
org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:114)
        at 
org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:247)
        at 
org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.lambda$loadContext$0(DefaultCacheAwareContextLoaderDelegate.java:167)
        ... 13 more
   Caused by: org.springframework.beans.BeanInstantiationException: Failed to 
instantiate [org.grails.orm.hibernate.HibernateDatastore]: Constructor threw 
exception
        at 
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:220)
        at 
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:129)
        at 
org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:318)
        ... 56 more
   Caused by: java.lang.RuntimeException: org.hibernate.HibernateException: 
Expecting EnversService to have been initialized prior to call to 
EnversIntegrator#integrate
        at 
org.grails.orm.hibernate.cfg.HibernateMappingContextConfiguration.buildSessionFactory(HibernateMappingContextConfiguration.java:365)
        at 
org.grails.orm.hibernate.connections.HibernateConnectionSourceFactory.create(HibernateConnectionSourceFactory.java:166)
        at 
org.grails.orm.hibernate.connections.HibernateConnectionSourceFactory.create(HibernateConnectionSourceFactory.java:280)
        at 
org.grails.orm.hibernate.connections.HibernateConnectionSourceFactory.create(HibernateConnectionSourceFactory.java:68)
        at 
org.grails.datastore.mapping.core.connections.AbstractConnectionSourceFactory.create(AbstractConnectionSourceFactory.java:83)
        at 
org.grails.datastore.mapping.core.connections.AbstractConnectionSourceFactory.create(AbstractConnectionSourceFactory.java:71)
        at 
org.grails.datastore.mapping.core.connections.ConnectionSourcesInitializer.create(ConnectionSourcesInitializer.groovy:45)
        at 
org.grails.orm.hibernate.HibernateDatastore.<init>(HibernateDatastore.java:354)
        at 
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:207)
        ... 58 more
   Caused by: org.hibernate.HibernateException: Expecting EnversService to have 
been initialized prior to call to EnversIntegrator#integrate
        at 
org.hibernate.envers.boot.internal.EnversIntegrator.integrate(EnversIntegrator.java:70)
        at 
org.hibernate.internal.SessionFactoryImpl.integrate(SessionFactoryImpl.java:429)
        at 
org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:262)
        at 
org.hibernate.internal.SessionFactoryRegistry.instantiateSessionFactory(SessionFactoryRegistry.java:64)
        at 
org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:437)
        at 
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1115)
        at 
org.grails.orm.hibernate.cfg.HibernateMappingContextConfiguration.buildSessionFactory(HibernateMappingContextConfiguration.java:363)
        ... 66 more
   ```
   
   </details>
   <details>
   
   <summary><strong>AutoRunWithSingleDataSourceSpec > runs app with a single 
datasource</strong> (:grails-data-hibernate7-dbmigration:integrationTest in <a 
href="https://github.com/apache/grails-core/actions/runs/25338428472/job/74290034619?pr=15568";>CI
 - Groovy Joint Validation Build / build_grails</a>)</summary>
   
   ```
   java.lang.IllegalStateException: Failed to load ApplicationContext for 
[WebMergedContextConfiguration@1b4695a testClass = 
org.grails.plugins.databasemigration.AutoRunWithSingleDataSourceSpec, locations 
= [], classes = [databasemigration.Application], contextInitializerClasses = 
[], activeProfiles = ["single-datasource"], propertySourceDescriptors = [], 
propertySourceProperties = 
["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true",
 "server.port=0"], contextCustomizers = 
[org.spockframework.spring.mock.SpockContextCustomizer@0, 
org.springframework.boot.test.context.PropertyMappingContextCustomizer@0, 
org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@717d7587,
 
org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@1eff3cfb,
 
org.springframework.boot.web.server.context.SpringBootTestRandomPortContextCustomizer@7e9f2c32,
 org.springframework.test.context.support.DynamicPrope
 rtiesContextCustomizer@0, 
org.springframework.boot.test.context.SpringBootTestAnnotation@9c4fa980], 
resourceBasePath = "src/main/webapp", contextLoader = 
grails.boot.test.GrailsApplicationContextLoader, parent = null]
        at 
org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.lambda$loadContext$0(DefaultCacheAwareContextLoaderDelegate.java:195)
        at 
org.springframework.test.context.cache.DefaultContextCache.put(DefaultContextCache.java:214)
        at 
org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:160)
        at 
org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:128)
        at 
org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:156)
        at 
org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:111)
        at 
org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:260)
        at 
org.spockframework.spring.SpringTestContextManager.prepareTestInstance(SpringTestContextManager.java:56)
        at 
org.spockframework.spring.SpringInterceptor.interceptInitializerMethod(SpringInterceptor.java:46)
        at 
org.spockframework.runtime.extension.AbstractMethodInterceptor.intercept(AbstractMethodInterceptor.java:24)
        at 
org.spockframework.runtime.extension.MethodInvocation.proceed(MethodInvocation.java:101)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
        at 
org.spockframework.runtime.model.MethodInfo.invoke(MethodInfo.java:156)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
   Caused by: org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'hibernateDatastore': Failed to instantiate 
[org.grails.orm.hibernate.HibernateDatastore]: Constructor threw exception
        at 
org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:321)
        at 
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:309)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1382)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1221)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:565)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:525)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:333)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:371)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:331)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
        at 
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:413)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1362)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1194)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:565)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:525)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:333)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:371)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:331)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.instantiateSingleton(DefaultListableBeanFactory.java:1218)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingleton(DefaultListableBeanFactory.java:1184)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:1121)
        at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:994)
        at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:621)
        at 
org.springframework.boot.web.server.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143)
        at 
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:756)
        at 
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:445)
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:321)
        at grails.boot.GrailsApp.run(GrailsApp.groovy:100)
        at grails.boot.GrailsApp.run(GrailsApp.groovy:394)
        at grails.boot.GrailsApp.run(GrailsApp.groovy:383)
        at databasemigration.Application.main(Application.groovy:32)
        at 
org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:281)
        at 
org.springframework.boot.test.context.SpringBootContextLoader.lambda$loadContext$1(SpringBootContextLoader.java:148)
        at 
org.springframework.boot.test.context.SpringBootContextLoader$ContextLoaderHook.lambda$runMain$0(SpringBootContextLoader.java:593)
        at 
org.springframework.util.function.ThrowingSupplier.get(ThrowingSupplier.java:58)
        at 
org.springframework.util.function.ThrowingSupplier.get(ThrowingSupplier.java:46)
        at 
org.springframework.boot.SpringApplication.withHook(SpringApplication.java:1465)
        at 
org.springframework.boot.test.context.SpringBootContextLoader$ContextLoaderHook.run(SpringBootContextLoader.java:600)
        at 
org.springframework.boot.test.context.SpringBootContextLoader$ContextLoaderHook.runMain(SpringBootContextLoader.java:592)
        at 
org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:143)
        at 
org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:114)
        at 
org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:247)
        at 
org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.lambda$loadContext$0(DefaultCacheAwareContextLoaderDelegate.java:167)
        ... 13 more
   Caused by: org.springframework.beans.BeanInstantiationException: Failed to 
instantiate [org.grails.orm.hibernate.HibernateDatastore]: Constructor threw 
exception
        at 
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:220)
        at 
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:129)
        at 
org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:318)
        ... 56 more
   Caused by: java.lang.RuntimeException: org.hibernate.HibernateException: 
Expecting EnversService to have been initialized prior to call to 
EnversIntegrator#integrate
        at 
org.grails.orm.hibernate.cfg.HibernateMappingContextConfiguration.buildSessionFactory(HibernateMappingContextConfiguration.java:365)
        at 
org.grails.orm.hibernate.connections.HibernateConnectionSourceFactory.create(HibernateConnectionSourceFactory.java:166)
        at 
org.grails.orm.hibernate.connections.HibernateConnectionSourceFactory.create(HibernateConnectionSourceFactory.java:280)
        at 
org.grails.orm.hibernate.connections.HibernateConnectionSourceFactory.create(HibernateConnectionSourceFactory.java:68)
        at 
org.grails.datastore.mapping.core.connections.AbstractConnectionSourceFactory.create(AbstractConnectionSourceFactory.java:83)
        at 
org.grails.datastore.mapping.core.connections.AbstractConnectionSourceFactory.create(AbstractConnectionSourceFactory.java:71)
        at 
org.grails.datastore.mapping.core.connections.ConnectionSourcesInitializer.create(ConnectionSourcesInitializer.groovy:45)
        at 
org.grails.orm.hibernate.HibernateDatastore.<init>(HibernateDatastore.java:354)
        at 
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:207)
        ... 58 more
   Caused by: org.hibernate.HibernateException: Expecting EnversService to have 
been initialized prior to call to EnversIntegrator#integrate
        at 
org.hibernate.envers.boot.internal.EnversIntegrator.integrate(EnversIntegrator.java:70)
        at 
org.hibernate.internal.SessionFactoryImpl.integrate(SessionFactoryImpl.java:429)
        at 
org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:262)
        at 
org.hibernate.internal.SessionFactoryRegistry.instantiateSessionFactory(SessionFactoryRegistry.java:64)
        at 
org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:437)
        at 
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1115)
        at 
org.grails.orm.hibernate.cfg.HibernateMappingContextConfiguration.buildSessionFactory(HibernateMappingContextConfiguration.java:363)
        ... 66 more
   ```
   
   </details>
   <details>
   
   <summary><strong>DbUpdateCommandSpec > test the transaction behaviour in the 
changeSet with grailsChange and GORM</strong> 
(:grails-data-hibernate7-dbmigration:integrationTest in <a 
href="https://github.com/apache/grails-core/actions/runs/25338428472/job/74290034619?pr=15568";>CI
 - Groovy Joint Validation Build / build_grails</a>)</summary>
   
   ```
   java.lang.IllegalStateException: Failed to load ApplicationContext for 
[WebMergedContextConfiguration@50d640dd testClass = 
org.grails.plugins.databasemigration.DbUpdateCommandSpec, locations = [], 
classes = [databasemigration.Application], contextInitializerClasses = [], 
activeProfiles = ["transaction-datasource"], propertySourceDescriptors = [], 
propertySourceProperties = 
["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true",
 "server.port=0"], contextCustomizers = 
[org.spockframework.spring.mock.SpockContextCustomizer@0, 
org.springframework.boot.test.context.PropertyMappingContextCustomizer@0, 
org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@717d7587,
 
org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@1eff3cfb,
 
org.springframework.boot.web.server.context.SpringBootTestRandomPortContextCustomizer@7e9f2c32,
 org.springframework.test.context.support.DynamicPropertiesC
 ontextCustomizer@0, 
org.springframework.boot.test.context.SpringBootTestAnnotation@9c4fa980], 
resourceBasePath = "src/main/webapp", contextLoader = 
grails.boot.test.GrailsApplicationContextLoader, parent = null]
        at 
org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.lambda$loadContext$0(DefaultCacheAwareContextLoaderDelegate.java:195)
        at 
org.springframework.test.context.cache.DefaultContextCache.put(DefaultContextCache.java:214)
        at 
org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:160)
        at 
org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:128)
        at 
org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:156)
        at 
org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:111)
        at 
org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:260)
        at 
org.spockframework.spring.SpringTestContextManager.prepareTestInstance(SpringTestContextManager.java:56)
        at 
org.spockframework.spring.SpringInterceptor.interceptInitializerMethod(SpringInterceptor.java:46)
        at 
org.spockframework.runtime.extension.AbstractMethodInterceptor.intercept(AbstractMethodInterceptor.java:24)
        at 
org.spockframework.runtime.extension.MethodInvocation.proceed(MethodInvocation.java:101)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
        at 
org.spockframework.runtime.model.MethodInfo.invoke(MethodInfo.java:156)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
   Caused by: org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'hibernateDatastore': Failed to instantiate 
[org.grails.orm.hibernate.HibernateDatastore]: Constructor threw exception
        at 
org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:321)
        at 
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:309)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1382)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1221)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:565)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:525)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:333)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:371)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:331)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
        at 
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:413)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1362)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1194)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:565)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:525)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:333)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:371)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:331)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.instantiateSingleton(DefaultListableBeanFactory.java:1218)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingleton(DefaultListableBeanFactory.java:1184)
        at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:1121)
        at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:994)
        at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:621)
        at 
org.springframework.boot.web.server.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143)
        at 
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:756)
        at 
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:445)
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:321)
        at grails.boot.GrailsApp.run(GrailsApp.groovy:100)
        at grails.boot.GrailsApp.run(GrailsApp.groovy:394)
        at grails.boot.GrailsApp.run(GrailsApp.groovy:383)
        at databasemigration.Application.main(Application.groovy:32)
        at 
org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:281)
        at 
org.springframework.boot.test.context.SpringBootContextLoader.lambda$loadContext$1(SpringBootContextLoader.java:148)
        at 
org.springframework.boot.test.context.SpringBootContextLoader$ContextLoaderHook.lambda$runMain$0(SpringBootContextLoader.java:593)
        at 
org.springframework.util.function.ThrowingSupplier.get(ThrowingSupplier.java:58)
        at 
org.springframework.util.function.ThrowingSupplier.get(ThrowingSupplier.java:46)
        at 
org.springframework.boot.SpringApplication.withHook(SpringApplication.java:1465)
        at 
org.springframework.boot.test.context.SpringBootContextLoader$ContextLoaderHook.run(SpringBootContextLoader.java:600)
        at 
org.springframework.boot.test.context.SpringBootContextLoader$ContextLoaderHook.runMain(SpringBootContextLoader.java:592)
        at 
org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:143)
        at 
org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:114)
        at 
org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:247)
        at 
org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.lambda$loadContext$0(DefaultCacheAwareContextLoaderDelegate.java:167)
        ... 13 more
   Caused by: org.springframework.beans.BeanInstantiationException: Failed to 
instantiate [org.grails.orm.hibernate.HibernateDatastore]: Constructor threw 
exception
        at 
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:220)
        at 
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:129)
        at 
org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:318)
        ... 56 more
   Caused by: java.lang.RuntimeException: org.hibernate.HibernateException: 
Expecting EnversService to have been initialized prior to call to 
EnversIntegrator#integrate
        at 
org.grails.orm.hibernate.cfg.HibernateMappingContextConfiguration.buildSessionFactory(HibernateMappingContextConfiguration.java:365)
        at 
org.grails.orm.hibernate.connections.HibernateConnectionSourceFactory.create(HibernateConnectionSourceFactory.java:166)
        at 
org.grails.orm.hibernate.connections.HibernateConnectionSourceFactory.create(HibernateConnectionSourceFactory.java:280)
        at 
org.grails.orm.hibernate.connections.HibernateConnectionSourceFactory.create(HibernateConnectionSourceFactory.java:68)
        at 
org.grails.datastore.mapping.core.connections.AbstractConnectionSourceFactory.create(AbstractConnectionSourceFactory.java:83)
        at 
org.grails.datastore.mapping.core.connections.AbstractConnectionSourceFactory.create(AbstractConnectionSourceFactory.java:71)
        at 
org.grails.datastore.mapping.core.connections.ConnectionSourcesInitializer.create(ConnectionSourcesInitializer.groovy:45)
        at 
org.grails.orm.hibernate.HibernateDatastore.<init>(HibernateDatastore.java:354)
        at 
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:207)
        ... 58 more
   Caused by: org.hibernate.HibernateException: Expecting EnversService to have 
been initialized prior to call to EnversIntegrator#integrate
        at 
org.hibernate.envers.boot.internal.EnversIntegrator.integrate(EnversIntegrator.java:70)
        at 
org.hibernate.internal.SessionFactoryImpl.integrate(SessionFactoryImpl.java:429)
        at 
org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:262)
        at 
org.hibernate.internal.SessionFactoryRegistry.instantiateSessionFactory(SessionFactoryRegistry.java:64)
        at 
org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:437)
        at 
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1115)
        at 
org.grails.orm.hibernate.cfg.HibernateMappingContextConfiguration.buildSessionFactory(HibernateMappingContextConfiguration.java:363)
        ... 66 more
   ```
   
   </details>
   
   ### Muted Tests
   > [!NOTE]
   > Checks are currently running using the configuration below.
   
   Select tests to mute in this pull request:
   
   🔲 AutoRunWithMultipleDataSourceSpec > runs app with a multiple datasource 
<!-- 
uniqueId=[engine:spock]/[spec:org.grails.plugins.databasemigration.AutoRunWithMultipleDataSourceSpec]/[feature:$spock_feature_0_0]
 -->
   🔲 AutoRunWithSingleDataSourceSpec > runs app with a single datasource <!-- 
uniqueId=[engine:spock]/[spec:org.grails.plugins.databasemigration.AutoRunWithSingleDataSourceSpec]/[feature:$spock_feature_0_0]
 -->
   🔲 DbUpdateCommandSpec > test the transaction behaviour in the changeSet with 
grailsChange and GORM <!-- 
uniqueId=[engine:spock]/[spec:org.grails.plugins.databasemigration.DbUpdateCommandSpec]/[feature:$spock_feature_0_0]
 -->
   
   Reuse successful test results:
   
   🔲 ♻️ Only rerun the tests that failed or were muted before
   
   Click the checkbox to trigger a rerun:
   
   🔲 **Rerun jobs**
   
   ---
   _Learn more about TestLens at [testlens.app](https://testlens.app)._
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to