The GitHub Actions job "CI - Groovy Joint Validation Build" on 
grails-core.git/grails8-groovy5-sb4 has failed.
Run started by GitHub user jamesfredley (triggered by jamesfredley).

Head commit for run:
c985b721924ec327018dc2922969ebc64c66b51a / James Fredley 
<[email protected]>
Fix dbmigration test logger config: replace logback.groovy with logback-test.xml

The Groovy joint validation build ("CI - Groovy Joint Validation Build")
has been failing on the 8.0.x branch since 2026-05-07 with:

    GroovyChangeLogSpec > updates a database with Groovy Change FAILED
        Condition not satisfied:
        output.toString().contains('confirmation message')

The captured  output  has the standard Liquibase UI messages
('Running Changeset', 'UPDATE SUMMARY', 'Liquibase: Update has been
successful') but is missing per-changeset log lines that go through
SLF4J / Logback (e.g. the confirmation message emitted from
ChangeSet.execute() via  log.info(change.getConfirmationMessage()) ).

Root cause: the previous test logger config was a Groovy-DSL Logback
config:

    appender('STDOUT', ConsoleAppender) {
        withJansi = true
        encoder(PatternLayoutEncoder) {
            pattern = '...%highlight(%p)%cyan(...)...%n'
        }
    }

This relies on (a) the Groovy runtime being on the test JVM classpath
at Logback init time so Logback's GroovyConfigurator can compile and
evaluate the script, (b) Jansi for ANSI colour, and (c) the
%highlight / %cyan converters. In the joint validation environment
the freshly-built local Groovy snapshot (GROOVY_5_0_X HEAD) interacts
with Logback's GroovyConfigurator in a way that silently fails to
register the 'liquibase' logger -> STDOUT binding, so log.info() lines
go nowhere and the assertion fails.

Replaces  src/test/resources/logback.groovy  with an equivalent
 logback-test.xml  that has no Groovy / Jansi / color-converter
dependencies. Same logger levels and appender wiring, just XML.

Verified:

    ./gradlew :grails-data-hibernate5-dbmigration:test \
        --tests 
'org.grails.plugins.databasemigration.liquibase.GroovyChangeLogSpec' \
        -PmaxTestParallel=3 --rerun-tasks
    BUILD SUCCESSFUL in 1m 21s (7 tests, 7 successes, 0 failures, 0 skipped)

Surfaced while auditing PR #15557 (Groovy 5 / Spring Boot 4 upgrade)
where  build_grails  was the only outstanding Groovy joint validation
failure on both 8.0.x and the upgrade branch.

Assisted-by: claude-code:claude-opus-4-7

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

With regards,
GitHub Actions via GitBox

Reply via email to