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 clokep/db-upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep authored Oct 23, 2023
2 parents aae2a38 + 3bcb6a0 commit 91e6570
Show file tree
Hide file tree
Showing 62 changed files with 631 additions and 292 deletions.
4 changes: 2 additions & 2 deletions .ci/scripts/calculate_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def set_output(key: str, value: str):
"database": "sqlite",
"extras": "all",
}
for version in ("3.9", "3.10", "3.11", "3.12.0-rc.2")
for version in ("3.9", "3.10", "3.11", "3.12")
)

trial_postgres_tests = [
Expand All @@ -62,7 +62,7 @@ def set_output(key: str, value: str):
if not IS_PR:
trial_postgres_tests.append(
{
"python-version": "3.11",
"python-version": "3.12",
"database": "postgres",
"postgres-version": "16",
"extras": "all",
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,18 @@ jobs:
- 'Cargo.toml'
- 'Cargo.lock'
- '.rustfmt.toml'
- '.github/workflows/tests.yml'
trial:
- 'synapse/**'
- 'tests/**'
- 'rust/**'
- '.ci/scripts/calculate_jobs.py'
- 'Cargo.toml'
- 'Cargo.lock'
- 'pyproject.toml'
- 'poetry.lock'
- '.github/workflows/tests.yml'
integration:
- 'synapse/**'
Expand All @@ -56,7 +59,9 @@ jobs:
- 'pyproject.toml'
- 'poetry.lock'
- 'docker/**'
- '.ci/**'
- 'scripts-dev/complement.sh'
- '.github/workflows/tests.yml'
linting:
- 'synapse/**'
Expand All @@ -70,6 +75,7 @@ jobs:
- 'mypy.ini'
- 'pyproject.toml'
- 'poetry.lock'
- '.github/workflows/tests.yml'
check-sampleconfig:
runs-on: ubuntu-latest
Expand Down
48 changes: 48 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,51 @@
# Synapse 1.95.0rc1 (2023-10-17)

### Bugfixes

- Remove legacy unspecced `knock_state_events` field returned in some responses. ([\#16403](https://github.com/matrix-org/synapse/issues/16403))
- Fix a bug introduced in Synapse 1.81.0 where an `AttributeError` would be raised when `_matrix/client/v3/account/whoami` is called over a unix socket. Contributed by @Sir-Photch. ([\#16404](https://github.com/matrix-org/synapse/issues/16404))
- Properly return inline media when content types have parameters. ([\#16440](https://github.com/matrix-org/synapse/issues/16440))
- Prevent the purging of large rooms from timing out when Postgres is in use. The timeout which causes this issue was introduced in Synapse 1.88.0. ([\#16455](https://github.com/matrix-org/synapse/issues/16455))
- Improve the performance of purging rooms, particularly encrypted rooms. ([\#16457](https://github.com/matrix-org/synapse/issues/16457))
- Fix a bug introduced in Synapse 1.59.0 where servers could be incorrectly marked as available after an error response was received. ([\#16506](https://github.com/matrix-org/synapse/issues/16506))

### Improved Documentation

- Document internal background update mechanism. ([\#16420](https://github.com/matrix-org/synapse/issues/16420))
- Fix a typo in the sql for [useful SQL for admins document](https://matrix-org.github.io/synapse/latest/usage/administration/useful_sql_for_admins.html). ([\#16477](https://github.com/matrix-org/synapse/issues/16477))

### Internal Changes

- Bump pyo3 from 0.17.1 to 0.19.2. ([\#16162](https://github.com/matrix-org/synapse/issues/16162))
- Update registration of media repository URLs. ([\#16419](https://github.com/matrix-org/synapse/issues/16419))
- Improve type hints. ([\#16421](https://github.com/matrix-org/synapse/issues/16421), [\#16468](https://github.com/matrix-org/synapse/issues/16468), [\#16469](https://github.com/matrix-org/synapse/issues/16469), [\#16507](https://github.com/matrix-org/synapse/issues/16507))
- Refactor some code to simplify and better type receipts stream adjacent code. ([\#16426](https://github.com/matrix-org/synapse/issues/16426))
- Factor out `MultiWriter` token from `RoomStreamToken`. ([\#16427](https://github.com/matrix-org/synapse/issues/16427))
- Improve code comments. ([\#16428](https://github.com/matrix-org/synapse/issues/16428))
- Reduce memory allocations. ([\#16429](https://github.com/matrix-org/synapse/issues/16429), [\#16431](https://github.com/matrix-org/synapse/issues/16431), [\#16433](https://github.com/matrix-org/synapse/issues/16433), [\#16434](https://github.com/matrix-org/synapse/issues/16434), [\#16438](https://github.com/matrix-org/synapse/issues/16438), [\#16444](https://github.com/matrix-org/synapse/issues/16444))
- Remove unused method. ([\#16435](https://github.com/matrix-org/synapse/issues/16435))
- Improve rate limiting logic. ([\#16441](https://github.com/matrix-org/synapse/issues/16441))
- Do not block running of CI behind the check for sign-off on PRs. ([\#16454](https://github.com/matrix-org/synapse/issues/16454))
- Update the release script to remind releaser to check for special release notes. ([\#16461](https://github.com/matrix-org/synapse/issues/16461))
- Update complement.sh to match new public API shape. ([\#16466](https://github.com/matrix-org/synapse/issues/16466))
- Clean up logging on event persister endpoints. ([\#16488](https://github.com/matrix-org/synapse/issues/16488))
- Remove useless async job to delete device messages on sync, since we only deliver (and hence delete) up to 100 device messages at a time. ([\#16491](https://github.com/matrix-org/synapse/issues/16491))

### Updates to locked dependencies

* Bump bleach from 6.0.0 to 6.1.0. ([\#16451](https://github.com/matrix-org/synapse/issues/16451))
* Bump jsonschema from 4.19.0 to 4.19.1. ([\#16500](https://github.com/matrix-org/synapse/issues/16500))
* Bump netaddr from 0.8.0 to 0.9.0. ([\#16453](https://github.com/matrix-org/synapse/issues/16453))
* Bump packaging from 23.1 to 23.2. ([\#16497](https://github.com/matrix-org/synapse/issues/16497))
* Bump pillow from 10.0.1 to 10.1.0. ([\#16498](https://github.com/matrix-org/synapse/issues/16498))
* Bump psycopg2 from 2.9.8 to 2.9.9. ([\#16452](https://github.com/matrix-org/synapse/issues/16452))
* Bump pyo3-log from 0.8.3 to 0.8.4. ([\#16495](https://github.com/matrix-org/synapse/issues/16495))
* Bump ruff from 0.0.290 to 0.0.292. ([\#16449](https://github.com/matrix-org/synapse/issues/16449))
* Bump sentry-sdk from 1.31.0 to 1.32.0. ([\#16496](https://github.com/matrix-org/synapse/issues/16496))
* Bump serde from 1.0.188 to 1.0.189. ([\#16494](https://github.com/matrix-org/synapse/issues/16494))
* Bump types-bleach from 6.0.0.4 to 6.1.0.0. ([\#16450](https://github.com/matrix-org/synapse/issues/16450))
* Bump types-jsonschema from 4.17.0.10 to 4.19.0.3. ([\#16499](https://github.com/matrix-org/synapse/issues/16499))

# Synapse 1.94.0 (2023-10-10)

No significant changes since 1.94.0rc1.
Expand Down
1 change: 0 additions & 1 deletion changelog.d/16162.misc

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

1 change: 1 addition & 0 deletions changelog.d/16485.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix long-standing bug where `/sync` incorrectly did not mark a room as `limited` in a sync requests when there were missing remote events.
1 change: 0 additions & 1 deletion changelog.d/16488.misc

This file was deleted.

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

This file was deleted.

1 change: 1 addition & 0 deletions changelog.d/16492.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Improve performance of delete device messages query, cf issue [16479](https://github.com/matrix-org/synapse/issues/16479).
1 change: 1 addition & 0 deletions changelog.d/16510.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Improve replication performance when purging rooms.
1 change: 1 addition & 0 deletions changelog.d/16511.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Run tests against Python 3.12.
1 change: 1 addition & 0 deletions changelog.d/16512.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Run trial & integration tests in continuous integration when `.ci` directory is modified.
1 change: 1 addition & 0 deletions changelog.d/16521.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Stop deleting from an unused table.
1 change: 1 addition & 0 deletions changelog.d/16529.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Improve documentation of presence router.
1 change: 1 addition & 0 deletions changelog.d/16530.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Force TLS certificate verification in user registration script.
1 change: 1 addition & 0 deletions changelog.d/16531.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add a sentence to the opentracing docs on how you can have jaeger in a different place than synapse.
1 change: 1 addition & 0 deletions changelog.d/16539.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bump matrix-synapse-ldap3 from 0.2.2 to 0.3.0.
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.95.0~rc1) stable; urgency=medium

* New synapse release 1.95.0rc1.

-- Synapse Packaging team <[email protected]> Tue, 17 Oct 2023 15:50:17 +0000

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

* New Synapse release 1.94.0.
Expand Down
14 changes: 11 additions & 3 deletions docs/modules/presence_router_callbacks.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
# Presence router callbacks

Presence router callbacks allow module developers to specify additional users (local or remote)
to receive certain presence updates from local users. Presence router callbacks can be
registered using the module API's `register_presence_router_callbacks` method.
Presence router callbacks allow module developers to define additional users
which receive presence updates from local users. The additional users
can be local or remote.

For example, it could be used to direct all of `@alice:example.com` (a local user)'s
presence updates to `@bob:matrix.org` (a remote user), even though they don't share a
room. (Note that those presence updates might not make it to `@bob:matrix.org`'s client
unless a similar presence router is running on that homeserver.)

Presence router callbacks can be registered using the module API's
`register_presence_router_callbacks` method.

## Callbacks

Expand Down
5 changes: 5 additions & 0 deletions docs/opentracing.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ docker run -d --name jaeger \
jaegertracing/all-in-one:1
```

By default, Synapse will publish traces to Jaeger on localhost.
If Jaeger is hosted elsewhere, point Synapse to the correct host by setting
`opentracing.jaeger_config.local_agent.reporting_host` [in the Synapse configuration](usage/configuration/config_documentation.md#opentracing-1)
or by setting the `JAEGER_AGENT_HOST` environment variable to the desired address.

Latest documentation is probably at
https://www.jaegertracing.io/docs/latest/getting-started.

Expand Down
Loading

0 comments on commit 91e6570

Please sign in to comment.