The GitHub Actions job "CI" on grails-core.git/improve-gh-ci-speed has failed.
Run started by GitHub user jamesfredley (triggered by jamesfredley).

Head commit for run:
4e1616874ab38628b8f62313fb7bc09f43225495 / James Fredley 
<[email protected]>
Fix shared constraint test by ensuring grailsApplication is initialized before 
clearing caches

The setup() method was clearing ConstraintEvalUtils.defaultConstraintsMap and 
the
Artist class's constraintsMapInternal before grailsApplication was initialized.
This meant when artist.validate() was called, Holders.grailsApplication was null
or from a previous test, causing the 'isProg' shared constraint to not be found.

Fix: Access 'config' property first in setup() to trigger lazy initialization of
grailsApplication, which calls doWithConfig() to register the shared constraint.
Then clear the caches so they'll be repopulated from the fresh config.

Report URL: https://github.com/apache/grails-core/actions/runs/21378563550

With regards,
GitHub Actions via GitBox

Reply via email to