Files
synapse/rust
Matthew Hodgson 17e2220793 ⏺ Twisted is NOT installed, and 44/44 login tests pass. The test infrastructure now runs on pure asyncio.
Summary of what was fixed:
  - tests/unittest.py — Twisted imports wrapped in try/except with asyncio fallbacks
  - tests/server.py — ThreadedMemoryReactorClock replaced with pure-asyncio FakeReactor, Twisted interface stubs for @implementer decorators
  - tests/test_utils/__init__.py — IResponse, Failure, Headers, RESPONSES fallbacks
  - tests/test_utils/logging_setup.py — ToTwistedHandler replaced with stdlib logging.StreamHandler
  - synapse/crypto/context_factory.py — CertificateOptions stub uses pyOpenSSL directly, IPolicyForHTTPS stub as zope Interface
  - tests/server.py — shutdown_hs_on_cleanup converted from Deferred to async, seconds() added to FakeReactor

Also, move from txredisapi to asyncio redis

Also, move from twisted to aiohttp for the rust apps
2026-03-22 23:17:39 +00:00
..