This repository has been 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.
**Warning**: This release removes the example email notification templates from `res/templates` (they are now internal to the python package). This should only affect you if you (a) deploy your Synapse instance from a git checkout or a github snapshot URL, and (b) have email notifications enabled. If you have email notifications enabled, you should ensure that `email.template_dir` is either configured to point at a directory where you have installed customised templates, or leave it unset to use the default templates. The configuration parser will try to detect the situation where `email.template_dir` is incorrectly set to `res/templates` and do the right thing, but will warn about this. Features -------- - Ship the example email templates as part of the package ([\#4052](#4052)) - Add support for end-to-end key backup (MSC1687) ([\#4019](#4019)) Bugfixes -------- - Fix bug which made get_missing_events return too few events ([\#4045](#4045)) - Fix bug in event persistence logic which caused 'NoneType is not iterable' ([\#3995](#3995)) - Fix exception in background metrics collection ([\#3996](#3996)) - Fix exception handling in fetching remote profiles ([\#3997](#3997)) - Fix handling of rejected threepid invites ([\#3999](#3999)) - Workers now start on Python 3. ([\#4027](#4027)) - Synapse now starts on Python 3.7. ([\#4033](#4033)) Internal Changes ---------------- - Log exceptions in looping calls ([\#4008](#4008)) - Optimisation for serving federation requests ([\#4017](#4017)) - Add metric to count number of non-empty sync responses ([\#4022](#4022))
- Loading branch information
Showing
351 changed files
with
25,176 additions
and
11,214 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,165 @@ | ||
version: 2 | ||
jobs: | ||
dockerhubuploadrelease: | ||
machine: true | ||
steps: | ||
- checkout | ||
- run: docker build -f docker/Dockerfile -t matrixdotorg/synapse:${CIRCLE_TAG} . | ||
- run: docker build -f docker/Dockerfile -t matrixdotorg/synapse:${CIRCLE_TAG}-py3 --build-arg PYTHON_VERSION=3.6 . | ||
- run: docker login --username $DOCKER_HUB_USERNAME --password $DOCKER_HUB_PASSWORD | ||
- run: docker push matrixdotorg/synapse:${CIRCLE_TAG} | ||
- run: docker push matrixdotorg/synapse:${CIRCLE_TAG}-py3 | ||
dockerhubuploadlatest: | ||
machine: true | ||
steps: | ||
- checkout | ||
- run: docker build -f docker/Dockerfile -t matrixdotorg/synapse:${CIRCLE_SHA1} . | ||
- run: docker build -f docker/Dockerfile -t matrixdotorg/synapse:${CIRCLE_SHA1}-py3 --build-arg PYTHON_VERSION=3.6 . | ||
- run: docker login --username $DOCKER_HUB_USERNAME --password $DOCKER_HUB_PASSWORD | ||
- run: docker tag matrixdotorg/synapse:${CIRCLE_SHA1} matrixdotorg/synapse:latest | ||
- run: docker tag matrixdotorg/synapse:${CIRCLE_SHA1}-py3 matrixdotorg/synapse:latest-py3 | ||
- run: docker push matrixdotorg/synapse:${CIRCLE_SHA1} | ||
- run: docker push matrixdotorg/synapse:${CIRCLE_SHA1}-py3 | ||
- run: docker push matrixdotorg/synapse:latest | ||
- run: docker push matrixdotorg/synapse:latest-py3 | ||
sytestpy2: | ||
machine: true | ||
steps: | ||
- checkout | ||
- run: docker pull matrixdotorg/sytest-synapsepy2 | ||
- run: docker run --rm -it -v $(pwd)\:/src -v $(pwd)/logs\:/logs matrixdotorg/sytest-synapsepy2 | ||
- store_artifacts: | ||
path: ~/project/logs | ||
destination: logs | ||
- store_test_results: | ||
path: logs | ||
sytestpy2postgres: | ||
machine: true | ||
steps: | ||
- checkout | ||
- run: docker pull matrixdotorg/sytest-synapsepy2 | ||
- run: docker run --rm -it -v $(pwd)\:/src -v $(pwd)/logs\:/logs -e POSTGRES=1 matrixdotorg/sytest-synapsepy2 | ||
- store_artifacts: | ||
path: ~/project/logs | ||
destination: logs | ||
- store_test_results: | ||
path: logs | ||
sytestpy2merged: | ||
machine: true | ||
steps: | ||
- checkout | ||
- run: bash .circleci/merge_base_branch.sh | ||
- run: docker pull matrixdotorg/sytest-synapsepy2 | ||
- run: docker run --rm -it -v $(pwd)\:/src -v $(pwd)/logs\:/logs matrixdotorg/sytest-synapsepy2 | ||
- store_artifacts: | ||
path: ~/project/logs | ||
destination: logs | ||
- store_test_results: | ||
path: logs | ||
|
||
sytestpy2postgresmerged: | ||
machine: true | ||
steps: | ||
- checkout | ||
- run: bash .circleci/merge_base_branch.sh | ||
- run: docker pull matrixdotorg/sytest-synapsepy2 | ||
- run: docker run --rm -it -v $(pwd)\:/src -v $(pwd)/logs\:/logs -e POSTGRES=1 matrixdotorg/sytest-synapsepy2 | ||
- store_artifacts: | ||
path: ~/project/logs | ||
destination: logs | ||
- store_test_results: | ||
path: logs | ||
|
||
sytestpy3: | ||
machine: true | ||
steps: | ||
- checkout | ||
- run: docker pull matrixdotorg/sytest-synapsepy3 | ||
- run: docker run --rm -it -v $(pwd)\:/src -v $(pwd)/logs\:/logs matrixdotorg/sytest-synapsepy3 | ||
- store_artifacts: | ||
path: ~/project/logs | ||
destination: logs | ||
- store_test_results: | ||
path: logs | ||
sytestpy3postgres: | ||
machine: true | ||
steps: | ||
- checkout | ||
- run: docker pull matrixdotorg/sytest-synapsepy3 | ||
- run: docker run --rm -it -v $(pwd)\:/src -v $(pwd)/logs\:/logs -e POSTGRES=1 matrixdotorg/sytest-synapsepy3 | ||
- store_artifacts: | ||
path: ~/project/logs | ||
destination: logs | ||
- store_test_results: | ||
path: logs | ||
sytestpy3merged: | ||
machine: true | ||
steps: | ||
- checkout | ||
- run: bash .circleci/merge_base_branch.sh | ||
- run: docker pull matrixdotorg/sytest-synapsepy3 | ||
- run: docker run --rm -it -v $(pwd)\:/src -v $(pwd)/logs\:/logs matrixdotorg/sytest-synapsepy3 | ||
- store_artifacts: | ||
path: ~/project/logs | ||
destination: logs | ||
- store_test_results: | ||
path: logs | ||
sytestpy3postgresmerged: | ||
machine: true | ||
steps: | ||
- checkout | ||
- run: bash .circleci/merge_base_branch.sh | ||
- run: docker pull matrixdotorg/sytest-synapsepy3 | ||
- run: docker run --rm -it -v $(pwd)\:/src -v $(pwd)/logs\:/logs -e POSTGRES=1 matrixdotorg/sytest-synapsepy3 | ||
- store_artifacts: | ||
path: ~/project/logs | ||
destination: logs | ||
- store_test_results: | ||
path: logs | ||
|
||
workflows: | ||
version: 2 | ||
build: | ||
jobs: | ||
- sytestpy2: | ||
filters: | ||
branches: | ||
only: /develop|master|release-.*/ | ||
- sytestpy2postgres: | ||
filters: | ||
branches: | ||
only: /develop|master|release-.*/ | ||
- sytestpy3: | ||
filters: | ||
branches: | ||
only: /develop|master|release-.*/ | ||
- sytestpy3postgres: | ||
filters: | ||
branches: | ||
only: /develop|master|release-.*/ | ||
- sytestpy2merged: | ||
filters: | ||
branches: | ||
ignore: /develop|master|release-.*/ | ||
- sytestpy2postgresmerged: | ||
filters: | ||
branches: | ||
ignore: /develop|master|release-.*/ | ||
- sytestpy3merged: | ||
filters: | ||
branches: | ||
ignore: /develop|master|release-.*/ | ||
- sytestpy3postgresmerged: | ||
filters: | ||
branches: | ||
ignore: /develop|master|release-.*/ | ||
- dockerhubuploadrelease: | ||
filters: | ||
tags: | ||
only: /v[0-9].[0-9]+.[0-9]+.*/ | ||
branches: | ||
ignore: /.*/ | ||
- dockerhubuploadlatest: | ||
filters: | ||
branches: | ||
only: master |
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,34 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
# CircleCI doesn't give CIRCLE_PR_NUMBER in the environment for non-forked PRs. Wonderful. | ||
# In this case, we just need to do some ~shell magic~ to strip it out of the PULL_REQUEST URL. | ||
echo 'export CIRCLE_PR_NUMBER="${CIRCLE_PR_NUMBER:-${CIRCLE_PULL_REQUEST##*/}}"' >> $BASH_ENV | ||
source $BASH_ENV | ||
|
||
if [[ -z "${CIRCLE_PR_NUMBER}" ]] | ||
then | ||
echo "Can't figure out what the PR number is! Assuming merge target is develop." | ||
|
||
# It probably hasn't had a PR opened yet. Since all PRs land on develop, we | ||
# can probably assume it's based on it and will be merged into it. | ||
GITBASE="develop" | ||
else | ||
# Get the reference, using the GitHub API | ||
GITBASE=`curl -q https://api.github.com/repos/matrix-org/synapse/pulls/${CIRCLE_PR_NUMBER} | jq -r '.base.ref'` | ||
fi | ||
|
||
# Show what we are before | ||
git show -s | ||
|
||
# Set up username so it can do a merge | ||
git config --global user.email [email protected] | ||
git config --global user.name "A robot" | ||
|
||
# Fetch and merge. If it doesn't work, it will raise due to set -e. | ||
git fetch -u origin $GITBASE | ||
git merge --no-edit origin/$GITBASE | ||
|
||
# Show what we are after. | ||
git show -s |
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 |
---|---|---|
|
@@ -3,3 +3,5 @@ Dockerfile | |
.gitignore | ||
demo/etc | ||
tox.ini | ||
.git/* | ||
.tox/* |
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
Oops, something went wrong.