synapse/tests
Erik Johnston 88a24bdd13 Make room upgrades faster for rooms with many bans (#18574)
We do this by a) not pulling out all membership events, and b) batch
inserting bans.

One blocking concern is that this bypasses the `update_membership`
function, which otherwise all other membership events go via. In this
case it's fine (having audited what it is doing), but I'm hesitant to
set the precedent of bypassing it, given it has a lot of logic in there.

---------

Co-authored-by: Eric Eastwood <erice@element.io>
2025-08-11 16:13:46 +01:00
..
api Refactor cache metrics to be homeserver-scoped (#18604) 2025-07-16 16:04:57 -05:00
app Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
appservice Refactor cache metrics to be homeserver-scoped (#18604) 2025-07-16 16:04:57 -05:00
config Refactor cache metrics to be homeserver-scoped (#18604) 2025-07-16 16:04:57 -05:00
crypto Stop sending or processing the origin field in PDUs (#18418) 2025-07-01 12:04:23 +01:00
events Allow admins to see soft failed events (if they want to) (#18238) 2025-07-14 16:55:19 +01:00
federation Move device changes off the main process (#18581) 2025-07-18 09:06:14 +02:00
handlers Move device changes off the main process (#18581) 2025-07-18 09:06:14 +02:00
http Refactor cache metrics to be homeserver-scoped (#18604) 2025-07-16 16:04:57 -05:00
logging Unbreak unit tests with Twisted 25.5.0 by add parsePOSTFormSubmission arg to FakeSite (#18577) 2025-06-24 11:52:06 +01:00
media Add ability to limit amount uploaded by a user (#18527) 2025-07-10 13:39:09 +01:00
metrics Clean up MetricsResource and Prometheus hacks (#18687) 2025-07-17 11:57:19 -05:00
module_api Move device changes off the main process (#18581) 2025-07-18 09:06:14 +02:00
push Refactor cache metrics to be homeserver-scoped (#18604) 2025-07-16 16:04:57 -05:00
replication Add experimental and incomplete support for MSC4306: Thread Subscriptions. (#18674) 2025-07-21 15:54:28 +01:00
rest Make room upgrades faster for rooms with many bans (#18574) 2025-08-11 16:13:46 +01:00
scripts Update license headers 2023-11-21 15:29:58 -05:00
server_notices Sliding Sync: Add cache to get_tags_for_room(...) (#17730) 2024-09-19 12:43:26 +01:00
state Use internal function to appease olddeps test 2025-08-11 16:13:24 +01:00
storage Fix broken test 2025-08-11 16:13:24 +01:00
test_utils Bump ruff from 0.7.3 to 0.11.10 (#18451) 2025-05-20 15:23:30 +01:00
types Support for room version 12 2025-08-11 16:13:24 +01:00
util Refactor cache metrics to be homeserver-scoped (#18604) 2025-07-16 16:04:57 -05:00
__init__.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
server.py Unbreak unit tests with Twisted 25.5.0 by add parsePOSTFormSubmission arg to FakeSite (#18577) 2025-06-24 11:52:06 +01:00
test_distributor.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
test_event_auth.py Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00
test_mau.py Refactor cache metrics to be homeserver-scoped (#18604) 2025-07-16 16:04:57 -05:00
test_phone_home.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
test_rust.py Add missing type hints to tests. (#15027) 2023-02-08 19:52:37 +00:00
test_server.py Fix backwards compat for DirectServeJsonResource (#18600) 2025-06-26 14:05:48 +00:00
test_state.py Bump ruff from 0.7.3 to 0.11.10 (#18451) 2025-05-20 15:23:30 +01:00
test_terms_auth.py Update license headers 2023-11-21 15:29:58 -05:00
test_test_utils.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
test_types.py Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00
test_visibility.py Include user membership on events (#17282) 2024-06-13 21:45:54 +00:00
unittest.py Cleanup Python 3.8 leftovers (#17967) 2025-02-10 16:53:24 +00:00
utils.py Cleanup Python 3.8 leftovers (#17967) 2025-02-10 16:53:24 +00:00