testlens-app[bot] commented on PR #15509: URL: https://github.com/apache/grails-core/pull/15509#issuecomment-4069081986
## 🚨 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 | Check | Project/Task | Test | Runs | |---|---|---|---| | [CI / Build Grails-Core \(macos-latest, 21\)](https://github.com/apache/grails-core/actions/runs/23154758392/job/67266433402?pr=15509) | :grails-converters:test | DomainClassMarshallerSpec > Test DomainClassMarshaller\'s should maintain order of relations > Test DomainClassMarshaller\'s should maintain order of relations [authors: [org.grails.web.converters.marshaller.json.Author : 1, org.grails.web.converters.marshaller.json.Author : 2], expectedJson: \{\"id\":1,\"authorsSet\":[\{\"id\":1,\"name\":\"a\"\},\{\"id\":2,\"name\":\"b\"\}],\"authorsMap\":\{\"a\":\{\"id\":1,\"name\":\"a\"\},\"b\":\{\"id\":2,\"name\":\"b\"\}\}\}, expectedXml: \<\?xml version\=\"1.0\" encoding\=\"UTF-8\"\?\>\<book id\=\"1\"\>\<authorsSet\>\<author id\=\"1\"\>\<name\>a\</name\>\</author\>\<author id\=\"2\"\>\<name\>b\</name\>\</author\>\</authorsSet\>\<authorsMap\>\<entry k… | ❌ | | [CI / Build Grails-Core \(macos-latest, 21\)](https://github.com/apache/grails-core/actions/runs/23154758392/job/67266433402?pr=15509) | :grails-converters:test | DomainClassMarshallerSpec > Test DomainClassMarshaller\'s should maintain order of relations > Test DomainClassMarshaller\'s should maintain order of relations [authors: [org.grails.web.converters.marshaller.json.Author : 2, org.grails.web.converters.marshaller.json.Author : 1], expectedJson: \{\"id\":1,\"authorsSet\":[\{\"id\":1,\"name\":\"b\"\},\{\"id\":2,\"name\":\"a\"\}],\"authorsMap\":\{\"b\":\{\"id\":1,\"name\":\"b\"\},\"a\":\{\"id\":2,\"name\":\"a\"\}\}\}, expectedXml: \<\?xml version\=\"1.0\" encoding\=\"UTF-8\"\?\>\<book id\=\"1\"\>\<authorsSet\>\<author id\=\"1\"\>\<name\>b\</name\>\</author\>\<author id\=\"2\"\>\<name\>a\</name\>\</author\>\</authorsSet\>\<authorsMap\>\<entry k… | ❌ | | [CI / Build Grails-Core \(macos-latest, 21\)](https://github.com/apache/grails-core/actions/runs/23154758392/job/67266433402?pr=15509) | :grails-converters:test | DomainClassMarshallerSpec > test marshaller should render the ID properly | ❌ | | [CI / Build Grails-Core \(macos-latest, 21\)](https://github.com/apache/grails-core/actions/runs/23154758392/job/67266433402?pr=15509) | :grails-converters:test | DomainClassMarshallerSpec > test marshallers generate class names when options are set > test marshallers generate class names when options are set [authors: [org.grails.web.converters.marshaller.json.Author : 1, org.grails.web.converters.marshaller.json.Author : 2], expectedJson: \{\"class\":\"org.grails.web.converters.marshaller.json.Book\",\"id\":1,\"authorsSet\":[\{\"class\":\"org.grails.web.converters.marshaller.json.Author\",\"id\":1,\"name\":\"a\"\},\{\"class\":\"org.grails.web.converters.marshaller.json.Author\",\"id\":2,\"name\":\"b\"\}],\"authorsMap\":\{\"a\":\{\"class\":\"org.grails.web.converters.marshaller.json.Author\",\"i… | ❌ | 🏷️ Commit: c71aa4091198dd82e864893839564439d882e8fc ▶️ Tests: 1598 executed 🟡 Checks: 5/27 completed ### Test Failures <details> <summary><strong>DomainClassMarshallerSpec > Test DomainClassMarshaller's should maintain order of relations > Test DomainClassMarshaller's should maintain order of relations [authors: [org.grails.web.converters.marshaller.json.Author : 1, org.grails.web.converters.marshaller.json.Author : 2], expectedJson: {"id":1,"authorsSet":[{"id":1,"name":"a"},{"id":2,"name":"b"}],"authorsMap":{"a":{"id":1,"name":"a"},"b":{"id":2,"name":"b"}}}, expectedXml: <?xml version="1.0" encoding="UTF-8"?><book id="1"><authorsSet><author id="1"><name>a</name></author><author id="2"><name>b</name></author></authorsSet><authorsMap><entry k…</strong> (:grails-converters:test in <a href="https://github.com/apache/grails-core/actions/runs/23154758392/job/67266433402?pr=15509">CI / Build Grails-Core (macos-latest, 21)</a>)</summary> ``` java.lang.NullPointerException: Cannot invoke "org.grails.datastore.mapping.model.PersistentProperty.getMapping()" because the return value of "org.grails.datastore.mapping.model.PersistentEntity.getIdentity()" is null at org.grails.datastore.mapping.model.MappingFactory.createDefaultIdentityMapping(MappingFactory.java:449) at org.grails.datastore.mapping.config.AbstractGormMappingFactory.getIdentityMappedForm(AbstractGormMappingFactory.java:173) at org.grails.datastore.mapping.keyvalue.mapping.config.GormKeyValueMappingFactory.getIdentityMappedForm(GormKeyValueMappingFactory.java:87) at org.grails.datastore.mapping.keyvalue.mapping.config.GormKeyValueMappingFactory.getIdentityMappedForm(GormKeyValueMappingFactory.java:32) at org.grails.datastore.mapping.config.AbstractGormMappingFactory.createIdentityMapping(AbstractGormMappingFactory.java:160) at org.grails.datastore.mapping.model.config.GormMappingConfigurationStrategy.getIdentityMapping(GormMappingConfigurationStrategy.java:938) at org.grails.datastore.mapping.model.config.JpaMappingConfigurationStrategy.getIdentityMapping(JpaMappingConfigurationStrategy.java:326) at org.grails.datastore.mapping.model.AbstractClassMapping.<init>(AbstractClassMapping.java:39) at org.grails.datastore.mapping.keyvalue.mapping.config.KeyValuePersistentEntity$KeyValueClassMapping.<init>(KeyValuePersistentEntity.java:80) at org.grails.datastore.mapping.keyvalue.mapping.config.KeyValuePersistentEntity.<init>(KeyValuePersistentEntity.java:40) at org.grails.datastore.mapping.keyvalue.mapping.config.KeyValueMappingContext.createPersistentEntity(KeyValueMappingContext.java:101) at org.grails.datastore.mapping.model.AbstractMappingContext.addPersistentEntities(AbstractMappingContext.java:279) at org.grails.web.converters.marshaller.json.DomainClassMarshallerSpec.initJson(DomainClassMarshallerSpec.groovy:45) at org.grails.web.converters.marshaller.json.DomainClassMarshallerSpec.Test DomainClassMarshaller's should maintain order of relations(DomainClassMarshallerSpec.groovy:62) ``` </details> <details> <summary><strong>DomainClassMarshallerSpec > Test DomainClassMarshaller's should maintain order of relations > Test DomainClassMarshaller's should maintain order of relations [authors: [org.grails.web.converters.marshaller.json.Author : 2, org.grails.web.converters.marshaller.json.Author : 1], expectedJson: {"id":1,"authorsSet":[{"id":1,"name":"b"},{"id":2,"name":"a"}],"authorsMap":{"b":{"id":1,"name":"b"},"a":{"id":2,"name":"a"}}}, expectedXml: <?xml version="1.0" encoding="UTF-8"?><book id="1"><authorsSet><author id="1"><name>b</name></author><author id="2"><name>a</name></author></authorsSet><authorsMap><entry k…</strong> (:grails-converters:test in <a href="https://github.com/apache/grails-core/actions/runs/23154758392/job/67266433402?pr=15509">CI / Build Grails-Core (macos-latest, 21)</a>)</summary> ``` java.lang.NullPointerException: Cannot invoke "org.grails.datastore.mapping.model.PersistentProperty.getMapping()" because the return value of "org.grails.datastore.mapping.model.PersistentEntity.getIdentity()" is null at org.grails.datastore.mapping.model.MappingFactory.createDefaultIdentityMapping(MappingFactory.java:449) at org.grails.datastore.mapping.config.AbstractGormMappingFactory.getIdentityMappedForm(AbstractGormMappingFactory.java:173) at org.grails.datastore.mapping.keyvalue.mapping.config.GormKeyValueMappingFactory.getIdentityMappedForm(GormKeyValueMappingFactory.java:87) at org.grails.datastore.mapping.keyvalue.mapping.config.GormKeyValueMappingFactory.getIdentityMappedForm(GormKeyValueMappingFactory.java:32) at org.grails.datastore.mapping.config.AbstractGormMappingFactory.createIdentityMapping(AbstractGormMappingFactory.java:160) at org.grails.datastore.mapping.model.config.GormMappingConfigurationStrategy.getIdentityMapping(GormMappingConfigurationStrategy.java:938) at org.grails.datastore.mapping.model.config.JpaMappingConfigurationStrategy.getIdentityMapping(JpaMappingConfigurationStrategy.java:326) at org.grails.datastore.mapping.model.AbstractClassMapping.<init>(AbstractClassMapping.java:39) at org.grails.datastore.mapping.keyvalue.mapping.config.KeyValuePersistentEntity$KeyValueClassMapping.<init>(KeyValuePersistentEntity.java:80) at org.grails.datastore.mapping.keyvalue.mapping.config.KeyValuePersistentEntity.<init>(KeyValuePersistentEntity.java:40) at org.grails.datastore.mapping.keyvalue.mapping.config.KeyValueMappingContext.createPersistentEntity(KeyValueMappingContext.java:101) at org.grails.datastore.mapping.model.AbstractMappingContext.addPersistentEntities(AbstractMappingContext.java:279) at org.grails.web.converters.marshaller.json.DomainClassMarshallerSpec.initJson(DomainClassMarshallerSpec.groovy:45) at org.grails.web.converters.marshaller.json.DomainClassMarshallerSpec.Test DomainClassMarshaller's should maintain order of relations(DomainClassMarshallerSpec.groovy:62) ``` </details> <details> <summary><strong>DomainClassMarshallerSpec > test marshaller should render the ID properly</strong> (:grails-converters:test in <a href="https://github.com/apache/grails-core/actions/runs/23154758392/job/67266433402?pr=15509">CI / Build Grails-Core (macos-latest, 21)</a>)</summary> ``` java.lang.NullPointerException: Cannot invoke "org.grails.datastore.mapping.model.PersistentProperty.getMapping()" because the return value of "org.grails.datastore.mapping.model.PersistentEntity.getIdentity()" is null at org.grails.datastore.mapping.model.MappingFactory.createDefaultIdentityMapping(MappingFactory.java:449) at org.grails.datastore.mapping.config.AbstractGormMappingFactory.getIdentityMappedForm(AbstractGormMappingFactory.java:173) at org.grails.datastore.mapping.keyvalue.mapping.config.GormKeyValueMappingFactory.getIdentityMappedForm(GormKeyValueMappingFactory.java:87) at org.grails.datastore.mapping.keyvalue.mapping.config.GormKeyValueMappingFactory.getIdentityMappedForm(GormKeyValueMappingFactory.java:32) at org.grails.datastore.mapping.config.AbstractGormMappingFactory.createIdentityMapping(AbstractGormMappingFactory.java:160) at org.grails.datastore.mapping.model.config.GormMappingConfigurationStrategy.getIdentityMapping(GormMappingConfigurationStrategy.java:938) at org.grails.datastore.mapping.model.config.JpaMappingConfigurationStrategy.getIdentityMapping(JpaMappingConfigurationStrategy.java:326) at org.grails.datastore.mapping.model.AbstractClassMapping.<init>(AbstractClassMapping.java:39) at org.grails.datastore.mapping.keyvalue.mapping.config.KeyValuePersistentEntity$KeyValueClassMapping.<init>(KeyValuePersistentEntity.java:80) at org.grails.datastore.mapping.keyvalue.mapping.config.KeyValuePersistentEntity.<init>(KeyValuePersistentEntity.java:40) at org.grails.datastore.mapping.keyvalue.mapping.config.KeyValueMappingContext.createPersistentEntity(KeyValueMappingContext.java:101) at org.grails.datastore.mapping.model.AbstractMappingContext.addPersistentEntities(AbstractMappingContext.java:279) at org.grails.web.converters.marshaller.json.DomainClassMarshallerSpec.initJson(DomainClassMarshallerSpec.groovy:45) at org.grails.web.converters.marshaller.json.DomainClassMarshallerSpec.test marshaller should render the ID properly(DomainClassMarshallerSpec.groovy:91) ``` </details> <details> <summary><strong>DomainClassMarshallerSpec > test marshallers generate class names when options are set > test marshallers generate class names when options are set [authors: [org.grails.web.converters.marshaller.json.Author : 1, org.grails.web.converters.marshaller.json.Author : 2], expectedJson: {"class":"org.grails.web.converters.marshaller.json.Book","id":1,"authorsSet":[{"class":"org.grails.web.converters.marshaller.json.Author","id":1,"name":"a"},{"class":"org.grails.web.converters.marshaller.json.Author","id":2,"name":"b"}],"authorsMap":{"a":{"class":"org.grails.web.converters.marshaller.json.Author","i…</strong> (:grails-converters:test in <a href="https://github.com/apache/grails-core/actions/runs/23154758392/job/67266433402?pr=15509">CI / Build Grails-Core (macos-latest, 21)</a>)</summary> ``` java.lang.NullPointerException: Cannot invoke "org.grails.datastore.mapping.model.PersistentProperty.getMapping()" because the return value of "org.grails.datastore.mapping.model.PersistentEntity.getIdentity()" is null at org.grails.datastore.mapping.model.MappingFactory.createDefaultIdentityMapping(MappingFactory.java:449) at org.grails.datastore.mapping.config.AbstractGormMappingFactory.getIdentityMappedForm(AbstractGormMappingFactory.java:173) at org.grails.datastore.mapping.keyvalue.mapping.config.GormKeyValueMappingFactory.getIdentityMappedForm(GormKeyValueMappingFactory.java:87) at org.grails.datastore.mapping.keyvalue.mapping.config.GormKeyValueMappingFactory.getIdentityMappedForm(GormKeyValueMappingFactory.java:32) at org.grails.datastore.mapping.config.AbstractGormMappingFactory.createIdentityMapping(AbstractGormMappingFactory.java:160) at org.grails.datastore.mapping.model.config.GormMappingConfigurationStrategy.getIdentityMapping(GormMappingConfigurationStrategy.java:938) at org.grails.datastore.mapping.model.config.JpaMappingConfigurationStrategy.getIdentityMapping(JpaMappingConfigurationStrategy.java:326) at org.grails.datastore.mapping.model.AbstractClassMapping.<init>(AbstractClassMapping.java:39) at org.grails.datastore.mapping.keyvalue.mapping.config.KeyValuePersistentEntity$KeyValueClassMapping.<init>(KeyValuePersistentEntity.java:80) at org.grails.datastore.mapping.keyvalue.mapping.config.KeyValuePersistentEntity.<init>(KeyValuePersistentEntity.java:40) at org.grails.datastore.mapping.keyvalue.mapping.config.KeyValueMappingContext.createPersistentEntity(KeyValueMappingContext.java:101) at org.grails.datastore.mapping.model.AbstractMappingContext.addPersistentEntities(AbstractMappingContext.java:279) at org.grails.web.converters.marshaller.json.DomainClassMarshallerSpec.initJson(DomainClassMarshallerSpec.groovy:45) at org.grails.web.converters.marshaller.json.DomainClassMarshallerSpec.test marshallers generate class names when options are set(DomainClassMarshallerSpec.groovy:104) ``` </details> ### Muted Tests > [!NOTE] > Checks are currently running using the configuration below. Select tests to mute in this pull request: 🔲 DomainClassMarshallerSpec > Test DomainClassMarshaller\'s should maintain order of relations <!-- uniqueId=[engine:spock]/[spec:org.grails.web.converters.marshaller.json.DomainClassMarshallerSpec]/[feature:$spock_feature_0_0] --> 🔲 DomainClassMarshallerSpec > test marshaller should render the ID properly <!-- uniqueId=[engine:spock]/[spec:org.grails.web.converters.marshaller.json.DomainClassMarshallerSpec]/[feature:$spock_feature_0_1] --> 🔲 DomainClassMarshallerSpec > test marshallers generate class names when options are set <!-- uniqueId=[engine:spock]/[spec:org.grails.web.converters.marshaller.json.DomainClassMarshallerSpec]/[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]
