You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@grails.apache.org by "jamesfredley (via GitHub)" <gi...@apache.org> on 2026/07/17 10:16:00 UTC
[PR] Use SLF4J for runtime diagnostics [grails-core]
jamesfredley opened a new pull request, #15993:
URL: https://github.com/apache/grails-core/pull/15993
## Summary
- replace direct stack traces and console output with structured SLF4J diagnostics across selected runtime paths
- preserve stderr visibility when logging is disabled or no provider is installed
- preserve historical logger categories and command return contracts
- add focused provider-enabled, API-only, lifecycle, malformed-input, and schema-export regression coverage
## Verification
- :grails-bootstrap:test
- :grails-core:test
- :grails-shell-cli:test
- :grails-data-hibernate5:test
- :grails-data-hibernate7:test
- grails-forge :grails-forge-core:test
- git diff --check
This is an AI-generated starting point for the broader runtime logging cleanup.
--
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: notifications-unsubscribe@grails.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Use SLF4J for runtime diagnostics [grails-core]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #15993:
URL: https://github.com/apache/grails-core/pull/15993#issuecomment-5002040203
<!-- Bito Reply -->
The concern regarding multiple SLF4J providers on the test classpath is valid, as SLF4J 2.x can exhibit non-deterministic behavior in such environments. The current PR introduces a new test, `GrailsConsoleLoggingSpec`, which explicitly manages the test runtime classpath by filtering out `slf4j-simple` and `logback-classic` when `apiOnly` is true. This approach effectively isolates the test environment to verify logging behavior without ambiguous bindings, aligning with the goal of having a controlled provider environment during testing.
**grails-bootstrap/src/test/groovy/grails/build/logging/GrailsConsoleLoggingSpec.groovy**
```
private static String testRuntimeClasspath(boolean apiOnly) {
String[] entries = System.getProperty('java.class.path').split(File.pathSeparator)
if (!apiOnly) {
return entries.join(File.pathSeparator)
}
entries.findAll { !it.contains('slf4j-simple') && !it.contains('logback-classic') }.join(File.pathSeparator)
}
```
--
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: notifications-unsubscribe@grails.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Use SLF4J for runtime diagnostics [grails-core]
Posted by "testlens-app[bot] (via GitHub)" <gi...@apache.org>.
testlens-app[bot] commented on PR #15993:
URL: https://github.com/apache/grails-core/pull/15993#issuecomment-5007449041
## ✅ All tests passed ✅
🏷️ Commit: a3e185249546efc065ff27c5a3dced4f54467fdd
▶️ Tests: 12547 executed
⚪️ Checks: 59/59 completed
---
_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: notifications-unsubscribe@grails.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Use SLF4J for runtime diagnostics [grails-core]
Posted by "borinquenkid (via GitHub)" <gi...@apache.org>.
borinquenkid merged PR #15993:
URL: https://github.com/apache/grails-core/pull/15993
--
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: notifications-unsubscribe@grails.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Use SLF4J for runtime diagnostics [grails-core]
Posted by "borinquenkid (via GitHub)" <gi...@apache.org>.
borinquenkid commented on PR #15993:
URL: https://github.com/apache/grails-core/pull/15993#issuecomment-5095579590
@jdaugherty — some findings that might help with your investigation into whether this can safely work.
I searched git history broadly for the historical comment/reason you're remembering (grepped commit messages and blamed the touched files - `GrailsConsole.java`, `SpringApplicationRunner.java`, `GrailsCli.groovy`) and couldn't turn up a specific citation. If you find it, I'd like to see it too.
What I did instead: identified the most plausible place the "edge case" could bite, and tested it directly. `SpringApplicationRunner.RunThread` deliberately runs with the *compiled application's own classloader* as its context classloader (its own Javadoc: "Thread used to launch the Spring Application with the correct context classloader"). SLF4J's provider discovery is classloader-sensitive, so a logger call whose *first-ever* SLF4J touch in the JVM happens from inside that thread is exactly the kind of scenario that could pick an ambiguous/wrong provider.
That doesn't happen here, structurally: `LOG` on `SpringApplicationRunner` is a `static final` field, so SLF4J's one-time provider binding is triggered when the class is first initialized - which happens when `new SpringApplicationRunner(...)` is constructed on the main CLI thread, before any `RunThread` with a foreign classloader is ever spawned. By the time `RunThread.run()` calls `logOrPrintStackTrace`, the logger is already resolved.
I verified this empirically rather than just reasoning about it: ran `SpringApplicationRunnerSpec` (6/6 pass), which forks a real JVM and exercises exactly this path - launch/reload/shutdown failures thrown from inside `RunThread` and logged via SLF4J. Also ran the full stated verification suite (`grails-bootstrap`, `grails-core`, `grails-shell-cli`, `grails-data-hibernate5`, `grails-data-hibernate7`, `grails-forge-core`) clean on a fresh `--rerun-tasks` run.
Separately, I confirmed and fixed the multi-SLF4J-provider classpath issue Copilot flagged (`grails-shell-cli`'s test classpath had both `slf4j-simple` and `logback-classic` on it simultaneously with no exclusivity) and rebased onto current `8.0.x`, which also surfaced a real semantic merge conflict: `ExecutionContext`/`SchemaExportCommand` moved packages upstream as part of unrelated work, and the two new `SchemaExportCommandSpec` files (added by this PR, so git had no history to rename-track through) needed their imports updated - now fixed.
This is evidence for your review, not a claim that the question is settled - happy to dig further if you want a different angle tested.
--
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: notifications-unsubscribe@grails.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Use SLF4J for runtime diagnostics [grails-core]
Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #15993:
URL: https://github.com/apache/grails-core/pull/15993#issuecomment-5002457737
## [Codecov](https://app.codecov.io/gh/apache/grails-core/pull/15993?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 20.8237%. Comparing base ([`b980413`](https://app.codecov.io/gh/apache/grails-core/commit/b980413820757347744aa6c10c44d7103babea39?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`2503803`](https://app.codecov.io/gh/apache/grails-core/commit/250380367ff9e096953924ffc73be27ad71ac59a?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
<details><summary>Additional details and impacted files</summary>
[](https://app.codecov.io/gh/apache/grails-core/pull/15993?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
```diff
@@ Coverage Diff @@
## 8.0.x #15993 +/- ##
================================================
+ Coverage 0 20.8237% +20.8237%
- Complexity 0 315 +315
================================================
Files 0 61 +61
Lines 0 3472 +3472
Branches 0 601 +601
================================================
+ Hits 0 723 +723
- Misses 0 2605 +2605
- Partials 0 144 +144
```
[see 61 files with indirect coverage changes](https://app.codecov.io/gh/apache/grails-core/pull/15993/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
</details>
<details><summary> :rocket: New features to boost your workflow: </summary>
- :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
- :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
</details>
--
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: notifications-unsubscribe@grails.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Use SLF4J for runtime diagnostics [grails-core]
Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #15993:
URL: https://github.com/apache/grails-core/pull/15993#discussion_r3602346578
##########
grails-shell-cli/build.gradle:
##########
@@ -115,6 +115,7 @@ dependencies {
// Testing
testImplementation 'org.slf4j:slf4j-simple'
+ testImplementation 'ch.qos.logback:logback-classic'
testImplementation 'org.spockframework:spock-core'
Review Comment:
`grails-shell-cli` test runtime will contain multiple SLF4J providers (runtimeOnly `slf4j-simple` plus test `logback-classic` and `slf4j-simple`). SLF4J 2.x treats this as an ambiguous binding and provider selection can become order-dependent, which can make tests flaky or change logging behavior across environments. Prefer having exactly one provider on the test classpath (and ideally one provider overall).
--
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: notifications-unsubscribe@grails.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Use SLF4J for runtime diagnostics [grails-core]
Posted by "borinquenkid (via GitHub)" <gi...@apache.org>.
borinquenkid commented on PR #15993:
URL: https://github.com/apache/grails-core/pull/15993#issuecomment-5458415887
@jdaugherty following up on the classloader-binding question from July — wanted to loop back with the CI story since it's been a source of confusion on this PR.
**Status update:** I re-ran CI and Coverage against the current HEAD (`b8fd78d243`) via `workflow_dispatch`, and both came back fully green:
- CI: https://github.com/apache/grails-core/actions/runs/33202800706 (46/46 jobs, all platforms/JDKs)
- Coverage: https://github.com/apache/grails-core/actions/runs/33202803098
This matters because **no CI had actually run against the last two commits in three weeks** — the two `Merge branch '8.0.x'` commits (`9c1a834c15`, `b8fd78d243`) never triggered a workflow run, so the PR looked stale/red from the last real signal (commit `c75b73ec1e`, 2026-08-02, where all three `ProfilingGrailsPluginManagerSpec` tests failed on every OS/JDK).
That failure was a test-fragility issue, not a code defect: the original spec asserted on captured `System.err` text, which is sensitive to which SLF4J provider gets resolved in a given environment. The merge from `8.0.x` pulled in the `LogCapture` test fixture and rewrote the spec to assert on actual Logback events instead — I confirmed locally that all three tests pass reliably with that fix.
I also re-checked patch coverage against jacoco data for `ProfilingGrailsPluginManager.java` and `SpringApplicationRunner.java` (the two files Codecov flagged early on) — every line the diff touches is now covered; that earlier 13.9%-patch-coverage comment was against a since-superseded commit.
Ran the full verification suite from the PR description locally as well (`grails-bootstrap`, `grails-core`, `grails-shell-cli`, `grails-data-hibernate5`, `grails-data-hibernate7`, `grails-forge-core`) — all green.
Given CI is now actually green against HEAD and the open question from July has empirical evidence behind it, I'm approving.
--
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: notifications-unsubscribe@grails.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Use SLF4J for runtime diagnostics [grails-core]
Posted by "jdaugherty (via GitHub)" <gi...@apache.org>.
jdaugherty commented on PR #15993:
URL: https://github.com/apache/grails-core/pull/15993#issuecomment-5014074967
It's good to see this can work - I remember reading comments in the code base that historically this couldn't work due to some edge case. I'll see if I can dig up the history to make sure this is indeed safe now and then review.
--
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: notifications-unsubscribe@grails.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Use SLF4J for runtime diagnostics [grails-core]
Posted by "testlens-app[bot] (via GitHub)" <gi...@apache.org>.
testlens-app[bot] commented on PR #15993:
URL: https://github.com/apache/grails-core/pull/15993#issuecomment-5458411760
## ✅ All tests passed ✅
🏷️ Commit: b8fd78d243cb436e40b999b759c67c49512dfc0c
▶️ Tests: 43145 executed
⚪️ Checks: 49/49 completed
---
_Learn more about TestLens at [testlens.app/docs](https://testlens.app/docs/features/pr-comment/)._
--
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: notifications-unsubscribe@grails.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Use SLF4J for runtime diagnostics [grails-core]
Posted by "testlens-app[bot] (via GitHub)" <gi...@apache.org>.
testlens-app[bot] commented on PR #15993:
URL: https://github.com/apache/grails-core/pull/15993#issuecomment-5097129523
## ✅ All tests passed ✅
🏷️ Commit: 936ad907f94c6e524dd147c4e196cf222076c0d5
▶️ Tests: 29593 executed
⚪️ Checks: 59/59 completed
---
_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: notifications-unsubscribe@grails.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Use SLF4J for runtime diagnostics [grails-core]
Posted by "testlens-app[bot] (via GitHub)" <gi...@apache.org>.
testlens-app[bot] commented on PR #15993:
URL: https://github.com/apache/grails-core/pull/15993#issuecomment-5002263843
## 🚨 TestLens detected 4 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 \(macos-latest, 21\)](https://github.com/apache/grails-core/actions/runs/29572885394/job/87860564137?pr=15993) > :grails-shell-cli:test
| Test | Runs | Flakiness |
|---|---|--:|
| SpringApplicationRunnerSpec > ROOT OFF prints <span>#</span>failureMode failures to stderr > ROOT OFF prints reload failures to stderr | ❌ | 0% 🟢 |
| SpringApplicationRunnerSpec > enabled logging captures <span>#</span>failureMode failures without stderr duplication > enabled logging captures launch failures without stderr duplication | ❌ | 0% 🟢 |
| SpringApplicationRunnerSpec > enabled logging captures <span>#</span>failureMode failures without stderr duplication > enabled logging captures reload failures without stderr duplication | ❌ | 0% 🟢 |
| SpringApplicationRunnerSpec > enabled logging captures <span>#</span>failureMode failures without stderr duplication > enabled logging captures shutdown failures without stderr duplication | ❌ | 0% 🟢 |
🏷️ Commit: 250380367ff9e096953924ffc73be27ad71ac59a
▶️ Tests: 14235 executed
🟡 Checks: 25/55 completed
### Test Failures
<details>
<summary><strong>SpringApplicationRunnerSpec > ROOT OFF prints <span>#</span>failureMode failures to stderr > ROOT OFF prints reload failures to stderr</strong> (:grails-shell-cli:test in <a href="https://github.com/apache/grails-core/actions/runs/29572885394/job/87860564137?pr=15993">CI / Build Grails-Core (macos-latest, 21)</a>)</summary>
```
Condition not satisfied:
process.exitValue() == 0
| | |
| 1 false
Process[pid=35354, exitValue=1]
SLF4J(I): Attempting to load provider "ch.qos.logback.classic.spi.LogbackServiceProvider" specified via "slf4j.provider" system property
Assertion failed:
assert stderr.contains(expectedFailure())
| | |
| false 'ReloadFailure'
'Maven settings decryption failed. Some Maven repositories may be inaccessible\n'
at org.codehaus.groovy.runtime.InvokerHelper.createAssertError(InvokerHelper.java:412)
at org.grails.cli.command.run.LifecycleVerifier.assertFailure(LifecycleVerifier.groovy:104)
at org.grails.cli.command.run.LifecycleVerifier.verifyLifecycle(LifecycleVerifier.groovy:81)
at org.grails.cli.command.run.LifecycleVerifier.verify(LifecycleVerifier.groovy:55)
at org.grails.cli.command.run.SpringApplicationRunnerSpec.main(SpringApplicationRunnerSpec.groovy:100)
at org.grails.cli.command.run.SpringApplicationRunnerSpec.runFixture(SpringApplicationRunnerSpec.groovy:64)
at org.grails.cli.command.run.SpringApplicationRunnerSpec.ROOT OFF prints #failureMode failures to stderr(SpringApplicationRunnerSpec.groovy:33)
```
|expected|actual|
|---|---|
|<s>0</s>|<b>1</b>|
</details>
<details>
<summary><strong>SpringApplicationRunnerSpec > enabled logging captures <span>#</span>failureMode failures without stderr duplication > enabled logging captures launch failures without stderr duplication</strong> (:grails-shell-cli:test in <a href="https://github.com/apache/grails-core/actions/runs/29572885394/job/87860564137?pr=15993">CI / Build Grails-Core (macos-latest, 21)</a>)</summary>
```
Condition not satisfied:
process.exitValue() == 0
| | |
| 1 false
Process[pid=35838, exitValue=1]
SLF4J(I): Attempting to load provider "ch.qos.logback.classic.spi.LogbackServiceProvider" specified via "slf4j.provider" system property
Assertion failed:
assert stderr.empty
| |
| false
'Maven settings decryption failed. Some Maven repositories may be inaccessible\n'
at org.codehaus.groovy.runtime.InvokerHelper.createAssertError(InvokerHelper.java:412)
at org.grails.cli.command.run.LifecycleVerifier.assertFailure(LifecycleVerifier.groovy:94)
at org.grails.cli.command.run.LifecycleVerifier.verifyLifecycle(LifecycleVerifier.groovy:81)
at org.grails.cli.command.run.LifecycleVerifier.verify(LifecycleVerifier.groovy:55)
at org.grails.cli.command.run.SpringApplicationRunnerSpec.main(SpringApplicationRunnerSpec.groovy:100)
Exception in thread "main" Assertion failed:
assert stderr.empty
| |
| false
'Maven settings decryption failed. Some Maven repositories may be inaccessible\n'
at org.codehaus.groovy.runtime.InvokerHelper.createAssertError(InvokerHelper.java:412)
at org.grails.cli.command.run.LifecycleVerifier.assertFailure(LifecycleVerifier.groovy:94)
at org.grails.cli.command.run.LifecycleVerifier.verifyLifecycle(LifecycleVerifier.groovy:81)
at org.grails.cli.command.run.LifecycleVerifier.verify(LifecycleVerifier.groovy:55)
at org.grails.cli.command.run.SpringApplicationRunnerSpec.main(SpringApplicationRunnerSpec.groovy:100)
at org.grails.cli.command.run.SpringApplicationRunnerSpec.runFixture(SpringApplicationRunnerSpec.groovy:64)
at org.grails.cli.command.run.SpringApplicationRunnerSpec.enabled logging captures #failureMode failures without stderr duplication(SpringApplicationRunnerSpec.groovy:41)
```
|expected|actual|
|---|---|
|<s>0</s>|<b>1</b>|
</details>
<details>
<summary><strong>SpringApplicationRunnerSpec > enabled logging captures <span>#</span>failureMode failures without stderr duplication > enabled logging captures reload failures without stderr duplication</strong> (:grails-shell-cli:test in <a href="https://github.com/apache/grails-core/actions/runs/29572885394/job/87860564137?pr=15993">CI / Build Grails-Core (macos-latest, 21)</a>)</summary>
```
Condition not satisfied:
process.exitValue() == 0
| | |
| 1 false
Process[pid=36211, exitValue=1]
SLF4J(I): Attempting to load provider "ch.qos.logback.classic.spi.LogbackServiceProvider" specified via "slf4j.provider" system property
Assertion failed:
assert stderr.empty
| |
| false
'Maven settings decryption failed. Some Maven repositories may be inaccessible\n'
at org.codehaus.groovy.runtime.InvokerHelper.createAssertError(InvokerHelper.java:412)
at org.grails.cli.command.run.LifecycleVerifier.assertFailure(LifecycleVerifier.groovy:94)
at org.grails.cli.command.run.LifecycleVerifier.verifyLifecycle(LifecycleVerifier.groovy:81)
at org.grails.cli.command.run.LifecycleVerifier.verify(LifecycleVerifier.groovy:55)
at org.grails.cli.command.run.SpringApplicationRunnerSpec.main(SpringApplicationRunnerSpec.groovy:100)
at org.grails.cli.command.run.SpringApplicationRunnerSpec.runFixture(SpringApplicationRunnerSpec.groovy:64)
at org.grails.cli.command.run.SpringApplicationRunnerSpec.enabled logging captures #failureMode failures without stderr duplication(SpringApplicationRunnerSpec.groovy:41)
```
|expected|actual|
|---|---|
|<s>0</s>|<b>1</b>|
</details>
<details>
<summary><strong>SpringApplicationRunnerSpec > enabled logging captures <span>#</span>failureMode failures without stderr duplication > enabled logging captures shutdown failures without stderr duplication</strong> (:grails-shell-cli:test in <a href="https://github.com/apache/grails-core/actions/runs/29572885394/job/87860564137?pr=15993">CI / Build Grails-Core (macos-latest, 21)</a>)</summary>
```
Condition not satisfied:
process.exitValue() == 0
| | |
| 1 false
Process[pid=36527, exitValue=1]
SLF4J(I): Attempting to load provider "ch.qos.logback.classic.spi.LogbackServiceProvider" specified via "slf4j.provider" system property
Assertion failed:
assert stderr.empty
| |
| false
'Maven settings decryption failed. Some Maven repositories may be inaccessible\n'
at org.codehaus.groovy.runtime.InvokerHelper.createAssertError(InvokerHelper.java:412)
at org.grails.cli.command.run.LifecycleVerifier.assertFailure(LifecycleVerifier.groovy:94)
at org.grails.cli.command.run.LifecycleVerifier.verifyLifecycle(LifecycleVerifier.groovy:81)
at org.grails.cli.command.run.LifecycleVerifier.verify(LifecycleVerifier.groovy:55)
at org.grails.cli.command.run.SpringApplicationRunnerSpec.main(SpringApplicationRunnerSpec.groovy:100)
Exception in thread "main" Assertion failed:
assert stderr.empty
| |
| false
'Maven settings decryption failed. Some Maven repositories may be inaccessible\n'
at org.codehaus.groovy.runtime.InvokerHelper.createAssertError(InvokerHelper.java:412)
at org.grails.cli.command.run.LifecycleVerifier.assertFailure(LifecycleVerifier.groovy:94)
at org.grails.cli.command.run.LifecycleVerifier.verifyLifecycle(LifecycleVerifier.groovy:81)
at org.grails.cli.command.run.LifecycleVerifier.verify(LifecycleVerifier.groovy:55)
at org.grails.cli.command.run.SpringApplicationRunnerSpec.main(SpringApplicationRunnerSpec.groovy:100)
at org.grails.cli.command.run.SpringApplicationRunnerSpec.runFixture(SpringApplicationRunnerSpec.groovy:64)
at org.grails.cli.command.run.SpringApplicationRunnerSpec.enabled logging captures #failureMode failures without stderr duplication(SpringApplicationRunnerSpec.groovy:41)
```
|expected|actual|
|---|---|
|<s>0</s>|<b>1</b>|
</details>
### Muted Tests
> [!NOTE]
> Checks are currently running using the configuration below.
Select tests to mute in this pull request:
🔲 SpringApplicationRunnerSpec > ROOT OFF prints <span>#</span>failureMode failures to stderr <!-- uniqueId=[engine:spock]/[spec:org.grails.cli.command.run.SpringApplicationRunnerSpec]/[feature:$spock_feature_0_0] -->
🔲 SpringApplicationRunnerSpec > enabled logging captures <span>#</span>failureMode failures without stderr duplication <!-- uniqueId=[engine:spock]/[spec:org.grails.cli.command.run.SpringApplicationRunnerSpec]/[feature:$spock_feature_0_1] -->
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: notifications-unsubscribe@grails.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Use SLF4J for runtime diagnostics [grails-core]
Posted by "testlens-app[bot] (via GitHub)" <gi...@apache.org>.
testlens-app[bot] commented on PR #15993:
URL: https://github.com/apache/grails-core/pull/15993#issuecomment-5154665088
## 🚨 TestLens detected 6 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 \(macos-latest, 21\)](https://github.com/apache/grails-core/actions/runs/30728447443/job/91444323584?pr=15993) > :grails-core:test
| Test | Runs | Flakiness |
|---|---|--:|
| ProfilingGrailsPluginManagerSpec > configuration phases emit INFO profiling messages for each plugin | ❌ | 0% 🟢 |
| ProfilingGrailsPluginManagerSpec > deprecated constructors log their warning in the historical category | ❌ | 0% 🟢 |
| ProfilingGrailsPluginManagerSpec > plugin loading emits INFO profiling messages instead of standard output | ❌ | 0% 🟢 |
#### [CI / Build Grails-Core \(ubuntu-latest, 21\)](https://github.com/apache/grails-core/actions/runs/30728447443/job/91444323591?pr=15993) > :grails-core:test
| Test | Runs | Flakiness |
|---|---|--:|
| ProfilingGrailsPluginManagerSpec > configuration phases emit INFO profiling messages for each plugin | ❌ | 0% 🟢 |
| ProfilingGrailsPluginManagerSpec > deprecated constructors log their warning in the historical category | ❌ | 0% 🟢 |
| ProfilingGrailsPluginManagerSpec > plugin loading emits INFO profiling messages instead of standard output | ❌ | 0% 🟢 |
🏷️ Commit: c75b73ec1e0aa5ef9866af8c6ea42148aef06f5c
▶️ Tests: 4262 executed
🟡 Checks: 22/54 completed
### Test Failures
<details>
<summary><strong>ProfilingGrailsPluginManagerSpec > configuration phases emit INFO profiling messages for each plugin</strong> (:grails-core:test in <a href="https://github.com/apache/grails-core/actions/runs/30728447443/job/91444323584?pr=15993">CI / Build Grails-Core (macos-latest, 21)</a>)</summary>
```
Condition not satisfied:
[ 'doArtefactConfiguration started', 'doWithSpring started', 'doWithSpring for plugin [profilingProbe] started', 'doWithDynamicMethods started', 'doWithDynamicMethods for plugin [profilingProbe] started', 'doWithApplicationContext started', 'doWithApplicationContext for plugin [profilingProbe] started' ].every { message -> output.contains("INFO grails.plugins.DefaultGrailsPluginManager - $message") }
|
false
at org.grails.plugins.ProfilingGrailsPluginManagerSpec.configuration phases emit INFO profiling messages for each plugin(ProfilingGrailsPluginManagerSpec.groovy:101)
```
</details>
<details>
<summary><strong>ProfilingGrailsPluginManagerSpec > deprecated constructors log their warning in the historical category</strong> (:grails-core:test in <a href="https://github.com/apache/grails-core/actions/runs/30728447443/job/91444323584?pr=15993">CI / Build Grails-Core (macos-latest, 21)</a>)</summary>
```
Condition not satisfied:
capturedErr.toString().contains('WARN grails.plugins.DefaultGrailsPluginManager - Using deprecated DefaultGrailsPluginManager constructor.')
| | |
| "" false
java.io.ByteArrayOutputStream@243bc6df
at org.grails.plugins.ProfilingGrailsPluginManagerSpec.deprecated constructors log their warning in the historical category(ProfilingGrailsPluginManagerSpec.groovy:135)
```
</details>
<details>
<summary><strong>ProfilingGrailsPluginManagerSpec > plugin loading emits INFO profiling messages instead of standard output</strong> (:grails-core:test in <a href="https://github.com/apache/grails-core/actions/runs/30728447443/job/91444323584?pr=15993">CI / Build Grails-Core (macos-latest, 21)</a>)</summary>
```
Condition not satisfied:
capturedErr.toString().contains('INFO grails.plugins.DefaultGrailsPluginManager - Loading plugins started')
| | |
| "" false
java.io.ByteArrayOutputStream@315c868b
at org.grails.plugins.ProfilingGrailsPluginManagerSpec.plugin loading emits INFO profiling messages instead of standard output(ProfilingGrailsPluginManagerSpec.groovy:51)
```
</details>
<details>
<summary><strong>ProfilingGrailsPluginManagerSpec > configuration phases emit INFO profiling messages for each plugin</strong> (:grails-core:test in <a href="https://github.com/apache/grails-core/actions/runs/30728447443/job/91444323591?pr=15993">CI / Build Grails-Core (ubuntu-latest, 21)</a>)</summary>
```
Condition not satisfied:
[ 'doArtefactConfiguration started', 'doWithSpring started', 'doWithSpring for plugin [profilingProbe] started', 'doWithDynamicMethods started', 'doWithDynamicMethods for plugin [profilingProbe] started', 'doWithApplicationContext started', 'doWithApplicationContext for plugin [profilingProbe] started' ].every { message -> output.contains("INFO grails.plugins.DefaultGrailsPluginManager - $message") }
|
false
at org.grails.plugins.ProfilingGrailsPluginManagerSpec.configuration phases emit INFO profiling messages for each plugin(ProfilingGrailsPluginManagerSpec.groovy:101)
```
</details>
<details>
<summary><strong>ProfilingGrailsPluginManagerSpec > deprecated constructors log their warning in the historical category</strong> (:grails-core:test in <a href="https://github.com/apache/grails-core/actions/runs/30728447443/job/91444323591?pr=15993">CI / Build Grails-Core (ubuntu-latest, 21)</a>)</summary>
```
Condition not satisfied:
capturedErr.toString().contains('WARN grails.plugins.DefaultGrailsPluginManager - Using deprecated DefaultGrailsPluginManager constructor.')
| | |
| "" false
java.io.ByteArrayOutputStream@314e6795
at org.grails.plugins.ProfilingGrailsPluginManagerSpec.deprecated constructors log their warning in the historical category(ProfilingGrailsPluginManagerSpec.groovy:135)
```
</details>
<details>
<summary><strong>ProfilingGrailsPluginManagerSpec > plugin loading emits INFO profiling messages instead of standard output</strong> (:grails-core:test in <a href="https://github.com/apache/grails-core/actions/runs/30728447443/job/91444323591?pr=15993">CI / Build Grails-Core (ubuntu-latest, 21)</a>)</summary>
```
Condition not satisfied:
capturedErr.toString().contains('INFO grails.plugins.DefaultGrailsPluginManager - Loading plugins started')
| | |
| "" false
java.io.ByteArrayOutputStream@c119654
at org.grails.plugins.ProfilingGrailsPluginManagerSpec.plugin loading emits INFO profiling messages instead of standard output(ProfilingGrailsPluginManagerSpec.groovy:51)
```
</details>
### Muted Tests
> [!NOTE]
> Checks are currently running using the configuration below.
Select tests to mute in this pull request:
🔲 ProfilingGrailsPluginManagerSpec > configuration phases emit INFO profiling messages for each plugin <!-- uniqueId=[engine:spock]/[spec:org.grails.plugins.ProfilingGrailsPluginManagerSpec]/[feature:$spock_feature_0_1] -->
🔲 ProfilingGrailsPluginManagerSpec > deprecated constructors log their warning in the historical category <!-- uniqueId=[engine:spock]/[spec:org.grails.plugins.ProfilingGrailsPluginManagerSpec]/[feature:$spock_feature_0_2] -->
🔲 ProfilingGrailsPluginManagerSpec > plugin loading emits INFO profiling messages instead of standard output <!-- uniqueId=[engine:spock]/[spec:org.grails.plugins.ProfilingGrailsPluginManagerSpec]/[feature:$spock_feature_0_0] -->
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: notifications-unsubscribe@grails.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org