Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 1f5829d

Browse files
committed
Merge tag 'v1.42.0' into babolivier/dinsic_1.48.0
Synapse 1.42.0 (2021-09-07) =========================== This version of Synapse removes deprecated room-management admin APIs, removes out-of-date email pushers, and improves error handling for fallback templates for user-interactive authentication. For more information on these points, server administrators are encouraged to read [the upgrade notes](docs/upgrade.md#upgrading-to-v1420). No significant changes since 1.42.0rc2. Synapse 1.42.0rc2 (2021-09-06) ============================== Features -------- - Support room version 9 from [MSC3375](matrix-org/matrix-spec-proposals#3375). ([\#10747](matrix-org/synapse#10747)) Internal Changes ---------------- - Print a warning when using one of the deprecated `template_dir` settings. ([\#10768](matrix-org/synapse#10768)) Synapse 1.42.0rc1 (2021-09-01) ============================== Features -------- - Add support for [MSC3231](matrix-org/matrix-spec-proposals#3231): Token authenticated registration. Users can be required to submit a token during registration to authenticate themselves. Contributed by Callum Brown. ([\#10142](matrix-org/synapse#10142)) - Add support for [MSC3283](matrix-org/matrix-spec-proposals#3283): Expose `enable_set_displayname` in capabilities. ([\#10452](matrix-org/synapse#10452)) - Port the `PresenceRouter` module interface to the new generic interface. ([\#10524](matrix-org/synapse#10524)) - Add pagination to the spaces summary based on updates to [MSC2946](matrix-org/matrix-spec-proposals#2946). ([\#10613](matrix-org/synapse#10613), [\#10725](matrix-org/synapse#10725)) Bugfixes -------- - Validate new `m.room.power_levels` events. Contributed by @aaronraimist. ([\#10232](matrix-org/synapse#10232)) - Display an error on User-Interactive Authentication fallback pages when authentication fails. Contributed by Callum Brown. ([\#10561](matrix-org/synapse#10561)) - Remove pushers when deleting an e-mail address from an account. Pushers for old unlinked emails will also be deleted. ([\#10581](matrix-org/synapse#10581), [\#10734](matrix-org/synapse#10734)) - Reject Client-Server `/keys/query` requests which provide `device_ids` incorrectly. ([\#10593](matrix-org/synapse#10593)) - Rooms with unsupported room versions are no longer returned via `/sync`. ([\#10644](matrix-org/synapse#10644)) - Enforce the maximum length for per-room display names and avatar URLs. ([\#10654](matrix-org/synapse#10654)) - Fix a bug which caused the `synapse_user_logins_total` Prometheus metric not to be correctly initialised on restart. ([\#10677](matrix-org/synapse#10677)) - Improve `ServerNoticeServlet` to avoid duplicate requests and add unit tests. ([\#10679](matrix-org/synapse#10679)) - Fix long-standing issue which caused an error when a thumbnail is requested and there are multiple thumbnails with the same quality rating. ([\#10684](matrix-org/synapse#10684)) - Fix a regression introduced in v1.41.0 which affected the performance of concurrent fetches of large sets of events, in extreme cases causing the process to hang. ([\#10703](matrix-org/synapse#10703)) - Fix a regression introduced in Synapse 1.41 which broke email transmission on Systems using older versions of the Twisted library. ([\#10713](matrix-org/synapse#10713)) Improved Documentation ---------------------- - Add documentation on how to connect Django with Synapse using OpenID Connect and django-oauth-toolkit. Contributed by @HugoDelval. ([\#10192](matrix-org/synapse#10192)) - Advertise https://matrix-org.github.io/synapse documentation in the `README` and `CONTRIBUTING` files. ([\#10595](matrix-org/synapse#10595)) - Fix some of the titles not rendering in the OpenID Connect documentation. ([\#10639](matrix-org/synapse#10639)) - Minor clarifications to the documentation for reverse proxies. ([\#10708](matrix-org/synapse#10708)) - Remove table of contents from the top of installation and contributing documentation pages. ([\#10711](matrix-org/synapse#10711)) Deprecations and Removals ------------------------- - Remove deprecated Shutdown Room and Purge Room Admin API. ([\#8830](matrix-org/synapse#8830)) Internal Changes ---------------- - Improve type hints for the proxy agent and SRV resolver modules. Contributed by @dklimpel. ([\#10608](matrix-org/synapse#10608)) - Clean up some of the federation event authentication code for clarity. ([\#10614](matrix-org/synapse#10614), [\#10615](matrix-org/synapse#10615), [\#10624](matrix-org/synapse#10624), [\#10640](matrix-org/synapse#10640)) - Add a comment asking developers to leave a reason when bumping the database schema version. ([\#10621](matrix-org/synapse#10621)) - Remove not needed database updates in modify user admin API. ([\#10627](matrix-org/synapse#10627)) - Convert room member storage tuples to `attrs` classes. ([\#10629](matrix-org/synapse#10629), [\#10642](matrix-org/synapse#10642)) - Use auto-attribs for the attrs classes used in sync. ([\#10630](matrix-org/synapse#10630)) - Make `backfill` and `get_missing_events` use the same codepath. ([\#10645](matrix-org/synapse#10645)) - Improve the performance of the `/hierarchy` API (from [MSC2946](matrix-org/matrix-spec-proposals#2946)) by caching responses received over federation. ([\#10647](matrix-org/synapse#10647)) - Run a nightly CI build against Twisted trunk. ([\#10651](matrix-org/synapse#10651), [\#10672](matrix-org/synapse#10672)) - Do not print out stack traces for network errors when fetching data over federation. ([\#10662](matrix-org/synapse#10662)) - Simplify tests for device admin rest API. ([\#10664](matrix-org/synapse#10664)) - Add missing type hints to REST servlets. ([\#10665](matrix-org/synapse#10665), [\#10666](matrix-org/synapse#10666), [\#10674](matrix-org/synapse#10674)) - Flatten the `tests.synapse.rests` package by moving the contents of `v1` and `v2_alpha` into the parent. ([\#10667](matrix-org/synapse#10667)) - Update `complement.sh` to rebuild the base Docker image when run with workers. ([\#10686](matrix-org/synapse#10686)) - Split the event-processing methods in `FederationHandler` into a separate `FederationEventHandler`. ([\#10692](matrix-org/synapse#10692)) - Remove unused `compare_digest` function. ([\#10706](matrix-org/synapse#10706))
2 parents 4737a7f + e7b78dc commit 1f5829d

File tree

162 files changed

+7954
-3671
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

162 files changed

+7954
-3671
lines changed

.ci/patch_for_twisted_trunk.sh

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
3+
# replaces the dependency on Twisted in `python_dependencies` with trunk.
4+
5+
set -e
6+
cd "$(dirname "$0")"/..
7+
8+
sed -i -e 's#"Twisted.*"#"Twisted @ git+https://github.com/twisted/twisted"#' synapse/python_dependencies.py
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: CI run against Twisted trunk is failing
3+
---
4+
See https://github.com/{{env.GITHUB_REPOSITORY}}/actions/runs/{{env.GITHUB_RUN_ID}}

.github/workflows/twisted_trunk.yml

+90
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
name: Twisted Trunk
2+
3+
on:
4+
schedule:
5+
- cron: 0 8 * * *
6+
7+
workflow_dispatch:
8+
9+
jobs:
10+
mypy:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-python@v2
16+
- run: .ci/patch_for_twisted_trunk.sh
17+
- run: pip install tox
18+
- run: tox -e mypy
19+
20+
trial:
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- uses: actions/checkout@v2
25+
- run: sudo apt-get -qq install xmlsec1
26+
- uses: actions/setup-python@v2
27+
with:
28+
python-version: 3.6
29+
- run: .ci/patch_for_twisted_trunk.sh
30+
- run: pip install tox
31+
- run: tox -e py
32+
env:
33+
TRIAL_FLAGS: "--jobs=2"
34+
35+
- name: Dump logs
36+
# Note: Dumps to workflow logs instead of using actions/upload-artifact
37+
# This keeps logs colocated with failing jobs
38+
# It also ignores find's exit code; this is a best effort affair
39+
run: >-
40+
find _trial_temp -name '*.log'
41+
-exec echo "::group::{}" \;
42+
-exec cat {} \;
43+
-exec echo "::endgroup::" \;
44+
|| true
45+
46+
sytest:
47+
runs-on: ubuntu-latest
48+
container:
49+
image: matrixdotorg/sytest-synapse:buster
50+
volumes:
51+
- ${{ github.workspace }}:/src
52+
53+
steps:
54+
- uses: actions/checkout@v2
55+
- name: Patch dependencies
56+
run: .ci/patch_for_twisted_trunk.sh
57+
working-directory: /src
58+
- name: Run SyTest
59+
run: /bootstrap.sh synapse
60+
working-directory: /src
61+
- name: Summarise results.tap
62+
if: ${{ always() }}
63+
run: /sytest/scripts/tap_to_gha.pl /logs/results.tap
64+
- name: Upload SyTest logs
65+
uses: actions/upload-artifact@v2
66+
if: ${{ always() }}
67+
with:
68+
name: Sytest Logs - ${{ job.status }} - (${{ join(matrix.*, ', ') }})
69+
path: |
70+
/logs/results.tap
71+
/logs/**/*.log*
72+
73+
# open an issue if the build fails, so we know about it.
74+
open-issue:
75+
if: failure()
76+
needs:
77+
- mypy
78+
- trial
79+
- sytest
80+
81+
runs-on: ubuntu-latest
82+
83+
steps:
84+
- uses: actions/checkout@v2
85+
- uses: JasonEtco/create-an-issue@5d9504915f79f9cc6d791934b8ef34f2353dd74d # v2.5.0, 2020-12-06
86+
env:
87+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
88+
with:
89+
update_existing: true
90+
filename: .ci/twisted_trunk_build_failed_issue_template.md

CHANGES.md

+88-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,91 @@
1+
Synapse 1.42.0 (2021-09-07)
2+
===========================
3+
4+
This version of Synapse removes deprecated room-management admin APIs, removes out-of-date email pushers, and improves error handling for fallback templates for user-interactive authentication. For more information on these points, server administrators are encouraged to read [the upgrade notes](docs/upgrade.md#upgrading-to-v1420).
5+
6+
No significant changes since 1.42.0rc2.
7+
8+
9+
Synapse 1.42.0rc2 (2021-09-06)
10+
==============================
11+
12+
Features
13+
--------
14+
15+
- Support room version 9 from [MSC3375](https://github.com/matrix-org/matrix-doc/pull/3375). ([\#10747](https://github.com/matrix-org/synapse/issues/10747))
16+
17+
18+
Internal Changes
19+
----------------
20+
21+
- Print a warning when using one of the deprecated `template_dir` settings. ([\#10768](https://github.com/matrix-org/synapse/issues/10768))
22+
23+
24+
Synapse 1.42.0rc1 (2021-09-01)
25+
==============================
26+
27+
Features
28+
--------
29+
30+
- Add support for [MSC3231](https://github.com/matrix-org/matrix-doc/pull/3231): Token authenticated registration. Users can be required to submit a token during registration to authenticate themselves. Contributed by Callum Brown. ([\#10142](https://github.com/matrix-org/synapse/issues/10142))
31+
- Add support for [MSC3283](https://github.com/matrix-org/matrix-doc/pull/3283): Expose `enable_set_displayname` in capabilities. ([\#10452](https://github.com/matrix-org/synapse/issues/10452))
32+
- Port the `PresenceRouter` module interface to the new generic interface. ([\#10524](https://github.com/matrix-org/synapse/issues/10524))
33+
- Add pagination to the spaces summary based on updates to [MSC2946](https://github.com/matrix-org/matrix-doc/pull/2946). ([\#10613](https://github.com/matrix-org/synapse/issues/10613), [\#10725](https://github.com/matrix-org/synapse/issues/10725))
34+
35+
36+
Bugfixes
37+
--------
38+
39+
- Validate new `m.room.power_levels` events. Contributed by @aaronraimist. ([\#10232](https://github.com/matrix-org/synapse/issues/10232))
40+
- Display an error on User-Interactive Authentication fallback pages when authentication fails. Contributed by Callum Brown. ([\#10561](https://github.com/matrix-org/synapse/issues/10561))
41+
- Remove pushers when deleting an e-mail address from an account. Pushers for old unlinked emails will also be deleted. ([\#10581](https://github.com/matrix-org/synapse/issues/10581), [\#10734](https://github.com/matrix-org/synapse/issues/10734))
42+
- Reject Client-Server `/keys/query` requests which provide `device_ids` incorrectly. ([\#10593](https://github.com/matrix-org/synapse/issues/10593))
43+
- Rooms with unsupported room versions are no longer returned via `/sync`. ([\#10644](https://github.com/matrix-org/synapse/issues/10644))
44+
- Enforce the maximum length for per-room display names and avatar URLs. ([\#10654](https://github.com/matrix-org/synapse/issues/10654))
45+
- Fix a bug which caused the `synapse_user_logins_total` Prometheus metric not to be correctly initialised on restart. ([\#10677](https://github.com/matrix-org/synapse/issues/10677))
46+
- Improve `ServerNoticeServlet` to avoid duplicate requests and add unit tests. ([\#10679](https://github.com/matrix-org/synapse/issues/10679))
47+
- Fix long-standing issue which caused an error when a thumbnail is requested and there are multiple thumbnails with the same quality rating. ([\#10684](https://github.com/matrix-org/synapse/issues/10684))
48+
- Fix a regression introduced in v1.41.0 which affected the performance of concurrent fetches of large sets of events, in extreme cases causing the process to hang. ([\#10703](https://github.com/matrix-org/synapse/issues/10703))
49+
- Fix a regression introduced in Synapse 1.41 which broke email transmission on Systems using older versions of the Twisted library. ([\#10713](https://github.com/matrix-org/synapse/issues/10713))
50+
51+
52+
Improved Documentation
53+
----------------------
54+
55+
- Add documentation on how to connect Django with Synapse using OpenID Connect and django-oauth-toolkit. Contributed by @HugoDelval. ([\#10192](https://github.com/matrix-org/synapse/issues/10192))
56+
- Advertise https://matrix-org.github.io/synapse documentation in the `README` and `CONTRIBUTING` files. ([\#10595](https://github.com/matrix-org/synapse/issues/10595))
57+
- Fix some of the titles not rendering in the OpenID Connect documentation. ([\#10639](https://github.com/matrix-org/synapse/issues/10639))
58+
- Minor clarifications to the documentation for reverse proxies. ([\#10708](https://github.com/matrix-org/synapse/issues/10708))
59+
- Remove table of contents from the top of installation and contributing documentation pages. ([\#10711](https://github.com/matrix-org/synapse/issues/10711))
60+
61+
62+
Deprecations and Removals
63+
-------------------------
64+
65+
- Remove deprecated Shutdown Room and Purge Room Admin API. ([\#8830](https://github.com/matrix-org/synapse/issues/8830))
66+
67+
68+
Internal Changes
69+
----------------
70+
71+
- Improve type hints for the proxy agent and SRV resolver modules. Contributed by @dklimpel. ([\#10608](https://github.com/matrix-org/synapse/issues/10608))
72+
- Clean up some of the federation event authentication code for clarity. ([\#10614](https://github.com/matrix-org/synapse/issues/10614), [\#10615](https://github.com/matrix-org/synapse/issues/10615), [\#10624](https://github.com/matrix-org/synapse/issues/10624), [\#10640](https://github.com/matrix-org/synapse/issues/10640))
73+
- Add a comment asking developers to leave a reason when bumping the database schema version. ([\#10621](https://github.com/matrix-org/synapse/issues/10621))
74+
- Remove not needed database updates in modify user admin API. ([\#10627](https://github.com/matrix-org/synapse/issues/10627))
75+
- Convert room member storage tuples to `attrs` classes. ([\#10629](https://github.com/matrix-org/synapse/issues/10629), [\#10642](https://github.com/matrix-org/synapse/issues/10642))
76+
- Use auto-attribs for the attrs classes used in sync. ([\#10630](https://github.com/matrix-org/synapse/issues/10630))
77+
- Make `backfill` and `get_missing_events` use the same codepath. ([\#10645](https://github.com/matrix-org/synapse/issues/10645))
78+
- Improve the performance of the `/hierarchy` API (from [MSC2946](https://github.com/matrix-org/matrix-doc/pull/2946)) by caching responses received over federation. ([\#10647](https://github.com/matrix-org/synapse/issues/10647))
79+
- Run a nightly CI build against Twisted trunk. ([\#10651](https://github.com/matrix-org/synapse/issues/10651), [\#10672](https://github.com/matrix-org/synapse/issues/10672))
80+
- Do not print out stack traces for network errors when fetching data over federation. ([\#10662](https://github.com/matrix-org/synapse/issues/10662))
81+
- Simplify tests for device admin rest API. ([\#10664](https://github.com/matrix-org/synapse/issues/10664))
82+
- Add missing type hints to REST servlets. ([\#10665](https://github.com/matrix-org/synapse/issues/10665), [\#10666](https://github.com/matrix-org/synapse/issues/10666), [\#10674](https://github.com/matrix-org/synapse/issues/10674))
83+
- Flatten the `tests.synapse.rests` package by moving the contents of `v1` and `v2_alpha` into the parent. ([\#10667](https://github.com/matrix-org/synapse/issues/10667))
84+
- Update `complement.sh` to rebuild the base Docker image when run with workers. ([\#10686](https://github.com/matrix-org/synapse/issues/10686))
85+
- Split the event-processing methods in `FederationHandler` into a separate `FederationEventHandler`. ([\#10692](https://github.com/matrix-org/synapse/issues/10692))
86+
- Remove unused `compare_digest` function. ([\#10706](https://github.com/matrix-org/synapse/issues/10706))
87+
88+
189
Synapse 1.41.1 (2021-08-31)
290
===========================
391

@@ -29,7 +117,6 @@ Bugfixes
29117

30118
- Fix a regression introduced in Synapse 1.41 which broke email transmission on systems using older versions of the Twisted library. ([\#10713](https://github.com/matrix-org/synapse/issues/10713))
31119

32-
33120
Synapse 1.41.0 (2021-08-24)
34121
===========================
35122

0 commit comments

Comments
 (0)