synapse-old/tests/replication
Jason Little e4f545c452
Remove `worker_replication_*` settings (#15491)
* Add master to the instance_map as part of Complement, have ReplicationEndpoint look at instance_map for master.

* Fix typo in drive by.

* Remove unnecessary worker_replication_* bits from unit tests and add master to instance_map(hopefully in the right place)

* Several updates:

1. Switch from master to main for naming the main process in the instance_map. Add useful constants for easier adjustment of names in the future.
2. Add backwards compatibility for worker_replication_* to allow time to transition to new style. Make sure to prioritize declaring main directly on the instance_map.
3. Clean up old comments/commented out code.
4. Adjust unit tests to match with new code.
5. Adjust Complement setup infrastructure to only add main to the instance_map if workers are used and remove now unused options from the worker.yaml template.

* Initial Docs upload

* Changelog

* Missed some commented out code that can go now

* Remove TODO comment that no longer holds true.

* Fix links in docs

* More docs

* Remove debug logging

* Apply suggestions from code review

Co-authored-by: reivilibre <olivier@librepush.net>

* Apply suggestions from code review

Co-authored-by: reivilibre <olivier@librepush.net>

* Update version to latest, include completeish before/after examples in upgrade notes.

* Fix up and docs too

---------

Co-authored-by: reivilibre <olivier@librepush.net>
2023-05-11 11:30:56 +01:00
..
http Add missing type hints to tests.replication. (#14987) 2023-02-06 09:55:00 -05:00
slave Bump ruff from 0.0.252 to 0.0.259 (#15328) 2023-03-28 09:46:47 +01:00
tcp to_device updates could be dropped when consuming the replication stream (#15349) 2023-03-30 19:41:14 +02:00
__init__.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
_base.py Remove `worker_replication_*` settings (#15491) 2023-05-11 11:30:56 +01:00
test_auth.py Remove `worker_replication_*` settings (#15491) 2023-05-11 11:30:56 +01:00
test_client_reader_shard.py Remove `worker_replication_*` settings (#15491) 2023-05-11 11:30:56 +01:00
test_federation_ack.py Add missing type hints to tests.replication. (#14987) 2023-02-06 09:55:00 -05:00
test_federation_sender_shard.py Add final type hint to tests.unittest. (#15072) 2023-02-14 14:03:35 -05:00
test_module_cache_invalidation.py Add missing type hints to tests.replication. (#14987) 2023-02-06 09:55:00 -05:00
test_multi_media_repo.py Add missing type hints to tests.replication. (#14987) 2023-02-06 09:55:00 -05:00
test_pusher_shard.py Revert "Reduce the size of the HTTP connection pool for non-pushers" (#15530) 2023-05-03 13:09:20 +01:00
test_sharded_event_persister.py Remove `worker_replication_*` settings (#15491) 2023-05-11 11:30:56 +01:00