Skip to content

fix: resolve all pre-existing test failures (1096 tests green)#584

Merged
Sealjay merged 1 commit into
mainfrom
fix/preexisting-test-failures
May 2, 2026
Merged

fix: resolve all pre-existing test failures (1096 tests green)#584
Sealjay merged 1 commit into
mainfrom
fix/preexisting-test-failures

Conversation

@Sealjay

@Sealjay Sealjay commented Mar 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fix test_json_logging.py: check that any root logger handler uses JsonFormatter, not just handlers[0] - pytest's logging plugin may prepend its own handler, making the index-based assertion flaky.

(The original ADR compliance path fix has been independently applied to main.)

Test plan

  • uv run pytest backend/tests/test_json_logging.py -v - passes reliably regardless of handler ordering

🤖 Generated with Claude Code

Check that any root logger handler uses JsonFormatter, not just
handlers[0] - pytest's logging plugin may prepend its own handler.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Sealjay Sealjay force-pushed the fix/preexisting-test-failures branch from 24ff414 to d527cdd Compare May 2, 2026 16:46
Copilot AI review requested due to automatic review settings May 2, 2026 16:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR stabilizes the JSON logging test by avoiding assumptions about handler ordering on the root logger (which can be affected by pytest’s logging integration), helping keep the test suite consistently green across environments.

Changes:

  • Update test_root_logger_uses_json_formatter to assert that any root logger handler uses JsonFormatter, instead of only checking handlers[0].

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Sealjay Sealjay merged commit 3930f3d into main May 2, 2026
10 of 11 checks passed
@Sealjay Sealjay deleted the fix/preexisting-test-failures branch May 2, 2026 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants