testlens-app[bot] commented on PR #15780: URL: https://github.com/apache/grails-core/pull/15780#issuecomment-4823834446
## 🚨 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 #### [CI / Functional Tests \(Java 25, indy\=false\)](https://github.com/apache/grails-core/actions/runs/28306892951/job/83864579297?pr=15780) > :grails-test-examples-datasources:integrationTest | Test | Runs | |---|---| | DatasourceSwitchingSpec > bulk delete works on each datasource | ❌ | | DatasourceSwitchingSpec > executeQuery routes to secondary datasource | ❌ | | DatasourceSwitchingSpec > where queries work on each datasource | ❌ | 🏷️ Commit: c029de477557d1cdeded73f82c1a7f30b549a8e8 ▶️ Tests: 535 executed 🟡 Checks: 20/34 completed ### Test Failures <details> <summary><strong>DatasourceSwitchingSpec > bulk delete works on each datasource</strong> (:grails-test-examples-datasources:integrationTest in <a href="https://github.com/apache/grails-core/actions/runs/28306892951/job/83864579297?pr=15780">CI / Functional Tests (Java 25, indy=false)</a>)</summary> ``` groovy.lang.MissingMethodException: No signature of method: grails.gorm.DetachedCriteria$_deleteAll_closure5.doCall() is applicable for argument types: (org.hibernate.internal.SessionImpl) values: [SessionImpl(7709803<closed>)] Possible solutions: doCall(org.grails.datastore.mapping.core.Session), findAll(), findAll(), isCase(java.lang.Object), isCase(java.lang.Object) at org.grails.orm.hibernate.GrailsHibernateTemplate.doExecute(GrailsHibernateTemplate.java:321) at org.grails.orm.hibernate.GrailsHibernateTemplate.execute(GrailsHibernateTemplate.java:265) at org.grails.orm.hibernate.GrailsHibernateTemplate.execute(GrailsHibernateTemplate.java:135) at org.grails.orm.hibernate.AbstractHibernateDatastore.withSession(AbstractHibernateDatastore.java:374) at org.grails.orm.hibernate.AbstractHibernateGormStaticApi.withSession(AbstractHibernateGormStaticApi.groovy:105) at org.grails.datastore.gorm.GormStaticApi.withDatastoreSession(GormStaticApi.groovy:637) at grails.gorm.DetachedCriteria.deleteAll(DetachedCriteria.groovy:559) at functionaltests.DatasourceSwitchingSpec.$tt__$spock_feature_0_13(DatasourceSwitchingSpec.groovy:362) at functionaltests.DatasourceSwitchingSpec.bulk delete works on each datasource_closure14(DatasourceSwitchingSpec.groovy) at grails.gorm.transactions.GrailsTransactionTemplate$1.doInTransaction(GrailsTransactionTemplate.groovy:79) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:137) at grails.gorm.transactions.GrailsTransactionTemplate.executeAndRollback(GrailsTransactionTemplate.groovy:73) at functionaltests.DatasourceSwitchingSpec.bulk delete works on each datasource(DatasourceSwitchingSpec.groovy) ``` </details> <details> <summary><strong>DatasourceSwitchingSpec > executeQuery routes to secondary datasource</strong> (:grails-test-examples-datasources:integrationTest in <a href="https://github.com/apache/grails-core/actions/runs/28306892951/job/83864579297?pr=15780">CI / Functional Tests (Java 25, indy=false)</a>)</summary> ``` java.lang.UnsupportedOperationException: String-based queries like [executeQuery] are currently not supported in this implementation of GORM. Use criteria instead. at org.grails.datastore.gorm.GormStaticApi.executeQuery(GormStaticApi.groovy:725) at org.grails.orm.hibernate.AbstractHibernateGormStaticApi.executeQuery(AbstractHibernateGormStaticApi.groovy:513) at org.grails.datastore.gorm.GormEntity$Trait$Helper.executeQuery(GormEntity.groovy:1173) at functionaltests.DatasourceSwitchingSpec._tt___spock_feature_0_14_closure62(DatasourceSwitchingSpec.groovy:383) at grails.gorm.transactions.GrailsTransactionTemplate$2.doInTransaction(GrailsTransactionTemplate.groovy:118) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:137) at grails.gorm.transactions.GrailsTransactionTemplate.execute(GrailsTransactionTemplate.groovy:115) at org.grails.datastore.gorm.GormStaticApi.withTransaction(GormStaticApi.groovy:642) at org.grails.datastore.gorm.GormEntity$Trait$Helper.withTransaction(GormEntity.groovy:1049) at functionaltests.DatasourceSwitchingSpec.$tt__$spock_feature_0_14(DatasourceSwitchingSpec.groovy:382) at functionaltests.DatasourceSwitchingSpec.executeQuery routes to secondary datasource_closure15(DatasourceSwitchingSpec.groovy) at grails.gorm.transactions.GrailsTransactionTemplate$1.doInTransaction(GrailsTransactionTemplate.groovy:79) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:137) at grails.gorm.transactions.GrailsTransactionTemplate.executeAndRollback(GrailsTransactionTemplate.groovy:73) at functionaltests.DatasourceSwitchingSpec.executeQuery routes to secondary datasource(DatasourceSwitchingSpec.groovy) ``` </details> <details> <summary><strong>DatasourceSwitchingSpec > where queries work on each datasource</strong> (:grails-test-examples-datasources:integrationTest in <a href="https://github.com/apache/grails-core/actions/runs/28306892951/job/83864579297?pr=15780">CI / Functional Tests (Java 25, indy=false)</a>)</summary> ``` groovy.lang.MissingMethodException: No signature of method: grails.gorm.DetachedCriteria$_withPopulatedQuery_closure7.doCall() is applicable for argument types: (org.hibernate.internal.SessionImpl) values: [SessionImpl(147194635<closed>)] Possible solutions: doCall(org.grails.datastore.mapping.core.Session), findAll(), findAll(), isCase(java.lang.Object), isCase(java.lang.Object) at org.grails.orm.hibernate.GrailsHibernateTemplate.doExecute(GrailsHibernateTemplate.java:321) at org.grails.orm.hibernate.GrailsHibernateTemplate.execute(GrailsHibernateTemplate.java:265) at org.grails.orm.hibernate.GrailsHibernateTemplate.execute(GrailsHibernateTemplate.java:135) at org.grails.orm.hibernate.AbstractHibernateDatastore.withSession(AbstractHibernateDatastore.java:374) at org.grails.orm.hibernate.AbstractHibernateGormStaticApi.withSession(AbstractHibernateGormStaticApi.groovy:105) at org.grails.datastore.gorm.GormStaticApi.withDatastoreSession(GormStaticApi.groovy:637) at grails.gorm.DetachedCriteria.withPopulatedQuery(DetachedCriteria.groovy:741) at grails.gorm.DetachedCriteria.list(DetachedCriteria.groovy:139) at grails.gorm.DetachedCriteria.list(DetachedCriteria.groovy:138) at functionaltests.DatasourceSwitchingSpec.$tt__$spock_feature_0_5(DatasourceSwitchingSpec.groovy:204) at functionaltests.DatasourceSwitchingSpec.where queries work on each datasource_closure6(DatasourceSwitchingSpec.groovy) at grails.gorm.transactions.GrailsTransactionTemplate$1.doInTransaction(GrailsTransactionTemplate.groovy:79) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:137) at grails.gorm.transactions.GrailsTransactionTemplate.executeAndRollback(GrailsTransactionTemplate.groovy:73) at functionaltests.DatasourceSwitchingSpec.where queries work on each datasource(DatasourceSwitchingSpec.groovy) ``` </details> ### Muted Tests > [!NOTE] > Checks are currently running using the configuration below. Select tests to mute in this pull request: 🔲 DatasourceSwitchingSpec > bulk delete works on each datasource <!-- uniqueId=[engine:spock]/[spec:functionaltests.DatasourceSwitchingSpec]/[feature:$spock_feature_0_13] --> 🔲 DatasourceSwitchingSpec > executeQuery routes to secondary datasource <!-- uniqueId=[engine:spock]/[spec:functionaltests.DatasourceSwitchingSpec]/[feature:$spock_feature_0_14] --> 🔲 DatasourceSwitchingSpec > where queries work on each datasource <!-- uniqueId=[engine:spock]/[spec:functionaltests.DatasourceSwitchingSpec]/[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]
