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

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into rav/drop_py35
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh committed Apr 8, 2021
2 parents 24c58eb + 88b9414 commit 9e167d9
Show file tree
Hide file tree
Showing 67 changed files with 2,182 additions and 825 deletions.
23 changes: 20 additions & 3 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,27 @@
Synapse 1.31.0rc1 (2021-03-30)
==============================
Synapse 1.31.0 (2021-04-06)
===========================

**Note:** As announced in v1.25.0, and in line with the deprecation policy for platform dependencies, this is the last release to support Python 3.5 and PostgreSQL 9.5. Future versions of Synapse will require Python 3.6+ and PostgreSQL 9.6+.
**Note:** As announced in v1.25.0, and in line with the deprecation policy for platform dependencies, this is the last release to support Python 3.5 and PostgreSQL 9.5. Future versions of Synapse will require Python 3.6+ and PostgreSQL 9.6+, as per our [deprecation policy](docs/deprecation_policy.md).

This is also the last release that the Synapse team will be publishing packages for Debian Stretch and Ubuntu Xenial.


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

- Add a document describing the deprecation policy for platform dependencies. ([\#9723](https://github.com/matrix-org/synapse/issues/9723))


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

- Revert using `dmypy run` in lint script. ([\#9720](https://github.com/matrix-org/synapse/issues/9720))
- Pin flake8-bugbear's version. ([\#9734](https://github.com/matrix-org/synapse/issues/9734))


Synapse 1.31.0rc1 (2021-03-30)
==============================

Features
--------

Expand Down
3 changes: 2 additions & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ There are 3 steps to follow under **Installation Instructions**.
- [URL previews](#url-previews)
- [Troubleshooting Installation](#troubleshooting-installation)


## Choosing your server name

It is important to choose the name for your server before you install Synapse,
Expand Down Expand Up @@ -542,7 +543,7 @@ Alternatively, you can do so from the command line. This can be done as follows:
register_new_matrix_user -c homeserver.yaml http://localhost:8008
```

This will prompt you to add details for the new user, and will then connect to
This will prompt you to add details for the new user, and will then connect to
the running Synapse to create the new user. For example:
```
New user localpart: erikj
Expand Down
18 changes: 16 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,15 @@ Testing with SyTest is recommended for verifying that changes related to the
Client-Server API are functioning correctly. See the `installation instructions
<https://github.com/matrix-org/sytest#installing>`_ for details.


Platform dependencies
=====================

Synapse uses a number of platform dependencies such as Python and PostgreSQL,
and aims to follow supported upstream versions. See the
`<docs/deprecation_policy.md>`_ document for more details.


Troubleshooting
===============

Expand Down Expand Up @@ -384,12 +393,17 @@ massive excess of outgoing federation requests (see `discussion
indicate that your server is also issuing far more outgoing federation
requests than can be accounted for by your users' activity, this is a
likely cause. The misbehavior can be worked around by setting
``use_presence: false`` in the Synapse config file.
the following in the Synapse config file:

.. code-block:: yaml
presence:
enabled: false
People can't accept room invitations from me
--------------------------------------------

The typical failure mode here is that you send an invitation to someone
The typical failure mode here is that you send an invitation to someone
to join a room or direct chat, but when they go to accept it, they get an
error (typically along the lines of "Invalid signature"). They might see
something like the following in their logs::
Expand Down
1 change: 1 addition & 0 deletions changelog.d/8926.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Prevent `synapse_forward_extremities` and `synapse_excess_extremity_events` Prometheus metrics from initially reporting zero-values after startup.
1 change: 1 addition & 0 deletions changelog.d/9491.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add a Synapse module for routing presence updates between users.
1 change: 1 addition & 0 deletions changelog.d/9654.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Include request information in structured logging output.
1 change: 0 additions & 1 deletion changelog.d/9720.misc

This file was deleted.

1 change: 1 addition & 0 deletions changelog.d/9725.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix longstanding bug which caused `duplicate key value violates unique constraint "remote_media_cache_thumbnails_media_origin_media_id_thumbna_key"` errors.
1 change: 1 addition & 0 deletions changelog.d/9730.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add type hints to expiring cache.
1 change: 0 additions & 1 deletion changelog.d/9734.misc

This file was deleted.

1 change: 1 addition & 0 deletions changelog.d/9735.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add experimental support for [MSC3083](https://github.com/matrix-org/matrix-doc/pull/3083): restricting room access via group membership.
1 change: 1 addition & 0 deletions changelog.d/9736.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Convert various testcases to `HomeserverTestCase`.
1 change: 1 addition & 0 deletions changelog.d/9743.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add missing type hints to federation handler and server.
1 change: 1 addition & 0 deletions changelog.d/9753.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Check that a `ConfigError` is raised, rather than simply `Exception`, when appropriate in homeserver config file generation tests.
1 change: 1 addition & 0 deletions changelog.d/9765.docker
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Move opencontainers labels to the final Docker image such that users can inspect them.
1 change: 1 addition & 0 deletions changelog.d/9770.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix bug where sharded federation senders could get stuck repeatedly querying the DB in a loop, using lots of CPU.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
matrix-synapse-py3 (1.31.0) stable; urgency=medium

* New synapse release 1.31.0.

-- Synapse Packaging team <packages@matrix.org> Tue, 06 Apr 2021 13:08:29 +0100

matrix-synapse-py3 (1.30.1) stable; urgency=medium

* New synapse release 1.30.1.
Expand Down
10 changes: 5 additions & 5 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ ARG PYTHON_VERSION=3.8
###
FROM docker.io/python:${PYTHON_VERSION}-slim as builder

LABEL org.opencontainers.image.url='https://matrix.org/docs/projects/server/synapse'
LABEL org.opencontainers.image.documentation='https://github.com/matrix-org/synapse/blob/master/docker/README.md'
LABEL org.opencontainers.image.source='https://github.com/matrix-org/synapse.git'
LABEL org.opencontainers.image.licenses='Apache-2.0'

# install the OS build deps
RUN apt-get update && apt-get install -y \
build-essential \
Expand Down Expand Up @@ -66,6 +61,11 @@ RUN pip install --prefix="/install" --no-deps --no-warn-script-location /synapse

FROM docker.io/python:${PYTHON_VERSION}-slim

LABEL org.opencontainers.image.url='https://matrix.org/docs/projects/server/synapse'
LABEL org.opencontainers.image.documentation='https://github.com/matrix-org/synapse/blob/master/docker/README.md'
LABEL org.opencontainers.image.source='https://github.com/matrix-org/synapse.git'
LABEL org.opencontainers.image.licenses='Apache-2.0'

RUN apt-get update && apt-get install -y \
curl \
gosu \
Expand Down
33 changes: 33 additions & 0 deletions docs/deprecation_policy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Deprecation Policy for Platform Dependencies
============================================

Synapse has a number of platform dependencies, including Python and PostgreSQL.
This document outlines the policy towards which versions we support, and when we
drop support for versions in the future.


Policy
------

Synapse follows the upstream support life cycles for Python and PostgreSQL,
i.e. when a version reaches End of Life Synapse will withdraw support for that
version in future releases.

Details on the upstream support life cycles for Python and PostgreSQL are
documented at https://endoflife.date/python and
https://endoflife.date/postgresql.


Context
-------

It is important for system admins to have a clear understanding of the platform
requirements of Synapse and its deprecation policies so that they can
effectively plan upgrading their infrastructure ahead of time. This is
especially important in contexts where upgrading the infrastructure requires
auditing and approval from a security team, or where otherwise upgrading is a
long process.

By following the upstream support life cycles Synapse can ensure that its
dependencies continue to get security patches, while not requiring system admins
to constantly update their platform dependencies to the latest versions.
Loading

0 comments on commit 9e167d9

Please sign in to comment.