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

Commit

Permalink
Merge branch 'develop' into dmr/link-to-rendered-docs
Browse files Browse the repository at this point in the history
The changes in CONTRIBUTING.md were
- updates to TOC. Now redundant because the book autogenerates a TOC
- change sytest-synapse docker image tag. Applied this to contributing_guide.md
  • Loading branch information
David Robertson committed Aug 23, 2021
2 parents 4ecc2ca + 4db65f9 commit 6e63986
Show file tree
Hide file tree
Showing 274 changed files with 9,267 additions and 5,035 deletions.
8 changes: 8 additions & 0 deletions .ci/patch_for_twisted_trunk.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

# replaces the dependency on Twisted in `python_dependencies` with trunk.

set -e
cd "$(dirname "$0")"/..

sed -i -e 's#"Twisted.*"#"Twisted @ git+https://github.com/twisted/twisted"#' synapse/python_dependencies.py
4 changes: 4 additions & 0 deletions .ci/twisted_trunk_build_failed_issue_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: CI run against Twisted trunk is failing
---
See https://github.com/{{env.GITHUB_REPOSITORY}}/actions/runs/{{env.GITHUB_RUN_ID}}
89 changes: 89 additions & 0 deletions .github/workflows/twisted_trunk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: Twisted Trunk

on:
schedule:
- cron: 0 8 * * *

workflow_dispatch:

jobs:
mypy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: .ci/patch_for_twisted_trunk.sh
- run: pip install tox
- run: tox -e mypy

trial:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- run: sudo apt-get -qq install xmlsec1
- uses: actions/setup-python@v2
with:
python-version: 3.6
- run: .ci/patch_for_twisted_trunk.sh
- run: pip install tox
- run: tox -e py
env:
TRIAL_FLAGS: "--jobs=2"

- name: Dump logs
# Note: Dumps to workflow logs instead of using actions/upload-artifact
# This keeps logs colocated with failing jobs
# It also ignores find's exit code; this is a best effort affair
run: >-
find _trial_temp -name '*.log'
-exec echo "::group::{}" \;
-exec cat {} \;
-exec echo "::endgroup::" \;
|| true
sytest:
runs-on: ubuntu-latest
container:
image: matrixdotorg/sytest-synapse:buster
volumes:
- ${{ github.workspace }}:/src

steps:
- uses: actions/checkout@v2
- name: Patch dependencies
run: .ci/patch_for_twisted_trunk.sh
working-directory: /src
- name: Run SyTest
run: /bootstrap.sh synapse
working-directory: /src
- name: Summarise results.tap
if: ${{ always() }}
run: /sytest/scripts/tap_to_gha.pl /logs/results.tap
- name: Upload SyTest logs
uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: Sytest Logs - ${{ job.status }} - (${{ join(matrix.*, ', ') }})
path: |
/logs/results.tap
/logs/**/*.log*
# open an issue if the build fails, so we know about it.
open-issue:
if: failure()
needs:
- mypy
- trial
- sytest

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
filename: .ci/twisted_trunk_build_failed_issue_template.md
79 changes: 79 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,82 @@
Synapse 1.41.0rc1 (2021-08-18)
==============================

Features
--------

- Add `get_userinfo_by_id` method to ModuleApi. ([\#9581](https://github.com/matrix-org/synapse/issues/9581))
- Initial local support for [MSC3266](https://github.com/matrix-org/synapse/pull/10394), Room Summary over the unstable `/rooms/{roomIdOrAlias}/summary` API. ([\#10394](https://github.com/matrix-org/synapse/issues/10394))
- Experimental support for [MSC3288](https://github.com/matrix-org/matrix-doc/pull/3288), sending `room_type` to the identity server for 3pid invites over the `/store-invite` API. ([\#10435](https://github.com/matrix-org/synapse/issues/10435))
- Add support for sending federation requests through a proxy. Contributed by @Bubu and @dklimpel. ([\#10475](https://github.com/matrix-org/synapse/issues/10475))
- Add support for "marker" events which makes historical events discoverable for servers that already have all of the scrollback history (part of [MSC2716](https://github.com/matrix-org/matrix-doc/pull/2716)). ([\#10498](https://github.com/matrix-org/synapse/issues/10498))
- Add a configuration setting for the time a `/sync` response is cached for. ([\#10513](https://github.com/matrix-org/synapse/issues/10513))
- The default logging handler for new installations is now `PeriodicallyFlushingMemoryHandler`, a buffered logging handler which periodically flushes itself. ([\#10518](https://github.com/matrix-org/synapse/issues/10518))
- Add support for new redaction rules for historical events specified in [MSC2716](https://github.com/matrix-org/matrix-doc/pull/2716). ([\#10538](https://github.com/matrix-org/synapse/issues/10538))
- Add a setting to disable TLS when sending email. ([\#10546](https://github.com/matrix-org/synapse/issues/10546))
- Add pagination to the spaces summary based on updates to [MSC2946](https://github.com/matrix-org/matrix-doc/pull/2946). ([\#10549](https://github.com/matrix-org/synapse/issues/10549), [\#10560](https://github.com/matrix-org/synapse/issues/10560), [\#10569](https://github.com/matrix-org/synapse/issues/10569), [\#10574](https://github.com/matrix-org/synapse/issues/10574), [\#10575](https://github.com/matrix-org/synapse/issues/10575), [\#10579](https://github.com/matrix-org/synapse/issues/10579), [\#10583](https://github.com/matrix-org/synapse/issues/10583))
- Admin API to delete several media for a specific user. Contributed by @dklimpel. ([\#10558](https://github.com/matrix-org/synapse/issues/10558), [\#10628](https://github.com/matrix-org/synapse/issues/10628))
- Add support for routing `/createRoom` to workers. ([\#10564](https://github.com/matrix-org/synapse/issues/10564))
- Update the Synapse Grafana dashboard. ([\#10570](https://github.com/matrix-org/synapse/issues/10570))
- Add an admin API (`GET /_synapse/admin/username_available`) to check if a username is available (regardless of registration settings). ([\#10578](https://github.com/matrix-org/synapse/issues/10578))
- Allow editing a user's `external_ids` via the "Edit User" admin API. Contributed by @dklimpel. ([\#10598](https://github.com/matrix-org/synapse/issues/10598))
- The Synapse manhole no longer needs coroutines to be wrapped in `defer.ensureDeferred`. ([\#10602](https://github.com/matrix-org/synapse/issues/10602))
- Add option to allow modules to run periodic tasks on all instances, rather than just the one configured to run background tasks. ([\#10638](https://github.com/matrix-org/synapse/issues/10638))


Bugfixes
--------

- Add some clarification to the sample config file. Contributed by @Kentokamoto. ([\#10129](https://github.com/matrix-org/synapse/issues/10129))
- Fix a long-standing bug where protocols which are not implemented by any appservices were incorrectly returned via `GET /_matrix/client/r0/thirdparty/protocols`. ([\#10532](https://github.com/matrix-org/synapse/issues/10532))
- Fix exceptions in logs when failing to get remote room list. ([\#10541](https://github.com/matrix-org/synapse/issues/10541))
- Fix longstanding bug which caused the user "status" to be reset when the user went offline. Contributed by @dklimpel. ([\#10550](https://github.com/matrix-org/synapse/issues/10550))
- Allow public rooms to be previewed in the spaces summary APIs from [MSC2946](https://github.com/matrix-org/matrix-doc/pull/2946). ([\#10580](https://github.com/matrix-org/synapse/issues/10580))
- Fix a bug introduced in v1.37.1 where an error could occur in the asynchronous processing of PDUs when the queue was empty. ([\#10592](https://github.com/matrix-org/synapse/issues/10592))
- Fix errors on /sync when read receipt data is a string. Only affects homeservers with the experimental flag for [MSC2285](https://github.com/matrix-org/matrix-doc/pull/2285) enabled. Contributed by @SimonBrandner. ([\#10606](https://github.com/matrix-org/synapse/issues/10606))
- Additional validation for the spaces summary API to avoid errors like `ValueError: Stop argument for islice() must be None or an integer`. The missing validation has existed since v1.31.0. ([\#10611](https://github.com/matrix-org/synapse/issues/10611))
- Revert behaviour introduced in v1.38.0 that strips `org.matrix.msc2732.device_unused_fallback_key_types` from `/sync` when its value is empty. This field should instead always be present according to [MSC2732](https://github.com/matrix-org/matrix-doc/blob/master/proposals/2732-olm-fallback-keys.md). ([\#10623](https://github.com/matrix-org/synapse/issues/10623))


Improved Documentation
----------------------

- Add documentation for configuration a forward proxy. ([\#10443](https://github.com/matrix-org/synapse/issues/10443))
- Updated the reverse proxy documentation to highlight the homserver configuration that is needed to make Synapse aware that is is intentionally reverse proxied. ([\#10551](https://github.com/matrix-org/synapse/issues/10551))
- Update CONTRIBUTING.md to fix index links and the instructions for SyTest in docker. ([\#10599](https://github.com/matrix-org/synapse/issues/10599))


Deprecations and Removals
-------------------------

- No longer build `.deb` packages for Ubuntu 20.10 LTS Groovy Gorilla, which has now EOLed. ([\#10588](https://github.com/matrix-org/synapse/issues/10588))
- The `template_dir` configuration settings in the `sso`, `account_validity` and `email` sections of the configuration file are now deprecated in favour of the global `templates.custom_template_directory` setting. See the [upgrade notes](https://matrix-org.github.io/synapse/latest/upgrade.html) for more information. ([\#10596](https://github.com/matrix-org/synapse/issues/10596))


Internal Changes
----------------

- Improve event caching mechanism to avoid having multiple copies of an event in memory at a time. ([\#10119](https://github.com/matrix-org/synapse/issues/10119))
- Reduce errors in PostgreSQL logs due to concurrent serialization errors. ([\#10504](https://github.com/matrix-org/synapse/issues/10504))
- Include room ID in ignored EDU log messages. Contributed by @ilmari. ([\#10507](https://github.com/matrix-org/synapse/issues/10507))
- Add pagination to the spaces summary based on updates to [MSC2946](https://github.com/matrix-org/matrix-doc/pull/2946). ([\#10527](https://github.com/matrix-org/synapse/issues/10527), [\#10530](https://github.com/matrix-org/synapse/issues/10530))
- Fix CI to not break when run against branches rather than pull requests. ([\#10529](https://github.com/matrix-org/synapse/issues/10529))
- Mark all events stemming from the [MSC2716](https://github.com/matrix-org/matrix-doc/pull/2716) `/batch_send` endpoint as historical. ([\#10537](https://github.com/matrix-org/synapse/issues/10537))
- Clean up some of the federation event authentication code for clarity. ([\#10539](https://github.com/matrix-org/synapse/issues/10539), [\#10591](https://github.com/matrix-org/synapse/issues/10591))
- Convert `Transaction` and `Edu` objects to attrs. ([\#10542](https://github.com/matrix-org/synapse/issues/10542))
- Update `/batch_send` endpoint to only return `state_events` created by the `state_events_from_before` passed in. ([\#10552](https://github.com/matrix-org/synapse/issues/10552))
- Update contributing.md to warn against rebasing an open PR. ([\#10563](https://github.com/matrix-org/synapse/issues/10563))
- Remove the unused public rooms replication stream. ([\#10565](https://github.com/matrix-org/synapse/issues/10565))
- Clarify error message when failing to join a restricted room. ([\#10572](https://github.com/matrix-org/synapse/issues/10572))
- Remove references to BuildKite in favour of GitHub Actions. ([\#10573](https://github.com/matrix-org/synapse/issues/10573))
- Move `/batch_send` endpoint defined by [MSC2716](https://github.com/matrix-org/matrix-doc/pull/2716) to the `/v2_alpha` directory. ([\#10576](https://github.com/matrix-org/synapse/issues/10576))
- Allow multiple custom directories in `read_templates`. ([\#10587](https://github.com/matrix-org/synapse/issues/10587))
- Re-organize the `synapse.federation.transport.server` module to create smaller files. ([\#10590](https://github.com/matrix-org/synapse/issues/10590))
- Flatten the `synapse.rest.client` package by moving the contents of `v1` and `v2_alpha` into the parent. ([\#10600](https://github.com/matrix-org/synapse/issues/10600))
- Build Debian packages for Debian 12 (Bookworm). ([\#10612](https://github.com/matrix-org/synapse/issues/10612))
- Fix up a couple of links to the database schema documentation. ([\#10620](https://github.com/matrix-org/synapse/issues/10620))
- Fix a broken link to the upgrade notes. ([\#10631](https://github.com/matrix-org/synapse/issues/10631))


Synapse 1.40.0 (2021-08-10)
===========================

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Welcome to Synapse

Please see the [contributors' guide](https://matrix-org.github.io/synapse/latest/development/contributing_guide.html) in our rendered documentation.
Please see the [contributors' guide](https://matrix-org.github.io/synapse/latest/development/contributing_guide.html) in our rendered documentation.
2 changes: 1 addition & 1 deletion UPGRADE.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Upgrading Synapse
=================

This document has moved to the `Synapse documentation website <https://matrix-org.github.io/synapse/latest/upgrading>`_.
This document has moved to the `Synapse documentation website <https://matrix-org.github.io/synapse/latest/upgrade>`_.
Please update your links.

The markdown source is available in `docs/upgrade.md <docs/upgrade.md>`_.
1 change: 0 additions & 1 deletion changelog.d/10119.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/10129.bugfix

This file was deleted.

1 change: 1 addition & 0 deletions changelog.d/10142.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add support for [MSC3231 - Token authenticated registration](https://github.com/matrix-org/matrix-doc/pull/3231). Users can be required to submit a token during registration to authenticate themselves. Contributed by Callum Brown.
1 change: 0 additions & 1 deletion changelog.d/10435.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/10443.doc

This file was deleted.

1 change: 1 addition & 0 deletions changelog.d/10452.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add support for [MSC3283](https://github.com/matrix-org/matrix-doc/pull/3283): Expose enable_set_displayname in capabilities.
1 change: 0 additions & 1 deletion changelog.d/10475.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/10498.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/10504.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/10507.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/10513.feature

This file was deleted.

1 change: 1 addition & 0 deletions changelog.d/10524.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Port the PresenceRouter module interface to the new generic interface.
1 change: 0 additions & 1 deletion changelog.d/10527.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/10529.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/10530.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/10532.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/10537.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/10538.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/10541.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/10542.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/10546.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/10549.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/10550.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/10551.doc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/10552.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/10558.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/10560.feature

This file was deleted.

1 change: 1 addition & 0 deletions changelog.d/10561.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Display an error on User-Interactive Authentication fallback pages when authentication fails. Contributed by Callum Brown.
1 change: 0 additions & 1 deletion changelog.d/10563.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/10572.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/10573.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/10574.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/10575.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/10579.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/10580.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/10588.removal

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/10592.bugfix

This file was deleted.

1 change: 1 addition & 0 deletions changelog.d/10593.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Reject Client-Server `/keys/query` requests which provide `device_ids` incorrectly.
1 change: 1 addition & 0 deletions changelog.d/10608.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Improve type hints for the proxy agent and SRV resolver modules. Contributed by @dklimpel.
File renamed without changes.
1 change: 1 addition & 0 deletions changelog.d/10615.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clean up some of the federation event authentication code for clarity.
1 change: 1 addition & 0 deletions changelog.d/10624.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clean up some of the federation event authentication code for clarity.
1 change: 1 addition & 0 deletions changelog.d/10627.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove not needed database updates in modify user admin API.
1 change: 1 addition & 0 deletions changelog.d/10629.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Convert room member storage tuples to `attrs` classes.
1 change: 1 addition & 0 deletions changelog.d/10630.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Use auto-attribs for the attrs classes used in sync.
1 change: 1 addition & 0 deletions changelog.d/10640.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clean up some of the federation event authentication code for clarity.
1 change: 1 addition & 0 deletions changelog.d/10642.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Convert room member storage tuples to `attrs` classes.
1 change: 1 addition & 0 deletions changelog.d/10644.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Rooms with unsupported room versions are no longer returned via `/sync`.
1 change: 1 addition & 0 deletions changelog.d/10651.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Run a nightly CI build against Twisted trunk.
1 change: 1 addition & 0 deletions changelog.d/10664.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Simplify tests for device admin rest API.
1 change: 1 addition & 0 deletions changelog.d/10667.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Flatten the `tests.synapse.rests` package by moving the contents of `v1` and `v2_alpha` into the parent.
1 change: 1 addition & 0 deletions changelog.d/8830.removal
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove deprecated Shutdown Room and Purge Room Admin API.
1 change: 0 additions & 1 deletion changelog.d/9581.feature

This file was deleted.

Loading

0 comments on commit 6e63986

Please sign in to comment.