test: respect GitHub ACTIONS_STEP_DEBUG for verbose test logging#3942
test: respect GitHub ACTIONS_STEP_DEBUG for verbose test logging#3942KristjanESPERANTO wants to merge 1 commit intoMagicMirrorOrg:developfrom
Conversation
When GitHub Actions step debug logging is enabled via ACTIONS_STEP_DEBUG, bypass both general log suppression (setLogLevel) and intentional error suppression (mmTestMode checks) to provide full diagnostic output for debugging test failures. This maintains clean test output in normal CI runs while enabling verbose logging when explicitly requested via GitHub's "Re-run jobs with debug logging" feature.
|
I triggered a re-run and it doesn't work as expected 🤔 I'll investigate. |
|
I'm closing this PR because the approach doesn't work as expected. The Problem: Alternative Approach:
Since this isn't as elegant as the intended "re-run with debug logging" checkbox solution, I'm abandoning this approach. |
When tests failed, I clicked “Enable debug logging” several times when rerunning them and was always disappointed that I couldn't find any more logs. This should fix this.