testlens-app[bot] commented on PR #15771: URL: https://github.com/apache/grails-core/pull/15771#issuecomment-4813738947
## 🚨 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 - Groovy Joint Validation Build / build\_grails](https://github.com/apache/grails-core/actions/runs/28264538946/job/83748508777?pr=15771) > :grails-test-examples-hibernate5-grails-database-per-tenant:integrationTest | Test | Runs | |---|---| | DatabasePerTenantIntegrationSpec > Test database per tenant | ❌ | 🏷️ Commit: faf79e6cc787c0def8fd68ea97b5515a533a8555 ▶️ Tests: 23700 executed 🟡 Checks: 37/39 completed ### Test Failures <details> <summary><strong>DatabasePerTenantIntegrationSpec > Test database per tenant</strong> (:grails-test-examples-hibernate5-grails-database-per-tenant:integrationTest in <a href="https://github.com/apache/grails-core/actions/runs/28264538946/job/83748508777?pr=15771">CI - Groovy Joint Validation Build / build_grails</a>)</summary> ``` org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction at org.grails.orm.hibernate.support.hibernate5.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:587) at org.grails.orm.hibernate.GrailsHibernateTransactionManager.doBegin(GrailsHibernateTransactionManager.groovy:70) at org.springframework.transaction.support.AbstractPlatformTransactionManager.startTransaction(AbstractPlatformTransactionManager.java:532) at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:405) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:134) at grails.gorm.transactions.GrailsTransactionTemplate.execute(GrailsTransactionTemplate.groovy:95) at example.AnotherBookService.saveBook_closure1(AnotherBookService.groovy) at grails.gorm.multitenancy.Tenants.withId_closure2$_closure6(Tenants.groovy:286) at org.grails.orm.hibernate.GrailsHibernateTemplate.doExecute(GrailsHibernateTemplate.java:312) at org.grails.orm.hibernate.GrailsHibernateTemplate.execute(GrailsHibernateTemplate.java:256) at org.grails.orm.hibernate.GrailsHibernateTemplate.executeWithNewSession(GrailsHibernateTemplate.java:168) at org.grails.orm.hibernate.GrailsHibernateTemplate.executeWithExistingOrCreateNewSession(GrailsHibernateTemplate.java:222) at org.grails.orm.hibernate.AbstractHibernateDatastore.withNewSession(AbstractHibernateDatastore.java:388) at grails.gorm.multitenancy.Tenants.withId_closure2(Tenants.groovy:279) at grails.gorm.multitenancy.Tenants$CurrentTenant.withTenant(Tenants.groovy:379) at grails.gorm.multitenancy.Tenants.withId(Tenants.groovy:257) at org.grails.datastore.gorm.services.DefaultTenantService.withCurrent(DefaultTenantService.groovy:74) at example.DatabasePerTenantIntegrationSpec.$tt__$spock_feature_0_2(DatabasePerTenantIntegrationSpec.groovy:112) at example.DatabasePerTenantIntegrationSpec.Test database per tenant_closure5(DatabasePerTenantIntegrationSpec.groovy) at grails.gorm.transactions.GrailsTransactionTemplate$1.doInTransaction(GrailsTransactionTemplate.groovy:72) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:137) at grails.gorm.transactions.GrailsTransactionTemplate.executeAndRollback(GrailsTransactionTemplate.groovy:69) at example.DatabasePerTenantIntegrationSpec.Test database per tenant(DatabasePerTenantIntegrationSpec.groovy) Caused by: java.lang.IllegalStateException: Already value [org.springframework.jdbc.datasource.ConnectionHolder@34ceabf1] for key [org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy@1a343d3e] bound to thread at org.springframework.transaction.support.TransactionSynchronizationManager.bindResource(TransactionSynchronizationManager.java:174) at org.grails.orm.hibernate.support.hibernate5.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:565) ... 22 more ``` </details> ### Muted Tests > [!NOTE] > Checks are currently running using the configuration below. Select tests to mute in this pull request: 🔲 DatabasePerTenantIntegrationSpec > Test database per tenant <!-- uniqueId=[engine:spock]/[spec:example.DatabasePerTenantIntegrationSpec]/[feature:$spock_feature_0_2] --> 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]
