1
0
Commit Graph

20414 Commits

Author SHA1 Message Date
David Robertson e96fd31ef1 Olddeps: leave a TODO for caret bounds 2022-03-31 18:22:14 +01:00
David Robertson 45a23c0ab0 olddeps: echo patch to confirm sed is sensible 2022-03-31 18:22:14 +01:00
David Robertson 6fd43c4b93 Explain where requirements.txt comes from. 2022-03-31 18:22:14 +01:00
David Robertson e60c8f301b More clearly explain which extras are omitted from all.
Co-authored-by: Brendan Abolivier <babolivier@matrix.org>
2022-03-31 17:12:48 +01:00
David Robertson 5dc21d95b7 Recommend synapse_homeserver entrypoint in README 2022-03-31 16:52:20 +01:00
David Robertson 8469bd81d3 Batch of suggestsion from Brendan, part 2
Co-authored-by: Brendan Abolivier <babolivier@matrix.org>
2022-03-31 16:40:27 +01:00
David Robertson 4c780abf2d Batch of suggestsion from Brendan, part 1
Co-authored-by: Brendan Abolivier <babolivier@matrix.org>
2022-03-31 16:39:04 +01:00
David Robertson a3fb2b858d Fix typos spotted by Sean
Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com>
Co-authored-by: Brendan Abolivier <babolivier@matrix.org>
2022-03-31 14:37:36 +01:00
David Robertson 680dbc86b1 Undebug various changes
- Stop always running twisted trunk on this branch
- Stop building all devs on this branch
- Run olddeps after linting
2022-03-30 18:27:35 +01:00
David Robertson 5f8db3ed0e DOCS: recommend poetry where appropriate
In particular the documentaion for contributors should only advocate
poetry.

I am not thrilled at the propsect of now having N+1 installation
methods---but at the very least we ought to mention poetry here.
2022-03-30 17:51:52 +01:00
David Robertson b03ffaa409 Changelog 2022-03-30 17:51:51 +01:00
Sean Quah d3386afe40 CI: Fix Twisted trunk to run under poetry
Signed-off-by: Sean Quah <seanq@element.io>
2022-03-30 17:01:54 +01:00
David Robertson 0d8a54abaf CI: Fix the olddeps job to run under poetry 2022-03-30 17:01:54 +01:00
David Robertson 6ab6f61490 CI: Fix the export-data job to run under poetry 2022-03-30 17:01:54 +01:00
David Robertson 03e5c93639 CI: Fix the portdb job to run under poetry 2022-03-30 17:01:54 +01:00
David Robertson 3de49f46ab CI: Fix the "main" trial test runs 2022-03-30 17:01:54 +01:00
David Robertson e53e99edba CI: Use common linting workflow
After #12107 it's much easier for black, isort and flake8 to find the
scripts we want them to lint.
2022-03-30 17:01:54 +01:00
Shay d820ff204b BUILDS: poetry in deb virtualenvs 2022-03-30 17:01:54 +01:00
David Robertson 87ecb333e3 BUILDS: poetry in Synapse docker image 2022-03-30 17:01:54 +01:00
David Robertson c50da488a0 DEPS: Dirty duplication to make all work
See comment in the toml file:

>  The duplication here is awful. I hate hate hate hate hate it.

I don't think that we're going to be adding many extras any time soon,
and I think this is the least bad option.
2022-03-30 17:01:53 +01:00
David Robertson 53e804f296 DEPS: Add missing dependency on importlib_metadata
Missed in #12088. We got away with it because we were indirectly
importing it in other places. Without this, we encounter pain in `poetry
export`; and besides, we should be explicit about our direct
dependencies.
2022-03-30 17:01:53 +01:00
David Robertson 7d574149d3 DEPS: Specify deps in pyproject.toml
- Nuke python_dependencies and setup.py
- Allow commiting poetry.lock
- Initial lockfile pulling in the latest version of deps at the time of locking
2022-03-30 17:01:53 +01:00
David Robertson 211becb069 DEBUG: build all debs 2022-03-30 14:07:49 +01:00
David Robertson 8dc02f9d91 DEBUG: always run twisted trunk; don't raise bugs 2022-03-30 14:07:47 +01:00
Brendan Abolivier 437a8ed9ef Add a configuration to exclude rooms from sync response (#12310) 2022-03-30 09:43:04 +00:00
David Robertson e0bb268134 Fix typechecker problems exposed by signedjson 1.1.2 (#12326) 2022-03-29 21:37:50 +00:00
Richard van der Hoff 1f32b90b0f Room batch: fix up handling of unknown prev_event_ids (#12316) 2022-03-29 14:56:25 +01:00
Sean Quah 8a519f8abc Update LoggingTransaction.call_after and call_on_exception docstrings (#12315)
Document the behaviour of `LoggingTransaction.call_after` and
`LoggingTransaction.call_on_exception` when transactions are retried.

Signed-off-by: Sean Quah <seanq@element.io>
2022-03-29 12:31:05 +01:00
David Robertson a2b00a4486 Bump black and click versions (#12320) 2022-03-29 10:41:19 +00:00
Eric Eastwood 6f2943714b Remove unused auth_event_ids argument plumbing (#12304)
Follow-up to https://github.com/matrix-org/synapse/pull/12083

Since we are now using the new `state_event_ids` parameter to do all of the heavy lifting.
We can remove any spots where we plumbed `auth_event_ids` just for MSC2716 things in
https://github.com/matrix-org/synapse/pull/9247/files.

Removing `auth_event_ids` from following functions:

 - `create_and_send_nonmember_event`
 - `_local_membership_update`
 - `update_membership`
 - `update_membership_locked`
2022-03-29 09:18:52 +01:00
Richard van der Hoff 287a9c1e20 Exclude outliers in on_backfill_request (#12314)
When we are processing a `/backfill` request from a remote server, exclude any
outliers from consideration early on. We can't return outliers anyway (since we
don't know the state at the outlier), and filtering them out earlier means that
we won't attempt to calulate the state for them.
2022-03-28 19:20:14 +01:00
Dirk Klimpel ac95167d2f Add some type hints to datastore. (#12255) 2022-03-28 14:11:14 -04:00
Brendan Abolivier 4ba55a620f Un-revert Jinja2 fix (#12313)
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2022-03-28 17:02:57 +00:00
Brendan Abolivier 8cd760fca8 Allow modules to store already existing 3PID associations (#12195) 2022-03-28 18:57:19 +02:00
reivilibre 89f11f8c6f Improve type annotations for execute_values. (#12311) 2022-03-28 17:21:23 +01:00
villepeh a4643a685c HAProxy guide update (#12279)
HAproxy reverse proxy guide update to stop sending IPv4-mapped address to HS.
2022-03-28 10:48:18 +00:00
Shay 3c41d87b67 Add restrictions by default to open registration in Synapse (#12091) 2022-03-25 10:11:01 -07:00
Erik Johnston 7ca8ee67a5 Add cache for get_membership_from_event_ids (#12272)
This should speed up push rule calculations for rooms with large numbers of local users when the main push rule cache fails.

Co-authored-by: reivilibre <oliverw@matrix.org>
2022-03-25 14:58:56 +00:00
Richard van der Hoff 38adf14998 Enhance logging for inbound federation events (#12301)
It is currently rather hard to see which rooms are causing inbound federation
traffic. Add the room id to the logs.
2022-03-25 14:44:57 +00:00
Eric Eastwood 14662d3c18 Refactor create_new_client_event to use a new parameter, state_event_ids, which accurately describes the usage with MSC2716 instead of abusing auth_event_ids (#12083)
Spawned from https://github.com/matrix-org/synapse/pull/10975#discussion_r813183430

Part of [MSC2716](https://github.com/matrix-org/matrix-spec-proposals/pull/2716)
2022-03-25 09:21:06 -05:00
David Robertson fffb3c4c8f Always allow the empty string as an avatar_url. (#12261)
Hopefully this fixes #12257.

Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
2022-03-25 13:28:42 +00:00
IronTooch 61aae18d45 Authentik OpenID minor doc update (#12275) 2022-03-25 12:40:10 +00:00
Brendan Abolivier 5859e2fe0c Mention the new behaviour on unsafe database locale in the upgrade notes (#12288)
Co-authored-by: Shay <hillerys@element.io>
2022-03-25 10:56:18 +01:00
kegsay 8b7b371ff6 Re-enable test concurrency on Complement (#12283) 2022-03-24 15:59:06 -04:00
Richard van der Hoff b0659a112d Merge branch 'master' into develop 2022-03-24 19:39:45 +00:00
Patrick Cloke 1800bd47a8 Remove unused test code. (#12291)
The `MockHttpResource` and `MockKey` objects were unused
since #9396 (74af356baf).
2022-03-24 19:25:52 +00:00
Richard van der Hoff 9925f9b8b0 changelog v1.55.2 2022-03-24 19:18:55 +00:00
Richard van der Hoff 1642abd77e 1.55.2 2022-03-24 19:13:20 +00:00
Andrew Morgan 84eb14c4d2 Pin Jinja to <3.1.0 (#12297)
as 3.1.0 removed the deprecated jinja2.Markup class which we still rely on.
2022-03-24 18:59:31 +00:00
Andrew Morgan 0004260952 Revert "Replace instances of deprecated Jinja2.Markup with markupsafe.Markup" (#12296)
This reverts commit 8810c93e82.
2022-03-24 18:42:04 +00:00