testlens-app[bot] commented on PR #15703: URL: https://github.com/apache/grails-core/pull/15703#issuecomment-4579989582
## 🚨 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 / Build Grails-Core \(macos-latest, 21\)](https://github.com/apache/grails-core/actions/runs/26662620814/job/78588706681?pr=15703) | :grails-datamapping-core:test | TransactionalTransformSpec > Test \@Rollback when applied to Spock specifications with closures combined with where queries | ❌ | | [CI / Build Grails-Core \(macos-latest, 21\)](https://github.com/apache/grails-core/actions/runs/26662620814/job/78588706681?pr=15703) | :grails-datamapping-core:test | TransactionalTransformSpec > Test \@Rollback when applied to Spock specifications with closures in then blocks | ❌ | 🏷️ Commit: 7bda7b6e0946a93bc45e38749cb900a5c57e91a6 ▶️ Tests: 3318 executed 🟡 Checks: 10/31 completed ### Test Failures <details> <summary><strong>TransactionalTransformSpec > Test @Rollback when applied to Spock specifications with closures combined with where queries</strong> (:grails-datamapping-core:test in <a href="https://github.com/apache/grails-core/actions/runs/26662620814/job/78588706681?pr=15703">CI / Build Grails-Core (macos-latest, 21)</a>)</summary> ``` Condition failed with Exception: mySpec.newInstance().'$tt__$spock_feature_0_0'(2,2,4,new DefaultTransactionStatus(null, new Object(), true, true, false, false, false, null)) | | | | | | | | | <java.lang.Object@58a7dc4> | | | <org.springframework.transaction.support.DefaultTransactionStatus@61b60600 transactionName=null transaction=java.lang.Object@58a7dc4 newTransaction=true newSynchronization=true nested=false readOnly=false debug=false suspendedResources=null rollbackOnly=false completed=false savepoint=null> | | java.lang.IllegalStateException: Cannot request current iteration in @Shared context, or feature context | | at grails.gorm.annotation.transactions.TransactionalTransformSpec.Test @Rollback when applied to Spock specifications with closures combined with where queries(TransactionalTransformSpec.groovy:201) | <MySpec@70c29356 $transactionManager=null $targetDatastore=null specificationContext=org.spockframework.runtime.SpecificationContext@23e61112> class MySpec at grails.gorm.annotation.transactions.TransactionalTransformSpec.Test @Rollback when applied to Spock specifications with closures combined with where queries(TransactionalTransformSpec.groovy:201) Caused by: java.lang.IllegalStateException: Cannot request current iteration in @Shared context, or feature context ... 1 more ``` </details> <details> <summary><strong>TransactionalTransformSpec > Test @Rollback when applied to Spock specifications with closures in then blocks</strong> (:grails-datamapping-core:test in <a href="https://github.com/apache/grails-core/actions/runs/26662620814/job/78588706681?pr=15703">CI / Build Grails-Core (macos-latest, 21)</a>)</summary> ``` Condition failed with Exception: mySpec.newInstance().'$tt__$spock_feature_0_0'(new DefaultTransactionStatus(null, new Object(), true, true, false, false, false, null)) | | | | | | | | | <java.lang.Object@70f148dc> | | | <org.springframework.transaction.support.DefaultTransactionStatus@3360283 transactionName=null transaction=java.lang.Object@70f148dc newTransaction=true newSynchronization=true nested=false readOnly=false debug=false suspendedResources=null rollbackOnly=false completed=false savepoint=null> | | java.lang.IllegalStateException: Cannot request current iteration in @Shared context, or feature context | | at grails.gorm.annotation.transactions.TransactionalTransformSpec.Test @Rollback when applied to Spock specifications with closures in then blocks(TransactionalTransformSpec.groovy:235) | <MySpec@24a4e2c5 $transactionManager=null $targetDatastore=null specificationContext=org.spockframework.runtime.SpecificationContext@27da994b> class MySpec at grails.gorm.annotation.transactions.TransactionalTransformSpec.Test @Rollback when applied to Spock specifications with closures in then blocks(TransactionalTransformSpec.groovy:235) Caused by: java.lang.IllegalStateException: Cannot request current iteration in @Shared context, or feature context ... 1 more ``` </details> ### Muted Tests > [!NOTE] > Checks are currently running using the configuration below. Select tests to mute in this pull request: 🔲 TransactionalTransformSpec > Test \@Rollback when applied to Spock specifications with closures combined with where queries <!-- uniqueId=[engine:spock]/[spec:grails.gorm.annotation.transactions.TransactionalTransformSpec]/[feature:$spock_feature_0_4] --> 🔲 TransactionalTransformSpec > Test \@Rollback when applied to Spock specifications with closures in then blocks <!-- uniqueId=[engine:spock]/[spec:grails.gorm.annotation.transactions.TransactionalTransformSpec]/[feature:$spock_feature_0_5] --> 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]
