From f5bf02eff64a11af59510eb1ed2b120ad7d7e18e Mon Sep 17 00:00:00 2001 From: Devon Hudson Date: Tue, 18 Nov 2025 13:20:59 -0700 Subject: [PATCH] 1.143.0rc1 --- CHANGES.md | 63 +++++++++++++++++++++++++++++++ changelog.d/18784.feature | 1 - changelog.d/18943.doc | 1 - changelog.d/18970.misc | 1 - changelog.d/19093.misc | 1 - changelog.d/19111.misc | 1 - changelog.d/19133.misc | 1 - changelog.d/19135.misc | 1 - changelog.d/19137.misc | 1 - changelog.d/19138.misc | 1 - changelog.d/19145.misc | 1 - changelog.d/19146.misc | 1 - changelog.d/19150.misc | 1 - changelog.d/19152.feature | 1 - changelog.d/19155.bugfix | 1 - changelog.d/19167.misc | 1 - changelog.d/19168.misc | 1 - changelog.d/19169.misc | 1 - changelog.d/19170.removal | 1 - changelog.d/19172.misc | 1 - changelog.d/19173.misc | 1 - changelog.d/19177.misc | 1 - changelog.d/19178.misc | 1 - changelog.d/19180.misc | 1 - changelog.d/19181.bugfix | 1 - changelog.d/19186.bugfix | 1 - debian/changelog | 6 +++ pyproject.toml | 4 +- schema/synapse-config.schema.yaml | 2 +- 29 files changed, 72 insertions(+), 28 deletions(-) delete mode 100644 changelog.d/18784.feature delete mode 100644 changelog.d/18943.doc delete mode 100644 changelog.d/18970.misc delete mode 100644 changelog.d/19093.misc delete mode 100644 changelog.d/19111.misc delete mode 100644 changelog.d/19133.misc delete mode 100644 changelog.d/19135.misc delete mode 100644 changelog.d/19137.misc delete mode 100644 changelog.d/19138.misc delete mode 100644 changelog.d/19145.misc delete mode 100644 changelog.d/19146.misc delete mode 100644 changelog.d/19150.misc delete mode 100644 changelog.d/19152.feature delete mode 100644 changelog.d/19155.bugfix delete mode 100644 changelog.d/19167.misc delete mode 100644 changelog.d/19168.misc delete mode 100644 changelog.d/19169.misc delete mode 100644 changelog.d/19170.removal delete mode 100644 changelog.d/19172.misc delete mode 100644 changelog.d/19173.misc delete mode 100644 changelog.d/19177.misc delete mode 100644 changelog.d/19178.misc delete mode 100644 changelog.d/19180.misc delete mode 100644 changelog.d/19181.bugfix delete mode 100644 changelog.d/19186.bugfix diff --git a/CHANGES.md b/CHANGES.md index 5f72855bc0..0ddf2e4894 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,66 @@ +# Synapse 1.143.0rc1 (2025-11-18) + +## Dropping support for PostgreSQL 13 + +In line with our [deprecation policy](https://github.com/element-hq/synapse/blob/develop/docs/deprecation_policy.md), we've dropped +support for PostgreSQL 13, as it is no longer supported upstream. +This release of Synapse requires PostgreSQL 14+. + +## Features + +- Support multiple config files in `register_new_matrix_user`. ([\#18784](https://github.com/element-hq/synapse/issues/18784)) +- Remove authentication from `POST /_matrix/client/v1/delayed_events`, and allow calling this endpoint with the update action to take (`send`/`cancel`/`restart`) in the request path instead of the body. ([\#19152](https://github.com/element-hq/synapse/issues/19152)) + +## Bugfixes + +- Fixed a longstanding bug where background updates were only run on the `main` database. ([\#19181](https://github.com/element-hq/synapse/issues/19181)) +- Fixed a bug introduced in v1.142.0 preventing subpaths in MAS endpoints from working. ([\#19186](https://github.com/element-hq/synapse/issues/19186)) +- Fix the SQLite-to-PostgreSQL migration script to correctly migrate a boolean column in the `delayed_events` table. ([\#19155](https://github.com/element-hq/synapse/issues/19155)) + +## Improved Documentation + +- Improve documentation around streams, particularly ID generators and adding new streams. ([\#18943](https://github.com/element-hq/synapse/issues/18943)) + +## Deprecations and Removals + +- Remove support for PostgreSQL 13. ([\#19170](https://github.com/element-hq/synapse/issues/19170)) + +## Internal Changes + +- Provide additional servers with federation room directory results. ([\#18970](https://github.com/element-hq/synapse/issues/18970)) +- Add a shortcut return when there are no events to purge. ([\#19093](https://github.com/element-hq/synapse/issues/19093)) +- Write union types as `X | Y` where possible, as per PEP 604, added in Python 3.10. ([\#19111](https://github.com/element-hq/synapse/issues/19111)) +- Reduce cardinality of `synapse_storage_events_persisted_events_sep_total` metric by removing `origin_entity` label. This also separates out events sent by local application services by changing the `origin_type` for such events to `application_service`. The `type` field also only tracks common event types, and anything else is bucketed under `*other*`. ([\#19133](https://github.com/element-hq/synapse/issues/19133), [\#19168](https://github.com/element-hq/synapse/issues/19168)) +- Run trial tests on Python 3.14 for PRs. ([\#19135](https://github.com/element-hq/synapse/issues/19135)) +- Update `pyproject.toml` project metadata to be compatible with standard Python packaging tooling. ([\#19137](https://github.com/element-hq/synapse/issues/19137)) +- Minor speed up of processing of inbound replication. ([\#19138](https://github.com/element-hq/synapse/issues/19138), [\#19145](https://github.com/element-hq/synapse/issues/19145), [\#19146](https://github.com/element-hq/synapse/issues/19146)) +- Ignore recent Python language refactors from git blame (`.git-blame-ignore-revs`). ([\#19150](https://github.com/element-hq/synapse/issues/19150)) +- Bump lower bounds of dependencies `parameterized` to `0.9.0` and `idna` to `3.3` as those are the first to advertise support for Python 3.10. ([\#19167](https://github.com/element-hq/synapse/issues/19167)) +- Point out which event caused the exception when checking [MSC4293](https://github.com/matrix-org/matrix-spec-proposals/pull/4293) redactions. ([\#19169](https://github.com/element-hq/synapse/issues/19169)) +- Restore printing `sentinel` for the log record `request` when no logcontext is active. ([\#19172](https://github.com/element-hq/synapse/issues/19172)) +- Add debug logs to track `Clock` utilities. ([\#19173](https://github.com/element-hq/synapse/issues/19173)) +- Remove explicit python version skips in `cibuildwheel` config as it's no longer required after [#19137](https://github.com/element-hq/synapse/pull/19137). ([\#19177](https://github.com/element-hq/synapse/issues/19177)) +- Fix potential lost logcontext when `PerDestinationQueue.shutdown(...)` is called. ([\#19178](https://github.com/element-hq/synapse/issues/19178)) +- Fix bad deferred logcontext handling across the codebase. ([\#19180](https://github.com/element-hq/synapse/issues/19180)) + + + +### Updates to locked dependencies + +* Bump bytes from 1.10.1 to 1.11.0. ([\#19193](https://github.com/element-hq/synapse/issues/19193)) +* Bump click from 8.1.8 to 8.3.1. ([\#19195](https://github.com/element-hq/synapse/issues/19195)) +* Bump cryptography from 43.0.3 to 45.0.7. ([\#19159](https://github.com/element-hq/synapse/issues/19159)) +* Bump docker/metadata-action from 5.8.0 to 5.9.0. ([\#19161](https://github.com/element-hq/synapse/issues/19161)) +* Bump pydantic from 2.12.3 to 2.12.4. ([\#19158](https://github.com/element-hq/synapse/issues/19158)) +* Bump pyo3-log from 0.13.1 to 0.13.2. ([\#19156](https://github.com/element-hq/synapse/issues/19156)) +* Bump ruff from 0.14.3 to 0.14.5. ([\#19196](https://github.com/element-hq/synapse/issues/19196)) +* Bump sentry-sdk from 2.34.1 to 2.43.0. ([\#19157](https://github.com/element-hq/synapse/issues/19157)) +* Bump sentry-sdk from 2.43.0 to 2.44.0. ([\#19197](https://github.com/element-hq/synapse/issues/19197)) +* Bump tomli from 2.2.1 to 2.3.0. ([\#19194](https://github.com/element-hq/synapse/issues/19194)) +* Bump types-netaddr from 1.3.0.20240530 to 1.3.0.20251108. ([\#19160](https://github.com/element-hq/synapse/issues/19160)) + + + # Synapse 1.142.1 (2025-11-18) ## Bugfixes diff --git a/changelog.d/18784.feature b/changelog.d/18784.feature deleted file mode 100644 index 51801e2739..0000000000 --- a/changelog.d/18784.feature +++ /dev/null @@ -1 +0,0 @@ -Support multiple config files in `register_new_matrix_user`. diff --git a/changelog.d/18943.doc b/changelog.d/18943.doc deleted file mode 100644 index 0731d4b81a..0000000000 --- a/changelog.d/18943.doc +++ /dev/null @@ -1 +0,0 @@ -Improve documentation around streams, particularly ID generators and adding new streams. \ No newline at end of file diff --git a/changelog.d/18970.misc b/changelog.d/18970.misc deleted file mode 100644 index 4e32da32db..0000000000 --- a/changelog.d/18970.misc +++ /dev/null @@ -1 +0,0 @@ -Provide additional servers with federation room directory results. diff --git a/changelog.d/19093.misc b/changelog.d/19093.misc deleted file mode 100644 index 39ada26b68..0000000000 --- a/changelog.d/19093.misc +++ /dev/null @@ -1 +0,0 @@ -Add a shortcut return when there are no events to purge. \ No newline at end of file diff --git a/changelog.d/19111.misc b/changelog.d/19111.misc deleted file mode 100644 index cb4ca85c47..0000000000 --- a/changelog.d/19111.misc +++ /dev/null @@ -1 +0,0 @@ -Write union types as `X | Y` where possible, as per PEP 604, added in Python 3.10. diff --git a/changelog.d/19133.misc b/changelog.d/19133.misc deleted file mode 100644 index 8d9396116d..0000000000 --- a/changelog.d/19133.misc +++ /dev/null @@ -1 +0,0 @@ -Reduce cardinality of `synapse_storage_events_persisted_events_sep_total` metric by removing `origin_entity` label. This also separates out events sent by local application services by changing the `origin_type` for such events to `application_service`. The `type` field also only tracks common event types, and anything else is bucketed under `*other*`. diff --git a/changelog.d/19135.misc b/changelog.d/19135.misc deleted file mode 100644 index 8d0c56a7ec..0000000000 --- a/changelog.d/19135.misc +++ /dev/null @@ -1 +0,0 @@ -Run trial tests on Python 3.14 for PRs. \ No newline at end of file diff --git a/changelog.d/19137.misc b/changelog.d/19137.misc deleted file mode 100644 index d5a18a0c7e..0000000000 --- a/changelog.d/19137.misc +++ /dev/null @@ -1 +0,0 @@ -Update `pyproject.toml` project metadata to be compatible with standard Python packaging tooling. \ No newline at end of file diff --git a/changelog.d/19138.misc b/changelog.d/19138.misc deleted file mode 100644 index 1183361737..0000000000 --- a/changelog.d/19138.misc +++ /dev/null @@ -1 +0,0 @@ -Minor speed up of processing of inbound replication. diff --git a/changelog.d/19145.misc b/changelog.d/19145.misc deleted file mode 100644 index 1183361737..0000000000 --- a/changelog.d/19145.misc +++ /dev/null @@ -1 +0,0 @@ -Minor speed up of processing of inbound replication. diff --git a/changelog.d/19146.misc b/changelog.d/19146.misc deleted file mode 100644 index 1183361737..0000000000 --- a/changelog.d/19146.misc +++ /dev/null @@ -1 +0,0 @@ -Minor speed up of processing of inbound replication. diff --git a/changelog.d/19150.misc b/changelog.d/19150.misc deleted file mode 100644 index a97a487c6c..0000000000 --- a/changelog.d/19150.misc +++ /dev/null @@ -1 +0,0 @@ -Ignore recent Python language refactors from git blame (`.git-blame-ignore-revs`). diff --git a/changelog.d/19152.feature b/changelog.d/19152.feature deleted file mode 100644 index 833c1084fb..0000000000 --- a/changelog.d/19152.feature +++ /dev/null @@ -1 +0,0 @@ -Remove authentication from `POST /_matrix/client/v1/delayed_events`, and allow calling this endpoint with the update action to take (`send`/`cancel`/`restart`) in the request path instead of the body. diff --git a/changelog.d/19155.bugfix b/changelog.d/19155.bugfix deleted file mode 100644 index 825596b9d5..0000000000 --- a/changelog.d/19155.bugfix +++ /dev/null @@ -1 +0,0 @@ -Let the SQLite-to-PostgreSQL migration script correctly migrate a boolean column in the `delayed_events` table. diff --git a/changelog.d/19167.misc b/changelog.d/19167.misc deleted file mode 100644 index 5183d6b289..0000000000 --- a/changelog.d/19167.misc +++ /dev/null @@ -1 +0,0 @@ -Bump lower bounds of dependencies `parameterized` to `0.9.0` and `idna` to `3.3` as those are the first to advertise support for Python 3.10. diff --git a/changelog.d/19168.misc b/changelog.d/19168.misc deleted file mode 100644 index 8d9396116d..0000000000 --- a/changelog.d/19168.misc +++ /dev/null @@ -1 +0,0 @@ -Reduce cardinality of `synapse_storage_events_persisted_events_sep_total` metric by removing `origin_entity` label. This also separates out events sent by local application services by changing the `origin_type` for such events to `application_service`. The `type` field also only tracks common event types, and anything else is bucketed under `*other*`. diff --git a/changelog.d/19169.misc b/changelog.d/19169.misc deleted file mode 100644 index caa11bad95..0000000000 --- a/changelog.d/19169.misc +++ /dev/null @@ -1 +0,0 @@ -Point out which event caused the exception when checking [MSC4293](https://github.com/matrix-org/matrix-spec-proposals/pull/4293) redactions. diff --git a/changelog.d/19170.removal b/changelog.d/19170.removal deleted file mode 100644 index 2e43b3e987..0000000000 --- a/changelog.d/19170.removal +++ /dev/null @@ -1 +0,0 @@ -Remove support for PostgreSQL 13. diff --git a/changelog.d/19172.misc b/changelog.d/19172.misc deleted file mode 100644 index 4792f8b565..0000000000 --- a/changelog.d/19172.misc +++ /dev/null @@ -1 +0,0 @@ -Restore printing `sentinel` for the log record `request` when no logcontext is active. diff --git a/changelog.d/19173.misc b/changelog.d/19173.misc deleted file mode 100644 index b0f144ddc1..0000000000 --- a/changelog.d/19173.misc +++ /dev/null @@ -1 +0,0 @@ -Add debug logs to track `Clock` utilities. diff --git a/changelog.d/19177.misc b/changelog.d/19177.misc deleted file mode 100644 index d9e2785ccc..0000000000 --- a/changelog.d/19177.misc +++ /dev/null @@ -1 +0,0 @@ -Remove explicit python version skips in `cibuildwheel` config as it's no longer required after [#19137](https://github.com/element-hq/synapse/pull/19137). \ No newline at end of file diff --git a/changelog.d/19178.misc b/changelog.d/19178.misc deleted file mode 100644 index 3f803c3544..0000000000 --- a/changelog.d/19178.misc +++ /dev/null @@ -1 +0,0 @@ -Fix potential lost logcontext when `PerDestinationQueue.shutdown(...)`. diff --git a/changelog.d/19180.misc b/changelog.d/19180.misc deleted file mode 100644 index 6de107d8dc..0000000000 --- a/changelog.d/19180.misc +++ /dev/null @@ -1 +0,0 @@ -Fix bad deferred logcontext handling across the codebase. diff --git a/changelog.d/19181.bugfix b/changelog.d/19181.bugfix deleted file mode 100644 index af3c988b0a..0000000000 --- a/changelog.d/19181.bugfix +++ /dev/null @@ -1 +0,0 @@ -Run background updates on all databases. diff --git a/changelog.d/19186.bugfix b/changelog.d/19186.bugfix deleted file mode 100644 index e5ef1bf6d8..0000000000 --- a/changelog.d/19186.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix regression preventing subpaths in MAS endpoints. diff --git a/debian/changelog b/debian/changelog index e0b6cfecea..249862bc72 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +matrix-synapse-py3 (1.143.0~rc1) stable; urgency=medium + + * New Synapse release 1.143.0rc1. + + -- Synapse Packaging team Tue, 18 Nov 2025 13:08:39 -0700 + matrix-synapse-py3 (1.142.1) stable; urgency=medium * New Synapse release 1.142.1. diff --git a/pyproject.toml b/pyproject.toml index 0b339be8d1..9d513409d7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "matrix-synapse" -version = "1.142.0" +version = "1.143.0rc1" description = "Homeserver for the Matrix decentralised comms protocol" readme = "README.rst" authors = [ @@ -292,7 +292,7 @@ module-name = "synapse.synapse_rust" [tool.poetry] name = "matrix-synapse" -version = "1.142.1" +version = "1.143.0rc1" description = "Homeserver for the Matrix decentralised comms protocol" authors = ["Matrix.org Team and Contributors "] license = "AGPL-3.0-or-later OR LicenseRef-Element-Commercial" diff --git a/schema/synapse-config.schema.yaml b/schema/synapse-config.schema.yaml index 98204a724c..f2d51fdb95 100644 --- a/schema/synapse-config.schema.yaml +++ b/schema/synapse-config.schema.yaml @@ -1,5 +1,5 @@ $schema: https://element-hq.github.io/synapse/latest/schema/v1/meta.schema.json -$id: https://element-hq.github.io/synapse/schema/synapse/v1.142/synapse-config.schema.json +$id: https://element-hq.github.io/synapse/schema/synapse/v1.143/synapse-config.schema.json type: object properties: modules: