You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@grails.apache.org by "borinquenkid (via GitHub)" <gi...@apache.org> on 2026/06/27 16:39:23 UTC
[PR] test: add unit and TCK tests for GormRegistry O(M+N) scaling [grails-core]
borinquenkid opened a new pull request, #15781:
URL: https://github.com/apache/grails-core/pull/15781
## Summary
Full test suite for the GormRegistry implementation in #15780. Separated into its own PR so reviewers can evaluate design and coverage independently.
**Unit tests — `grails-datamapping-core`:**
- `GormRegistrySpec` — lifecycle, registration, removal, factory fallback
- `GormRegistryConcurrencySpec` — concurrent registration and lookup under load
- `GormRegistryEntityRegistrationSpec` — entity → datastore → API wiring
- `GormApiResolverSpec` — qualifier routing, fallback, multi-tenant mode dispatch
- `GormApiFactorySpec` / `DefaultGormApiFactorySpec` — factory delegation
- `GormStaticApiSpec` / `GormInstanceApiSpec` — API execution and qualifier propagation
- `GormEnhancerAllQualifiersSpec` — all qualifier expansion scenarios
- `CurrentTenantHolderSpec` / `TenantsSpec` — thread-safe tenant binding
- `TenantContextProfilingSpec` — DISCRIMINATOR vs DATABASE/SCHEMA mode routing
- `MultiTenantEventListenerSpec` — tenant lifecycle events
- `TransactionalTransformSpec` / `ServiceTransformSpec` — AST transform correctness
- `DefaultTransactionTemplateFactorySpec` — transaction template pluggability
- Registry subtype specs: `GormStaticApiRegistrySpec`, `GormInstanceApiRegistrySpec`, `GormValidationApiRegistrySpec`
**TCK expansion — `grails-datamapping-tck`:**
- Multi-datasource connection routing
- Multi-tenant discriminator, schema-per-tenant, and DATABASE-per-tenant scenarios
- `ALL` qualifier expansion
- `DataTestSetupInterceptor` registry lifecycle in Spock tests
## Test plan
- [ ] `./gradlew :grails-datamapping-core:test` passes
- [ ] `./gradlew :grails-datamapping-tck:test` passes
## Stack
- Prereq: #15779 (`feat/gorm-datastore-infra`)
- Prereq: #15780 (`feat/gorm-registry-core-impl`)
- **This PR** — tests for #15780
- Next: per-adapter wiring PRs (H5, MongoDB, Neo4j, Simple, misc, H7)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
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: notifications-unsubscribe@grails.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test: add unit and TCK tests for GormRegistry O(M+N) scaling [grails-core]
Posted by "testlens-app[bot] (via GitHub)" <gi...@apache.org>.
testlens-app[bot] commented on PR #15781:
URL: https://github.com/apache/grails-core/pull/15781#issuecomment-4822416821
## 🚨 TestLens detected 4 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 / Build Grails-Core \(macos-latest, 21\)](https://github.com/apache/grails-core/actions/runs/28303609018/job/83856011491?pr=15781) > :grails-data-graphql-core:test
| Test | Runs |
|---|---|
| CreateEntityDataFetcherSpec > test get | ❌ |
| DeleteEntityDataFetcherSpec > test get | ❌ |
| DeleteEntityDataFetcherSpec > test get invalid | ❌ |
| EntityDataFetcherSpec | ❌ |
🏷️ Commit: b91daa6ce962ade9cb07f20bf1a47c7be7879070
▶️ Tests: 2041 executed
🟡 Checks: 9/33 completed
### Test Failures
<details>
<summary><strong>CreateEntityDataFetcherSpec > test get</strong> (:grails-data-graphql-core:test in <a href="https://github.com/apache/grails-core/actions/runs/28303609018/job/83856011491?pr=15781">CI / Build Grails-Core (macos-latest, 21)</a>)</summary>
```
java.lang.NullPointerException: Cannot invoke "org.grails.datastore.mapping.services.ServiceRegistry.getService(java.lang.Class)" because "datastore" is null
at org.grails.gorm.graphql.fetcher.DefaultGormDataFetcher.withTransaction(DefaultGormDataFetcher.groovy:133)
at org.grails.gorm.graphql.fetcher.impl.CreateEntityDataFetcher.get(CreateEntityDataFetcher.groovy:46)
at org.grails.gorm.graphql.fetcher.impl.CreateEntityDataFetcherSpec.test get(CreateEntityDataFetcherSpec.groovy:42)
```
</details>
<details>
<summary><strong>DeleteEntityDataFetcherSpec > test get</strong> (:grails-data-graphql-core:test in <a href="https://github.com/apache/grails-core/actions/runs/28303609018/job/83856011491?pr=15781">CI / Build Grails-Core (macos-latest, 21)</a>)</summary>
```
java.lang.NullPointerException: Cannot invoke "org.grails.orm.hibernate.AbstractHibernateDatastore.withNewSession(groovy.lang.Closure)" because "hibernateDatastore" is null
at org.grails.orm.hibernate.AbstractHibernateGormStaticApi.withNewSession(AbstractHibernateGormStaticApi.groovy:99)
at org.grails.datastore.gorm.GormEntity$Trait$Helper.withNewSession(GormEntity.groovy:1140)
at org.grails.gorm.graphql.fetcher.impl.DeleteEntityDataFetcherSpec.test get(DeleteEntityDataFetcherSpec.groovy:53)
```
</details>
<details>
<summary><strong>DeleteEntityDataFetcherSpec > test get invalid</strong> (:grails-data-graphql-core:test in <a href="https://github.com/apache/grails-core/actions/runs/28303609018/job/83856011491?pr=15781">CI / Build Grails-Core (macos-latest, 21)</a>)</summary>
```
Too few invocations for:
1 * getArgument('id') >> 95 (0 invocations)
Unmatched invocations (ordered by similarity):
None
Too few invocations for:
1 * getMergedField() (0 invocations)
Unmatched invocations (ordered by similarity):
None
at org.spockframework.mock.runtime.InteractionScope.verifyInteractions(InteractionScope.java:110)
at org.spockframework.mock.runtime.MockController.leaveScope(MockController.java:95)
at org.grails.gorm.graphql.fetcher.impl.DeleteEntityDataFetcherSpec.test get invalid(DeleteEntityDataFetcherSpec.groovy:74)
```
</details>
<details>
<summary><strong>EntityDataFetcherSpec</strong> (:grails-data-graphql-core:test in <a href="https://github.com/apache/grails-core/actions/runs/28303609018/job/83856011491?pr=15781">CI / Build Grails-Core (macos-latest, 21)</a>)</summary>
```
java.lang.IllegalStateException: No PlatformTransactionManager set
at org.springframework.util.Assert.state(Assert.java:80)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128)
at grails.gorm.transactions.GrailsTransactionTemplate.execute(GrailsTransactionTemplate.groovy:115)
at org.grails.datastore.gorm.GormStaticApi.withTransaction(GormStaticApi.groovy:687)
at org.grails.datastore.gorm.GormStaticApi.withNewTransaction(GormStaticApi.groovy:649)
at org.grails.datastore.gorm.GormEntity$Trait$Helper.withNewTransaction(GormEntity.groovy:1063)
at org.grails.gorm.graphql.fetcher.impl.EntityDataFetcherSpec.setupSpec(EntityDataFetcherSpec.groovy:32)
```
</details>
### Muted Tests
> [!NOTE]
> Checks are currently running using the configuration below.
Select tests to mute in this pull request:
🔲 CreateEntityDataFetcherSpec > test get <!-- uniqueId=[engine:spock]/[spec:org.grails.gorm.graphql.fetcher.impl.CreateEntityDataFetcherSpec]/[feature:$spock_feature_1_0] -->
🔲 DeleteEntityDataFetcherSpec > test get <!-- uniqueId=[engine:spock]/[spec:org.grails.gorm.graphql.fetcher.impl.DeleteEntityDataFetcherSpec]/[feature:$spock_feature_1_0] -->
🔲 DeleteEntityDataFetcherSpec > test get invalid <!-- uniqueId=[engine:spock]/[spec:org.grails.gorm.graphql.fetcher.impl.DeleteEntityDataFetcherSpec]/[feature:$spock_feature_1_1] -->
🔲 EntityDataFetcherSpec <!-- uniqueId=[engine:spock]/[spec:org.grails.gorm.graphql.fetcher.impl.EntityDataFetcherSpec] -->
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: notifications-unsubscribe@grails.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test: add unit and TCK tests for GormRegistry O(M+N) scaling [grails-core]
Posted by "borinquenkid (via GitHub)" <gi...@apache.org>.
borinquenkid closed pull request #15781: test: add unit and TCK tests for GormRegistry O(M+N) scaling
URL: https://github.com/apache/grails-core/pull/15781
--
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: notifications-unsubscribe@grails.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test: add unit and TCK tests for GormRegistry O(M+N) scaling [grails-core]
Posted by "testlens-app[bot] (via GitHub)" <gi...@apache.org>.
testlens-app[bot] commented on PR #15781:
URL: https://github.com/apache/grails-core/pull/15781#issuecomment-4822846106
## 🚨 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
#### [CI / Build Grails-Core Rerunning all Tasks \(ubuntu-latest, 21\)](https://github.com/apache/grails-core/actions/runs/28304414241/job/83858085571?pr=15781) > :grails-datamapping-core:test
| Test | Runs |
|---|---|
| GormRegistrySpec > test withTenant and exists with multi-tenant entity in DISCRIMINATOR mode | ❌ |
| TenantContextProfilingSpec > profile tenant wrapping overhead | ❌ |
🏷️ Commit: 14704c2f50ab38fdb54976e929862a524f4dfadd
▶️ Tests: 1281 executed
🟡 Checks: 10/33 completed
### Test Failures
<details>
<summary><strong>GormRegistrySpec > test withTenant and exists with multi-tenant entity in DISCRIMINATOR mode</strong> (:grails-datamapping-core:test in <a href="https://github.com/apache/grails-core/actions/runs/28304414241/job/83858085571?pr=15781">CI / Build Grails-Core Rerunning all Tasks (ubuntu-latest, 21)</a>)</summary>
```
Condition not satisfied:
capturedTenantId == "tenant1"
| |
initial false
7 differences (0% similarity)
(i-)n(i-)t(ial)
(te)n(an)t(1--)
at org.grails.datastore.gorm.GormRegistrySpec.test withTenant and exists with multi-tenant entity in DISCRIMINATOR mode(GormRegistrySpec.groovy:266)
```
|expected|actual|
|---|---|
|<s>tenant1</s>|<b>initial</b>|
</details>
<details>
<summary><strong>TenantContextProfilingSpec > profile tenant wrapping overhead</strong> (:grails-datamapping-core:test in <a href="https://github.com/apache/grails-core/actions/runs/28304414241/job/83858085571?pr=15781">CI / Build Grails-Core Rerunning all Tasks (ubuntu-latest, 21)</a>)</summary>
```
groovy.lang.GroovyRuntimeException: Could not find matching constructor for: org.grails.datastore.gorm.GormStaticApi(Class, null, ArrayList, org.grails.datastore.gorm.TenantContextProfilingSpec$DummyStaticApi$1)
at org.grails.datastore.gorm.TenantContextProfilingSpec$DummyStaticApi.<init>(TenantContextProfilingSpec.groovy:96)
at org.grails.datastore.gorm.TenantContextProfilingSpec.profile tenant wrapping overhead(TenantContextProfilingSpec.groovy:51)
```
</details>
### Muted Tests
> [!NOTE]
> Checks are currently running using the configuration below.
Select tests to mute in this pull request:
🔲 GormRegistrySpec > test withTenant and exists with multi-tenant entity in DISCRIMINATOR mode <!-- uniqueId=[engine:spock]/[spec:org.grails.datastore.gorm.GormRegistrySpec]/[feature:$spock_feature_0_13] -->
🔲 TenantContextProfilingSpec > profile tenant wrapping overhead <!-- uniqueId=[engine:spock]/[spec:org.grails.datastore.gorm.TenantContextProfilingSpec]/[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: notifications-unsubscribe@grails.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test: add unit and TCK tests for GormRegistry O(M+N) scaling [grails-core]
Posted by "testlens-app[bot] (via GitHub)" <gi...@apache.org>.
testlens-app[bot] commented on PR #15781:
URL: https://github.com/apache/grails-core/pull/15781#issuecomment-4823940439
## 🚨 TestLens detected 9 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 / Build Grails-Core \(ubuntu-latest, 21\)](https://github.com/apache/grails-core/actions/runs/28307758322/job/83866963073?pr=15781) > :grails-data-graphql-core:test
| Test | Runs |
|---|---|
| DeleteEntityDataFetcherSpec > test get | ❌ |
| DeleteEntityDataFetcherSpec > test get invalid | ❌ |
| EntityDataFetcherSpec > test get | ❌ |
| EntityDataFetcherSpec > test pagination | ❌ |
| SingleEntityDataFetcherSpec > test get | ❌ |
| SoftDeleteEntityDataFetcherSpec > test get | ❌ |
| UpdateEntityDataFetcherSpec > test get | ❌ |
| UpdateEntityDataFetcherSpec > test optimistic locking | ❌ |
| UpdateEntityDataFetcherSpec > test optimistic locking with null version | ❌ |
🏷️ Commit: c5d67bd0d13babb15fdbb9c1b037c7b0d1ed43e0
▶️ Tests: 2871 executed
🟡 Checks: 10/33 completed
### Test Failures
<details>
<summary><strong>DeleteEntityDataFetcherSpec > test get</strong> (:grails-data-graphql-core:test in <a href="https://github.com/apache/grails-core/actions/runs/28307758322/job/83866963073?pr=15781">CI / Build Grails-Core (ubuntu-latest, 21)</a>)</summary>
```
Too few invocations for:
1 * responseHandler.createResponse(env, true, null) (0 invocations)
Unmatched invocations (ordered by similarity):
1 * responseHandler.createResponse(Mock for type 'DataFetchingEnvironment' named 'env', false, org.codehaus.groovy.runtime.InvokerInvocationException: groovy.lang.MissingMethodException: No signature of method: grails.gorm.DetachedCriteria$_withPopulatedQuery_closure7.doCall() is applicable for argument types: (org.hibernate.internal.SessionImpl) values: [SessionImpl(1486384492<closed>)]
Possible solutions: doCall(org.grails.datastore.mapping.core.Session), findAll(), findAll(), isCase(java.lang.Object), isCase(java.lang.Object))
One or more arguments(s) didn't match:
0: <matches>
1: argument == expected
| | |
false | true
false
2: argument == expected
| | |
| | null
| false
org.codehaus.groovy.runtime.InvokerInvocationException: groovy.lang.MissingMethodException: No signature of method: grails.gorm.DetachedCriteria$_withPopulatedQuery_closure7.doCall() is applicable for argument types: (org.hibernate.internal.SessionImpl) values: [SessionImpl(1486384492<closed>)]
Possible solutions: doCall(org.grails.datastore.mapping.core.Session), findAll(), findAll(), isCase(java.lang.Object), isCase(java.lang.Object)
at org.grails.gorm.graphql.fetcher.impl.DeleteEntityDataFetcher.delete_closure1(DeleteEntityDataFetcher.groovy:45)
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.services.DefaultTransactionService.withTransaction(DefaultTransactionService.groovy:102)
at org.grails.gorm.graphql.fetcher.DefaultGormDataFetcher.withTransaction(DefaultGormDataFetcher.groovy:136)
at org.grails.gorm.graphql.fetcher.impl.DeleteEntityDataFetcher.delete(DeleteEntityDataFetcher.groovy:44)
at org.grails.gorm.graphql.fetcher.impl.DeleteEntityDataFetcher.get(DeleteEntityDataFetcher.groovy:59)
at org.grails.gorm.graphql.fetcher.impl.DeleteEntityDataFetcherSpec.$spock_feature_1_0(DeleteEntityDataFetcherSpec.groovy:51)
Caused by: groovy.lang.MissingMethodException: No signature of method: grails.gorm.DetachedCriteria$_withPopulatedQuery_closure7.doCall() is applicable for argument types: (org.hibernate.internal.SessionImpl) values: [SessionImpl(1486384492<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.get(DetachedCriteria.groovy:119)
at org.grails.gorm.graphql.fetcher.DefaultGormDataFetcher.queryInstance(DefaultGormDataFetcher.groovy:119)
... 9 more
at org.spockframework.mock.runtime.InteractionScope.verifyInteractions(InteractionScope.java:110)
at org.spockframework.mock.runtime.MockController.leaveScope(MockController.java:95)
at org.grails.gorm.graphql.fetcher.impl.DeleteEntityDataFetcherSpec.test get(DeleteEntityDataFetcherSpec.groovy:53)
```
</details>
<details>
<summary><strong>DeleteEntityDataFetcherSpec > test get invalid</strong> (:grails-data-graphql-core:test in <a href="https://github.com/apache/grails-core/actions/runs/28307758322/job/83866963073?pr=15781">CI / Build Grails-Core (ubuntu-latest, 21)</a>)</summary>
```
Too few invocations for:
1 * responseHandler.createResponse(env, false, _ as NullPointerException) (0 invocations)
Unmatched invocations (ordered by similarity):
1 * responseHandler.createResponse(Mock for type 'DataFetchingEnvironment' named 'env', false, org.codehaus.groovy.runtime.InvokerInvocationException: groovy.lang.MissingMethodException: No signature of method: grails.gorm.DetachedCriteria$_withPopulatedQuery_closure7.doCall() is applicable for argument types: (org.hibernate.internal.SessionImpl) values: [SessionImpl(997106491<closed>)]
Possible solutions: doCall(org.grails.datastore.mapping.core.Session), findAll(), findAll(), isCase(java.lang.Object), isCase(java.lang.Object))
One or more arguments(s) didn't match:
0: <matches>
1: <matches>
2: argument instanceof java.lang.NullPointerException
| | |
| false class java.lang.NullPointerException
org.codehaus.groovy.runtime.InvokerInvocationException: groovy.lang.MissingMethodException: No signature of method: grails.gorm.DetachedCriteria$_withPopulatedQuery_closure7.doCall() is applicable for argument types: (org.hibernate.internal.SessionImpl) values: [SessionImpl(997106491<closed>)]
Possible solutions: doCall(org.grails.datastore.mapping.core.Session), findAll(), findAll(), isCase(java.lang.Object), isCase(java.lang.Object)
at org.grails.gorm.graphql.fetcher.impl.DeleteEntityDataFetcher.delete_closure1(DeleteEntityDataFetcher.groovy:45)
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.services.DefaultTransactionService.withTransaction(DefaultTransactionService.groovy:102)
at org.grails.gorm.graphql.fetcher.DefaultGormDataFetcher.withTransaction(DefaultGormDataFetcher.groovy:136)
at org.grails.gorm.graphql.fetcher.impl.DeleteEntityDataFetcher.delete(DeleteEntityDataFetcher.groovy:44)
at org.grails.gorm.graphql.fetcher.impl.DeleteEntityDataFetcher.get(DeleteEntityDataFetcher.groovy:59)
at org.grails.gorm.graphql.fetcher.impl.DeleteEntityDataFetcherSpec.$spock_feature_1_1(DeleteEntityDataFetcherSpec.groovy:74)
Caused by: groovy.lang.MissingMethodException: No signature of method: grails.gorm.DetachedCriteria$_withPopulatedQuery_closure7.doCall() is applicable for argument types: (org.hibernate.internal.SessionImpl) values: [SessionImpl(997106491<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.get(DetachedCriteria.groovy:119)
at org.grails.gorm.graphql.fetcher.DefaultGormDataFetcher.queryInstance(DefaultGormDataFetcher.groovy:119)
... 9 more
(org.codehaus.groovy.runtime.InvokerInvocationException)
at org.spockframework.mock.runtime.InteractionScope.verifyInteractions(InteractionScope.java:110)
at org.spockframework.mock.runtime.MockController.leaveScope(MockController.java:95)
at org.grails.gorm.graphql.fetcher.impl.DeleteEntityDataFetcherSpec.test get invalid(DeleteEntityDataFetcherSpec.groovy:74)
```
</details>
<details>
<summary><strong>EntityDataFetcherSpec > test get</strong> (:grails-data-graphql-core:test in <a href="https://github.com/apache/grails-core/actions/runs/28307758322/job/83866963073?pr=15781">CI / Build Grails-Core (ubuntu-latest, 21)</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(166973881<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 org.grails.gorm.graphql.fetcher.impl.EntityDataFetcher.executeQuery(EntityDataFetcher.groovy:84)
at org.grails.gorm.graphql.fetcher.impl.EntityDataFetcher.get_closure1(EntityDataFetcher.groovy:75)
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.services.DefaultTransactionService.withTransaction(DefaultTransactionService.groovy:102)
at org.grails.gorm.graphql.fetcher.DefaultGormDataFetcher.withTransaction(DefaultGormDataFetcher.groovy:136)
at org.grails.gorm.graphql.fetcher.impl.EntityDataFetcher.get(EntityDataFetcher.groovy:61)
at org.grails.gorm.graphql.fetcher.impl.EntityDataFetcherSpec.test get(EntityDataFetcherSpec.groovy:48)
```
</details>
<details>
<summary><strong>EntityDataFetcherSpec > test pagination</strong> (:grails-data-graphql-core:test in <a href="https://github.com/apache/grails-core/actions/runs/28307758322/job/83866963073?pr=15781">CI / Build Grails-Core (ubuntu-latest, 21)</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(1085660137<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 org.grails.gorm.graphql.fetcher.impl.EntityDataFetcher.executeQuery(EntityDataFetcher.groovy:84)
at org.grails.gorm.graphql.fetcher.impl.EntityDataFetcher.get_closure1(EntityDataFetcher.groovy:75)
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.services.DefaultTransactionService.withTransaction(DefaultTransactionService.groovy:102)
at org.grails.gorm.graphql.fetcher.DefaultGormDataFetcher.withTransaction(DefaultGormDataFetcher.groovy:136)
at org.grails.gorm.graphql.fetcher.impl.EntityDataFetcher.get(EntityDataFetcher.groovy:61)
at org.grails.gorm.graphql.fetcher.impl.EntityDataFetcherSpec.test pagination(EntityDataFetcherSpec.groovy:63)
```
</details>
<details>
<summary><strong>SingleEntityDataFetcherSpec > test get</strong> (:grails-data-graphql-core:test in <a href="https://github.com/apache/grails-core/actions/runs/28307758322/job/83866963073?pr=15781">CI / Build Grails-Core (ubuntu-latest, 21)</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(378553315<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.get(DetachedCriteria.groovy:119)
at org.grails.gorm.graphql.fetcher.DefaultGormDataFetcher.queryInstance(DefaultGormDataFetcher.groovy:119)
at org.grails.gorm.graphql.fetcher.impl.SingleEntityDataFetcher.get_closure1(SingleEntityDataFetcher.groovy:43)
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.services.DefaultTransactionService.withTransaction(DefaultTransactionService.groovy:102)
at org.grails.gorm.graphql.fetcher.DefaultGormDataFetcher.withTransaction(DefaultGormDataFetcher.groovy:136)
at org.grails.gorm.graphql.fetcher.impl.SingleEntityDataFetcher.get(SingleEntityDataFetcher.groovy:42)
at org.grails.gorm.graphql.fetcher.impl.SingleEntityDataFetcherSpec.test get(SingleEntityDataFetcherSpec.groovy:49)
```
</details>
<details>
<summary><strong>SoftDeleteEntityDataFetcherSpec > test get</strong> (:grails-data-graphql-core:test in <a href="https://github.com/apache/grails-core/actions/runs/28307758322/job/83866963073?pr=15781">CI / Build Grails-Core (ubuntu-latest, 21)</a>)</summary>
```
Condition not satisfied:
result.success
| |
| false
[success:false, error:groovy.lang.MissingMethodException: No signature of method: grails.gorm.DetachedCriteria$_withPopulatedQuery_closure7.doCall() is applicable for argument types: (org.hibernate.internal.SessionImpl) values: [SessionImpl(570884289<closed>)]
Possible solutions: doCall(org.grails.datastore.mapping.core.Session), findAll(), findAll(), isCase(java.lang.Object), isCase(java.lang.Object)]
at org.grails.gorm.graphql.fetcher.impl.SoftDeleteEntityDataFetcherSpec.test get(SoftDeleteEntityDataFetcherSpec.groovy:58)
```
</details>
<details>
<summary><strong>UpdateEntityDataFetcherSpec > test get</strong> (:grails-data-graphql-core:test in <a href="https://github.com/apache/grails-core/actions/runs/28307758322/job/83866963073?pr=15781">CI / Build Grails-Core (ubuntu-latest, 21)</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(602908276<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.get(DetachedCriteria.groovy:119)
at org.grails.gorm.graphql.fetcher.DefaultGormDataFetcher.queryInstance(DefaultGormDataFetcher.groovy:119)
at org.grails.gorm.graphql.fetcher.impl.UpdateEntityDataFetcher.getInstance(UpdateEntityDataFetcher.groovy:68)
at org.grails.gorm.graphql.fetcher.impl.UpdateEntityDataFetcher.get_closure1(UpdateEntityDataFetcher.groovy:49)
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.services.DefaultTransactionService.withTransaction(DefaultTransactionService.groovy:102)
at org.grails.gorm.graphql.fetcher.DefaultGormDataFetcher.withTransaction(DefaultGormDataFetcher.groovy:136)
at org.grails.gorm.graphql.fetcher.impl.UpdateEntityDataFetcher.get(UpdateEntityDataFetcher.groovy:48)
at org.grails.gorm.graphql.fetcher.impl.UpdateEntityDataFetcherSpec.test get(UpdateEntityDataFetcherSpec.groovy:48)
```
</details>
<details>
<summary><strong>UpdateEntityDataFetcherSpec > test optimistic locking</strong> (:grails-data-graphql-core:test in <a href="https://github.com/apache/grails-core/actions/runs/28307758322/job/83866963073?pr=15781">CI / Build Grails-Core (ubuntu-latest, 21)</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(63508873<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.get(DetachedCriteria.groovy:119)
at org.grails.gorm.graphql.fetcher.DefaultGormDataFetcher.queryInstance(DefaultGormDataFetcher.groovy:119)
at org.grails.gorm.graphql.fetcher.impl.UpdateEntityDataFetcher.getInstance(UpdateEntityDataFetcher.groovy:68)
at org.grails.gorm.graphql.fetcher.impl.UpdateEntityDataFetcher.get_closure1(UpdateEntityDataFetcher.groovy:49)
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.services.DefaultTransactionService.withTransaction(DefaultTransactionService.groovy:102)
at org.grails.gorm.graphql.fetcher.DefaultGormDataFetcher.withTransaction(DefaultGormDataFetcher.groovy:136)
at org.grails.gorm.graphql.fetcher.impl.UpdateEntityDataFetcher.get(UpdateEntityDataFetcher.groovy:48)
at org.grails.gorm.graphql.fetcher.impl.UpdateEntityDataFetcherSpec.test optimistic locking(UpdateEntityDataFetcherSpec.groovy:69)
```
</details>
<details>
<summary><strong>UpdateEntityDataFetcherSpec > test optimistic locking with null version</strong> (:grails-data-graphql-core:test in <a href="https://github.com/apache/grails-core/actions/runs/28307758322/job/83866963073?pr=15781">CI / Build Grails-Core (ubuntu-latest, 21)</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(695666766<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.get(DetachedCriteria.groovy:119)
at org.grails.gorm.graphql.fetcher.DefaultGormDataFetcher.queryInstance(DefaultGormDataFetcher.groovy:119)
at org.grails.gorm.graphql.fetcher.impl.UpdateEntityDataFetcher.getInstance(UpdateEntityDataFetcher.groovy:68)
at org.grails.gorm.graphql.fetcher.impl.UpdateEntityDataFetcher.get_closure1(UpdateEntityDataFetcher.groovy:49)
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.services.DefaultTransactionService.withTransaction(DefaultTransactionService.groovy:102)
at org.grails.gorm.graphql.fetcher.DefaultGormDataFetcher.withTransaction(DefaultGormDataFetcher.groovy:136)
at org.grails.gorm.graphql.fetcher.impl.UpdateEntityDataFetcher.get(UpdateEntityDataFetcher.groovy:48)
at org.grails.gorm.graphql.fetcher.impl.UpdateEntityDataFetcherSpec.test optimistic locking with null version(UpdateEntityDataFetcherSpec.groovy:88)
```
</details>
### Muted Tests
> [!NOTE]
> Checks are currently running using the configuration below.
Select tests to mute in this pull request:
🔲 DeleteEntityDataFetcherSpec > test get <!-- uniqueId=[engine:spock]/[spec:org.grails.gorm.graphql.fetcher.impl.DeleteEntityDataFetcherSpec]/[feature:$spock_feature_1_0] -->
🔲 DeleteEntityDataFetcherSpec > test get invalid <!-- uniqueId=[engine:spock]/[spec:org.grails.gorm.graphql.fetcher.impl.DeleteEntityDataFetcherSpec]/[feature:$spock_feature_1_1] -->
🔲 EntityDataFetcherSpec > test get <!-- uniqueId=[engine:spock]/[spec:org.grails.gorm.graphql.fetcher.impl.EntityDataFetcherSpec]/[feature:$spock_feature_1_0] -->
🔲 EntityDataFetcherSpec > test pagination <!-- uniqueId=[engine:spock]/[spec:org.grails.gorm.graphql.fetcher.impl.EntityDataFetcherSpec]/[feature:$spock_feature_1_1] -->
🔲 SingleEntityDataFetcherSpec > test get <!-- uniqueId=[engine:spock]/[spec:org.grails.gorm.graphql.fetcher.impl.SingleEntityDataFetcherSpec]/[feature:$spock_feature_1_0] -->
🔲 SoftDeleteEntityDataFetcherSpec > test get <!-- uniqueId=[engine:spock]/[spec:org.grails.gorm.graphql.fetcher.impl.SoftDeleteEntityDataFetcherSpec]/[feature:$spock_feature_1_0] -->
🔲 UpdateEntityDataFetcherSpec > test get <!-- uniqueId=[engine:spock]/[spec:org.grails.gorm.graphql.fetcher.impl.UpdateEntityDataFetcherSpec]/[feature:$spock_feature_1_0] -->
🔲 UpdateEntityDataFetcherSpec > test optimistic locking <!-- uniqueId=[engine:spock]/[spec:org.grails.gorm.graphql.fetcher.impl.UpdateEntityDataFetcherSpec]/[feature:$spock_feature_1_1] -->
🔲 UpdateEntityDataFetcherSpec > test optimistic locking with null version <!-- uniqueId=[engine:spock]/[spec:org.grails.gorm.graphql.fetcher.impl.UpdateEntityDataFetcherSpec]/[feature:$spock_feature_1_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: notifications-unsubscribe@grails.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test: add unit and TCK tests for GormRegistry O(M+N) scaling [grails-core]
Posted by "testlens-app[bot] (via GitHub)" <gi...@apache.org>.
testlens-app[bot] commented on PR #15781:
URL: https://github.com/apache/grails-core/pull/15781#issuecomment-4822261360
## ✅ All tests passed ✅
🏷️ Commit: 1910711ceb682d291fbd0e36e369333a65494f92
▶️ Tests: 8860 executed
⚪️ Checks: 39/39 completed
---
_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: notifications-unsubscribe@grails.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test: add unit and TCK tests for GormRegistry O(M+N) scaling [grails-core]
Posted by "borinquenkid (via GitHub)" <gi...@apache.org>.
borinquenkid commented on PR #15781:
URL: https://github.com/apache/grails-core/pull/15781#issuecomment-4834701943
Superseded by the consolidated GormRegistry work. The net-new core-class unit specs from this PR were harvested into #15790 (verified green against the core-impl implementation); the remaining changes here were adaptations of existing TCK/core specs to the divergent adapter stack (#15782–#15787, now closed) and do not apply to core-impl (#15780). Closing as superseded; the branch is retained for reference (not deleted).
--
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: notifications-unsubscribe@grails.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test: add unit and TCK tests for GormRegistry O(M+N) scaling [grails-core]
Posted by "testlens-app[bot] (via GitHub)" <gi...@apache.org>.
testlens-app[bot] commented on PR #15781:
URL: https://github.com/apache/grails-core/pull/15781#issuecomment-4823833138
## 🚨 TestLens detected 4 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 21, indy\=false\)](https://github.com/apache/grails-core/actions/runs/28306881229/job/83864528542?pr=15781) > :grails-test-examples-datasources:integrationTest
| Test | Runs |
|---|---|
| DatasourceSwitchingSpec > bulk delete works on each datasource | ❌ |
| DatasourceSwitchingSpec > executeQuery routes to secondary datasource | ❌ |
| DatasourceSwitchingSpec > executeUpdate routes to secondary datasource | ❌ |
| DatasourceSwitchingSpec > where queries work on each datasource | ❌ |
🏷️ Commit: 1dd696ac966846878e82f61eeebbd5f906c83a55
▶️ Tests: 692 executed
🟡 Checks: 16/33 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/28306881229/job/83864528542?pr=15781">CI / Functional Tests (Java 21, 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(799446400<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/28306881229/job/83864528542?pr=15781">CI / Functional Tests (Java 21, 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 > executeUpdate routes to secondary datasource</strong> (:grails-test-examples-datasources:integrationTest in <a href="https://github.com/apache/grails-core/actions/runs/28306881229/job/83864528542?pr=15781">CI / Functional Tests (Java 21, indy=false)</a>)</summary>
```
java.lang.UnsupportedOperationException: String-based queries like [executeUpdate] are currently not supported in this implementation of GORM. Use criteria instead.
at org.grails.datastore.gorm.GormStaticApi.executeUpdate(GormStaticApi.groovy:755)
at org.grails.orm.hibernate.AbstractHibernateGormStaticApi.executeUpdate(AbstractHibernateGormStaticApi.groovy:525)
at org.grails.datastore.gorm.GormEntity$Trait$Helper.executeUpdate(GormEntity.groovy:1258)
at functionaltests.DatasourceSwitchingSpec._tt___spock_feature_0_17_closure68(DatasourceSwitchingSpec.groovy:448)
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_17(DatasourceSwitchingSpec.groovy:447)
at functionaltests.DatasourceSwitchingSpec.executeUpdate routes to secondary datasource_closure18(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.executeUpdate 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/28306881229/job/83864528542?pr=15781">CI / Functional Tests (Java 21, 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(940966625<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 > executeUpdate routes to secondary datasource <!-- uniqueId=[engine:spock]/[spec:functionaltests.DatasourceSwitchingSpec]/[feature:$spock_feature_0_17] -->
🔲 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: notifications-unsubscribe@grails.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test: add unit and TCK tests for GormRegistry O(M+N) scaling [grails-core]
Posted by "testlens-app[bot] (via GitHub)" <gi...@apache.org>.
testlens-app[bot] commented on PR #15781:
URL: https://github.com/apache/grails-core/pull/15781#issuecomment-4819852311
## ✅ All tests passed ✅
🏷️ Commit: 00b0fe6add034ee2b1c3046636239d607029c29a
▶️ Tests: 4409 executed
⚪️ Checks: 39/39 completed
---
_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: notifications-unsubscribe@grails.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test: add unit and TCK tests for GormRegistry O(M+N) scaling [grails-core]
Posted by "testlens-app[bot] (via GitHub)" <gi...@apache.org>.
testlens-app[bot] commented on PR #15781:
URL: https://github.com/apache/grails-core/pull/15781#issuecomment-4821674386
## ✅ All tests passed ✅
🏷️ Commit: 65053e3fed02644db017dd2d46fa2f12fb4cb108
▶️ Tests: 7693 executed
⚪️ Checks: 39/39 completed
---
_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: notifications-unsubscribe@grails.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test: add unit and TCK tests for GormRegistry O(M+N) scaling [grails-core]
Posted by "testlens-app[bot] (via GitHub)" <gi...@apache.org>.
testlens-app[bot] commented on PR #15781:
URL: https://github.com/apache/grails-core/pull/15781#issuecomment-4819385971
## ✅ All tests passed ✅
🏷️ Commit: 5e565aed93f3d4e203649a16f751970a896f102f
▶️ Tests: 5085 executed
⚪️ Checks: 39/39 completed
---
_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: notifications-unsubscribe@grails.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org