The GitHub Actions job "Coverage" on 
grails-core.git/fix/stacktrace-filterer-test-log-capture has succeeded.
Run started by GitHub user borinquenkid (triggered by borinquenkid).

Head commit for run:
a8227fdbbba475c5ae53e41d6e59daeced53f4d1 / Walter Duque de Estrada 
<[email protected]>
fix: convert GrailsExceptionResolverSpec to LogCapture, remove last System.err 
capture

Address jamesfredley's review on #16067: this was the one remaining latent
instance of the same fragility -- three sites asserting on rendered
System.err output for the STACK_LOG and GrailsExceptionResolver loggers,
including one match on the literal console layout string 'ERROR StackTrace '.
It passed only because grails-web-mvc's test classpath happened to carry
slf4j-simple, whose SYS_ERR output choice re-reads System.err per call rather
than caching it -- the same trap that broke these tests in grails-core once
that module got a deterministic logback-test.xml.

Swap the module's test logging binding from slf4j-simple to grails-core's
test fixtures (which bring logback-classic transitively), and rewrite the
three specs to assert on captured ILoggingEvents instead of console text --
including inspecting each event's throwableProxy stack frames directly
rather than counting substrings in rendered output.

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

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

With regards,
GitHub Actions via GitBox

Reply via email to