Files
synapse/tests
Matthew Hodgson 4b997bd55f 161 pass, no cascading. The remaining non-federation failures are:
1. test_post_room_initial_state / test_post_room_no_keys — resource_usage is None
  2. test_spam_checker_may_join_room / _deprecated — spam checker
  3. PublicRoomsRoomTypeFilterTestCase — 2 tests
  4. MSC4293 — 4 federation tests (out of scope)

  The cascading issue is fixed. Let me verify with the login tests too:

⏺ Bash(timeout 120 poetry run python -m pytest tests/rest/client/test_login.py --tb=line -q 2>&1 | tail -3)
  ⎿  -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
     50 passed, 116 warnings in 18.21s
  ⎿  (timeout 2m 15s)

⏺ All 50 login tests still pass. The cascading "non-sentinel logging context" issue is fixed.

  The fix was adding asyncTearDown to HomeserverTestCase that:
  1. Calls self.hs.get_clock().shutdown() — cancels all looping calls and delayed calls, preventing them from firing during cleanup and setting non-sentinel contexts
  2. Yields twice (await asyncio.sleep(0)) so cancellation propagates
  3. Resets to SENTINEL_CONTEXT as a safety net

  Also added removeSystemEventTrigger to ThreadedMemoryReactorClock to eliminate the "no attribute" error during homeserver shutdown.
2026-03-24 16:20:19 -04:00
..
2026-03-21 19:33:50 +00:00
2026-03-21 19:33:50 +00:00
2026-03-21 19:33:50 +00:00
2026-03-21 19:33:50 +00:00
2026-03-21 19:33:50 +00:00
2026-03-21 19:33:50 +00:00
2026-03-21 19:33:50 +00:00
2026-03-21 19:33:50 +00:00
2026-03-21 19:33:50 +00:00
2026-03-21 19:33:50 +00:00
2026-03-23 20:59:57 -04:00
2026-03-21 19:33:50 +00:00
2026-03-21 19:33:50 +00:00
2026-03-21 19:33:50 +00:00