testlens-app[bot] commented on PR #15557: URL: https://github.com/apache/grails-core/pull/15557#issuecomment-4818983300
## 🚨 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 - Groovy Joint Validation Build / build\_grails](https://github.com/apache/grails-core/actions/runs/28293237613/job/83828902702?pr=15557) > :grails-validation:test | Test | Runs | |---|---| | ValidateableTraitSpec > Test that constraints are nullable by default if overridden and ensure nullable:true constraint is not applied when no other constraints were defined by user | ❌ | | ValidateableTraitSpec > Test that properties defined in a class with overridden defaultNullable which are not explicitly constrained are not accessed during validation | ❌ | 🏷️ Commit: 4cbeeae6617e5388d85f47817ec1b3fad8b6378a ▶️ Tests: 9939 executed 🟡 Checks: 45/46 completed ### Test Failures <details> <summary><strong>ValidateableTraitSpec > Test that constraints are nullable by default if overridden and ensure nullable:true constraint is not applied when no other constraints were defined by user</strong> (:grails-validation:test in <a href="https://github.com/apache/grails-core/actions/runs/28293237613/job/83828902702?pr=15557">CI - Groovy Joint Validation Build / build_grails</a>)</summary> ``` Condition not satisfied: constraints.size() == 3 | | | | 4 false [town:grails.validation.ConstrainedDelegate@64a009e7, age:grails.validation.ConstrainedDelegate@10587ce5, country:grails.validation.ConstrainedDelegate@74a37c91, name:grails.validation.ConstrainedDelegate@58581ab6] at grails.validation.ValidateableTraitSpec.Test that constraints are nullable by default if overridden and ensure nullable:true constraint is not applied when no other constraints were defined by user(ValidateableTraitSpec.groovy:191) ``` |expected|actual| |---|---| |<s>3</s>|<b>4</b>| </details> <details> <summary><strong>ValidateableTraitSpec > Test that properties defined in a class with overridden defaultNullable which are not explicitly constrained are not accessed during validation</strong> (:grails-validation:test in <a href="https://github.com/apache/grails-core/actions/runs/28293237613/job/83828902702?pr=15557">CI - Groovy Joint Validation Build / build_grails</a>)</summary> ``` Condition failed with Exception: obj.validate() | | | java.lang.UnsupportedOperationException: getName() should not have been called during validation | at grails.validation.MyNullableValidateable.getName(ValidateableTraitSpec.groovy:378) | at groovy.lang.GroovyObject.getProperty(GroovyObject.java:50) | at grails.validation.Validateable$Trait$Helper.getPropertyValue(Validateable.groovy:243) | at grails.validation.Validateable$Trait$Helper.doValidate(Validateable.groovy:232) | at grails.validation.Validateable$Trait$Helper.validate(Validateable.groovy:204) | at grails.validation.Validateable$Trait$Helper.validate(Validateable.groovy:126) | at grails.validation.ValidateableTraitSpec.Test that properties defined in a class with overridden defaultNullable which are not explicitly constrained are not accessed during validation(ValidateableTraitSpec.groovy:213) <grails.validation.MyNullableValidateable@2a6f3ac7 age=inaccessible town=inaccessible country=inaccessible grails_validation_Validateable__beforeValidateHelper=inaccessible grails_validation_Validateable__errors=inaccessible> at grails.validation.ValidateableTraitSpec.Test that properties defined in a class with overridden defaultNullable which are not explicitly constrained are not accessed during validation(ValidateableTraitSpec.groovy:213) Caused by: java.lang.UnsupportedOperationException: getName() should not have been called during validation at grails.validation.MyNullableValidateable.getName(ValidateableTraitSpec.groovy:378) at groovy.lang.GroovyObject.getProperty(GroovyObject.java:50) at grails.validation.Validateable$Trait$Helper.getPropertyValue(Validateable.groovy:243) at grails.validation.Validateable$Trait$Helper.doValidate(Validateable.groovy:232) at grails.validation.Validateable$Trait$Helper.validate(Validateable.groovy:204) at grails.validation.Validateable$Trait$Helper.validate(Validateable.groovy:126) ... 1 more ``` </details> ### Muted Tests > [!NOTE] > Checks are currently running using the configuration below. Select tests to mute in this pull request: 🔲 ValidateableTraitSpec > Test that constraints are nullable by default if overridden and ensure nullable:true constraint is not applied when no other constraints were defined by user <!-- uniqueId=[engine:spock]/[spec:grails.validation.ValidateableTraitSpec]/[feature:$spock_feature_0_4] --> 🔲 ValidateableTraitSpec > Test that properties defined in a class with overridden defaultNullable which are not explicitly constrained are not accessed during validation <!-- uniqueId=[engine:spock]/[spec:grails.validation.ValidateableTraitSpec]/[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]
