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

Commit f61cdc1

Browse files
committed
Merge tag 'v1.2.0' into shhs
No changes since v1.2.0rc2.
2 parents 43cf234 + c0a1301 commit f61cdc1

File tree

111 files changed

+4042
-1284
lines changed

Some content is hidden

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

111 files changed

+4042
-1284
lines changed

.buildkite/pipeline.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ steps:
184184
image: "matrixdotorg/sytest-synapse:py35"
185185
propagate-environment: true
186186
always-pull: true
187+
workdir: "/src"
187188
retry:
188189
automatic:
189190
- exit_status: -1
@@ -204,6 +205,7 @@ steps:
204205
image: "matrixdotorg/sytest-synapse:py35"
205206
propagate-environment: true
206207
always-pull: true
208+
workdir: "/src"
207209
retry:
208210
automatic:
209211
- exit_status: -1
@@ -226,6 +228,7 @@ steps:
226228
image: "matrixdotorg/sytest-synapse:py35"
227229
propagate-environment: true
228230
always-pull: true
231+
workdir: "/src"
229232
soft_fail: true
230233
retry:
231234
automatic:

CHANGES.md

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,99 @@
1+
Synapse 1.2.0 (2019-07-25)
2+
==========================
3+
4+
No significant changes.
5+
6+
7+
Synapse 1.2.0rc2 (2019-07-24)
8+
=============================
9+
10+
Bugfixes
11+
--------
12+
13+
- Fix a regression introduced in v1.2.0rc1 which led to incorrect labels on some prometheus metrics. ([\#5734](https://github.com/matrix-org/synapse/issues/5734))
14+
15+
16+
Synapse 1.2.0rc1 (2019-07-22)
17+
=============================
18+
19+
Features
20+
--------
21+
22+
- Add support for opentracing. ([\#5544](https://github.com/matrix-org/synapse/issues/5544), [\#5712](https://github.com/matrix-org/synapse/issues/5712))
23+
- Add ability to pull all locally stored events out of synapse that a particular user can see. ([\#5589](https://github.com/matrix-org/synapse/issues/5589))
24+
- Add a basic admin command app to allow server operators to run Synapse admin commands separately from the main production instance. ([\#5597](https://github.com/matrix-org/synapse/issues/5597))
25+
- Add `sender` and `origin_server_ts` fields to `m.replace`. ([\#5613](https://github.com/matrix-org/synapse/issues/5613))
26+
- Add default push rule to ignore reactions. ([\#5623](https://github.com/matrix-org/synapse/issues/5623))
27+
- Include the original event when asking for its relations. ([\#5626](https://github.com/matrix-org/synapse/issues/5626))
28+
- Implement `session_lifetime` configuration option, after which access tokens will expire. ([\#5660](https://github.com/matrix-org/synapse/issues/5660))
29+
- Return "This account has been deactivated" when a deactivated user tries to login. ([\#5674](https://github.com/matrix-org/synapse/issues/5674))
30+
- Enable aggregations support by default ([\#5714](https://github.com/matrix-org/synapse/issues/5714))
31+
32+
33+
Bugfixes
34+
--------
35+
36+
- Fix 'utime went backwards' errors on daemonization. ([\#5609](https://github.com/matrix-org/synapse/issues/5609))
37+
- Various minor fixes to the federation request rate limiter. ([\#5621](https://github.com/matrix-org/synapse/issues/5621))
38+
- Forbid viewing relations on an event once it has been redacted. ([\#5629](https://github.com/matrix-org/synapse/issues/5629))
39+
- Fix requests to the `/store_invite` endpoint of identity servers being sent in the wrong format. ([\#5638](https://github.com/matrix-org/synapse/issues/5638))
40+
- Fix newly-registered users not being able to lookup their own profile without joining a room. ([\#5644](https://github.com/matrix-org/synapse/issues/5644))
41+
- Fix bug in #5626 that prevented the original_event field from actually having the contents of the original event in a call to `/relations`. ([\#5654](https://github.com/matrix-org/synapse/issues/5654))
42+
- Fix 3PID bind requests being sent to identity servers as `application/x-form-www-urlencoded` data, which is deprecated. ([\#5658](https://github.com/matrix-org/synapse/issues/5658))
43+
- Fix some problems with authenticating redactions in recent room versions. ([\#5699](https://github.com/matrix-org/synapse/issues/5699), [\#5700](https://github.com/matrix-org/synapse/issues/5700), [\#5707](https://github.com/matrix-org/synapse/issues/5707))
44+
- Ignore redactions of m.room.create events. ([\#5701](https://github.com/matrix-org/synapse/issues/5701))
45+
46+
47+
Updates to the Docker image
48+
---------------------------
49+
50+
- Base Docker image on a newer Alpine Linux version (3.8 -> 3.10). ([\#5619](https://github.com/matrix-org/synapse/issues/5619))
51+
- Add missing space in default logging file format generated by the Docker image. ([\#5620](https://github.com/matrix-org/synapse/issues/5620))
52+
53+
54+
Improved Documentation
55+
----------------------
56+
57+
- Add information about nginx normalisation to reverse_proxy.rst. Contributed by @skalarproduktraum - thanks! ([\#5397](https://github.com/matrix-org/synapse/issues/5397))
58+
- --no-pep517 should be --no-use-pep517 in the documentation to setup the development environment. ([\#5651](https://github.com/matrix-org/synapse/issues/5651))
59+
- Improvements to Postgres setup instructions. Contributed by @Lrizika - thanks! ([\#5661](https://github.com/matrix-org/synapse/issues/5661))
60+
- Minor tweaks to postgres documentation. ([\#5675](https://github.com/matrix-org/synapse/issues/5675))
61+
62+
63+
Deprecations and Removals
64+
-------------------------
65+
66+
- Remove support for the `invite_3pid_guest` configuration setting. ([\#5625](https://github.com/matrix-org/synapse/issues/5625))
67+
68+
69+
Internal Changes
70+
----------------
71+
72+
- Move logging code out of `synapse.util` and into `synapse.logging`. ([\#5606](https://github.com/matrix-org/synapse/issues/5606), [\#5617](https://github.com/matrix-org/synapse/issues/5617))
73+
- Add a blacklist file to the repo to blacklist certain sytests from failing CI. ([\#5611](https://github.com/matrix-org/synapse/issues/5611))
74+
- Make runtime errors surrounding password reset emails much clearer. ([\#5616](https://github.com/matrix-org/synapse/issues/5616))
75+
- Remove dead code for persiting outgoing federation transactions. ([\#5622](https://github.com/matrix-org/synapse/issues/5622))
76+
- Add `lint.sh` to the scripts-dev folder which will run all linting steps required by CI. ([\#5627](https://github.com/matrix-org/synapse/issues/5627))
77+
- Move RegistrationHandler.get_or_create_user to test code. ([\#5628](https://github.com/matrix-org/synapse/issues/5628))
78+
- Add some more common python virtual-environment paths to the black exclusion list. ([\#5630](https://github.com/matrix-org/synapse/issues/5630))
79+
- Some counter metrics exposed over Prometheus have been renamed, with the old names preserved for backwards compatibility and deprecated. See `docs/metrics-howto.rst` for details. ([\#5636](https://github.com/matrix-org/synapse/issues/5636))
80+
- Unblacklist some user_directory sytests. ([\#5637](https://github.com/matrix-org/synapse/issues/5637))
81+
- Factor out some redundant code in the login implementation. ([\#5639](https://github.com/matrix-org/synapse/issues/5639))
82+
- Update ModuleApi to avoid register(generate_token=True). ([\#5640](https://github.com/matrix-org/synapse/issues/5640))
83+
- Remove access-token support from `RegistrationHandler.register`, and rename it. ([\#5641](https://github.com/matrix-org/synapse/issues/5641))
84+
- Remove access-token support from `RegistrationStore.register`, and rename it. ([\#5642](https://github.com/matrix-org/synapse/issues/5642))
85+
- Improve logging for auto-join when a new user is created. ([\#5643](https://github.com/matrix-org/synapse/issues/5643))
86+
- Remove unused and unnecessary check for FederationDeniedError in _exception_to_failure. ([\#5645](https://github.com/matrix-org/synapse/issues/5645))
87+
- Fix a small typo in a code comment. ([\#5655](https://github.com/matrix-org/synapse/issues/5655))
88+
- Clean up exception handling around client access tokens. ([\#5656](https://github.com/matrix-org/synapse/issues/5656))
89+
- Add a mechanism for per-test homeserver configuration in the unit tests. ([\#5657](https://github.com/matrix-org/synapse/issues/5657))
90+
- Inline issue_access_token. ([\#5659](https://github.com/matrix-org/synapse/issues/5659))
91+
- Update the sytest BuildKite configuration to checkout Synapse in `/src`. ([\#5664](https://github.com/matrix-org/synapse/issues/5664))
92+
- Add a `docker` type to the towncrier configuration. ([\#5673](https://github.com/matrix-org/synapse/issues/5673))
93+
- Convert `synapse.federation.transport.server` to `async`. Might improve some stack traces. ([\#5689](https://github.com/matrix-org/synapse/issues/5689))
94+
- Documentation for opentracing. ([\#5703](https://github.com/matrix-org/synapse/issues/5703))
95+
96+
197
Synapse 1.1.0 (2019-07-04)
298
==========================
399

CONTRIBUTING.rst

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,10 @@ use github's pull request workflow to review the contribution, and either ask
3030
you to make any refinements needed or merge it and make them ourselves. The
3131
changes will then land on master when we next do a release.
3232

33-
We use `CircleCI <https://circleci.com/gh/matrix-org>`_ and `Buildkite
34-
<https://buildkite.com/matrix-dot-org/synapse>`_ for continuous integration.
35-
Buildkite builds need to be authorised by a maintainer. If your change breaks
36-
the build, this will be shown in GitHub, so please keep an eye on the pull
37-
request for feedback.
33+
We use `Buildkite <https://buildkite.com/matrix-dot-org/synapse>`_ for
34+
continuous integration. Buildkite builds need to be authorised by a
35+
maintainer. If your change breaks the build, this will be shown in GitHub, so
36+
please keep an eye on the pull request for feedback.
3837

3938
To run unit tests in a local development environment, you can use:
4039

@@ -70,13 +69,21 @@ All changes, even minor ones, need a corresponding changelog / newsfragment
7069
entry. These are managed by Towncrier
7170
(https://github.com/hawkowl/towncrier).
7271

73-
To create a changelog entry, make a new file in the ``changelog.d``
74-
file named in the format of ``PRnumber.type``. The type can be
75-
one of ``feature``, ``bugfix``, ``removal`` (also used for
76-
deprecations), or ``misc`` (for internal-only changes).
77-
78-
The content of the file is your changelog entry, which can contain Markdown
79-
formatting. The entry should end with a full stop ('.') for consistency.
72+
To create a changelog entry, make a new file in the ``changelog.d`` file named
73+
in the format of ``PRnumber.type``. The type can be one of the following:
74+
75+
* ``feature``.
76+
* ``bugfix``.
77+
* ``docker`` (for updates to the Docker image).
78+
* ``doc`` (for updates to the documentation).
79+
* ``removal`` (also used for deprecations).
80+
* ``misc`` (for internal-only changes).
81+
82+
The content of the file is your changelog entry, which should be a short
83+
description of your change in the same style as the rest of our `changelog
84+
<https://github.com/matrix-org/synapse/blob/master/CHANGES.md>`_. The file can
85+
contain Markdown formatting, and should end with a full stop ('.') for
86+
consistency.
8087

8188
Adding credits to the changelog is encouraged, we value your
8289
contributions and would like to have you shouted out in the release notes!

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ to install using pip and a virtualenv::
272272

273273
virtualenv -p python3 env
274274
source env/bin/activate
275-
python -m pip install --no-pep-517 -e .[all]
275+
python -m pip install --no-use-pep517 -e .[all]
276276

277277
This will run a process of downloading and installing all the needed
278278
dependencies into a virtual env.

UPGRADE.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ returned by the Client-Server API:
4949
# configured on port 443.
5050
curl -kv https://<host.name>/_matrix/client/versions 2>&1 | grep "Server:"
5151
52+
Upgrading to v1.2.0
53+
===================
54+
55+
Some counter metrics have been renamed, with the old names deprecated. See
56+
`the metrics documentation <docs/metrics-howto.rst#renaming-of-metrics--deprecation-of-old-names-in-12>`_
57+
for details.
58+
5259
Upgrading to v1.1.0
5360
===================
5461

changelog.d/5606.misc

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

changelog.d/5609.bugfix

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

changelog.d/5611.misc

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

changelog.d/5616.misc

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

changelog.d/5617.misc

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

0 commit comments

Comments
 (0)