1
0
Commit Graph

20431 Commits

Author SHA1 Message Date
David Robertson
2ff7fbffcd Docker: pip install --user poetry path fix 2022-04-01 12:38:01 +01:00
David Robertson
0af56b807b Olddeps: cat patched pyproject, instead of diffing 2022-04-01 12:12:53 +01:00
David Robertson
d2df831d4f Merge remote-tracking branch 'origin/develop' into dmr/pyproject-poetry
Resolves conflicts from #12334 (merged to develop in 9a3f1f5383)
2022-03-31 18:24:34 +01:00
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
Brendan Abolivier
5e88143dff Add a callback to react to 3PID associations (#12302) 2022-03-31 18:27:21 +02: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
Richard van der Hoff
34a8370d7b README-testing.md: fix minor error 2022-03-31 13:08:03 +01:00
Patrick Cloke
adbf975623 Remove an unnecessary class from the relations code. (#12338)
The PaginationChunk class attempted to bundle some properties
together, but really just caused callers to jump through hoops and
hid implementation details.
2022-03-31 07:13:49 -04:00
David Robertson
15cdcf8f30 Remove dockerfile-pgtests (#12336) 2022-03-31 11:30:07 +01:00
David Robertson
5a32ec59b2 Ignore .envrc for direnv users (#12335) 2022-03-31 11:03:07 +01:00
David Robertson
9a3f1f5383 Nuke the tox packaging job (#12334) 2022-03-31 11:01:26 +01:00
Brendan Abolivier
f96b85eca8 Ensure the type of URL attributes is always str when matching against preview blacklist (#12333) 2022-03-31 11:49:49 +02: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
Patrick Cloke
c31c1091d4 Remove the unused and unstable /aggregations endpoint. (#12293)
This endpoint was removed from MSC2675 before it was approved.
It is currently unspecified (even in any MSCs) and therefore subject to
removal. It is not implemented by any known clients.

This also changes the bundled aggregation format for `m.annotation`,
which previously included pagination tokens for the `/aggregations`
endpoint, which are no longer useful.
2022-03-30 11:45:32 -04:00
Andrew Morgan
d8d0271977 Send device list updates to application services (MSC3202) - part 1 (#11881)
Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
2022-03-30 14:39:27 +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
reivilibre
2fc15ac718 Flesh out documentation for running SyTest against Synapse, including use of Postgres and worker mode. (#12271)
Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
2022-03-30 12:55:05 +00:00
David Robertson
a7fb66e800 Update dead links in check-newsfragment.sh (#12331) 2022-03-30 11:44:28 +00:00
Andrew Morgan
19a1d6a42a Remove references to "msc2403" (#12165) 2022-03-30 11:15:47 +00:00
Andrew Morgan
c8cbd66d3b Start application service stream token tracking from 1 (#12193)
Co-authored-by: Erik Johnston <erik@matrix.org>
2022-03-30 11:10:12 +00:00
Richard van der Hoff
9b67715bc3 Disable proactive sends for remote joins (#12330)
Do not attempt to send remote joins out over federation. Normally, it will do
nothing; occasionally, it will do the wrong thing.
2022-03-30 12:04:35 +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