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

Commit 995114d

Browse files
committed
Merge tag 'v1.80.0' into merge-1.78
Synapse 1.80.0 (2023-03-28) =========================== No significant changes since 1.80.0rc2. Synapse 1.80.0rc2 (2023-03-22) ============================== Bugfixes -------- - Fix a bug in which the [`POST /_matrix/client/v3/rooms/{roomId}/report/{eventId}`](https://spec.matrix.org/v1.6/client-server-api/#post_matrixclientv3roomsroomidreporteventid) endpoint would return the wrong error if the user did not have permission to view the event. This aligns Synapse's implementation with [MSC2249](matrix-org/matrix-spec-proposals#2249). ([\matrix-org#15298](matrix-org#15298), [\matrix-org#15300](matrix-org#15300)) - Fix a bug introduced in Synapse 1.75.0rc1 where the [SQLite port_db script](https://matrix-org.github.io/synapse/latest/postgres.html#porting-from-sqlite) would fail to open the SQLite database. ([\matrix-org#15301](matrix-org#15301)) Synapse 1.80.0rc1 (2023-03-21) ============================== Features -------- - Stabilise support for [MSC3966](matrix-org/matrix-spec-proposals#3966): `event_property_contains` push condition. ([\matrix-org#15187](matrix-org#15187)) - Implement [MSC2659](matrix-org/matrix-spec-proposals#2659): application service ping endpoint. Contributed by Tulir @ Beeper. ([\matrix-org#15249](matrix-org#15249)) - Allow loading `/register/available` endpoint on workers. ([\matrix-org#15268](matrix-org#15268)) - Improve performance of creating and authenticating events. ([\matrix-org#15195](matrix-org#15195)) - Add topic and name events to group of events that are batch persisted when creating a room. ([\matrix-org#15229](matrix-org#15229)) Bugfixes -------- - Fix a long-standing bug in which the user directory would assume any remote membership state events represent a profile change. ([\matrix-org#14755](matrix-org#14755), [\matrix-org#14756](matrix-org#14756)) - Implement [MSC3873](matrix-org/matrix-spec-proposals#3873) to fix a long-standing bug where properties with dots were handled ambiguously in push rules. ([\matrix-org#15190](matrix-org#15190)) - Faster joins: Fix a bug introduced in Synapse 1.66 where spurious "Failed to find memberships ..." errors would be logged. ([\matrix-org#15232](matrix-org#15232)) - Fix a long-standing error when sending message into deleted room. ([\matrix-org#15235](matrix-org#15235)) Updates to the Docker image --------------------------- - Ensure the Dockerfile builds on platforms that don't have a `cryptography` wheel. ([\matrix-org#15239](matrix-org#15239)) - Mirror images to the GitHub Container Registry (`ghcr.io/matrix-org/synapse`). ([\matrix-org#15281](matrix-org#15281), [\matrix-org#15282](matrix-org#15282)) Improved Documentation ---------------------- - Add a missing endpoint to the workers documentation. ([\matrix-org#15223](matrix-org#15223)) Internal Changes ---------------- - Add additional functionality to declaring worker types when starting Complement in worker mode. ([\matrix-org#14921](matrix-org#14921)) - Add `Synapse-Trace-Id` to `access-control-expose-headers` header. ([\matrix-org#14974](matrix-org#14974)) - Make the `HttpTransactionCache` use the `Requester` in addition of the just the `Request` to build the transaction key. ([\matrix-org#15200](matrix-org#15200)) - Improve log lines when purging rooms. ([\matrix-org#15222](matrix-org#15222)) - Improve type hints. ([\matrix-org#15230](matrix-org#15230), [\matrix-org#15231](matrix-org#15231), [\matrix-org#15238](matrix-org#15238)) - Move various module API callback registration methods to a dedicated class. ([\matrix-org#15237](matrix-org#15237)) - Configure GitHub Actions for merge queues. ([\matrix-org#15244](matrix-org#15244)) - Add schema comments about the `destinations` and `destination_rooms` tables. ([\matrix-org#15247](matrix-org#15247)) - Skip processing of auto-join room behaviour if there are no auto-join rooms configured. ([\matrix-org#15262](matrix-org#15262)) - Remove unused store method `_set_destination_retry_timings_emulated`. ([\matrix-org#15266](matrix-org#15266)) - Reorganize URL preview code. ([\matrix-org#15269](matrix-org#15269)) - Clean-up direct TCP replication code. ([\matrix-org#15272](matrix-org#15272), [\matrix-org#15274](matrix-org#15274)) - Make `configure_workers_and_start` script used in Complement tests compatible with older versions of Python. ([\matrix-org#15275](matrix-org#15275)) - Add a `/versions` flag for [MSC3952](matrix-org/matrix-spec-proposals#3952). ([\matrix-org#15293](matrix-org#15293)) - Bump hiredis from 2.2.1 to 2.2.2. ([\matrix-org#15252](matrix-org#15252)) - Bump serde from 1.0.152 to 1.0.155. ([\matrix-org#15253](matrix-org#15253)) - Bump pysaml2 from 7.2.1 to 7.3.1. ([\matrix-org#15254](matrix-org#15254)) - Bump msgpack from 1.0.4 to 1.0.5. ([\matrix-org#15255](matrix-org#15255)) - Bump gitpython from 3.1.30 to 3.1.31. ([\matrix-org#15256](matrix-org#15256)) - Bump cryptography from 39.0.1 to 39.0.2. ([\matrix-org#15257](matrix-org#15257)) - Bump pydantic from 1.10.4 to 1.10.6. ([\matrix-org#15286](matrix-org#15286)) - Bump serde from 1.0.155 to 1.0.157. ([\matrix-org#15287](matrix-org#15287)) - Bump anyhow from 1.0.69 to 1.0.70. ([\matrix-org#15288](matrix-org#15288)) - Bump txredisapi from 1.4.7 to 1.4.9. ([\matrix-org#15289](matrix-org#15289)) - Bump pygithub from 1.57 to 1.58.1. ([\matrix-org#15290](matrix-org#15290)) - Bump types-requests from 2.28.11.12 to 2.28.11.15. ([\matrix-org#15291](matrix-org#15291))
2 parents fa477cd + 9f7d6c6 commit 995114d

File tree

367 files changed

+10874
-6033
lines changed

Some content is hidden

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

367 files changed

+10874
-6033
lines changed

.ci/scripts/calculate_jobs.py

+15
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,26 @@ def set_output(key: str, value: str):
109109
"postgres": "multi-postgres",
110110
"workers": "workers",
111111
},
112+
{
113+
"sytest-tag": "focal",
114+
"postgres": "multi-postgres",
115+
"workers": "workers",
116+
"reactor": "asyncio",
117+
},
112118
]
113119

114120
if not IS_PR:
115121
sytest_tests.extend(
116122
[
123+
{
124+
"sytest-tag": "focal",
125+
"reactor": "asyncio",
126+
},
127+
{
128+
"sytest-tag": "focal",
129+
"postgres": "postgres",
130+
"reactor": "asyncio",
131+
},
117132
{
118133
"sytest-tag": "testing",
119134
"postgres": "postgres",

.git-blame-ignore-revs

+5-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,8 @@ aff1eb7c671b0a3813407321d2702ec46c71fa56
2121
0a00b7ff14890987f09112a2ae696c61001e6cf1
2222

2323
# Convert tests/rest/admin/test_room.py to unix file endings (#7953).
24-
c4268e3da64f1abb5b31deaeb5769adb6510c0a7
24+
c4268e3da64f1abb5b31deaeb5769adb6510c0a7
25+
26+
# Update black to 23.1.0 (#15103)
27+
9bb2eac71962970d02842bca441f4bcdbbf93a11
28+

.github/workflows/docker.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010

1111
permissions:
1212
contents: read
13+
packages: write
1314

1415
jobs:
1516
build:
@@ -34,11 +35,20 @@ jobs:
3435
username: ${{ secrets.DOCKERHUB_USERNAME }}
3536
password: ${{ secrets.DOCKERHUB_TOKEN }}
3637

38+
- name: Log in to GHCR
39+
uses: docker/login-action@v2
40+
with:
41+
registry: ghcr.io
42+
username: ${{ github.repository_owner }}
43+
password: ${{ secrets.GITHUB_TOKEN }}
44+
3745
- name: Calculate docker image tag
3846
id: set-tag
3947
uses: docker/metadata-action@master
4048
with:
41-
images: matrixdotorg/synapse
49+
images: |
50+
docker.io/matrixdotorg/synapse
51+
ghcr.io/matrix-org/synapse
4252
flavor: |
4353
latest=false
4454
tags: |

.github/workflows/docs-pr-netlify.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
# There's a 'download artifact' action, but it hasn't been updated for the workflow_run action
1515
# (https://github.com/actions/download-artifact/issues/60) so instead we get this mess:
1616
- name: 📥 Download artifact
17-
uses: dawidd6/action-download-artifact@bd10f381a96414ce2b13a11bfa89902ba7cea07f # v2.24.3
17+
uses: dawidd6/action-download-artifact@5e780fc7bbd0cac69fc73271ed86edf5dcb72d67 # v2.26.0
1818
with:
1919
workflow: docs-pr.yaml
2020
run_id: ${{ github.event.workflow_run.id }}

.github/workflows/docs-pr.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
name: GitHub Pages
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v3
1616

1717
- name: Setup mdbook
1818
uses: peaceiris/actions-mdbook@adeb05db28a0c0004681db83893d56c0388ea9ea # v1.2.0
@@ -39,7 +39,7 @@ jobs:
3939
name: Check links in documentation
4040
runs-on: ubuntu-latest
4141
steps:
42-
- uses: actions/checkout@v2
42+
- uses: actions/checkout@v3
4343

4444
- name: Setup mdbook
4545
uses: peaceiris/actions-mdbook@adeb05db28a0c0004681db83893d56c0388ea9ea # v1.2.0

.github/workflows/latest_deps.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
steps:
2828
- uses: actions/checkout@v3
2929
- name: Install Rust
30-
uses: dtolnay/rust-toolchain@9cd00a88a73addc8617065438eff914dd08d0955
30+
uses: dtolnay/rust-toolchain@e12eda571dc9a5ee5d58eecf4738ec291c66f295
3131
with:
3232
toolchain: stable
3333
- uses: Swatinem/rust-cache@v2
@@ -61,7 +61,7 @@ jobs:
6161
- uses: actions/checkout@v3
6262

6363
- name: Install Rust
64-
uses: dtolnay/rust-toolchain@9cd00a88a73addc8617065438eff914dd08d0955
64+
uses: dtolnay/rust-toolchain@e12eda571dc9a5ee5d58eecf4738ec291c66f295
6565
with:
6666
toolchain: stable
6767
- uses: Swatinem/rust-cache@v2
@@ -134,7 +134,7 @@ jobs:
134134
- uses: actions/checkout@v3
135135

136136
- name: Install Rust
137-
uses: dtolnay/rust-toolchain@9cd00a88a73addc8617065438eff914dd08d0955
137+
uses: dtolnay/rust-toolchain@e12eda571dc9a5ee5d58eecf4738ec291c66f295
138138
with:
139139
toolchain: stable
140140
- uses: Swatinem/rust-cache@v2
+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
on:
2+
push:
3+
branches: ["develop", "release-*"]
4+
paths:
5+
- poetry.lock
6+
pull_request:
7+
paths:
8+
- poetry.lock
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
check-sdists:
16+
name: "Check locked dependencies have sdists"
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v3
20+
- uses: actions/setup-python@v4
21+
with:
22+
python-version: '3.x'
23+
- run: pip install tomli
24+
- run: ./scripts-dev/check_locked_deps_have_sdists.py

.github/workflows/push_complement_image.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
with:
4949
ref: master
5050
- name: Login to registry
51-
uses: docker/login-action@v1
51+
uses: docker/login-action@v2
5252
with:
5353
registry: ghcr.io
5454
username: ${{ github.actor }}

.github/workflows/release-artifacts.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ name: Build release artifacts
44

55
on:
66
# we build on PRs and develop to (hopefully) get early warning
7-
# of things breaking (but only build one set of debs)
7+
# of things breaking (but only build one set of debs). PRs skip
8+
# building wheels on macOS & ARM.
89
pull_request:
910
push:
1011
branches: ["develop", "release-*"]
1112

1213
# we do the full build on tags.
1314
tags: ["v*"]
15+
merge_group:
1416
workflow_dispatch:
1517

1618
concurrency:

.github/workflows/tests.yml

+13-10
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches: ["develop", "release-*"]
66
pull_request:
7+
merge_group:
78
workflow_dispatch:
89

910
concurrency:
@@ -112,7 +113,7 @@ jobs:
112113
# There don't seem to be versioned releases of this action per se: for each rust
113114
# version there is a branch which gets constantly rebased on top of master.
114115
# We pin to a specific commit for paranoia's sake.
115-
uses: dtolnay/rust-toolchain@9cd00a88a73addc8617065438eff914dd08d0955
116+
uses: dtolnay/rust-toolchain@e12eda571dc9a5ee5d58eecf4738ec291c66f295
116117
with:
117118
toolchain: 1.58.1
118119
components: clippy
@@ -134,7 +135,7 @@ jobs:
134135
# There don't seem to be versioned releases of this action per se: for each rust
135136
# version there is a branch which gets constantly rebased on top of master.
136137
# We pin to a specific commit for paranoia's sake.
137-
uses: dtolnay/rust-toolchain@9cd00a88a73addc8617065438eff914dd08d0955
138+
uses: dtolnay/rust-toolchain@e12eda571dc9a5ee5d58eecf4738ec291c66f295
138139
with:
139140
toolchain: nightly-2022-12-01
140141
components: clippy
@@ -154,9 +155,10 @@ jobs:
154155
# There don't seem to be versioned releases of this action per se: for each rust
155156
# version there is a branch which gets constantly rebased on top of master.
156157
# We pin to a specific commit for paranoia's sake.
157-
uses: dtolnay/rust-toolchain@9cd00a88a73addc8617065438eff914dd08d0955
158+
uses: dtolnay/rust-toolchain@e12eda571dc9a5ee5d58eecf4738ec291c66f295
158159
with:
159-
toolchain: 1.58.1
160+
# We use nightly so that it correctly groups together imports
161+
toolchain: nightly-2022-12-01
160162
components: rustfmt
161163
- uses: Swatinem/rust-cache@v2
162164

@@ -221,7 +223,7 @@ jobs:
221223
# There don't seem to be versioned releases of this action per se: for each rust
222224
# version there is a branch which gets constantly rebased on top of master.
223225
# We pin to a specific commit for paranoia's sake.
224-
uses: dtolnay/rust-toolchain@9cd00a88a73addc8617065438eff914dd08d0955
226+
uses: dtolnay/rust-toolchain@e12eda571dc9a5ee5d58eecf4738ec291c66f295
225227
with:
226228
toolchain: 1.58.1
227229
- uses: Swatinem/rust-cache@v2
@@ -266,7 +268,7 @@ jobs:
266268
# There don't seem to be versioned releases of this action per se: for each rust
267269
# version there is a branch which gets constantly rebased on top of master.
268270
# We pin to a specific commit for paranoia's sake.
269-
uses: dtolnay/rust-toolchain@9cd00a88a73addc8617065438eff914dd08d0955
271+
uses: dtolnay/rust-toolchain@e12eda571dc9a5ee5d58eecf4738ec291c66f295
270272
with:
271273
toolchain: 1.58.1
272274
- uses: Swatinem/rust-cache@v2
@@ -368,6 +370,7 @@ jobs:
368370
SYTEST_BRANCH: ${{ github.head_ref }}
369371
POSTGRES: ${{ matrix.job.postgres && 1}}
370372
MULTI_POSTGRES: ${{ (matrix.job.postgres == 'multi-postgres') && 1}}
373+
ASYNCIO_REACTOR: ${{ (matrix.job.reactor == 'asyncio') && 1 }}
371374
WORKERS: ${{ matrix.job.workers && 1 }}
372375
BLACKLIST: ${{ matrix.job.workers && 'synapse-blacklist-with-workers' }}
373376
TOP: ${{ github.workspace }}
@@ -386,7 +389,7 @@ jobs:
386389
# There don't seem to be versioned releases of this action per se: for each rust
387390
# version there is a branch which gets constantly rebased on top of master.
388391
# We pin to a specific commit for paranoia's sake.
389-
uses: dtolnay/rust-toolchain@9cd00a88a73addc8617065438eff914dd08d0955
392+
uses: dtolnay/rust-toolchain@e12eda571dc9a5ee5d58eecf4738ec291c66f295
390393
with:
391394
toolchain: 1.58.1
392395
- uses: Swatinem/rust-cache@v2
@@ -531,7 +534,7 @@ jobs:
531534
# There don't seem to be versioned releases of this action per se: for each rust
532535
# version there is a branch which gets constantly rebased on top of master.
533536
# We pin to a specific commit for paranoia's sake.
534-
uses: dtolnay/rust-toolchain@9cd00a88a73addc8617065438eff914dd08d0955
537+
uses: dtolnay/rust-toolchain@e12eda571dc9a5ee5d58eecf4738ec291c66f295
535538
with:
536539
toolchain: 1.58.1
537540
- uses: Swatinem/rust-cache@v2
@@ -562,7 +565,7 @@ jobs:
562565
# There don't seem to be versioned releases of this action per se: for each rust
563566
# version there is a branch which gets constantly rebased on top of master.
564567
# We pin to a specific commit for paranoia's sake.
565-
uses: dtolnay/rust-toolchain@9cd00a88a73addc8617065438eff914dd08d0955
568+
uses: dtolnay/rust-toolchain@e12eda571dc9a5ee5d58eecf4738ec291c66f295
566569
with:
567570
toolchain: 1.58.1
568571
- uses: Swatinem/rust-cache@v2
@@ -585,7 +588,7 @@ jobs:
585588
# There don't seem to be versioned releases of this action per se: for each rust
586589
# version there is a branch which gets constantly rebased on top of master.
587590
# We pin to a specific commit for paranoia's sake.
588-
uses: dtolnay/rust-toolchain@9cd00a88a73addc8617065438eff914dd08d0955
591+
uses: dtolnay/rust-toolchain@e12eda571dc9a5ee5d58eecf4738ec291c66f295
589592
with:
590593
toolchain: nightly-2022-12-01
591594
- uses: Swatinem/rust-cache@v2

.github/workflows/triage-incoming.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
triage:
9-
uses: matrix-org/backend-meta/.github/workflows/triage-incoming.yml@v1
9+
uses: matrix-org/backend-meta/.github/workflows/triage-incoming.yml@v2
1010
with:
1111
project_id: 'PVT_kwDOAIB0Bs4AFDdZ'
1212
content_id: ${{ github.event.issue.node_id }}

.github/workflows/twisted_trunk.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- uses: actions/checkout@v3
1919

2020
- name: Install Rust
21-
uses: dtolnay/rust-toolchain@9cd00a88a73addc8617065438eff914dd08d0955
21+
uses: dtolnay/rust-toolchain@e12eda571dc9a5ee5d58eecf4738ec291c66f295
2222
with:
2323
toolchain: stable
2424
- uses: Swatinem/rust-cache@v2
@@ -43,7 +43,7 @@ jobs:
4343
- run: sudo apt-get -qq install xmlsec1
4444

4545
- name: Install Rust
46-
uses: dtolnay/rust-toolchain@9cd00a88a73addc8617065438eff914dd08d0955
46+
uses: dtolnay/rust-toolchain@e12eda571dc9a5ee5d58eecf4738ec291c66f295
4747
with:
4848
toolchain: stable
4949
- uses: Swatinem/rust-cache@v2
@@ -82,7 +82,7 @@ jobs:
8282
- uses: actions/checkout@v3
8383

8484
- name: Install Rust
85-
uses: dtolnay/rust-toolchain@9cd00a88a73addc8617065438eff914dd08d0955
85+
uses: dtolnay/rust-toolchain@e12eda571dc9a5ee5d58eecf4738ec291c66f295
8686
with:
8787
toolchain: stable
8888
- uses: Swatinem/rust-cache@v2

0 commit comments

Comments
 (0)