testlens-app[bot] commented on PR #15557:
URL: https://github.com/apache/grails-core/pull/15557#issuecomment-4819682528

   ## 🚨 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 \(windows-latest, 
25\)](https://github.com/apache/grails-core/actions/runs/28294757074/job/83832644243?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: 0035ca1b5898342c3c2404127af267bdf894e707
   ▶️ Tests:  31585 executed
   🟡 Checks: 40/41 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/28294757074/job/83832644243?pr=15557";>CI
 / Build Grails-Core (windows-latest, 25)</a>)</summary>
   
   ```
   Condition not satisfied:
   
   constraints.size() == 3
   |           |      |
   |           4      false
   [town:grails.validation.ConstrainedDelegate@5d5ad1e2, 
age:grails.validation.ConstrainedDelegate@2fc378cd, 
country:grails.validation.ConstrainedDelegate@7b886bd3, 
name:grails.validation.ConstrainedDelegate@7e84be9b]
   
        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/28294757074/job/83832644243?pr=15557";>CI
 / Build Grails-Core (windows-latest, 25)</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@10bf2726 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]

Reply via email to