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

Commit 2e7de8d

Browse files
committed
Merge branch 'develop' of github.com:matrix-org/synapse into anoa/default_templates
* 'develop' of github.com:matrix-org/synapse: (57 commits) Remove a space at the start of a changelog entry. More changelog tweaks More changelog tweaks Remove unwanted changelog line 1.19.0rc1 Run `remove_push_actions_from_staging` in foreground (#8081) Drop federation transmission queues during a significant remote outage. (#7864) Fix unawaited coroutine error in tests. (#8072) Convert the roommember database to async/await. (#8070) Convert devices database to async/await. (#8069) Add type hints to handlers.message and events.builder (#8067) Convert account data, device inbox, and censor events databases to async/await (#8063) Convert appservice, group server, profile and more databases to async (#8066) Fix typing for notifier (#8064) Convert tags and metrics databases to async/await (#8062) Converts event_federation and registration databases to async/await (#8061) Add comment explaining cast Update changelog.d/8051.misc Add typing info to Notifier (#8058) Handle optional dependencies for Oidc and Saml ...
2 parents 00f4f63 + 7bdf982 commit 2e7de8d

File tree

457 files changed

+3955
-3664
lines changed

Some content is hidden

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

457 files changed

+3955
-3664
lines changed

.circleci/config.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,16 @@ jobs:
44
machine: true
55
steps:
66
- checkout
7-
- run: docker build -f docker/Dockerfile --label gitsha1=${CIRCLE_SHA1} -t matrixdotorg/synapse:${CIRCLE_TAG} -t matrixdotorg/synapse:${CIRCLE_TAG}-py3 .
7+
- run: docker build -f docker/Dockerfile --label gitsha1=${CIRCLE_SHA1} -t matrixdotorg/synapse:${CIRCLE_TAG} .
88
- run: docker login --username $DOCKER_HUB_USERNAME --password $DOCKER_HUB_PASSWORD
99
- run: docker push matrixdotorg/synapse:${CIRCLE_TAG}
10-
- run: docker push matrixdotorg/synapse:${CIRCLE_TAG}-py3
1110
dockerhubuploadlatest:
1211
machine: true
1312
steps:
1413
- checkout
15-
- run: docker build -f docker/Dockerfile --label gitsha1=${CIRCLE_SHA1} -t matrixdotorg/synapse:latest -t matrixdotorg/synapse:latest-py3 .
14+
- run: docker build -f docker/Dockerfile --label gitsha1=${CIRCLE_SHA1} -t matrixdotorg/synapse:latest .
1615
- run: docker login --username $DOCKER_HUB_USERNAME --password $DOCKER_HUB_PASSWORD
1716
- run: docker push matrixdotorg/synapse:latest
18-
- run: docker push matrixdotorg/synapse:latest-py3
1917

2018
workflows:
2119
version: 2

CHANGES.md

Lines changed: 69 additions & 0 deletions

changelog.d/7314.misc

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

changelog.d/7736.feature

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

changelog.d/7864.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix a memory leak by limiting the length of time that messages will be queued for a remote server that has been unreachable.

changelog.d/7899.doc

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

changelog.d/7902.feature

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

changelog.d/7936.misc

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

changelog.d/7948.misc

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

changelog.d/7949.misc

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

changelog.d/7951.misc

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

changelog.d/7952.misc

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

changelog.d/7963.misc

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

changelog.d/7964.feature

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

changelog.d/7965.misc

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

changelog.d/7970.misc

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

changelog.d/7971.misc

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

changelog.d/7973.misc

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

changelog.d/7975.misc

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

changelog.d/7976.misc

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

changelog.d/7977.bugfix

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

changelog.d/7978.bugfix

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

changelog.d/7979.misc

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

changelog.d/7980.bugfix

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

changelog.d/7981.misc

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

changelog.d/7987.misc

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

changelog.d/7989.misc

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

changelog.d/7990.doc

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

changelog.d/7992.doc

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

changelog.d/7996.bugfix

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

changelog.d/7998.doc

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

changelog.d/7999.bugfix

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

changelog.d/8001.misc

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

changelog.d/8003.misc

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

changelog.d/8008.feature

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

changelog.d/8011.bugfix

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

changelog.d/8012.bugfix

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

changelog.d/8014.misc

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

changelog.d/8016.misc

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

changelog.d/8024.misc

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

changelog.d/8027.misc

Lines changed: 0 additions & 1 deletion
This file was deleted.
File renamed without changes.

changelog.d/8081.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix `Re-starting finished log context PUT-nnnn` warning when event persistence failed.

docker/conf/log.config

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,10 @@ formatters:
44
precise:
55
format: '%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(request)s - %(message)s'
66

7-
filters:
8-
context:
9-
(): synapse.logging.context.LoggingContextFilter
10-
request: ""
11-
127
handlers:
138
console:
149
class: logging.StreamHandler
1510
formatter: precise
16-
filters: [context]
1711

1812
loggers:
1913
synapse.storage.SQL:

docs/admin_api/shutdown_room.md

Lines changed: 10 additions & 3 deletions

docs/reverse_proxy.md

Lines changed: 7 additions & 0 deletions

docs/sample_config.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1577,6 +1577,17 @@ saml2_config:
15771577
#
15781578
#grandfathered_mxid_source_attribute: upn
15791579

1580+
# It is possible to configure Synapse to only allow logins if SAML attributes
1581+
# match particular values. The requirements can be listed under
1582+
# `attribute_requirements` as shown below. All of the listed attributes must
1583+
# match for the login to be permitted.
1584+
#
1585+
#attribute_requirements:
1586+
# - attribute: userGroup
1587+
# value: "staff"
1588+
# - attribute: department
1589+
# value: "sales"
1590+
15801591
# Directory in which Synapse will try to find the template files below.
15811592
# If not set, default templates from within the Synapse package will be used.
15821593
#

docs/sample_log_config.yaml

Lines changed: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,33 +11,57 @@ formatters:
1111
precise:
1212
format: '%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(request)s - %(message)s'
1313

14-
filters:
15-
context:
16-
(): synapse.logging.context.LoggingContextFilter
17-
request: ""
18-
1914
handlers:
2015
file:
21-
class: logging.handlers.RotatingFileHandler
16+
class: logging.handlers.TimedRotatingFileHandler
2217
formatter: precise
2318
filename: /var/log/matrix-synapse/homeserver.log
24-
maxBytes: 104857600
25-
backupCount: 10
26-
filters: [context]
19+
when: midnight
20+
backupCount: 3 # Does not include the current log file.
2721
encoding: utf8
22+
23+
# Default to buffering writes to log file for efficiency. This means that
24+
# will be a delay for INFO/DEBUG logs to get written, but WARNING/ERROR
25+
# logs will still be flushed immediately.
26+
buffer:
27+
class: logging.handlers.MemoryHandler
28+
target: file
29+
# The capacity is the number of log lines that are buffered before
30+
# being written to disk. Increasing this will lead to better
31+
# performance, at the expensive of it taking longer for log lines to
32+
# be written to disk.
33+
capacity: 10
34+
flushLevel: 30 # Flush for WARNING logs as well
35+
36+
# A handler that writes logs to stderr. Unused by default, but can be used
37+
# instead of "buffer" and "file" in the logger handlers.
2838
console:
2939
class: logging.StreamHandler
3040
formatter: precise
31-
filters: [context]
3241

3342
loggers:
3443
synapse.storage.SQL:
3544
# beware: increasing this to DEBUG will make synapse log sensitive
3645
# information such as access tokens.
3746
level: INFO
3847

48+
twisted:
49+
# We send the twisted logging directly to the file handler,
50+
# to work around https://github.com/matrix-org/synapse/issues/3471
51+
# when using "buffer" logger. Use "console" to log to stderr instead.
52+
handlers: [file]
53+
propagate: false
54+
3955
root:
4056
level: INFO
41-
handlers: [file, console]
57+
58+
# Write logs to the `buffer` handler, which will buffer them together in memory,
59+
# then write them to a file.
60+
#
61+
# Replace "buffer" with "console" to log to stderr instead. (Note that you'll
62+
# also need to update the configuation for the `twisted` logger above, in
63+
# this case.)
64+
#
65+
handlers: [buffer]
4266

4367
disable_existing_loggers: false

docs/systemd-with-workers/workers/federation_reader.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
worker_app: synapse.app.federation_reader
2+
worker_name: federation_reader1
23

34
worker_replication_host: 127.0.0.1
4-
worker_replication_port: 9092
55
worker_replication_http_port: 9093
66

77
worker_listeners:

docs/user_directory.md

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)