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

   ## 🚨 TestLens detected 2 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 / Functional Tests \(Java 21, 
indy\=true\)](https://github.com/apache/grails-core/actions/runs/27053374628/job/79852928040?pr=15713)
 | :grails-test-examples-database-cleanup:integrationTest | 
ClassLevelCleanupSpec > test 1 - insert data and verify it was persisted | ❌ |
   | [CI / Functional Tests \(Java 21, 
indy\=true\)](https://github.com/apache/grails-core/actions/runs/27053374628/job/79852928040?pr=15713)
 | :grails-test-examples-database-cleanup:integrationTest | 
MethodLevelCleanupSpec > test 1 - insert data with \@DatabaseCleanup and 
explicit type on method | ❌ |
   
   🏷️ Commit: 920c12c9019d879a11f6f42e2066ea9aec5cf72e
   ▶️ Tests:  13955 executed
   🟡 Checks: 23/38 completed
   
   ### Test Failures
   
   <details>
   
   <summary><strong>ClassLevelCleanupSpec > test 1 - insert data and verify it 
was persisted</strong> (:grails-test-examples-database-cleanup:integrationTest 
in <a 
href="https://github.com/apache/grails-core/actions/runs/27053374628/job/79852928040?pr=15713";>CI
 / Functional Tests (Java 21, indy=true)</a>)</summary>
   
   ```
   java.lang.IllegalStateException: Failed to load ApplicationContext for 
[WebMergedContextConfiguration@79ca51cb testClass = 
dbcleanup.ClassLevelCleanupSpec, locations = [], classes = 
[dbcleanup.Application], contextInitializerClasses = [], activeProfiles = [], 
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@3a7e365,
 
org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@64942607,
 
org.springframework.boot.web.server.context.SpringBootTestRandomPortContextCustomizer@158ae284,
 org.springframework.test.context.support.DynamicPropertiesContextCustomizer@0, 
org.springframework.boot.test.context.
 SpringBootTestAnnotation@d24938c7], 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.BeanNotOfRequiredTypeException: 
Bean named 'jspViewResolver' is expected to be of type 
'org.springframework.context.ApplicationListener' but was actually of type 
'org.grails.plugins.sitemesh3.GrailsSiteMeshViewResolver'
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.adaptBeanInstance(AbstractBeanFactory.java:418)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:399)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:201)
        at 
org.springframework.context.event.AbstractApplicationEventMulticaster.retrieveApplicationListeners(AbstractApplicationEventMulticaster.java:266)
        at 
org.springframework.context.event.AbstractApplicationEventMulticaster.getApplicationListeners(AbstractApplicationEventMulticaster.java:222)
        at 
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:140)
        at 
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:448)
        at 
org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:381)
        at 
org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:1016)
        at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:624)
        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 dbcleanup.Application.main(Application.groovy:27)
        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
   ```
   
   </details>
   <details>
   
   <summary><strong>MethodLevelCleanupSpec > test 1 - insert data with 
@DatabaseCleanup and explicit type on method</strong> 
(:grails-test-examples-database-cleanup:integrationTest in <a 
href="https://github.com/apache/grails-core/actions/runs/27053374628/job/79852928040?pr=15713";>CI
 / Functional Tests (Java 21, indy=true)</a>)</summary>
   
   ```
   java.lang.IllegalStateException: ApplicationContext failure threshold (1) 
exceeded: skipping repeated attempt to load context for 
[WebMergedContextConfiguration@686ae6b3 testClass = 
dbcleanup.MethodLevelCleanupSpec, locations = [], classes = 
[dbcleanup.Application], contextInitializerClasses = [], activeProfiles = [], 
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@3a7e365,
 
org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@64942607,
 
org.springframework.boot.web.server.context.SpringBootTestRandomPortContextCustomizer@158ae284,
 org.springframework.test.context.support.DynamicPropertie
 sContextCustomizer@0, 
org.springframework.boot.test.context.SpringBootTestAnnotation@d24938c7], 
resourceBasePath = "src/main/webapp", contextLoader = 
grails.boot.test.GrailsApplicationContextLoader, parent = null]
        at 
org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:157)
        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)
   ```
   
   </details>
   
   ### Muted Tests
   > [!NOTE]
   > Checks are currently running using the configuration below.
   
   Select tests to mute in this pull request:
   
   🔲 ClassLevelCleanupSpec > test 1 - insert data and verify it was persisted 
<!-- 
uniqueId=[engine:spock]/[spec:dbcleanup.ClassLevelCleanupSpec]/[feature:$spock_feature_0_0]
 -->
   🔲 MethodLevelCleanupSpec > test 1 - insert data with \@DatabaseCleanup and 
explicit type on method <!-- 
uniqueId=[engine:spock]/[spec:dbcleanup.MethodLevelCleanupSpec]/[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