1
0
Commit Graph

20886 Commits

Author SHA1 Message Date
Brendan Abolivier
b9ce2499ce Fix value for TOP in sytest 2022-06-08 14:36:02 +01:00
Brendan Abolivier
c7a86def4a Switch back to relative files 2022-06-08 14:35:49 +01:00
Brendan Abolivier
e9097a71a3 Revert change to .coveragerc 2022-06-08 14:08:05 +01:00
Brendan Abolivier
45635f58cf More tweaking 2022-06-08 14:00:23 +01:00
Brendan Abolivier
5591739b68 Stop using relative files and instead try to tell coverage which paths are equivalent 2022-06-08 13:56:43 +01:00
Brendan Abolivier
efe2f85e3c Run less stuff in CI 2022-06-08 13:55:39 +01:00
Brendan Abolivier
a8046e43ed Fix limited test list 2022-06-08 11:17:31 +01:00
Brendan Abolivier
a7891a6de9 Use correct value for TOP in Sytest 2022-06-08 11:08:01 +01:00
Brendan Abolivier
ea40fbb3d6 Don't run all the tests for now 2022-06-08 11:00:13 +01:00
Brendan Abolivier
debe16aef5 Fix source location 2022-06-07 17:06:21 +01:00
Brendan Abolivier
7ccae6c43a Update poetry lock file 2022-06-07 16:26:30 +01:00
Brendan Abolivier
f699573e68 Merge branch 'develop' of github.com:matrix-org/synapse into babolivier/sonar_coverage 2022-06-07 16:24:56 +01:00
Brendan Abolivier
c405a1aa67 Define source 2022-06-07 16:16:37 +01:00
Daniel Aloni
b5a3aecf18 Return the same error message from /login when password is incorrect and when account doesn't exist. (#12738) 2022-06-07 14:58:48 +00:00
David Robertson
f30bcbd84a Fix Synapse git info missing in version strings (#12973) 2022-06-07 15:24:11 +01:00
Erik Johnston
a7e506ddee Reduce amount of state we pull out when attempting to send catchup PDUs. (#12963)
* Don't pull out state for catchup

* Newsfile

* Merge newsfile
2022-06-07 14:35:56 +01:00
Patrick Cloke
d2fd7f7b5c Fix a stale comment in get_room_version_id_txn. (#12969) 2022-06-07 07:44:31 -04:00
Patrick Cloke
9dc3293e0b Consolidate the logic of delete_device/delete_devices. (#12970)
By always using delete_devices and sometimes passing a list
with a single device ID.

Previously these methods had gotten out of sync with each
other and it seems there's little benefit to the single-device
variant.
2022-06-07 07:43:35 -04:00
Andrew Morgan
c51f5b9592 Prevent breaking old sqlite's when media retention is enabled (#12977) 2022-06-07 11:28:08 +00:00
Andrew Morgan
a47636c570 Prevent local quarantined media from being claimed by media retention (#12972) 2022-06-07 10:53:47 +00:00
Brendan Abolivier
5a6da55637 Always use relative paths 2022-06-07 11:45:26 +01:00
Brendan Abolivier
ea2478b68f Make coverage job depend on sytest 2022-06-07 11:23:33 +01:00
Brendan Abolivier
8e4b43dc41 Retrieve coverage files from sytest 2022-06-07 11:01:33 +01:00
Michael Telatynski
204f820c04 Update coverage to 6.4.1
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2022-06-07 10:19:04 +01:00
Michael Telatynski
45e57d3fb3 Merge branch 'develop' of https://github.com/matrix-org/synapse into sonar
 Conflicts:
	poetry.lock
2022-06-07 10:14:42 +01:00
Patrick Cloke
f7baffd8ec Remove remaining pieces of groups code. (#12966)
* Remove an unused stream ID generator.
* Remove the now unused remote profile cache.
2022-06-06 13:20:05 -04:00
Erik Johnston
44de53bb79 Reduce state pulled from DB due to sending typing and receipts over federation (#12964)
Reducing the amount of state we pull from the DB is useful as fetching state is expensive in terms of DB, CPU and memory.
2022-06-06 16:46:11 +01:00
Patrick Cloke
148fe58a24 Do not break URL previews if an image is unreachable. (#12950)
Avoid breaking a URL preview completely if the chosen image 404s
or is unreachable for some other reason (e.g. DNS).
2022-06-06 07:46:04 -04:00
Patrick Cloke
1acc897c31 Implement MSC3816, consider the root event for thread participation. (#12766)
As opposed to only considering a user to have "participated" if they
replied to the thread.
2022-06-06 07:18:04 -04:00
Jan Christian Grünhage
fcd8703508 Allow updating passwords using the admin api without logging out devices (#12952) 2022-06-06 12:10:13 +01:00
Erik Johnston
e3163e2e11 Reduce the amount of state we pull from the DB (#12811) 2022-06-06 09:24:12 +01:00
Patrick Cloke
6b46c3eb3d Remove groups code from synapse_port_db. (#12899) 2022-06-03 12:13:35 -04:00
Patrick Cloke
01df5bacac Improve URL previews for some pages (#12951)
* Skip `og` and `meta` tags where the value is empty.
* Fallback to the favicon if there are no other images.
* Ignore tags meant for navigation.
2022-06-03 12:09:12 -04:00
Erik Johnston
888a29f412 Wait for lazy join to complete when getting current state (#12872) 2022-06-01 16:02:53 +01:00
Michael Telatynski
782cb7420a Fix complement tests using the wrong path (#12933) 2022-06-01 15:57:09 +01:00
Michael Telatynski
35d2211efe Merge remote-tracking branch 't3chguy/sonar' into sonar 2022-06-01 15:08:26 +01:00
Michael Telatynski
b06bd9954c Update to matrix-org/sonarcloud-workflow-action@v2.1
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2022-06-01 15:08:03 +01:00
Patrick Cloke
7bc08f3201 Remove remaining bits of groups code. (#12936)
* Update worker docs to remove group endpoints.
* Removes an unused parameter to `ApplicationService`.
* Break dependency between media repo and groups.
* Avoid copying `m.room.related_groups` state events during room upgrades.
2022-06-01 09:41:25 -04:00
Jacek Kuśnierz
88193f2125 Remove direct refeferences to PyNaCl (use signedjson instead). (#12902) 2022-06-01 07:32:35 -04:00
Richard van der Hoff
79dadf7216 Fix 404 on /sync when the last event is a redaction of an unknown/purged event (#12905)
Currently, we try to pull the event corresponding to a sync token from the database. However, when
we fetch redaction events, we check the target of that redaction (because we aren't allowed to send
redactions to clients without validating them). So, if the sync token points to a redaction of an event
that we don't have, we have a problem.

It turns out we don't really need that event, and can just work with its ID and metadata, which
sidesteps the whole problem.
2022-06-01 11:29:51 +00:00
Erik Johnston
5949ab86f8 Fix potential thumbnail memory leaks. (#12932) 2022-06-01 10:57:49 +00:00
Michael Telatynski
fc8262bb41 Merge branch 'develop' into sonar 2022-06-01 10:00:57 +01:00
Michael Telatynski
2cd4be8008 Revert spacing tweak
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2022-06-01 08:42:58 +01:00
Michael Telatynski
2bb8d38adf Update sonarqube workflow to use new composite action
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2022-06-01 08:42:21 +01:00
Patrick Cloke
2e8763ec96 Remove most groups datastore code. (#12895)
The remaining piece is a background update that is needed
for backwards compatibility.
2022-05-31 20:28:17 -04:00
Richard van der Hoff
f0aec0abef Improve logging when signature checks fail (#12925)
* Raise a dedicated `InvalidEventSignatureError` from `_check_sigs_on_pdu`

* Downgrade logging about redactions to DEBUG

this can be very spammy during a room join, and it's not very useful.

* Raise `InvalidEventSignatureError` from `_check_sigs_and_hash`

... and, more importantly, move the logging out to the callers.

* changelog
2022-05-31 23:32:56 +01:00
Patrick Cloke
cf05258f76 Remove groups replication code. (#12900)
The replication logic for groups is no longer used, so the message
passing infrastructure can be removed.
2022-05-31 13:04:08 -04:00
Andrew Morgan
2fc787c341 Add config options for media retention (#12732) 2022-05-31 16:35:29 +00:00
Sean Quah
641908f72f Faster room joins: Resume state re-syncing after a Synapse restart (#12813)
Signed-off-by: Sean Quah <seanq@matrix.org>
2022-05-31 15:15:08 +00:00
Sean Quah
2fba1076c5 Faster room joins: Try other destinations when resyncing the state of a partial-state room (#12812)
Signed-off-by: Sean Quah <seanq@matrix.org>
2022-05-31 15:50:29 +01:00