test(log): isolate JSON format test with child logger #149

Merged
fuzzy merged 1 commit from fix/0108-fragile-log-test into main 2026-07-05 17:47:19 +00:00
Owner

What

Use a non-propagating child logger with a dedicated StringIO handler instead of clearing root handler state.

Why

The previous approach of manually clearing root handlers was fragile — state could leak between tests.

Testing

  • 145 unit tests pass
  • Pre-commit hooks pass

Closes #108

## What Use a non-propagating child logger with a dedicated `StringIO` handler instead of clearing root handler state. ## Why The previous approach of manually clearing root handlers was fragile — state could leak between tests. ## Testing - [x] 145 unit tests pass - [x] Pre-commit hooks pass Closes #108
test(log): isolate JSON format test with child logger
Some checks failed
CI / test (pull_request) Has been cancelled
CI / lint (pull_request) Has been cancelled
ddbcebd5cf
Use a non-propagating child logger with dedicated handler instead
of clearing root handlers, preventing state leakage between tests.
Closes #108
the.auditor left a comment

Automated Review — PR #149

Result: APPROVED


Clean fix — replaces fragile root handler manipulation with a non-propagating child logger and dedicated StringIO handler. Test is now fully isolated from other log test state. Closes #108.

No suggestions.

## Automated Review — PR #149 **Result: APPROVED** --- Clean fix — replaces fragile root handler manipulation with a non-propagating child logger and dedicated `StringIO` handler. Test is now fully isolated from other log test state. Closes #108. No suggestions.
fuzzy force-pushed fix/0108-fragile-log-test from ddbcebd5cf
Some checks failed
CI / test (pull_request) Has been cancelled
CI / lint (pull_request) Has been cancelled
to ef32529a5a
All checks were successful
CI / test (pull_request) Successful in 52s
CI / lint (pull_request) Successful in 1m23s
2026-07-05 17:45:51 +00:00
Compare
fuzzy scheduled this pull request to auto merge when all checks succeed 2026-07-05 17:46:11 +00:00
fuzzy merged commit ef32529a5a into main 2026-07-05 17:47:19 +00:00
fuzzy deleted branch fix/0108-fragile-log-test 2026-07-05 17:47:19 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
thwap/kronai!149
No description provided.