This repository was archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes
- Loading branch information
Showing
40 changed files
with
458 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add `--editable` flag to `complement.sh` which uses an editable install of Synapse for faster turn-around times whilst developing iteratively. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Prune user's old devices on login if they have too many. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Alter some unit test environment parameters to decrease time spent running tests. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Return spec-compliant JSON errors when unknown endpoints are requested. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fix html templates to load images only on HTTPS. Contributed by @ashfame. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Reject invalid read receipt requests with empty room or event IDs. Contributed by Nick @ Beeper (@fizzadar). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Remove useless cargo install with apt from Dockerfile. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fix a bug introduced in v1.67.0 where not specifying a config file or a server URL would lead to the `register_new_matrix_user` script failing. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fix a long-standing bug where the user directory and room/user stats might be out of sync. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fix a long-standing bug where the user directory and room/user stats might be out of sync. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Bump certifi from 2021.10.8 to 2022.12.7. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# syntax=docker/dockerfile:1 | ||
# This dockerfile builds an editable install of Synapse. | ||
# | ||
# Used by `complement.sh`. Not suitable for production use. | ||
|
||
ARG PYTHON_VERSION=3.9 | ||
|
||
### | ||
### Stage 0: generate requirements.txt | ||
### | ||
# We hardcode the use of Debian bullseye here because this could change upstream | ||
# and other Dockerfiles used for testing are expecting bullseye. | ||
FROM docker.io/python:${PYTHON_VERSION}-slim-bullseye | ||
|
||
# Install Rust and other dependencies (stolen from normal Dockerfile) | ||
# install the OS build deps | ||
RUN \ | ||
--mount=type=cache,target=/var/cache/apt,sharing=locked \ | ||
--mount=type=cache,target=/var/lib/apt,sharing=locked \ | ||
apt-get update -qq && apt-get install -yqq \ | ||
build-essential \ | ||
libffi-dev \ | ||
libjpeg-dev \ | ||
libpq-dev \ | ||
libssl-dev \ | ||
libwebp-dev \ | ||
libxml++2.6-dev \ | ||
libxslt1-dev \ | ||
openssl \ | ||
zlib1g-dev \ | ||
git \ | ||
curl \ | ||
gosu \ | ||
libjpeg62-turbo \ | ||
libpq5 \ | ||
libwebp6 \ | ||
xmlsec1 \ | ||
libjemalloc2 \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
ENV RUSTUP_HOME=/rust | ||
ENV CARGO_HOME=/cargo | ||
ENV PATH=/cargo/bin:/rust/bin:$PATH | ||
RUN mkdir /rust /cargo | ||
RUN curl -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --default-toolchain stable --profile minimal | ||
|
||
|
||
# Make a base copy of the editable source tree, so that we have something to | ||
# install and build now — even though it's going to be covered up by a mount | ||
# at runtime. | ||
COPY synapse /editable-src/synapse/ | ||
COPY rust /editable-src/rust/ | ||
# ... and what we need to `pip install`. | ||
COPY pyproject.toml poetry.lock README.rst build_rust.py Cargo.toml Cargo.lock /editable-src/ | ||
|
||
RUN pip install poetry | ||
RUN poetry config virtualenvs.create false | ||
RUN cd /editable-src && poetry install --extras all | ||
|
||
# Make copies of useful things for inspection: | ||
# - the Rust module (must be copied to the editable source tree before startup) | ||
# - poetry.lock is useful for checking if dependencies have changed. | ||
RUN cp /editable-src/synapse/synapse_rust.abi3.so /synapse_rust.abi3.so.bak | ||
RUN cp /editable-src/poetry.lock /poetry.lock.bak | ||
|
||
|
||
### Extra setup from original Dockerfile | ||
COPY ./docker/start.py /start.py | ||
COPY ./docker/conf /conf | ||
|
||
EXPOSE 8008/tcp 8009/tcp 8448/tcp | ||
|
||
ENTRYPOINT ["/start.py"] | ||
|
||
HEALTHCHECK --start-period=5s --interval=15s --timeout=5s \ | ||
CMD curl -fSs http://localhost:8008/health || exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.