The GitHub Actions job "CI" on grails-core.git/agentic-improvements has failed.
Run started by GitHub user borinquenkid (triggered by borinquenkid).

Head commit for run:
f44d8789fcccff543e814bb1b5417d5cf86969f9 / Walter Duque de Estrada 
<[email protected]>
Register a late ConfigurationClassPostProcessor for resources.groovy/xml

GrailsApplicationPostProcessor -- which drains resources.groovy,
resources.xml, and the application's own doWithSpring/beanRegistrar() --
is discovered as an ordinary registry bean, so Spring always invokes it
after its own ConfigurationClassPostProcessor has already completed its
one and only pass. @Configuration classes contributed there were
therefore added as plain, unexpanded bean definitions.

CoreGrailsPlugin used to unconditionally register a second processor
that happened to catch this late content, but a later change made it
stand down whenever Spring's own processor is already present -- true
in the early phase where CoreGrailsPlugin's registrar now runs (before
Spring's processor executes), but also true in the late phase where
resources.groovy is loaded (after it has already run), leaving nothing
to parse the late arrivals.

Register a second ConfigurationClassPostProcessor at the end of
GrailsApplicationPostProcessor's own postProcessBeanDefinitionRegistry
instead. Spring marks every bean definition a processor has already
parsed, so this second pass only expands what is genuinely new; it is
skipped under AOT, matching CoreGrailsPlugin's existing guard.

Fixes #16029

Co-Authored-By: Claude Sonnet 5 <[email protected]>

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

With regards,
GitHub Actions via GitBox

Reply via email to