Merge branch 'release-v1.57' into develop

This commit is contained in:
Erik Johnston 2022-04-12 15:28:41 +01:00
commit a468768104
93 changed files with 5920 additions and 5847 deletions

5861
CHANGES.md

File diff suppressed because it is too large Load Diff

View File

@ -1 +0,0 @@
Send device list changes to application services as specified by [MSC3202](https://github.com/matrix-org/matrix-spec-proposals/pull/3202), using unstable prefixes. The `msc3202_transaction_extensions` experimental homeserver config option must be enabled and `org.matrix.msc3202: true` must be present in the application service registration file for device list changes to be sent. The "left" field is currently always empty.

View File

@ -1 +0,0 @@
Optimise fetching large quantities of missing room state over federation.

View File

@ -1 +0,0 @@
Fix a long-standing bug that updating the server notices user profile (display name/avatar URL) in the configuration would not be applied to pre-existing rooms. Contributed by Jorge Florian.

View File

@ -1 +0,0 @@
Remove lingering unstable references to MSC2403 (knocking).

View File

@ -1 +0,0 @@
Avoid trying to calculate the state at outlier events.

View File

@ -1 +0,0 @@
Omit sending "offline" presence updates to application services after they are initially configured.

View File

@ -1 +0,0 @@
Switch to using a sequence to generate AS transaction IDs. Contributed by Nick Beeper. If running synapse with a dedicated appservice worker, this MUST be stopped before upgrading the main process and database.

View File

@ -1 +0,0 @@
Fix a long-standing bug where events from ignored users were still considered for bundled aggregations.

View File

@ -1 +0,0 @@
Offload the `update_client_ip` background job from the main process to the background worker, when using Redis-based replication.

View File

@ -1 +0,0 @@
Move `update_client_ip` background job from the main process to the background worker.

View File

@ -1 +0,0 @@
Add missing type hints for storage.

View File

@ -1 +0,0 @@
Clarify documentation for running SyTest against Synapse, including use of Postgres and worker mode.

View File

@ -1 +0,0 @@
Add missing type definitions for scripts in docker folder. Contributed by Jorge Florian.

View File

@ -1 +0,0 @@
Remove the unused and unstable `/aggregations` endpoint which was removed from [MSC2675](https://github.com/matrix-org/matrix-doc/pull/2675).

View File

@ -1 +0,0 @@
Move [MSC2654](https://github.com/matrix-org/matrix-doc/pull/2654) support behind an experimental configuration flag.

View File

@ -1 +0,0 @@
Add a module callback to react to new 3PID (email address, phone number) associations.

View File

@ -1 +0,0 @@
Add a configuration option to remove a specific set of rooms from sync responses.

View File

@ -1 +0,0 @@
Document the behaviour of `LoggingTransaction.call_after` and `LoggingTransaction.call_on_exception` methods when transactions are retried.

View File

@ -1 +0,0 @@
Avoid trying to calculate the state at outlier events.

View File

@ -1 +0,0 @@
Update docstrings to explain how to decipher live and historic pagination tokens.

View File

@ -1 +0,0 @@
Add ground work for speeding up device list updates for users in large numbers of rooms.

View File

@ -1 +0,0 @@
Fix typechecker problems exposed by signedjson 1.1.2.

View File

@ -1 +0,0 @@
Add a module callback to react to account data changes.

View File

@ -1 +0,0 @@
Fix non-member state events not resolving for historical events when used in [MSC2716](https://github.com/matrix-org/matrix-spec-proposals/pull/2716) `/batch_send` `state_events_at_start`.

View File

@ -1 +0,0 @@
Avoid trying to calculate the state at outlier events.

View File

@ -1 +0,0 @@
Update dead links in `check-newsfragment.sh` to point to the correct documentation URL.

View File

@ -1 +0,0 @@
Avoid trying to calculate the state at outlier events.

View File

@ -1 +0,0 @@
Fix a long-standing bug affecting URL previews that would generate a 500 response instead of a 403 if the previewed URL includes a port that isn't allowed by the relevant blacklist.

View File

@ -1 +0,0 @@
Remove the `tox` packaging job: it will be redundant once #11537 lands.

View File

@ -1 +0,0 @@
Ignore `.envrc` for `direnv` users.

View File

@ -1 +0,0 @@
Remove the (broadly unused, dev-only) dockerfile for pg tests.

View File

@ -1 +0,0 @@
Fix a long-standing bug where events from ignored users were still considered for bundled aggregations.

View File

@ -1 +0,0 @@
Upgrade the version of `mdbook` in CI to 0.4.17.

View File

@ -1 +0,0 @@
Allow setting user admin status using the module API. Contributed by Famedly.

View File

@ -1 +0,0 @@
Updates to the Room DAG concepts development document to clarify that we mark events as outliers because we don't have any state for them.

View File

@ -1 +0,0 @@
Remove redundant `get_success` calls in test code.

View File

@ -1 +0,0 @@
Add type annotations for `tests/unittest.py`.

View File

@ -1 +0,0 @@
Move single-use methods out of `TestCase`.

View File

@ -1 +0,0 @@
Remove broken and unused development scripts.

View File

@ -1 +0,0 @@
Default to `private` room visibility rather than `public` when a client does not specify one, according to spec.

View File

@ -1 +0,0 @@
Remove broken and unused development scripts.

View File

@ -1 +0,0 @@
Convert `Linearizer` tests from `inlineCallbacks` to async.

View File

@ -1 +0,0 @@
Update docstrings for `ReadWriteLock` tests.

View File

@ -1 +0,0 @@
Remove broken and unused development scripts.

View File

@ -1 +0,0 @@
Refactor `Linearizer`, convert methods to async and use an async context manager.

View File

@ -1 +0,0 @@
Fix a long-standing bug where `Linearizer`s could get stuck if a cancellation were to happen at the wrong time.

View File

@ -1 +0,0 @@
Fix a spec compliance issue where requests to the `/publicRooms` federation API would specify `limit` as a string.

View File

@ -1 +0,0 @@
Make `StreamToken.from_string` and `RoomStreamToken.parse` propagate cancellations instead of replacing them with `SynapseError`s.

View File

@ -1 +0,0 @@
Reduce overhead of restarting synchrotrons.

View File

@ -1 +0,0 @@
Update the link to Redis pub/sub documentation in the workers documentation..

View File

@ -1 +0,0 @@
Update `/messages` to use historic pagination tokens if no `from` query parameter is given.

View File

@ -1 +0,0 @@
Add type hints to tests files.

View File

@ -1 +0,0 @@
Reduce overhead of restarting synchrotrons.

View File

@ -1 +0,0 @@
Allow specifying the Postgres database's port when running unit tests with Postgres.

View File

@ -1 +0,0 @@
Remove temporary pin of signedjson<=1.1.1 that was added in Synapse 1.56.0.

View File

@ -1 +0,0 @@
Add opentracing spans to calls to external cache.

View File

@ -1 +0,0 @@
Lay groundwork for using `poetry` to manage Synapse's dependencies.

View File

@ -1 +0,0 @@
Make missing `importlib_metadata` dependency explicit.

View File

@ -1 +0,0 @@
Bundle locked versions of dependencies into the Docker image.

View File

@ -1 +0,0 @@
Update type annotations for compatiblity with prometheus_client 0.14.

View File

@ -1 +0,0 @@
Fix a bug introduced in Synapse 1.49.0 which caused the `synapse_event_persisted_position` metric to have invalid values.

View File

@ -1 +0,0 @@
Add a module API for reading and writing global account data.

View File

@ -1 +0,0 @@
Remove documentation for converting a legacy structured logging configuration to the new format.

View File

@ -1 +0,0 @@
Remove support for the unstable identifiers specified in [MSC3288](https://github.com/matrix-org/matrix-doc/pull/3288).

View File

@ -1 +0,0 @@
Make missing `importlib_metadata` dependency explicit.

View File

@ -1 +0,0 @@
Add missing type hints to configuration classes.

View File

@ -1 +0,0 @@
Support the stable `v1` endpoint for `/relations`, per [MSC2675](https://github.com/matrix-org/matrix-doc/pull/2675).

View File

@ -1 +0,0 @@
Add files used to build the Docker image used for complement testing into the Synapse repository.

View File

@ -1 +0,0 @@
Fix up healthcheck generation for workers docker image.

View File

@ -1 +0,0 @@
Run the olddeps CI job using Poetry.

View File

@ -1 +0,0 @@
Do not include groups in the sync response when disabled.

View File

@ -1 +0,0 @@
Avoid trying to calculate the state at outlier events.

View File

@ -1 +0,0 @@
Fix a spec compliance issue where requests to the `/publicRooms` federation API would specify `limit` as a string.

View File

@ -1 +0,0 @@
Run the CI portdb script in the locked poetry environment.

View File

@ -1 +0,0 @@
Improve type hints related to HTTP query parameters.

View File

@ -1 +0,0 @@
Run the CI export-data script in the locked poetry environment.

View File

@ -1 +0,0 @@
Stop maintaining a list of lint targets.

View File

@ -1 +0,0 @@
Make `synapse._scripts` pass type checks.

View File

@ -1 +0,0 @@
Make `synapse._scripts` pass type checks.

View File

@ -1 +0,0 @@
Add some type hints to datastore.

View File

@ -1 +0,0 @@
Enable certificate checking during complement tests.

View File

@ -1,2 +0,0 @@
Include bundled aggregations in search results
([MSC3666](https://github.com/matrix-org/matrix-spec-proposals/pull/3666)).

View File

@ -1 +0,0 @@
Bundle locked versions of dependencies into the Docker image.

View File

@ -1 +0,0 @@
Explicitly specify the `tls` extra for Twisted dependency.

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
matrix-synapse-py3 (1.57.0~rc1) stable; urgency=medium
* New synapse release 1.57.0~rc1.
-- Synapse Packaging team <packages@matrix.org> Tue, 12 Apr 2022 13:36:25 +0100
matrix-synapse-py3 (1.56.0) stable; urgency=medium matrix-synapse-py3 (1.56.0) stable; urgency=medium
* New synapse release 1.56.0. * New synapse release 1.56.0.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1 @@
This directory contains changelogs for previous years.

View File

@ -105,6 +105,45 @@ without any risk of reusing transaction IDs.
Deployments which do not use separate worker processes can be upgraded as normal. Similarly, Deployments which do not use separate worker processes can be upgraded as normal. Similarly,
deployments where no applciation services are in use can be upgraded as normal. deployments where no applciation services are in use can be upgraded as normal.
<details>
<summary><b>Recovering from an incorrect upgrade</b></summary>
If the database schema is upgraded *without* stopping the worker responsible
for AS traffic, then the following error may be given when attempting to start
a Synapse worker or master process:
```
**********************************************************************************
Error during initialisation:
Postgres sequence 'application_services_txn_id_seq' is inconsistent with associated
table 'application_services_txns'. This can happen if Synapse has been downgraded and
then upgraded again, or due to a bad migration.
To fix this error, shut down Synapse (including any and all workers)
and run the following SQL:
SELECT setval('application_services_txn_id_seq', (
SELECT GREATEST(MAX(txn_id), 0) FROM application_services_txns
));
See docs/postgres.md for more information.
There may be more information in the logs.
**********************************************************************************
```
This error may also be seen if Synapse is *downgraded* to an earlier version,
and then upgraded again to v1.57.0 or later.
In either case:
1. Ensure that the worker responsible for AS traffic is stopped.
2. Run the SQL command given in the error message via `psql`.
Synapse should then start correctly.
</details>
# Upgrading to v1.56.0 # Upgrading to v1.56.0
## Open registration without verification is now disabled by default ## Open registration without verification is now disabled by default

View File

@ -68,7 +68,7 @@ try:
except ImportError: except ImportError:
pass pass
__version__ = "1.56.0" __version__ = "1.57.0rc1"
if bool(os.environ.get("SYNAPSE_TEST_PATCH_LOG_CONTEXTS", False)): 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 # We import here so that we don't have to install a bunch of deps when