Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 575ec06

Browse files
committedOct 22, 2018
Merge tag 'v0.33.7' into dinsic
**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))
2 parents 4ff8486 + 926da4d commit 575ec06

File tree

351 files changed

+25176
-11214
lines changed

Some content is hidden

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

351 files changed

+25176
-11214
lines changed
 

‎.circleci/config.yml

+165
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
version: 2
2+
jobs:
3+
dockerhubuploadrelease:
4+
machine: true
5+
steps:
6+
- checkout
7+
- run: docker build -f docker/Dockerfile -t matrixdotorg/synapse:${CIRCLE_TAG} .
8+
- run: docker build -f docker/Dockerfile -t matrixdotorg/synapse:${CIRCLE_TAG}-py3 --build-arg PYTHON_VERSION=3.6 .
9+
- run: docker login --username $DOCKER_HUB_USERNAME --password $DOCKER_HUB_PASSWORD
10+
- run: docker push matrixdotorg/synapse:${CIRCLE_TAG}
11+
- run: docker push matrixdotorg/synapse:${CIRCLE_TAG}-py3
12+
dockerhubuploadlatest:
13+
machine: true
14+
steps:
15+
- checkout
16+
- run: docker build -f docker/Dockerfile -t matrixdotorg/synapse:${CIRCLE_SHA1} .
17+
- run: docker build -f docker/Dockerfile -t matrixdotorg/synapse:${CIRCLE_SHA1}-py3 --build-arg PYTHON_VERSION=3.6 .
18+
- run: docker login --username $DOCKER_HUB_USERNAME --password $DOCKER_HUB_PASSWORD
19+
- run: docker tag matrixdotorg/synapse:${CIRCLE_SHA1} matrixdotorg/synapse:latest
20+
- run: docker tag matrixdotorg/synapse:${CIRCLE_SHA1}-py3 matrixdotorg/synapse:latest-py3
21+
- run: docker push matrixdotorg/synapse:${CIRCLE_SHA1}
22+
- run: docker push matrixdotorg/synapse:${CIRCLE_SHA1}-py3
23+
- run: docker push matrixdotorg/synapse:latest
24+
- run: docker push matrixdotorg/synapse:latest-py3
25+
sytestpy2:
26+
machine: true
27+
steps:
28+
- checkout
29+
- run: docker pull matrixdotorg/sytest-synapsepy2
30+
- run: docker run --rm -it -v $(pwd)\:/src -v $(pwd)/logs\:/logs matrixdotorg/sytest-synapsepy2
31+
- store_artifacts:
32+
path: ~/project/logs
33+
destination: logs
34+
- store_test_results:
35+
path: logs
36+
sytestpy2postgres:
37+
machine: true
38+
steps:
39+
- checkout
40+
- run: docker pull matrixdotorg/sytest-synapsepy2
41+
- run: docker run --rm -it -v $(pwd)\:/src -v $(pwd)/logs\:/logs -e POSTGRES=1 matrixdotorg/sytest-synapsepy2
42+
- store_artifacts:
43+
path: ~/project/logs
44+
destination: logs
45+
- store_test_results:
46+
path: logs
47+
sytestpy2merged:
48+
machine: true
49+
steps:
50+
- checkout
51+
- run: bash .circleci/merge_base_branch.sh
52+
- run: docker pull matrixdotorg/sytest-synapsepy2
53+
- run: docker run --rm -it -v $(pwd)\:/src -v $(pwd)/logs\:/logs matrixdotorg/sytest-synapsepy2
54+
- store_artifacts:
55+
path: ~/project/logs
56+
destination: logs
57+
- store_test_results:
58+
path: logs
59+
60+
sytestpy2postgresmerged:
61+
machine: true
62+
steps:
63+
- checkout
64+
- run: bash .circleci/merge_base_branch.sh
65+
- run: docker pull matrixdotorg/sytest-synapsepy2
66+
- run: docker run --rm -it -v $(pwd)\:/src -v $(pwd)/logs\:/logs -e POSTGRES=1 matrixdotorg/sytest-synapsepy2
67+
- store_artifacts:
68+
path: ~/project/logs
69+
destination: logs
70+
- store_test_results:
71+
path: logs
72+
73+
sytestpy3:
74+
machine: true
75+
steps:
76+
- checkout
77+
- run: docker pull matrixdotorg/sytest-synapsepy3
78+
- run: docker run --rm -it -v $(pwd)\:/src -v $(pwd)/logs\:/logs matrixdotorg/sytest-synapsepy3
79+
- store_artifacts:
80+
path: ~/project/logs
81+
destination: logs
82+
- store_test_results:
83+
path: logs
84+
sytestpy3postgres:
85+
machine: true
86+
steps:
87+
- checkout
88+
- run: docker pull matrixdotorg/sytest-synapsepy3
89+
- run: docker run --rm -it -v $(pwd)\:/src -v $(pwd)/logs\:/logs -e POSTGRES=1 matrixdotorg/sytest-synapsepy3
90+
- store_artifacts:
91+
path: ~/project/logs
92+
destination: logs
93+
- store_test_results:
94+
path: logs
95+
sytestpy3merged:
96+
machine: true
97+
steps:
98+
- checkout
99+
- run: bash .circleci/merge_base_branch.sh
100+
- run: docker pull matrixdotorg/sytest-synapsepy3
101+
- run: docker run --rm -it -v $(pwd)\:/src -v $(pwd)/logs\:/logs matrixdotorg/sytest-synapsepy3
102+
- store_artifacts:
103+
path: ~/project/logs
104+
destination: logs
105+
- store_test_results:
106+
path: logs
107+
sytestpy3postgresmerged:
108+
machine: true
109+
steps:
110+
- checkout
111+
- run: bash .circleci/merge_base_branch.sh
112+
- run: docker pull matrixdotorg/sytest-synapsepy3
113+
- run: docker run --rm -it -v $(pwd)\:/src -v $(pwd)/logs\:/logs -e POSTGRES=1 matrixdotorg/sytest-synapsepy3
114+
- store_artifacts:
115+
path: ~/project/logs
116+
destination: logs
117+
- store_test_results:
118+
path: logs
119+
120+
workflows:
121+
version: 2
122+
build:
123+
jobs:
124+
- sytestpy2:
125+
filters:
126+
branches:
127+
only: /develop|master|release-.*/
128+
- sytestpy2postgres:
129+
filters:
130+
branches:
131+
only: /develop|master|release-.*/
132+
- sytestpy3:
133+
filters:
134+
branches:
135+
only: /develop|master|release-.*/
136+
- sytestpy3postgres:
137+
filters:
138+
branches:
139+
only: /develop|master|release-.*/
140+
- sytestpy2merged:
141+
filters:
142+
branches:
143+
ignore: /develop|master|release-.*/
144+
- sytestpy2postgresmerged:
145+
filters:
146+
branches:
147+
ignore: /develop|master|release-.*/
148+
- sytestpy3merged:
149+
filters:
150+
branches:
151+
ignore: /develop|master|release-.*/
152+
- sytestpy3postgresmerged:
153+
filters:
154+
branches:
155+
ignore: /develop|master|release-.*/
156+
- dockerhubuploadrelease:
157+
filters:
158+
tags:
159+
only: /v[0-9].[0-9]+.[0-9]+.*/
160+
branches:
161+
ignore: /.*/
162+
- dockerhubuploadlatest:
163+
filters:
164+
branches:
165+
only: master

‎.circleci/merge_base_branch.sh

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
# CircleCI doesn't give CIRCLE_PR_NUMBER in the environment for non-forked PRs. Wonderful.
6+
# In this case, we just need to do some ~shell magic~ to strip it out of the PULL_REQUEST URL.
7+
echo 'export CIRCLE_PR_NUMBER="${CIRCLE_PR_NUMBER:-${CIRCLE_PULL_REQUEST##*/}}"' >> $BASH_ENV
8+
source $BASH_ENV
9+
10+
if [[ -z "${CIRCLE_PR_NUMBER}" ]]
11+
then
12+
echo "Can't figure out what the PR number is! Assuming merge target is develop."
13+
14+
# It probably hasn't had a PR opened yet. Since all PRs land on develop, we
15+
# can probably assume it's based on it and will be merged into it.
16+
GITBASE="develop"
17+
else
18+
# Get the reference, using the GitHub API
19+
GITBASE=`curl -q https://api.github.com/repos/matrix-org/synapse/pulls/${CIRCLE_PR_NUMBER} | jq -r '.base.ref'`
20+
fi
21+
22+
# Show what we are before
23+
git show -s
24+
25+
# Set up username so it can do a merge
26+
git config --global user.email bot@matrix.org
27+
git config --global user.name "A robot"
28+
29+
# Fetch and merge. If it doesn't work, it will raise due to set -e.
30+
git fetch -u origin $GITBASE
31+
git merge --no-edit origin/$GITBASE
32+
33+
# Show what we are after.
34+
git show -s

0 commit comments

Comments
 (0)
This repository has been archived.