diff --git a/CHANGES.md b/CHANGES.md
index f4f61db5d..d26bc7a86 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -1,3 +1,12 @@
+Synapse 1.6.0rc2 (2019-11-25)
+=============================
+
+Bugfixes
+--------
+
+- Fix a bug which could cause the background database update hander for event labels to get stuck in a loop raising exceptions. ([\#6407](https://github.com/matrix-org/synapse/issues/6407))
+
+
 Synapse 1.6.0rc1 (2019-11-20)
 =============================
 
diff --git a/changelog.d/6322.misc b/changelog.d/6322.misc
new file mode 100644
index 000000000..70ef36ca8
--- /dev/null
+++ b/changelog.d/6322.misc
@@ -0,0 +1,1 @@
+Improve the performance of outputting structured logging.
diff --git a/changelog.d/6392.misc b/changelog.d/6392.misc
new file mode 100644
index 000000000..a00257944
--- /dev/null
+++ b/changelog.d/6392.misc
@@ -0,0 +1,1 @@
+Add a test scenario to make sure room history purges don't break `/messages` in the future.
diff --git a/changelog.d/6408.bugfix b/changelog.d/6408.bugfix
new file mode 100644
index 000000000..c9babe599
--- /dev/null
+++ b/changelog.d/6408.bugfix
@@ -0,0 +1,1 @@
+Fix an intermittent exception when handling read-receipts.
diff --git a/synapse/__init__.py b/synapse/__init__.py
index 1d962f5dc..051c83774 100644
--- a/synapse/__init__.py
+++ b/synapse/__init__.py
@@ -36,7 +36,7 @@ try:
 except ImportError:
     pass
 
-__version__ = "1.6.0rc1"
+__version__ = "1.6.0rc2"
 
 if bool(os.environ.get("SYNAPSE_TEST_PATCH_LOG_CONTEXTS", False)):
     # We import here so that we don't have to install a bunch of deps when
diff --git a/synapse/logging/_structured.py b/synapse/logging/_structured.py
index 334ddaf39..ffa7b20ca 100644
--- a/synapse/logging/_structured.py
+++ b/synapse/logging/_structured.py
@@ -261,6 +261,18 @@ def parse_drain_configs(
             )
 
 
+class StoppableLogPublisher(LogPublisher):
+    """
+    A log publisher that can tell its observers to shut down any external
+    communications.
+    """
+
+    def stop(self):
+        for obs in self._observers:
+            if hasattr(obs, "stop"):
+                obs.stop()
+
+
 def setup_structured_logging(
     hs,
     config,
@@ -336,7 +348,7 @@ def setup_structured_logging(
             # We should never get here, but, just in case, throw an error.
             raise ConfigError("%s drain type cannot be configured" % (observer.type,))
 
-    publisher = LogPublisher(*observers)
+    publisher = StoppableLogPublisher(*observers)
     log_filter = LogLevelFilterPredicate()
 
     for namespace, namespace_config in log_config.get(
diff --git a/synapse/logging/_terse_json.py b/synapse/logging/_terse_json.py
index 76ce7d880..05fc64f40 100644
--- a/synapse/logging/_terse_json.py
+++ b/synapse/logging/_terse_json.py
@@ -17,25 +17,29 @@
 Log formatters that output terse JSON.
 """
 
+import json
 import sys
+import traceback
 from collections import deque
 from ipaddress import IPv4Address, IPv6Address, ip_address
 from math import floor
-from typing import IO
+from typing import IO, Optional
 
 import attr
-from simplejson import dumps
 from zope.interface import implementer
 
 from twisted.application.internet import ClientService
+from twisted.internet.defer import Deferred
 from twisted.internet.endpoints import (
     HostnameEndpoint,
     TCP4ClientEndpoint,
     TCP6ClientEndpoint,
 )
+from twisted.internet.interfaces import IPushProducer, ITransport
 from twisted.internet.protocol import Factory, Protocol
 from twisted.logger import FileLogObserver, ILogObserver, Logger
-from twisted.python.failure import Failure
+
+_encoder = json.JSONEncoder(ensure_ascii=False, separators=(",", ":"))
 
 
 def flatten_event(event: dict, metadata: dict, include_time: bool = False):
@@ -141,11 +145,49 @@ def TerseJSONToConsoleLogObserver(outFile: IO[str], metadata: dict) -> FileLogOb
 
     def formatEvent(_event: dict) -> str:
         flattened = flatten_event(_event, metadata)
-        return dumps(flattened, ensure_ascii=False, separators=(",", ":")) + "\n"
+        return _encoder.encode(flattened) + "\n"
 
     return FileLogObserver(outFile, formatEvent)
 
 
+@attr.s
+@implementer(IPushProducer)
+class LogProducer(object):
+    """
+    An IPushProducer that writes logs from its buffer to its transport when it
+    is resumed.
+
+    Args:
+        buffer: Log buffer to read logs from.
+        transport: Transport to write to.
+    """
+
+    transport = attr.ib(type=ITransport)
+    _buffer = attr.ib(type=deque)
+    _paused = attr.ib(default=False, type=bool, init=False)
+
+    def pauseProducing(self):
+        self._paused = True
+
+    def stopProducing(self):
+        self._paused = True
+        self._buffer = None
+
+    def resumeProducing(self):
+        self._paused = False
+
+        while self._paused is False and (self._buffer and self.transport.connected):
+            try:
+                event = self._buffer.popleft()
+                self.transport.write(_encoder.encode(event).encode("utf8"))
+                self.transport.write(b"\n")
+            except Exception:
+                # Something has gone wrong writing to the transport -- log it
+                # and break out of the while.
+                traceback.print_exc(file=sys.__stderr__)
+                break
+
+
 @attr.s
 @implementer(ILogObserver)
 class TerseJSONToTCPLogObserver(object):
@@ -165,8 +207,9 @@ class TerseJSONToTCPLogObserver(object):
     metadata = attr.ib(type=dict)
     maximum_buffer = attr.ib(type=int)
     _buffer = attr.ib(default=attr.Factory(deque), type=deque)
-    _writer = attr.ib(default=None)
+    _connection_waiter = attr.ib(default=None, type=Optional[Deferred])
     _logger = attr.ib(default=attr.Factory(Logger))
+    _producer = attr.ib(default=None, type=Optional[LogProducer])
 
     def start(self) -> None:
 
@@ -187,38 +230,43 @@ class TerseJSONToTCPLogObserver(object):
         factory = Factory.forProtocol(Protocol)
         self._service = ClientService(endpoint, factory, clock=self.hs.get_reactor())
         self._service.startService()
+        self._connect()
 
-    def _write_loop(self) -> None:
+    def stop(self):
+        self._service.stopService()
+
+    def _connect(self) -> None:
         """
-        Implement the write loop.
+        Triggers an attempt to connect then write to the remote if not already writing.
         """
-        if self._writer:
+        if self._connection_waiter:
             return
 
-        self._writer = self._service.whenConnected()
+        self._connection_waiter = self._service.whenConnected(failAfterFailures=1)
+
+        @self._connection_waiter.addErrback
+        def fail(r):
+            r.printTraceback(file=sys.__stderr__)
+            self._connection_waiter = None
+            self._connect()
 
-        @self._writer.addBoth
+        @self._connection_waiter.addCallback
         def writer(r):
-            if isinstance(r, Failure):
-                r.printTraceback(file=sys.__stderr__)
-                self._writer = None
-                self.hs.get_reactor().callLater(1, self._write_loop)
+            # We have a connection. If we already have a producer, and its
+            # transport is the same, just trigger a resumeProducing.
+            if self._producer and r.transport is self._producer.transport:
+                self._producer.resumeProducing()
                 return
 
-            try:
-                for event in self._buffer:
-                    r.transport.write(
-                        dumps(event, ensure_ascii=False, separators=(",", ":")).encode(
-                            "utf8"
-                        )
-                    )
-                    r.transport.write(b"\n")
-                self._buffer.clear()
-            except Exception as e:
-                sys.__stderr__.write("Failed writing out logs with %s\n" % (str(e),))
-
-            self._writer = False
-            self.hs.get_reactor().callLater(1, self._write_loop)
+            # If the producer is still producing, stop it.
+            if self._producer:
+                self._producer.stopProducing()
+
+            # Make a new producer and start it.
+            self._producer = LogProducer(buffer=self._buffer, transport=r.transport)
+            r.transport.registerProducer(self._producer, True)
+            self._producer.resumeProducing()
+            self._connection_waiter = None
 
     def _handle_pressure(self) -> None:
         """
@@ -277,4 +325,4 @@ class TerseJSONToTCPLogObserver(object):
             self._logger.failure("Failed clearing backpressure")
 
         # Try and write immediately.
-        self._write_loop()
+        self._connect()
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py
index 6b8a9cd89..459901ac6 100644
--- a/synapse/storage/_base.py
+++ b/synapse/storage/_base.py
@@ -409,16 +409,15 @@ class SQLBaseStore(object):
             i = 0
             N = 5
             while True:
+                cursor = LoggingTransaction(
+                    conn.cursor(),
+                    name,
+                    self.database_engine,
+                    after_callbacks,
+                    exception_callbacks,
+                )
                 try:
-                    txn = conn.cursor()
-                    txn = LoggingTransaction(
-                        txn,
-                        name,
-                        self.database_engine,
-                        after_callbacks,
-                        exception_callbacks,
-                    )
-                    r = func(txn, *args, **kwargs)
+                    r = func(cursor, *args, **kwargs)
                     conn.commit()
                     return r
                 except self.database_engine.module.OperationalError as e:
@@ -456,6 +455,40 @@ class SQLBaseStore(object):
                                 )
                             continue
                     raise
+                finally:
+                    # we're either about to retry with a new cursor, or we're about to
+                    # release the connection. Once we release the connection, it could
+                    # get used for another query, which might do a conn.rollback().
+                    #
+                    # In the latter case, even though that probably wouldn't affect the
+                    # results of this transaction, python's sqlite will reset all
+                    # statements on the connection [1], which will make our cursor
+                    # invalid [2].
+                    #
+                    # In any case, continuing to read rows after commit()ing seems
+                    # dubious from the PoV of ACID transactional semantics
+                    # (sqlite explicitly says that once you commit, you may see rows
+                    # from subsequent updates.)
+                    #
+                    # In psycopg2, cursors are essentially a client-side fabrication -
+                    # all the data is transferred to the client side when the statement
+                    # finishes executing - so in theory we could go on streaming results
+                    # from the cursor, but attempting to do so would make us
+                    # incompatible with sqlite, so let's make sure we're not doing that
+                    # by closing the cursor.
+                    #
+                    # (*named* cursors in psycopg2 are different and are proper server-
+                    # side things, but (a) we don't use them and (b) they are implicitly
+                    # closed by ending the transaction anyway.)
+                    #
+                    # In short, if we haven't finished with the cursor yet, that's a
+                    # problem waiting to bite us.
+                    #
+                    # TL;DR: we're done with the cursor, so we can close it.
+                    #
+                    # [1]: https://github.com/python/cpython/blob/v3.8.0/Modules/_sqlite/connection.c#L465
+                    # [2]: https://github.com/python/cpython/blob/v3.8.0/Modules/_sqlite/cursor.c#L236
+                    cursor.close()
         except Exception as e:
             logger.debug("[TXN FAIL] {%s} %s", name, e)
             raise
diff --git a/synapse/storage/data_stores/main/events_bg_updates.py b/synapse/storage/data_stores/main/events_bg_updates.py
index 0ed59ef48..aa87f9abc 100644
--- a/synapse/storage/data_stores/main/events_bg_updates.py
+++ b/synapse/storage/data_stores/main/events_bg_updates.py
@@ -530,24 +530,31 @@ class EventsBackgroundUpdatesStore(BackgroundUpdateStore):
             nbrows = 0
             last_row_event_id = ""
             for (event_id, event_json_raw) in results:
-                event_json = json.loads(event_json_raw)
-
-                self._simple_insert_many_txn(
-                    txn=txn,
-                    table="event_labels",
-                    values=[
-                        {
-                            "event_id": event_id,
-                            "label": label,
-                            "room_id": event_json["room_id"],
-                            "topological_ordering": event_json["depth"],
-                        }
-                        for label in event_json["content"].get(
-                            EventContentFields.LABELS, []
-                        )
-                        if isinstance(label, str)
-                    ],
-                )
+                try:
+                    event_json = json.loads(event_json_raw)
+
+                    self._simple_insert_many_txn(
+                        txn=txn,
+                        table="event_labels",
+                        values=[
+                            {
+                                "event_id": event_id,
+                                "label": label,
+                                "room_id": event_json["room_id"],
+                                "topological_ordering": event_json["depth"],
+                            }
+                            for label in event_json["content"].get(
+                                EventContentFields.LABELS, []
+                            )
+                            if isinstance(label, str)
+                        ],
+                    )
+                except Exception as e:
+                    logger.warning(
+                        "Unable to load event %s (no labels will be imported): %s",
+                        event_id,
+                        e,
+                    )
 
                 nbrows += 1
                 last_row_event_id = event_id
diff --git a/synapse/storage/data_stores/main/receipts.py b/synapse/storage/data_stores/main/receipts.py
index 0c24430f2..8b17334ff 100644
--- a/synapse/storage/data_stores/main/receipts.py
+++ b/synapse/storage/data_stores/main/receipts.py
@@ -280,7 +280,7 @@ class ReceiptsWorkerStore(SQLBaseStore):
                 args.append(limit)
             txn.execute(sql, args)
 
-            return (r[0:5] + (json.loads(r[5]),) for r in txn)
+            return list(r[0:5] + (json.loads(r[5]),) for r in txn)
 
         return self.runInteraction(
             "get_all_updated_receipts", get_all_updated_receipts_txn

Exception in pusher on_new_receipts:  Cursor needed to be reset
occasionally `/_matrix/client/r0/rooms/{roomId}/read_markers` spits out this exception:

```
2019-11-22 13:44:21,146 - synapse.push.pusherpool - 204 - ERROR - POST-162567 - Exception in pusher on_new_receipts
Traceback (most recent call last):
  File "/home/path/to/server/lib/python3.6/site-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks
    result = g.send(result)
StopIteration: <generator object ReceiptsWorkerStore.get_all_updated_receipts.<locals>.get_all_updated_receipts_txn.<locals>.<genexpr> at 0x7faca013cca8>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/path/to/server/lib/python3.6/site-packages/twisted/internet/defer.py", line 1418, in _inlineCallbacks
    result = g.send(result)
StopIteration: <generator object ReceiptsWorkerStore.get_all_updated_receipts.<locals>.get_all_updated_receipts_txn.<locals>.<genexpr> at 0x7faca013cca8>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/path/to/server/lib/python3.6/site-packages/synapse/push/pusherpool.py", line 196, in on_new_receipts
    users_affected = set([r[3] for r in updated_receipts])
  File "/home/path/to/server/lib/python3.6/site-packages/synapse/push/pusherpool.py", line 196, in <listcomp>
    users_affected = set([r[3] for r in updated_receipts])
  File "/home/path/to/server/lib/python3.6/site-packages/synapse/storage/data_stores/main/receipts.py", line 283, in <genexpr>
    return (r[0:5] + (json.loads(r[5]),) for r in txn)
sqlite3.InterfaceError: Cursor needed to be reset because of commit/rollback and can no longer be fetched from.
```

The symptoms are presumably that people get pushes for messages they have already read.

I think it's because `get_all_updated_receipts` returns a generator expression which refers to a database cursor, which refers to a database connection, which might get re-used before the results are read.
diff --git a/tests/rest/client/v1/test_rooms.py b/tests/rest/client/v1/test_rooms.py
index 5e38fd6ce..e84e578f9 100644
--- a/tests/rest/client/v1/test_rooms.py
+++ b/tests/rest/client/v1/test_rooms.py
@@ -25,7 +25,9 @@ from twisted.internet import defer
 
 import synapse.rest.admin
 from synapse.api.constants import EventContentFields, EventTypes, Membership
+from synapse.handlers.pagination import PurgeStatus
 from synapse.rest.client.v1 import login, profile, room
+from synapse.util.stringutils import random_string
 
 from tests import unittest
 
@@ -910,6 +912,78 @@ class RoomMessageListTestCase(RoomBase):
 
         return channel.json_body["chunk"]
 
+    def test_room_messages_purge(self):
+        store = self.hs.get_datastore()
+        pagination_handler = self.hs.get_pagination_handler()
+
+        # Send a first message in the room, which will be removed by the purge.
+        first_event_id = self.helper.send(self.room_id, "message 1")["event_id"]
+        first_token = self.get_success(
+            store.get_topological_token_for_event(first_event_id)
+        )
+
+        # Send a second message in the room, which won't be removed, and which we'll
+        # use as the marker to purge events before.
+        second_event_id = self.helper.send(self.room_id, "message 2")["event_id"]
+        second_token = self.get_success(
+            store.get_topological_token_for_event(second_event_id)
+        )
+
+        # Send a third event in the room to ensure we don't fall under any edge case
+        # due to our marker being the latest forward extremity in the room.
+        self.helper.send(self.room_id, "message 3")
+
+        # Check that we get the first and second message when querying /messages.
+        request, channel = self.make_request(
+            "GET",
+            "/rooms/%s/messages?access_token=x&from=%s&dir=b&filter=%s"
+            % (self.room_id, second_token, json.dumps({"types": [EventTypes.Message]})),
+        )
+        self.render(request)
+        self.assertEqual(channel.code, 200, channel.json_body)
+
+        chunk = channel.json_body["chunk"]
+        self.assertEqual(len(chunk), 2, [event["content"] for event in chunk])
+
+        # Purge every event before the second event.
+        purge_id = random_string(16)
+        pagination_handler._purges_by_id[purge_id] = PurgeStatus()
+        self.get_success(
+            pagination_handler._purge_history(
+                purge_id=purge_id,
+                room_id=self.room_id,
+                token=second_token,
+                delete_local_events=True,
+            )
+        )
+
+        # Check that we only get the second message through /message now that the first
+        # has been purged.
+        request, channel = self.make_request(
+            "GET",
+            "/rooms/%s/messages?access_token=x&from=%s&dir=b&filter=%s"
+            % (self.room_id, second_token, json.dumps({"types": [EventTypes.Message]})),
+        )
+        self.render(request)
+        self.assertEqual(channel.code, 200, channel.json_body)
+
+        chunk = channel.json_body["chunk"]
+        self.assertEqual(len(chunk), 1, [event["content"] for event in chunk])
+
+        # Check that we get no event, but also no error, when querying /messages with
+        # the token that was pointing at the first event, because we don't have it
+        # anymore.
+        request, channel = self.make_request(
+            "GET",
+            "/rooms/%s/messages?access_token=x&from=%s&dir=b&filter=%s"
+            % (self.room_id, first_token, json.dumps({"types": [EventTypes.Message]})),
+        )
+        self.render(request)
+        self.assertEqual(channel.code, 200, channel.json_body)
+
+        chunk = channel.json_body["chunk"]
+        self.assertEqual(len(chunk), 0, [event["content"] for event in chunk])
+
 
 class RoomSearchTestCase(unittest.HomeserverTestCase):
     servlets = [
diff --git a/tests/server.py b/tests/server.py
index f878aeaad..2b7cf4242 100644
--- a/tests/server.py
+++ b/tests/server.py
@@ -379,6 +379,7 @@ class FakeTransport(object):
 
     disconnecting = False
     disconnected = False
+    connected = True
     buffer = attr.ib(default=b"")
     producer = attr.ib(default=None)
     autoflush = attr.ib(default=True)
@@ -402,6 +403,7 @@ class FakeTransport(object):
                     "FakeTransport: Delaying disconnect until buffer is flushed"
                 )
             else:
+                self.connected = False
                 self.disconnected = True
 
     def abortConnection(self):

pip install -e .[dev]
parse_log_pytest
requirements.txt
pytest mock coverage
apt-get update apt-get install -y build-essential python3-dev libffi-dev
3.9
requirements/base.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs==25.3.0
Automat==24.8.1
bcrypt==4.3.0
bleach==6.2.0
canonicaljson==2.0.0
certifi==2025.1.31
cffi==1.17.1
charset-normalizer==3.4.1
constantly==23.10.4
coverage==7.8.0
cryptography==44.0.2
daemonize==2.5.0
exceptiongroup==1.2.2
frozendict==2.4.6
hyperlink==21.0.0
idna==3.10
incremental==24.7.2
iniconfig==2.1.0
Jinja2==3.1.6
jsonschema==4.23.0
jsonschema-specifications==2024.10.1
MarkupSafe==3.0.2
-e git+https://github.com/matrix-org/synapse.git@265c0bd2fe54db7f8a7dab05f41b27ce9a450563#egg=matrix_synapse
mock==5.2.0
msgpack==1.1.0
netaddr==1.3.0
packaging==24.2
phonenumbers==9.0.2
pillow==11.1.0
pluggy==1.5.0
prometheus_client==0.7.1
pyasn1==0.6.1
pyasn1_modules==0.4.2
pycparser==2.22
pymacaroons==0.13.0
PyNaCl==1.5.0
pyOpenSSL==25.0.0
pytest==8.3.5
PyYAML==6.0.2
referencing==0.36.2
requests==2.32.3
rpds-py==0.24.0
service-identity==24.2.0
signedjson==1.1.4
six==1.17.0
sortedcontainers==2.4.0
tomli==2.2.1
treq==24.9.1
Twisted==24.11.0
typing_extensions==4.13.0
unpaddedbase64==2.1.0
urllib3==2.3.0
webencodings==0.5.1
zope.interface==7.2

name: synapse
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=3.0.16=h5eee18b_0
  - pip=25.0=py39h06a4308_0
  - python=3.9.21=he870216_1
  - readline=8.2=h5eee18b_0
  - setuptools=75.8.0=py39h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - tzdata=2025a=h04d1e81_0
  - wheel=0.45.1=py39h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - attrs==25.3.0
      - automat==24.8.1
      - bcrypt==4.3.0
      - bleach==6.2.0
      - canonicaljson==2.0.0
      - certifi==2025.1.31
      - cffi==1.17.1
      - charset-normalizer==3.4.1
      - constantly==23.10.4
      - coverage==7.8.0
      - cryptography==44.0.2
      - daemonize==2.5.0
      - exceptiongroup==1.2.2
      - frozendict==2.4.6
      - hyperlink==21.0.0
      - idna==3.10
      - incremental==24.7.2
      - iniconfig==2.1.0
      - jinja2==3.1.6
      - jsonschema==4.23.0
      - jsonschema-specifications==2024.10.1
      - markupsafe==3.0.2
      - matrix-synapse==1.6.0rc1
      - mock==5.2.0
      - msgpack==1.1.0
      - netaddr==1.3.0
      - packaging==24.2
      - phonenumbers==9.0.2
      - pillow==11.1.0
      - pluggy==1.5.0
      - prometheus-client==0.7.1
      - pyasn1==0.6.1
      - pyasn1-modules==0.4.2
      - pycparser==2.22
      - pymacaroons==0.13.0
      - pynacl==1.5.0
      - pyopenssl==25.0.0
      - pytest==8.3.5
      - pyyaml==6.0.2
      - referencing==0.36.2
      - requests==2.32.3
      - rpds-py==0.24.0
      - service-identity==24.2.0
      - signedjson==1.1.4
      - six==1.17.0
      - sortedcontainers==2.4.0
      - tomli==2.2.1
      - treq==24.9.1
      - twisted==24.11.0
      - typing-extensions==4.13.0
      - unpaddedbase64==2.1.0
      - urllib3==2.3.0
      - webencodings==0.5.1
      - zope-interface==7.2
prefix: /opt/conda/envs/synapse

tests/rest/client/v1/test_rooms.py::RoomPermissionsTestCase::test_can_do_action tests/rest/client/v1/test_rooms.py::RoomPermissionsTestCase::test_invited_permissions tests/rest/client/v1/test_rooms.py::RoomPermissionsTestCase::test_joined_permissions tests/rest/client/v1/test_rooms.py::RoomPermissionsTestCase::test_leave_permissions tests/rest/client/v1/test_rooms.py::RoomPermissionsTestCase::test_membership_basic_room_perms tests/rest/client/v1/test_rooms.py::RoomPermissionsTestCase::test_membership_private_room_perms tests/rest/client/v1/test_rooms.py::RoomPermissionsTestCase::test_membership_public_room_perms tests/rest/client/v1/test_rooms.py::RoomPermissionsTestCase::test_topic_perms tests/rest/client/v1/test_rooms.py::RoomsMemberListTestCase::test_get_member_list tests/rest/client/v1/test_rooms.py::RoomsMemberListTestCase::test_get_member_list_mixed_memberships tests/rest/client/v1/test_rooms.py::RoomsMemberListTestCase::test_get_member_list_no_permission tests/rest/client/v1/test_rooms.py::RoomsMemberListTestCase::test_get_member_list_no_room tests/rest/client/v1/test_rooms.py::RoomsCreateTestCase::test_post_room_custom_key tests/rest/client/v1/test_rooms.py::RoomsCreateTestCase::test_post_room_invalid_content tests/rest/client/v1/test_rooms.py::RoomsCreateTestCase::test_post_room_invitees_invalid_mxid tests/rest/client/v1/test_rooms.py::RoomsCreateTestCase::test_post_room_known_and_unknown_keys tests/rest/client/v1/test_rooms.py::RoomsCreateTestCase::test_post_room_no_keys tests/rest/client/v1/test_rooms.py::RoomsCreateTestCase::test_post_room_visibility_key tests/rest/client/v1/test_rooms.py::RoomTopicTestCase::test_invalid_puts tests/rest/client/v1/test_rooms.py::RoomTopicTestCase::test_rooms_topic tests/rest/client/v1/test_rooms.py::RoomTopicTestCase::test_rooms_topic_with_extra_keys tests/rest/client/v1/test_rooms.py::RoomMemberStateTestCase::test_invalid_puts tests/rest/client/v1/test_rooms.py::RoomMemberStateTestCase::test_rooms_members_other tests/rest/client/v1/test_rooms.py::RoomMemberStateTestCase::test_rooms_members_other_custom_keys tests/rest/client/v1/test_rooms.py::RoomMemberStateTestCase::test_rooms_members_self tests/rest/client/v1/test_rooms.py::RoomMessagesTestCase::test_invalid_puts tests/rest/client/v1/test_rooms.py::RoomMessagesTestCase::test_rooms_messages_sent tests/rest/client/v1/test_rooms.py::RoomInitialSyncTestCase::test_initial_sync tests/rest/client/v1/test_rooms.py::RoomMessageListTestCase::test_filter_labels tests/rest/client/v1/test_rooms.py::RoomMessageListTestCase::test_filter_labels_not_labels tests/rest/client/v1/test_rooms.py::RoomMessageListTestCase::test_filter_not_labels tests/rest/client/v1/test_rooms.py::RoomMessageListTestCase::test_room_messages_purge tests/rest/client/v1/test_rooms.py::RoomMessageListTestCase::test_stream_token_is_accepted_for_fwd_pagianation tests/rest/client/v1/test_rooms.py::RoomMessageListTestCase::test_topo_token_is_accepted tests/rest/client/v1/test_rooms.py::RoomSearchTestCase::test_finds_message tests/rest/client/v1/test_rooms.py::RoomSearchTestCase::test_include_context tests/rest/client/v1/test_rooms.py::PublicRoomsRestrictedTestCase::test_restricted_auth tests/rest/client/v1/test_rooms.py::PublicRoomsRestrictedTestCase::test_restricted_no_auth tests/rest/client/v1/test_rooms.py::PerRoomProfilesForbiddenTestCase::test_per_room_profile_forbidden
changelog.d/6322.misc CHANGES.md synapse/storage/data_stores/main/receipts.py synapse/storage/data_stores/main/events_bg_updates.py synapse/storage/_base.py synapse/logging/_structured.py synapse/__init__.py synapse/logging/_terse_json.py changelog.d/6392.misc changelog.d/6408.bugfix
changelog.d/6322.misc CHANGES.md synapse/storage/data_stores/main/receipts.py synapse/storage/data_stores/main/events_bg_updates.py synapse/storage/_base.py synapse/logging/_structured.py synapse/__init__.py synapse/logging/_terse_json.py changelog.d/6392.misc changelog.d/6408.bugfix