Skip to content

Commit 9838413

Browse files
Famedly release v1.135.0_1 (#81)
2 parents 691f7a2 + 2b435a9 commit 9838413

File tree

246 files changed

+10069
-3227
lines changed

Some content is hidden

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

246 files changed

+10069
-3227
lines changed

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ jobs:
120120
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
121121

122122
- name: Install Cosign
123-
uses: sigstore/cosign-installer@398d4b0eeef1380460a10c8013a76f728fb906ac # v3.9.1
123+
uses: sigstore/cosign-installer@d58896d6a1865668819e1d91763c7751a165e159 # v3.9.2
124124

125125
- name: Calculate docker image tag
126126
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0

.github/workflows/latest_deps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
- run: poetry run pip list > before.txt
6161
# Upgrade all runtime dependencies only. This is intended to mimic a fresh
6262
# `pip install matrix-synapse[all]` as closely as possible.
63-
- run: poetry update --no-dev
63+
- run: poetry update --without dev
6464
- run: poetry run pip list > after.txt && (diff -u before.txt after.txt || true)
6565
- name: Remove unhelpful options from mypy config
6666
run: sed -e '/warn_unused_ignores = True/d' -e '/warn_redundant_casts = True/d' -i mypy.ini

.github/workflows/tests.yml

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,43 @@ jobs:
263263

264264
- run: cargo clippy --all-features -- -D warnings
265265

266+
lint-rust:
267+
runs-on: ubuntu-latest
268+
needs: changes
269+
if: ${{ needs.changes.outputs.rust == 'true' }}
270+
271+
steps:
272+
- name: Checkout repository
273+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
274+
275+
- name: Install Rust
276+
uses: dtolnay/rust-toolchain@b3b07ba8b418998c39fb20f53e8b695cdcc8de1b # master
277+
with:
278+
toolchain: ${{ env.RUST_VERSION }}
279+
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
280+
281+
- name: Setup Poetry
282+
uses: matrix-org/setup-python-poetry@5bbf6603c5c930615ec8a29f1b5d7d258d905aa4 # v2.0.0
283+
with:
284+
# Install like a normal project from source with all optional dependencies
285+
extras: all
286+
install-project: "true"
287+
poetry-version: "2.1.1"
288+
289+
- name: Ensure `Cargo.lock` is up to date (no stray changes after install)
290+
# The `::error::` syntax is using GitHub Actions' error annotations, see
291+
# https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions
292+
run: |
293+
if git diff --quiet Cargo.lock; then
294+
echo "Cargo.lock is up to date"
295+
else
296+
echo "::error::Cargo.lock has uncommitted changes after install. Please run 'poetry install --extras all' and commit the Cargo.lock changes."
297+
git diff --exit-code Cargo.lock
298+
exit 1
299+
fi
300+
301+
# This job is split from `lint-rust` because it requires a nightly Rust toolchain
302+
# for some of the unstable options we use in `.rustfmt.toml`.
266303
lint-rustfmt:
267304
runs-on: ubuntu-latest
268305
needs: changes
@@ -274,7 +311,8 @@ jobs:
274311
- name: Install Rust
275312
uses: dtolnay/rust-toolchain@b3b07ba8b418998c39fb20f53e8b695cdcc8de1b # master
276313
with:
277-
# We use nightly so that it correctly groups together imports
314+
# We use nightly so that we can use some unstable options that we use in
315+
# `.rustfmt.toml`.
278316
toolchain: nightly-2025-04-23
279317
components: rustfmt
280318
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
@@ -309,6 +347,7 @@ jobs:
309347
- check-lockfile
310348
- lint-clippy
311349
- lint-clippy-nightly
350+
- lint-rust
312351
- lint-rustfmt
313352
- lint-readme
314353
runs-on: ubuntu-latest
@@ -327,6 +366,7 @@ jobs:
327366
lint-pydantic
328367
lint-clippy
329368
lint-clippy-nightly
369+
lint-rust
330370
lint-rustfmt
331371
lint-readme
332372

.rustfmt.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1+
# Unstable options are only available on a nightly toolchain and must be opted into
2+
unstable_features = true
3+
4+
# `group_imports` is an unstable option that requires nightly Rust toolchain. Tracked by
5+
# https://github.com/rust-lang/rustfmt/issues/5083
16
group_imports = "StdExternalCrate"

CHANGES.md

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,87 @@
1+
# Synapse 1.135.0 (2025-08-01)
2+
3+
No significant changes since 1.135.0rc2.
4+
5+
6+
7+
8+
# Synapse 1.135.0rc2 (2025-07-30)
9+
10+
### Bugfixes
11+
12+
- Fix user failing to deactivate with MAS when `/_synapse/mas` is handled by a worker. ([\#18716](https://github.com/element-hq/synapse/issues/18716))
13+
14+
### Internal Changes
15+
16+
- Fix performance regression introduced in [#18238](https://github.com/element-hq/synapse/issues/18238) by adding a cache to `is_server_admin`. ([\#18747](https://github.com/element-hq/synapse/issues/18747))
17+
18+
19+
20+
21+
# Synapse 1.135.0rc1 (2025-07-22)
22+
23+
### Features
24+
25+
- Add `recaptcha_private_key_path` and `recaptcha_public_key_path` config option. ([\#17984](https://github.com/element-hq/synapse/issues/17984), [\#18684](https://github.com/element-hq/synapse/issues/18684))
26+
- Add plain-text handling for rich-text topics as per [MSC3765](https://github.com/matrix-org/matrix-spec-proposals/pull/3765). ([\#18195](https://github.com/element-hq/synapse/issues/18195))
27+
- If enabled by the user, server admins will see [soft failed](https://spec.matrix.org/v1.13/server-server-api/#soft-failure) events over the Client-Server API. ([\#18238](https://github.com/element-hq/synapse/issues/18238))
28+
- Add experimental support for [MSC4277: Harmonizing the reporting endpoints](https://github.com/matrix-org/matrix-spec-proposals/pull/4277). ([\#18263](https://github.com/element-hq/synapse/issues/18263))
29+
- Add ability to limit amount of media uploaded by a user in a given time period. ([\#18527](https://github.com/element-hq/synapse/issues/18527))
30+
- Enable workers to write directly to the device lists stream and handle device list updates, reducing load on the main process. ([\#18581](https://github.com/element-hq/synapse/issues/18581))
31+
- Support arbitrary profile fields. Contributed by @clokep. ([\#18635](https://github.com/element-hq/synapse/issues/18635))
32+
- Advertise support for Matrix v1.12. ([\#18647](https://github.com/element-hq/synapse/issues/18647))
33+
- Add an option to issue redactions as an admin user via the [admin redaction endpoint](https://element-hq.github.io/synapse/latest/admin_api/user_admin_api.html#redact-all-the-events-of-a-user). ([\#18671](https://github.com/element-hq/synapse/issues/18671))
34+
- Add experimental and incomplete support for [MSC4306: Thread Subscriptions](https://github.com/matrix-org/matrix-spec-proposals/blob/rei/msc_thread_subscriptions/proposals/4306-thread-subscriptions.md). ([\#18674](https://github.com/element-hq/synapse/issues/18674))
35+
- Include `event_id` when getting state with `?format=event`. Contributed by @tulir @ Beeper. ([\#18675](https://github.com/element-hq/synapse/issues/18675))
36+
37+
### Bugfixes
38+
39+
- Fix CPU and database spinning when retrying sending events to servers whilst at the same time purging those events. ([\#18499](https://github.com/element-hq/synapse/issues/18499))
40+
- Don't allow creation of tags with names longer than 255 bytes, [as per the spec](https://spec.matrix.org/v1.15/client-server-api/#events-14). ([\#18660](https://github.com/element-hq/synapse/issues/18660))
41+
- Fix `sliding_sync_connections`-related errors when porting from SQLite to Postgres. ([\#18677](https://github.com/element-hq/synapse/issues/18677))
42+
- Fix the MAS integration not working when Synapse is started with `--daemonize` or using `synctl`. ([\#18691](https://github.com/element-hq/synapse/issues/18691))
43+
44+
### Improved Documentation
45+
46+
- Document that some config options for the user directory are in violation of the Matrix spec. ([\#18548](https://github.com/element-hq/synapse/issues/18548))
47+
- Update `rc_delayed_event_mgmt` docs to the actual nesting level. Contributed by @HarHarLinks. ([\#18692](https://github.com/element-hq/synapse/issues/18692))
48+
49+
### Internal Changes
50+
51+
- Add a dedicated internal API for Matrix Authentication Service to Synapse communication. ([\#18520](https://github.com/element-hq/synapse/issues/18520))
52+
- Allow user registrations to be done on workers. ([\#18552](https://github.com/element-hq/synapse/issues/18552))
53+
- Remove unnecessary HTTP replication calls. ([\#18564](https://github.com/element-hq/synapse/issues/18564))
54+
- Refactor `Measure` block metrics to be homeserver-scoped. ([\#18601](https://github.com/element-hq/synapse/issues/18601))
55+
- Refactor cache metrics to be homeserver-scoped. ([\#18604](https://github.com/element-hq/synapse/issues/18604))
56+
- Unbreak "Latest dependencies" workflow by using the `--without dev` poetry option instead of removed `--no-dev`. ([\#18617](https://github.com/element-hq/synapse/issues/18617))
57+
- Update URL Preview code to work with `lxml` 6.0.0+. ([\#18622](https://github.com/element-hq/synapse/issues/18622))
58+
- Use `markdown-it-py` instead of `commonmark` in the release script. ([\#18637](https://github.com/element-hq/synapse/issues/18637))
59+
- Fix typing errors with upgraded mypy version. ([\#18653](https://github.com/element-hq/synapse/issues/18653))
60+
- Add doc comment explaining that config files are shallowly merged. ([\#18664](https://github.com/element-hq/synapse/issues/18664))
61+
- Minor speed up of insertion into `stream_positions` table. ([\#18672](https://github.com/element-hq/synapse/issues/18672))
62+
- Remove unused `allow_no_prev_events` option when creating an event. ([\#18676](https://github.com/element-hq/synapse/issues/18676))
63+
- Clean up `MetricsResource` and Prometheus hacks. ([\#18687](https://github.com/element-hq/synapse/issues/18687))
64+
- Fix dirty `Cargo.lock` changes appearing after install (`base64`). ([\#18689](https://github.com/element-hq/synapse/issues/18689))
65+
- Prevent dirty `Cargo.lock` changes from install. ([\#18693](https://github.com/element-hq/synapse/issues/18693))
66+
- Correct spelling of 'Admin token used' log line. ([\#18697](https://github.com/element-hq/synapse/issues/18697))
67+
- Reduce log spam when client stops downloading media while it is being streamed to them. ([\#18699](https://github.com/element-hq/synapse/issues/18699))
68+
69+
70+
71+
### Updates to locked dependencies
72+
73+
* Bump authlib from 1.6.0 to 1.6.1. ([\#18704](https://github.com/element-hq/synapse/issues/18704))
74+
* Bump base64 from 0.21.7 to 0.22.1. ([\#18666](https://github.com/element-hq/synapse/issues/18666))
75+
* Bump jsonschema from 4.24.0 to 4.25.0. ([\#18707](https://github.com/element-hq/synapse/issues/18707))
76+
* Bump lxml from 5.4.0 to 6.0.0. ([\#18631](https://github.com/element-hq/synapse/issues/18631))
77+
* Bump mypy from 1.13.0 to 1.16.1. ([\#18653](https://github.com/element-hq/synapse/issues/18653))
78+
* Bump once_cell from 1.19.0 to 1.21.3. ([\#18710](https://github.com/element-hq/synapse/issues/18710))
79+
* Bump phonenumbers from 9.0.8 to 9.0.9. ([\#18681](https://github.com/element-hq/synapse/issues/18681))
80+
* Bump ruff from 0.12.2 to 0.12.5. ([\#18683](https://github.com/element-hq/synapse/issues/18683), [\#18705](https://github.com/element-hq/synapse/issues/18705))
81+
* Bump serde_json from 1.0.140 to 1.0.141. ([\#18709](https://github.com/element-hq/synapse/issues/18709))
82+
* Bump sigstore/cosign-installer from 3.9.1 to 3.9.2. ([\#18708](https://github.com/element-hq/synapse/issues/18708))
83+
* Bump types-jsonschema from 4.24.0.20250528 to 4.24.0.20250708. ([\#18682](https://github.com/element-hq/synapse/issues/18682))
84+
185
# Synapse 1.134.0 (2025-07-15)
286

387
No significant changes since 1.134.0rc1.

Cargo.lock

Lines changed: 9 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

debian/changelog

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
matrix-synapse-py3 (1.135.0) stable; urgency=medium
2+
3+
* New Synapse release 1.135.0.
4+
5+
-- Synapse Packaging team <[email protected]> Fri, 01 Aug 2025 13:12:28 +0100
6+
7+
matrix-synapse-py3 (1.135.0~rc2) stable; urgency=medium
8+
9+
* New Synapse release 1.135.0rc2.
10+
11+
-- Synapse Packaging team <[email protected]> Wed, 30 Jul 2025 12:19:14 +0100
12+
13+
matrix-synapse-py3 (1.135.0~rc1) stable; urgency=medium
14+
15+
* New Synapse release 1.135.0rc1.
16+
17+
-- Synapse Packaging team <[email protected]> Tue, 22 Jul 2025 12:08:37 +0100
18+
119
matrix-synapse-py3 (1.134.0) stable; urgency=medium
220

321
* New Synapse release 1.134.0.

docker/complement/conf/start_for_complement.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ if [[ -n "$SYNAPSE_COMPLEMENT_USE_WORKERS" ]]; then
5454
export SYNAPSE_WORKER_TYPES="\
5555
event_persister:2, \
5656
background_worker, \
57-
frontend_proxy, \
5857
event_creator, \
5958
user_dir, \
6059
media_repository, \
@@ -65,6 +64,7 @@ if [[ -n "$SYNAPSE_COMPLEMENT_USE_WORKERS" ]]; then
6564
client_reader, \
6665
appservice, \
6766
pusher, \
67+
device_lists:2, \
6868
stream_writers=account_data+presence+receipts+to_device+typing"
6969

7070
fi

0 commit comments

Comments
 (0)