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

Commit 3680642

Browse files
committed
Merge branch 'develop' into shay/finish_batching
2 parents 6165768 + 345576b commit 3680642

File tree

123 files changed

+1403
-649
lines changed

Some content is hidden

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

123 files changed

+1403
-649
lines changed

CHANGES.md

Lines changed: 87 additions & 0 deletions

changelog.d/14111.feature

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14629.feature

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14667.doc

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14747.feature

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14749.misc

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14773.doc

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14775.feature

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14787.feature

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14799.bugfix

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14803.doc

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14804.misc

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14807.misc

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14811.feature

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14812.bugfix

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14818.doc

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14819.misc

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14820.bugfix

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14821.misc

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14822.misc

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14824.doc

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14825.misc

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14826.misc

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14832.misc

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14833.misc

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14839.feature

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14841.misc

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14842.bugfix

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14843.misc

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14845.doc

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14848.misc

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14855.misc

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14856.misc

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14860.removal

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14861.misc

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14862.misc

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14863.misc

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14864.bugfix

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14866.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix a bug introduced in Synapse 1.53.0 where `next_batch` tokens from `/sync` could not be used with the `/relations` endpoint.

changelog.d/14868.doc

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog.d/14880.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix a bug when using the `send_local_online_presence_to` module API.

changelog.d/14886.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add missing type hints.

changelog.d/14887.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add missing type hints.
File renamed without changes.

changelog.d/14916.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Document how to handle Dependabot pull requests.

changelog.d/14920.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix typo in release script.

changelog.d/14922.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Use `StrCollection` to avoid potential bugs with `Collection[str]`.

debian/changelog

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
matrix-synapse-py3 (1.75.1) UNRELEASED; urgency=medium
1+
matrix-synapse-py3 (1.76.0~rc1) stable; urgency=medium
22

33
* Use Poetry 1.3.2 to manage the bundled virtualenv included with this package.
4+
* New Synapse release 1.76.0rc1.
45

5-
-- Synapse Packaging team <[email protected]> Tue, 17 Jan 2023 15:08:00 +0000
6+
-- Synapse Packaging team <[email protected]> Wed, 25 Jan 2023 16:21:16 +0000
67

78
matrix-synapse-py3 (1.75.0) stable; urgency=medium
89

docker/Dockerfile

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# `poetry export | pip install -r /dev/stdin`, but beware: we have experienced bugs in
2121
# in `poetry export` in the past.
2222

23-
ARG PYTHON_VERSION=3.9
23+
ARG PYTHON_VERSION=3.11
2424

2525
###
2626
### Stage 0: generate requirements.txt
@@ -34,11 +34,11 @@ FROM docker.io/python:${PYTHON_VERSION}-slim-bullseye as requirements
3434
# Here we use it to set up a cache for apt (and below for pip), to improve
3535
# rebuild speeds on slow connections.
3636
RUN \
37-
--mount=type=cache,target=/var/cache/apt,sharing=locked \
38-
--mount=type=cache,target=/var/lib/apt,sharing=locked \
39-
apt-get update -qq && apt-get install -yqq \
40-
build-essential git libffi-dev libssl-dev \
41-
&& rm -rf /var/lib/apt/lists/*
37+
--mount=type=cache,target=/var/cache/apt,sharing=locked \
38+
--mount=type=cache,target=/var/lib/apt,sharing=locked \
39+
apt-get update -qq && apt-get install -yqq \
40+
build-essential git libffi-dev libssl-dev \
41+
&& rm -rf /var/lib/apt/lists/*
4242

4343
# We install poetry in its own build stage to avoid its dependencies conflicting with
4444
# synapse's dependencies.
@@ -64,9 +64,9 @@ ARG TEST_ONLY_IGNORE_POETRY_LOCKFILE
6464
# Otherwise, just create an empty requirements file so that the Dockerfile can
6565
# proceed.
6666
RUN if [ -z "$TEST_ONLY_IGNORE_POETRY_LOCKFILE" ]; then \
67-
/root/.local/bin/poetry export --extras all -o /synapse/requirements.txt ${TEST_ONLY_SKIP_DEP_HASH_VERIFICATION:+--without-hashes}; \
67+
/root/.local/bin/poetry export --extras all -o /synapse/requirements.txt ${TEST_ONLY_SKIP_DEP_HASH_VERIFICATION:+--without-hashes}; \
6868
else \
69-
touch /synapse/requirements.txt; \
69+
touch /synapse/requirements.txt; \
7070
fi
7171

7272
###
@@ -76,24 +76,24 @@ FROM docker.io/python:${PYTHON_VERSION}-slim-bullseye as builder
7676

7777
# install the OS build deps
7878
RUN \
79-
--mount=type=cache,target=/var/cache/apt,sharing=locked \
80-
--mount=type=cache,target=/var/lib/apt,sharing=locked \
81-
apt-get update -qq && apt-get install -yqq \
82-
build-essential \
83-
libffi-dev \
84-
libjpeg-dev \
85-
libpq-dev \
86-
libssl-dev \
87-
libwebp-dev \
88-
libxml++2.6-dev \
89-
libxslt1-dev \
90-
openssl \
91-
zlib1g-dev \
92-
git \
93-
curl \
94-
libicu-dev \
95-
pkg-config \
96-
&& rm -rf /var/lib/apt/lists/*
79+
--mount=type=cache,target=/var/cache/apt,sharing=locked \
80+
--mount=type=cache,target=/var/lib/apt,sharing=locked \
81+
apt-get update -qq && apt-get install -yqq \
82+
build-essential \
83+
libffi-dev \
84+
libjpeg-dev \
85+
libpq-dev \
86+
libssl-dev \
87+
libwebp-dev \
88+
libxml++2.6-dev \
89+
libxslt1-dev \
90+
openssl \
91+
zlib1g-dev \
92+
git \
93+
curl \
94+
libicu-dev \
95+
pkg-config \
96+
&& rm -rf /var/lib/apt/lists/*
9797

9898

9999
# Install rust and ensure its in the PATH
@@ -134,9 +134,9 @@ ARG TEST_ONLY_IGNORE_POETRY_LOCKFILE
134134
RUN --mount=type=cache,target=/synapse/target,sharing=locked \
135135
--mount=type=cache,target=${CARGO_HOME}/registry,sharing=locked \
136136
if [ -z "$TEST_ONLY_IGNORE_POETRY_LOCKFILE" ]; then \
137-
pip install --prefix="/install" --no-deps --no-warn-script-location /synapse[all]; \
137+
pip install --prefix="/install" --no-deps --no-warn-script-location /synapse[all]; \
138138
else \
139-
pip install --prefix="/install" --no-warn-script-location /synapse[all]; \
139+
pip install --prefix="/install" --no-warn-script-location /synapse[all]; \
140140
fi
141141

142142
###
@@ -151,20 +151,20 @@ LABEL org.opencontainers.image.source='https://github.com/matrix-org/synapse.git
151151
LABEL org.opencontainers.image.licenses='Apache-2.0'
152152

153153
RUN \
154-
--mount=type=cache,target=/var/cache/apt,sharing=locked \
155-
--mount=type=cache,target=/var/lib/apt,sharing=locked \
154+
--mount=type=cache,target=/var/cache/apt,sharing=locked \
155+
--mount=type=cache,target=/var/lib/apt,sharing=locked \
156156
apt-get update -qq && apt-get install -yqq \
157-
curl \
158-
gosu \
159-
libjpeg62-turbo \
160-
libpq5 \
161-
libwebp6 \
162-
xmlsec1 \
163-
libjemalloc2 \
164-
libicu67 \
165-
libssl-dev \
166-
openssl \
167-
&& rm -rf /var/lib/apt/lists/*
157+
curl \
158+
gosu \
159+
libjpeg62-turbo \
160+
libpq5 \
161+
libwebp6 \
162+
xmlsec1 \
163+
libjemalloc2 \
164+
libicu67 \
165+
libssl-dev \
166+
openssl \
167+
&& rm -rf /var/lib/apt/lists/*
168168

169169
COPY --from=builder /install /usr/local
170170
COPY ./docker/start.py /start.py
@@ -175,4 +175,4 @@ EXPOSE 8008/tcp 8009/tcp 8448/tcp
175175
ENTRYPOINT ["/start.py"]
176176

177177
HEALTHCHECK --start-period=5s --interval=15s --timeout=5s \
178-
CMD curl -fSs http://localhost:8008/health || exit 1
178+
CMD curl -fSs http://localhost:8008/health || exit 1

docker/complement/conf/workers-shared-extra.yaml.j2

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,8 @@ allow_device_name_lookup_over_federation: true
9494
experimental_features:
9595
# Enable history backfilling support
9696
msc2716_enabled: true
97-
{% if not workers_in_use %}
9897
# client-side support for partial state in /send_join responses
9998
faster_joins: true
100-
{% endif %}
10199
# Enable support for polls
102100
msc3381_polls_enabled: true
103101
# Enable deleting device-specific notification settings stored in account data

docs/development/dependencies.md

Lines changed: 14 additions & 0 deletions

0 commit comments

Comments
 (0)