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

   ## 🚨 TestLens detected 1 failed test 🚨
   
   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/27370166467/job/80880087284?pr=15713)
 | :grails-test-examples-spring-dependency-management:integrationTest | 
HelloControllerSpec > the application boots with Spring Dependency Management 
and serves a request | ❌ |
   
   🏷️ Commit: 5e636fdcd5070df69f507942f605f0e4b9412455
   ▶️ Tests:  24301 executed
   🟡 Checks: 21/38 completed
   
   ### Test Failures
   
   <details>
   
   <summary><strong>HelloControllerSpec > the application boots with Spring 
Dependency Management and serves a request</strong> 
(:grails-test-examples-spring-dependency-management:integrationTest in <a 
href="https://github.com/apache/grails-core/actions/runs/27370166467/job/80880087284?pr=15713";>CI
 / Functional Tests (Java 21, indy=true)</a>)</summary>
   
   ```
   java.lang.IllegalStateException: Failed to load ApplicationContext for 
[WebMergedContextConfiguration@fafbc63 testClass = 
springdm.HelloControllerSpec, locations = [], classes = [springdm.Application], 
contextInitializerClasses = [], activeProfiles = [], propertySourceDescriptors 
= [], propertySourceProperties = 
["org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true",
 "server.port=0"], contextCustomizers = 
[org.springframework.boot.web.server.context.SpringBootTestRandomPortContextCustomizer@1352434e,
 org.springframework.boot.test.context.PropertyMappingContextCustomizer@0, 
org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@2dc3271b,
 
org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@6812fa3a,
 org.springframework.test.context.support.DynamicPropertiesContextCustomizer@0, 
org.spockframework.spring.mock.SpockContextCustomizer@0, 
org.springframework.boot.test.context.Spri
 ngBootTestAnnotation@a8449f6f], 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.spockframework.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:277)
        at 
org.spockframework.spring.SpringTestContext.getApplicationContext(SpringTestContext.java:49)
        at 
org.spockframework.spring.SpringMockTestExecutionListener.injectSpies(SpringMockTestExecutionListener.java:66)
        at 
org.spockframework.spring.SpringMockTestExecutionListener.prepareTestInstance(SpringMockTestExecutionListener.java:62)
        at 
org.spockframework.spring.AbstractSpringTestExecutionListener.prepareTestInstance(AbstractSpringTestExecutionListener.java:32)
        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:139)
        at 
org.spockframework.runtime.model.MethodInfo.invoke(MethodInfo.java:157)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
        at 
org.spockframework.runtime.model.MethodInfo.invoke(MethodInfo.java:157)
        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 springdm.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)
        ... 17 more
   ```
   
   </details>
   
   ### Muted Tests
   > [!NOTE]
   > Checks are currently running using the configuration below.
   
   Select tests to mute in this pull request:
   
   🔲 HelloControllerSpec > the application boots with Spring Dependency 
Management and serves a request <!-- 
uniqueId=[engine:spock]/[spec:springdm.HelloControllerSpec]/[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