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

   ## 🚨 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
   
   #### [CI / Functional Tests \(Java 21, 
indy\=false\)](https://github.com/apache/grails-core/actions/runs/29131193650/job/86486759798?pr=15964)
 > :grails-test-examples-spring-dependency-management:integrationTest
   
   | Test | Runs | Flakiness |
   |---|---|--:|
   | HelloControllerSpec > the application boots with Spring Dependency 
Management and serves a request | ❌ | 0% 🟢 |
   
   🏷️ Commit: ba2c2ec223cefdaf576f8d2aef362a743960942c
   ▶️ Tests:  19355 executed
   🟡 Checks: 32/56 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/29131193650/job/86486759798?pr=15964";>CI
 / Functional Tests (Java 21, indy=false)</a>)</summary>
   
   ```
   java.lang.IllegalStateException: Failed to load ApplicationContext for 
[WebMergedContextConfiguration@55fb36de 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@6f70a21b,
 org.springframework.boot.test.context.PropertyMappingContextCustomizer@0, 
org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@4a7fd0c9,
 
org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@136965e3,
 org.springframework.test.context.support.DynamicPropertiesContextCustomizer@0, 
org.spockframework.spring.mock.SpockContextCustomizer@0, 
org.springframework.boot.test.context.Spr
 ingBootTestAnnotation@151c8366], 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: java.lang.IllegalStateException: grails-sitemesh3 is a drop-in 
replacement for grails-layout (SiteMesh 2) and the two must not be on the 
classpath together - remove one of the two dependencies.
        at 
org.grails.plugins.sitemesh3.Sitemesh3EnvironmentPostProcessor.postProcessEnvironment(Sitemesh3EnvironmentPostProcessor.java:64)
        at 
org.springframework.boot.support.SpringFactoriesEnvironmentPostProcessorsFactory$Adapter.postProcessEnvironment(SpringFactoriesEnvironmentPostProcessorsFactory.java:73)
        at 
org.springframework.boot.support.EnvironmentPostProcessorApplicationListener.onApplicationEnvironmentPreparedEvent(EnvironmentPostProcessorApplicationListener.java:137)
        at 
org.springframework.boot.support.EnvironmentPostProcessorApplicationListener.onApplicationEvent(EnvironmentPostProcessorApplicationListener.java:120)
        at 
org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:180)
        at 
org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:173)
        at 
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:151)
        at 
org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:133)
        at 
org.springframework.boot.context.event.EventPublishingRunListener.multicastInitialEvent(EventPublishingRunListener.java:137)
        at 
org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:82)
        at 
org.springframework.boot.SpringApplicationRunListeners.lambda$environmentPrepared$0(SpringApplicationRunListeners.java:66)
        at java.base/java.lang.Iterable.forEach(Iterable.java:75)
        at 
org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:123)
        at 
org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:117)
        at 
org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:65)
        at 
org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:356)
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:316)
        at grails.boot.GrailsApp.run(GrailsApp.groovy:113)
        at grails.boot.GrailsApp.run(GrailsApp.groovy:464)
        at grails.boot.GrailsApp.run(GrailsApp.groovy:453)
        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