testlens-app[bot] commented on PR #15678: URL: https://github.com/apache/grails-core/pull/15678#issuecomment-4585681958
## 🚨 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 / Build Grails-Core \(macos-latest, 21\)](https://github.com/apache/grails-core/actions/runs/26702877887/job/78698825684?pr=15678) | :grails-data-simple:test | SimpleMapQuerySpec > test query isolation in DISCRIMINATOR mode | ❌ | 🏷️ Commit: 4c158f4a7895e224656c7db97a86a5b520936941 ▶️ Tests: 5638 executed 🟡 Checks: 18/67 completed ### Test Failures <details> <summary><strong>SimpleMapQuerySpec > test query isolation in DISCRIMINATOR mode</strong> (:grails-data-simple:test in <a href="https://github.com/apache/grails-core/actions/runs/26702877887/job/78698825684?pr=15678">CI / Build Grails-Core (macos-latest, 21)</a>)</summary> ``` org.grails.datastore.mapping.multitenancy.exceptions.TenantException: Could not assigned tenant id [null] to property [tenantId:java.lang.String (org.grails.datastore.mapping.model.types.mapping.TenantIdWithMapping)], probably due to a type mismatch. You should return a type from the tenant resolver that matches the property type of the tenant id!: No tenantId found at org.grails.datastore.gorm.multitenancy.MultiTenantEventListener.onApplicationEvent(MultiTenantEventListener.java:142) 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.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:448) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:381) at org.grails.datastore.gorm.GormValidationApi.fireEvent(GormValidationApi.groovy:261) at org.grails.datastore.gorm.GormValidationApi.doValidate(GormValidationApi.groovy:166) at org.grails.datastore.gorm.GormValidationApi.validate(GormValidationApi.groovy:217) at org.grails.datastore.gorm.GormInstanceApi.save(GormInstanceApi.groovy:189) at org.grails.datastore.gorm.GormEntity$Trait$Helper.save(GormEntity.groovy:169) at org.grails.datastore.mapping.simple.query.SimpleMapQuerySpec.test query isolation in DISCRIMINATOR mode_closure4(SimpleMapQuerySpec.groovy:104) at groovy.lang.Closure.call(Closure.java:433) at groovy.lang.Closure.call(Closure.java:422) at grails.gorm.multitenancy.Tenants.withId_closure5(Tenants.groovy:328) at grails.gorm.multitenancy.CurrentTenantHolder.withTenant(CurrentTenantHolder.groovy:90) at grails.gorm.multitenancy.Tenants.withId(Tenants.groovy:311) at grails.gorm.multitenancy.Tenants.withId(Tenants.groovy:208) at org.grails.datastore.mapping.simple.query.SimpleMapQuerySpec.test query isolation in DISCRIMINATOR mode(SimpleMapQuerySpec.groovy:103) Caused by: org.grails.datastore.mapping.multitenancy.exceptions.TenantNotFoundException: No tenantId found at org.grails.datastore.mapping.multitenancy.resolvers.NoTenantResolver.resolveTenantIdentifier(NoTenantResolver.groovy:38) at grails.gorm.multitenancy.Tenants.currentId(Tenants.groovy:124) at org.grails.datastore.gorm.multitenancy.MultiTenantEventListener.onApplicationEvent(MultiTenantEventListener.java:126) ... 18 more ``` </details> ### Muted Tests > [!NOTE] > Checks are currently running using the configuration below. Select tests to mute in this pull request: 🔲 SimpleMapQuerySpec > test query isolation in DISCRIMINATOR mode <!-- uniqueId=[engine:spock]/[spec:org.grails.datastore.mapping.simple.query.SimpleMapQuerySpec]/[feature:$spock_feature_0_1] --> 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]
