summary refs log tree commit diff
Commit message (Collapse)AuthorAgeFilesLines
* Sliding sync: Ignore invites from ignored users (#17729)Eric Eastwood2024-09-183-2/+142
| | | `m.ignored_user_list` in account data
* Sliding Sync: Shortcut for checking if certain background updates have ↵Eric Eastwood2024-09-182-0/+7
| | | | | | | | | | | | completed (#17724) Shortcut for checking if certain background updates have completed Pulling this change out from one of @erikjohnston's branches (https://github.com/element-hq/synapse/compare/develop...erikj/ss_perf) --------- Co-authored-by: Erik Johnston <erikj@element.io>
* Sliding Sync: bugfix: ensure we can sync with SSS even with missing rooms ↵Kegan Dougal2024-09-182-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#17727) Fixes https://github.com/element-hq/element-x-ios/issues/3300 Some rooms are missing from `sliding_sync_joined_rooms`. When this happens, the first call will succeed, but any subsequent calls for this room ID will cause the cache to return `None` for the room ID, rather than not having the key at all. This then causes the `<=` check to throw. Root cause: https://github.com/element-hq/synapse/issues/17726 ### Pull Request Checklist <!-- Please read https://element-hq.github.io/synapse/latest/development/contributing_guide.html before submitting your pull request --> * [x] Pull request is based on the develop branch * [ ] Pull request includes a [changelog file](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#changelog). The entry should: - Be a short description of your change which makes sense to users. "Fixed a bug that prevented receiving messages from other servers." instead of "Moved X method from `EventStore` to `EventWorkerStore`.". - Use markdown where necessary, mostly for `code blocks`. - End with either a period (.) or an exclamation mark (!). - Start with a capital letter. - Feel free to credit yourself, by adding a sentence "Contributed by @github_username." or "Contributed by [Your Name]." to the end of the entry. * [ ] [Code style](https://element-hq.github.io/synapse/latest/code_style.html) is correct (run the [linters](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#run-the-linters))
* Add an Admin API endpoint to redact all a user's events (#17506)Shay2024-09-187-5/+712
|
* Sliding Sync: Short-circuit `have_finished_sliding_sync_background_jobs` ↵Eric Eastwood2024-09-172-2/+3
| | | | | | | | (#17723) We only need to check it if returned bump stamp is `None`, which is rare. Pulling this change out from one of @erikjohnston's branches (https://github.com/element-hq/synapse/compare/develop...erikj/ss_perf)
* Merge branch 'master' into developOlivier 'reivilibre2024-09-173-1/+14
|\
| * 1.115.0 v1.115.0Olivier 'reivilibre2024-09-173-1/+14
| |
* | Sliding Sync: Return room tags in account data extension (#17707)Eric Eastwood2024-09-165-65/+226
| | | | | | | | | | | | The account data extension was also updated to avoid copies when we pull the data out of the cache. Fix https://github.com/element-hq/synapse/issues/17694
* | Bump anyhow from 1.0.87 to 1.0.89 (#17716)dependabot[bot]2024-09-161-2/+2
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump pyasn1 from 0.6.0 to 0.6.1 (#17714)dependabot[bot]2024-09-161-3/+3
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump ruff from 0.6.4 to 0.6.5 (#17715)dependabot[bot]2024-09-162-21/+21
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump types-requests from 2.32.0.20240712 to 2.32.0.20240914 (#17713)dependabot[bot]2024-09-161-3/+3
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump sentry-sdk from 2.13.0 to 2.14.0 (#17712)dependabot[bot]2024-09-161-3/+3
| |
* | Sliding Sync: Support filtering by 'tags' / 'not_tags' in SSS (#17662)David Baker2024-09-123-3/+369
| | | | | | | | | | | | | | | | This appears to be enough to make Element Web work (or at least move it on to the next hurdle) --------- Co-authored-by: Eric Eastwood <eric.eastwood@beta.gouv.fr>
* | Sliding Sync: Increase concurrency of sliding sync a bit (#17696)Erik Johnston2024-09-123-2/+11
| | | | | | | | | | | | For initial requests a typical page size is 20 rooms, so we may as well do the batching as 20. This should speed up bigger syncs a little bit.
* | Sliding Sync: Move filters tests to rest layer (#17703)Eric Eastwood2024-09-129-1795/+1928
| | | | | | | | | | | | | | | | | | | | | | | | | | Move filters tests to rest layer in order to test the new (with sliding sync tables) and fallback paths that Sliding Sync can use. Also found a bug in the new path because it's not being tested which is also fixed in this PR. We now take into account `has_known_state` when filtering. Spawning from https://github.com/element-hq/synapse/pull/17662#discussion_r1755574791. This should have been done when we started using the new sliding sync tables in https://github.com/element-hq/synapse/pull/17630
* | Merge branch 'release-v1.115' into developAndrew Morgan2024-09-125-3/+17
|\|
| * 1.115.0rc2 v1.115.0rc2Andrew Morgan2024-09-125-3/+17
| |
* | import pydantic objects from the `_pydantic_compat` module (#17667)Éloi Rivard2024-09-1118-161/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This PR changes `from pydantic import BaseModel` to `from synapse._pydantic_compat import BaseModel` (as well as `constr`, `conbytes`, `conint`, `confloat`). It allows `check_pydantic_models.py` to mock those pydantic objects only in the synapse module, and not interfere with pydantic objects in external dependencies. This should solve the CI problems for #17144, which breaks because `check_pydantic_models.py` patches pydantic models from [scim2-models](https://scim2-models.readthedocs.io/). /cc @DMRobertson @gotmax23 fixes #17659 ### Pull Request Checklist <!-- Please read https://element-hq.github.io/synapse/latest/development/contributing_guide.html before submitting your pull request --> * [x] Pull request is based on the develop branch * [x] Pull request includes a [changelog file](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#changelog). The entry should: - Be a short description of your change which makes sense to users. "Fixed a bug that prevented receiving messages from other servers." instead of "Moved X method from `EventStore` to `EventWorkerStore`.". - Use markdown where necessary, mostly for `code blocks`. - End with either a period (.) or an exclamation mark (!). - Start with a capital letter. - Feel free to credit yourself, by adding a sentence "Contributed by @github_username." or "Contributed by [Your Name]." to the end of the entry. * [x] [Code style](https://element-hq.github.io/synapse/latest/code_style.html) is correct (run the [linters](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#run-the-linters))
* | Sliding Sync: Use Sliding Sync tables for sorting (#17693)Eric Eastwood2024-09-118-105/+103
| | | | | | | | | | Use Sliding Sync tables for sorting (`bulk_get_last_event_pos_in_room_before_stream_ordering(...)` -> `_bulk_get_max_event_pos(...)`)
* | Sliding Sync: Make sure we get up-to-date information from ↵Eric Eastwood2024-09-115-56/+160
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `get_sliding_sync_rooms_for_user(...)` (#17692) We need to bust the `get_sliding_sync_rooms_for_user` cache when the room encryption is updated and any other field that is used in the query. Follow-up to https://github.com/element-hq/synapse/pull/17630 - Bust cache for membership change (cross-reference `get_rooms_for_user`) - Bust cache for room `encryption` (cross-reference `get_room_encryption`) - Bust cache for `forgotten` (cross-reference `did_forget`/`get_forgotten_rooms_for_user`)
* | Merge remote-tracking branch 'origin/release-v1.115' into developErik Johnston2024-09-110-0/+0
|\|
| * Sliding sync: don't fetch room summary for named rooms. (#17683)Erik Johnston2024-09-117-76/+121
| | | | | | | | | | | | | | | | | | | | For rooms with a name we can skip fetching a full room summary, as we don't need to calculate heroes, and instead just fetch the room counts directly. This also changes things to not return counts and heroes for non-joined rooms. For left/banned rooms we were returning zero values anyway, and for invite/knock rooms we don't really want to leak such information (even if some of is included in the stripped state).
| * Sliding sync: various fixups to the background update (#17652)Erik Johnston2024-09-114-180/+186
| |
* | Sliding sync: various fixups to the background update (#17652)Erik Johnston2024-09-114-180/+186
| |
* | Sliding sync: don't fetch room summary for named rooms. (#17683)Erik Johnston2024-09-117-76/+121
| | | | | | | | | | | | | | | | | | | | For rooms with a name we can skip fetching a full room summary, as we don't need to calculate heroes, and instead just fetch the room counts directly. This also changes things to not return counts and heroes for non-joined rooms. For left/banned rooms we were returning zero values anyway, and for invite/knock rooms we don't really want to leak such information (even if some of is included in the stripped state).
* | Enable guest access on new media endpoints, per MSC4189 (#17675)Travis Ralston2024-09-102-2/+3
| |
* | Add config option turn_shared_secret_path (#17690)V024602024-09-103-1/+30
| | | | | | | | Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
* | Bump anyhow from 1.0.86 to 1.0.87 (#17685)dependabot[bot]2024-09-101-2/+2
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Fix minor misspelling in README.rst. (#17664)Jeremy Wright2024-09-101-1/+1
| |
* | Bump cryptography from 43.0.0 to 43.0.1 (#17689)dependabot[bot]2024-09-101-29/+29
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump serde_json from 1.0.127 to 1.0.128 (#17687)dependabot[bot]2024-09-101-2/+2
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump serde from 1.0.209 to 1.0.210 (#17686)dependabot[bot]2024-09-101-4/+4
|/
* Update changelog v1.115.0rc1Devon Hudson2024-09-101-1/+1
|
* 1.115.0rc1Devon Hudson2024-09-1036-34/+57
|
* Bump idna from 3.7 to 3.8 (#17682)dependabot[bot]2024-09-101-4/+4
|
* Bump types-setuptools from 71.1.0.20240818 to 74.1.0.20240907 (#17681)dependabot[bot]2024-09-101-3/+3
|
* Bump ruff from 0.6.2 to 0.6.4 (#17680)dependabot[bot]2024-09-102-21/+21
|
* Bump authlib from 1.3.1 to 1.3.2 (#17679)dependabot[bot]2024-09-101-3/+3
|
* Sliding sync: various fixups to the sliding sync joined room background job ↵Erik Johnston2024-09-102-9/+19
| | | | | | | | | (#17673) Follow-up to #17652, https://github.com/element-hq/synapse/pull/17641, https://github.com/element-hq/synapse/pull/17634, https://github.com/element-hq/synapse/pull/17631 and https://github.com/element-hq/synapse/pull/17632 to fix-up https://github.com/element-hq/synapse/pull/17512
* Sliding Sync: Look for `bump _stamp` in the room timeline (#17684)Erik Johnston2024-09-102-53/+96
| | | | | | | This allows us to skip checking the database a lot of the time. --------- Co-authored-by: Eric Eastwood <eric.eastwood@beta.gouv.fr>
* Sliding Sync: Retrieve fewer events from DB in sync (#17688)Erik Johnston2024-09-109-92/+90
| | | | When using timeline limit of 1 we end up fetching 2 events from the DB purely to tell if the response was "limited" or not. Lets not do that.
* Sliding Sync: Add comment to explain extra case where you can be invited -> ↵Eric Eastwood2024-09-092-3/+8
| | | | | | | | | banned -> unbanned (#17654) Add comment to explain extra case where you can be invited -> banned -> unbanned and we want to be able to find the invite event. Follow-up to https://github.com/element-hq/synapse/pull/17636#discussion_r1738993330
* Sliding Sync: Get `bump_stamp` from new sliding sync tables because it's ↵Eric Eastwood2024-09-095-56/+333
| | | | | | | | faster (#17658) Get `bump_stamp` from [new sliding sync tables](https://github.com/element-hq/synapse/pull/17512) which should be faster (performance) than flipping through the latest events in the room.
* Revert "Look for bump stamp in the room timeline"Erik Johnston2024-09-091-24/+12
| | | | This reverts commit a3c49565fff95cb332ef5f00b6faaf4803b34153.
* Look for bump stamp in the room timelineErik Johnston2024-09-091-12/+24
| | | | This allows us to skip checking the database a lot of the time.
* Sliding Sync: Speed up incremental sync by avoiding extra work (#17665)Eric Eastwood2024-09-095-46/+471
| | | | | Speed up incremental sync by avoiding extra work. We first look at the state delta changes and only fetch and calculate further derived things if they have changed.
* Fix bump stamp for non-joined rooms (#17674)Erik Johnston2024-09-063-19/+67
| | | | We should only look for bump stamps in joined rooms, otherwise we should just use the membership stream ordering.
* Small performance improvements for sliding sync (#17672)Erik Johnston2024-09-064-17/+26
| | | A couple of small performance improvements for sliding sync.
* Speed up fetching partial-state rooms on sliding sync (#17666)Erik Johnston2024-09-063-20/+35
| | | | | | | | | | Instead of having a large cache of `room_id -> bool` about whether a room is partially stated, replace with a "fetch rooms the user is which are partially-stated". This is a lot faster as the set of partially stated rooms at any point across the whole server is small, and so such a query is fast. The main issue with the bulk cache lookup is the CPU time looking all the rooms up in the cache.
* Speed up sliding sync by avoiding copies (#17670)Erik Johnston2024-09-065-262/+296
| | | | | | | | | We ended up spending ~10% CPU creating a new dictionary and `_RoomMembershipForUser`, so let's avoid creating new dicts and copying by returning `newly_joined`, `newly_left` and `is_dm` as sets directly. --------- Co-authored-by: Eric Eastwood <eric.eastwood@beta.gouv.fr>
* Stabilise MSC4156: `server_name` -> `via` (#17650)Johannes Marbach2024-09-054-19/+9
|
* Revert "Fix bump stamp for non-joined rooms"Erik Johnston2024-09-052-66/+19
| | | | This reverts commit f73c844403de00630fd773075cefe6f502b54e69.
* Fix bump stamp for non-joined roomsErik Johnston2024-09-052-19/+66
| | | | | We should only look for bump stamps in joined rooms, otherwise we should just use the membership stream ordering.
* Fix background update to handle invalid events (#17641)Erik Johnston2024-09-052-3/+7
| | | | | Follow-up to #17634, https://github.com/element-hq/synapse/pull/17631 and https://github.com/element-hq/synapse/pull/17632 to fix-up https://github.com/element-hq/synapse/pull/17512
* Sliding Sync: Prevent duplicate tags being added to traces (#17655)Eric Eastwood2024-09-052-16/+18
| | | | | | | | | Prevent duplicate tags being added to traces. Noticed because we see these warnings in Jaeger: <img width="462" alt="Screenshot 2024-09-03 at 2 34 05 PM" src="https://github.com/user-attachments/assets/6fac12ed-0074-435b-9451-eccde7e7012a">
* Fix sliding sync on workers (#17649)Erik Johnston2024-09-043-11/+13
| | | | | | | Broke in #17630 --------- Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
* Bump twisted from 24.7.0rc1 to 24.7.0 (#17647)dependabot[bot]2024-09-031-3/+3
| | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump types-psycopg2 from 2.9.21.20240417 to 2.9.21.20240819 (#17646)dependabot[bot]2024-09-031-3/+3
| | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump towncrier from 24.7.1 to 24.8.0 (#17645)dependabot[bot]2024-09-031-3/+3
| | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump types-pillow from 10.2.0.20240520 to 10.2.0.20240822 (#17644)dependabot[bot]2024-09-031-3/+3
| | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Merge remote-tracking branch 'origin/release-v1.114' into developErik Johnston2024-09-0213-12/+89
|\
| * Fix changelog v1.114.0Erik Johnston2024-09-021-1/+1
| |
| * Update changelogErik Johnston2024-09-021-0/+6
| |
| * 1.114.0Erik Johnston2024-09-024-2/+16
| |
| * Enable sliding sync support by default (#17648)Erik Johnston2024-09-022-2/+5
| | | | | | Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
| * Fixup changelog v1.114.0rc3Erik Johnston2024-08-301-1/+1
| |
| * 1.114.0rc3Erik Johnston2024-08-304-2/+16
| |
| * Fix starting non-media repos (#17626)Erik Johnston2024-08-302-4/+3
| | | | | | | | | | | | | | | | | | | | Regressed in #17543. The `max_download_size` config is not available on workers that don't load the media repo. Besides, we should honour the max_size param that was passed into the function.
| * Fixup changelogErik Johnston2024-08-301-1/+1
| |
| * Fixup changelog v1.114.0rc2Erik Johnston2024-08-301-1/+1
| |
| * 1.114.0rc2Erik Johnston2024-08-3017-15/+49
| |
| * Replace isort and black with ruff (#17620)Quentin Gliech2024-08-3011-440/+56
| | | | | | Ruff now has decent parity with black and isort, so this is going to just save us a bunch of time
| * MSC3861: load the issuer and account management URLs from OIDC discovery ↵Quentin Gliech2024-08-309-46/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (#17407) This will help mitigating any discrepancies between the issuer configured and the one returned by the OIDC provider. This also removes the need for configuring the `account_management_url` explicitely, as it will now be loaded from the OIDC discovery, as per MSC2965. Because we may now fetch stuff for the .well-known/matrix/client endpoint, this also transforms the client well-known resource to be asynchronous.
| * Use custom stage UIA error for MAS cross-signing reset (#17509)Michael Telatynski2024-08-305-18/+40
| | | | | | | | | | | | Rather than 501 M_UNRECOGNISED Client side implementation at https://github.com/matrix-org/matrix-react-sdk/pull/12892/
| * Sliding sync: Store the per-connection state in the database. (#17599)Erik Johnston2024-08-3014-117/+695
| | | | | | | | | | | | | | | | Based on #17600 --------- Co-authored-by: Eric Eastwood <eric.eastwood@beta.gouv.fr>
| * Sliding Sync: Make `PerConnectionState` immutable (#17600)Erik Johnston2024-08-309-444/+443
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is so that we can cache it. We also move the sliding sync types to `synapse/types/handlers/sliding_sync.py`. This is mainly in-prep for The only change in behaviour is that `RoomSyncConfig.combine_sync_config(..)` now returns a new room sync config rather than mutating in-place. Reviewable commit-by-commit. --------- Co-authored-by: Eric Eastwood <eric.eastwood@beta.gouv.fr>
* | Format files with Ruff (#17643)Quentin Gliech2024-09-02152-492/+526
| | | | | | | | | | | | I thought ruff check would also format, but it doesn't. This runs ruff format in CI and dev scripts. The first commit is just a run of `ruff format .` in the root directory.
* | Sliding sync: use new DB tables (#17630)Erik Johnston2024-09-0121-18/+877
| | | | | | | | | | | | | | | | | | | | | | Based on https://github.com/element-hq/synapse/pull/17629 Utilizing the new sliding sync tables added in https://github.com/element-hq/synapse/pull/17512 for fast acquisition of rooms for the user and filtering/sorting. --------- Co-authored-by: Eric Eastwood <eric.eastwood@beta.gouv.fr>
* | Sliding Sync: Split up `get_room_membership_for_user_at_to_token` (#17629)Erik Johnston2024-09-012-126/+196
| | | | | | | | | | | | | | | | This is to make it easier to reuse the logic when adding support for the new tables --------- Co-authored-by: Eric Eastwood <eric.eastwood@beta.gouv.fr>
* | Revert "Also handle invalid event errors"Erik Johnston2024-09-011-6/+3
| | | | | | | | This reverts commit b4d0356e48857aabcc2d51077c6e3947ab63ae36.
* | Also handle invalid event errorsErik Johnston2024-09-011-3/+6
| |
* | Sliding sync: various fixes to background update (#17636)Erik Johnston2024-09-014-16/+59
| | | | | | Follows on from #17512, other fixes include: #17633, #17634, #17635
* | MSC3861: load the issuer and account management URLs from OIDC discovery ↵Quentin Gliech2024-08-309-46/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (#17407) This will help mitigating any discrepancies between the issuer configured and the one returned by the OIDC provider. This also removes the need for configuring the `account_management_url` explicitely, as it will now be loaded from the OIDC discovery, as per MSC2965. Because we may now fetch stuff for the .well-known/matrix/client endpoint, this also transforms the client well-known resource to be asynchronous.
* | Use custom stage UIA error for MAS cross-signing reset (#17509)Michael Telatynski2024-08-305-18/+40
| | | | | | | | | | | | Rather than 501 M_UNRECOGNISED Client side implementation at https://github.com/matrix-org/matrix-react-sdk/pull/12892/
* | Replace isort and black with ruff (#17620)Quentin Gliech2024-08-3011-440/+56
| | | | | | Ruff now has decent parity with black and isort, so this is going to just save us a bunch of time
* | Sliding sync: Ignore tables with no create event in current state (#17633)Erik Johnston2024-08-302-23/+39
| |
* | Sliding sync: Fix bg update again (v3) (#17634)Erik Johnston2024-08-302-5/+27
| | | | | | | | | | | | | | | | | | Follow-up to https://github.com/element-hq/synapse/pull/17631 and https://github.com/element-hq/synapse/pull/17632 to fix-up https://github.com/element-hq/synapse/pull/17599 --------- Co-authored-by: Eric Eastwood <eric.eastwood@beta.gouv.fr>
* | Sliding Sync: Fix outlier re-persisting causing problems with sliding sync ↵Eric Eastwood2024-08-305-134/+263
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tables (#17635) Fix outlier re-persisting causing problems with sliding sync tables Follow-up to https://github.com/element-hq/synapse/pull/17512 When running on `matrix.org`, we discovered that a remote invite is first persisted as an `outlier` and then re-persisted again where it is de-outliered. The first the time, the `outlier` is persisted with one `stream_ordering` but when persisted again and de-outliered, it is assigned a different `stream_ordering` that won't end up being used. Since we call `_calculate_sliding_sync_table_changes()` before `_update_outliers_txn()` which fixes this discrepancy (always use the `stream_ordering` from the first time it was persisted), we're working with an unreliable `stream_ordering` value that will possibly be unused and not make it into the `events` table.
* | Fix background update for sliding sync (find previous membership) (#17632)Erik Johnston2024-08-292-4/+6
| | | | | | | | | | | | This reverts commit https://github.com/element-hq/synapse/commit/ab414f2ab8a294fbffb417003eeea0f14bbd6588. Introduced in https://github.com/element-hq/synapse/pull/17512
* | Fix background update for sliding sync (#17631)Erik Johnston2024-08-293-18/+24
| | | | | | | | | | This reverts commit ab414f2ab8a294fbffb417003eeea0f14bbd6588. Introduced in https://github.com/element-hq/synapse/pull/17599
* | Sliding sync: Store the per-connection state in the database. (#17599)Erik Johnston2024-08-2914-116/+692
| | | | | | | | | | | | | | Based on #17600 --------- Co-authored-by: Eric Eastwood <eric.eastwood@beta.gouv.fr>
* | Sliding Sync: Make `PerConnectionState` immutable (#17600)Erik Johnston2024-08-299-444/+441
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is so that we can cache it. We also move the sliding sync types to `synapse/types/handlers/sliding_sync.py`. This is mainly in-prep for #17599 to avoid circular imports. The only change in behaviour is that `RoomSyncConfig.combine_sync_config(..)` now returns a new room sync config rather than mutating in-place. Reviewable commit-by-commit. --------- Co-authored-by: Eric Eastwood <eric.eastwood@beta.gouv.fr>
* | Sliding Sync: Pre-populate room data for quick filtering/sorting (#17512)Eric Eastwood2024-08-2922-109/+7408
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pre-populate room data for quick filtering/sorting in the Sliding Sync API Spawning from https://github.com/element-hq/synapse/pull/17450#discussion_r1697335578 This PR is acting as the Synapse version `N+1` step in the gradual migration being tracked by https://github.com/element-hq/synapse/issues/17623 Adding two new database tables: - `sliding_sync_joined_rooms`: A table for storing room meta data that the local server is still participating in. The info here can be shared across all `Membership.JOIN`. Keyed on `(room_id)` and updated when the relevant room current state changes or a new event is sent in the room. - `sliding_sync_membership_snapshots`: A table for storing a snapshot of room meta data at the time of the local user's membership. Keyed on `(room_id, user_id)` and only updated when a user's membership in a room changes. Also adds background updates to populate these tables with all of the existing data. We want to have the guarantee that if a row exists in the sliding sync tables, we are able to rely on it (accurate data). And if a row doesn't exist, we use a fallback to get the same info until the background updates fill in the rows or a new event comes in triggering it to be fully inserted. This means we need a couple extra things in place until we bump `SCHEMA_COMPAT_VERSION` and run the foreground update in the `N+2` part of the gradual migration. For context on why we can't rely on the tables without these things see [1]. 1. On start-up, block until we clear out any rows for the rooms that have had events since the max-`stream_ordering` of the `sliding_sync_joined_rooms` table (compare to max-`stream_ordering` of the `events` table). For `sliding_sync_membership_snapshots`, we can compare to the max-`stream_ordering` of `local_current_membership` - This accounts for when someone downgrades their Synapse version and then upgrades it again. This will ensure that we don't have any stale/out-of-date data in the `sliding_sync_joined_rooms`/`sliding_sync_membership_snapshots` tables since any new events sent in rooms would have also needed to be written to the sliding sync tables. For example a new event needs to bump `event_stream_ordering` in `sliding_sync_joined_rooms` table or some state in the room changing (like the room name). Or another example of someone's membership changing in a room affecting `sliding_sync_membership_snapshots`. 1. Add another background update that will catch-up with any rows that were just deleted from the sliding sync tables (based on the activity in the `events`/`local_current_membership`). The rooms that need recalculating are added to the `sliding_sync_joined_rooms_to_recalculate` table. 1. Making sure rows are fully inserted. Instead of partially inserting, we need to check if the row already exists and fully insert all data if not. All of this extra functionality can be removed once the `SCHEMA_COMPAT_VERSION` is bumped with support for the new sliding sync tables so people can no longer downgrade (the `N+2` part of the gradual migration). <details> <summary><sup>[1]</sup></summary> For `sliding_sync_joined_rooms`, since we partially insert rows as state comes in, we can't rely on the existence of the row for a given `room_id`. We can't even rely on looking at whether the background update has finished. There could still be partial rows from when someone reverted their Synapse version after the background update finished, had some state changes (or new rooms), then upgraded again and more state changes happen leaving a partial row. For `sliding_sync_membership_snapshots`, we insert items as a whole except for the `forgotten` column ~~so we can rely on rows existing and just need to always use a fallback for the `forgotten` data. We can't use the `forgotten` column in the table for the same reasons above about `sliding_sync_joined_rooms`.~~ We could have an out-of-date membership from when someone reverted their Synapse version. (same problems as outlined for `sliding_sync_joined_rooms` above) Discussed in an [internal meeting](https://docs.google.com/document/d/1MnuvPkaCkT_wviSQZ6YKBjiWciCBFMd-7hxyCO-OCbQ/edit#bookmark=id.dz5x6ef4mxz7) </details> ### TODO - [x] Update `stream_ordering`/`bump_stamp` - [x] Handle remote invites - [x] Handle state resets - [x] Consider adding `sender` so we can filter `LEAVE` memberships and distinguish from kicks. - [x] We should add it to be able to tell leaves from kicks - [x] Consider adding `tombstone` state to help address https://github.com/element-hq/synapse/issues/17540 - [x] We should add it `tombstone_successor_room_id` - [x] Consider adding `forgotten` status to avoid extra lookup/table-join on `room_memberships` - [x] We should add it - [x] Background update to fill in values for all joined rooms and non-join membership - [x] Clean-up tables when room is deleted - [ ] Make sure tables are useful to our use case - First explored in https://github.com/element-hq/synapse/compare/erikj/ss_use_new_tables - Also explored in https://github.com/element-hq/synapse/commit/76b5a576eb363496315dfd39510cad7d02b0fc73 - [x] Plan for how can we use this with a fallback - See plan discussed above in main area of the issue description - Discussed in an [internal meeting](https://docs.google.com/document/d/1MnuvPkaCkT_wviSQZ6YKBjiWciCBFMd-7hxyCO-OCbQ/edit#bookmark=id.dz5x6ef4mxz7) - [x] Plan for how we can rely on this new table without a fallback - Synapse version `N+1`: (this PR) Bump `SCHEMA_VERSION` to `87`. Add new tables and background update to backfill all rows. Since this is a new table, we don't have to add any `NOT VALID` constraints and validate them when the background update completes. Read from new tables with a fallback in cases where the rows aren't filled in yet. - Synapse version `N+2`: Bump `SCHEMA_VERSION` to `88` and bump `SCHEMA_COMPAT_VERSION` to `87` because we don't want people to downgrade and miss writes while they are on an older version. Add a foreground update to finish off the backfill so we can read from new tables without the fallback. Application code can now rely on the new tables being populated. - Discussed in an [internal meeting](https://docs.google.com/document/d/1MnuvPkaCkT_wviSQZ6YKBjiWciCBFMd-7hxyCO-OCbQ/edit#bookmark=id.hh7shg4cxdhj) ### Dev notes ``` SYNAPSE_TEST_LOG_LEVEL=INFO poetry run trial tests.storage.test_events.SlidingSyncPrePopulatedTablesTestCase SYNAPSE_POSTGRES=1 SYNAPSE_POSTGRES_USER=postgres SYNAPSE_TEST_LOG_LEVEL=INFO poetry run trial tests.storage.test_events.SlidingSyncPrePopulatedTablesTestCase ``` ``` SYNAPSE_TEST_LOG_LEVEL=INFO poetry run trial tests.handlers.test_sliding_sync.FilterRoomsTestCase ``` Reference: - [Development docs on background updates and worked examples of gradual migrations ](https://github.com/element-hq/synapse/blob/1dfa59b238cee0dc62163588cc9481896c288979/docs/development/database_schema.md#background-updates) - A real example of a gradual migration: https://github.com/matrix-org/synapse/pull/15649#discussion_r1213779514 - Adding `rooms.creator` field that needed a background update to backfill data, https://github.com/matrix-org/synapse/pull/10697 - Adding `rooms.room_version` that needed a background update to backfill data, https://github.com/matrix-org/synapse/pull/6729 - Adding `room_stats_state.room_type` that needed a background update to backfill data, https://github.com/matrix-org/synapse/pull/13031 - Tables from MSC2716: `insertion_events`, `insertion_event_edges`, `insertion_event_extremities`, `batch_events` - `current_state_events` updated in `synapse/storage/databases/main/events.py` --- ``` persist_event (adds to queue) _persist_event_batch _persist_events_and_state_updates (assigns `stream_ordering` to events) _persist_events_txn _store_event_txn _update_metadata_tables_txn _store_room_members_txn _update_current_state_txn ``` --- > Concatenated Indexes [...] (also known as multi-column, composite or combined index) > > [...] key consists of multiple columns. > > We can take advantage of the fact that the first index column is always usable for searching > > *-- https://use-the-index-luke.com/sql/where-clause/the-equals-operator/concatenated-keys* --- Dealing with `portdb` (`synapse/_scripts/synapse_port_db.py`), https://github.com/element-hq/synapse/pull/17512#discussion_r1725998219 --- <details> <summary>SQL queries:</summary> Both of these are equivalent and work in SQLite and Postgres Options 1: ```sql WITH data_table (room_id, user_id, membership_event_id, membership, event_stream_ordering, {", ".join(insert_keys)}) AS ( VALUES ( ?, ?, ?, (SELECT membership FROM room_memberships WHERE event_id = ?), (SELECT stream_ordering FROM events WHERE event_id = ?), {", ".join("?" for _ in insert_values)} ) ) INSERT INTO sliding_sync_non_join_memberships (room_id, user_id, membership_event_id, membership, event_stream_ordering, {", ".join(insert_keys)}) SELECT * FROM data_table WHERE membership != ? ON CONFLICT (room_id, user_id) DO UPDATE SET membership_event_id = EXCLUDED.membership_event_id, membership = EXCLUDED.membership, event_stream_ordering = EXCLUDED.event_stream_ordering, {", ".join(f"{key} = EXCLUDED.{key}" for key in insert_keys)} ``` Option 2: ```sql INSERT INTO sliding_sync_non_join_memberships (room_id, user_id, membership_event_id, membership, event_stream_ordering, {", ".join(insert_keys)}) SELECT column1 as room_id, column2 as user_id, column3 as membership_event_id, column4 as membership, column5 as event_stream_ordering, {", ".join("column" + str(i) for i in range(6, 6 + len(insert_keys)))} FROM ( VALUES ( ?, ?, ?, (SELECT membership FROM room_memberships WHERE event_id = ?), (SELECT stream_ordering FROM events WHERE event_id = ?), {", ".join("?" for _ in insert_values)} ) ) as v WHERE membership != ? ON CONFLICT (room_id, user_id) DO UPDATE SET membership_event_id = EXCLUDED.membership_event_id, membership = EXCLUDED.membership, event_stream_ordering = EXCLUDED.event_stream_ordering, {", ".join(f"{key} = EXCLUDED.{key}" for key in insert_keys)} ``` If we don't need the `membership` condition, we could use: ```sql INSERT INTO sliding_sync_non_join_memberships (room_id, membership_event_id, user_id, membership, event_stream_ordering, {", ".join(insert_keys)}) VALUES ( ?, ?, ?, (SELECT membership FROM room_memberships WHERE event_id = ?), (SELECT stream_ordering FROM events WHERE event_id = ?), {", ".join("?" for _ in insert_values)} ) ON CONFLICT (room_id, user_id) DO UPDATE SET membership_event_id = EXCLUDED.membership_event_id, membership = EXCLUDED.membership, event_stream_ordering = EXCLUDED.event_stream_ordering, {", ".join(f"{key} = EXCLUDED.{key}" for key in insert_keys)} ``` </details> ### Pull Request Checklist <!-- Please read https://element-hq.github.io/synapse/latest/development/contributing_guide.html before submitting your pull request --> * [x] Pull request is based on the develop branch * [x] Pull request includes a [changelog file](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#changelog). The entry should: - Be a short description of your change which makes sense to users. "Fixed a bug that prevented receiving messages from other servers." instead of "Moved X method from `EventStore` to `EventWorkerStore`.". - Use markdown where necessary, mostly for `code blocks`. - End with either a period (.) or an exclamation mark (!). - Start with a capital letter. - Feel free to credit yourself, by adding a sentence "Contributed by @github_username." or "Contributed by [Your Name]." to the end of the entry. * [x] [Code style](https://element-hq.github.io/synapse/latest/code_style.html) is correct (run the [linters](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#run-the-linters)) --------- Co-authored-by: Erik Johnston <erik@matrix.org>
* | Fix Internal Server Error for Non-Local Users in Room Actions (#17607)Gordan Trevis2024-08-293-5/+26
| |
* | Fix starting non-media repos (#17626)Erik Johnston2024-08-293-5/+4
| | | | | | | | | | | | | | | | | | Regressed in #17543. The `max_download_size` config is not available on workers that don't load the media repo. Besides, we should honour the max_size param that was passed into the function.
* | docs: fix typo in saml2_config example (#17594)meise2024-08-292-2/+3
| |
* | fix listener docs - admin api only on main process (#17590)Dirk Klimpel2024-08-292-3/+5
|/
* Sliding sync: Always send your own receipts down (#17617)Erik Johnston2024-08-294-87/+359
| | | | | | | | | | | When returning receipts in sliding sync for initial rooms we should always include our own receipts in the room (even if they don't match any timeline events). Reviewable commit-by-commit. --------- Co-authored-by: Eric Eastwood <eric.eastwood@beta.gouv.fr>
* Use `max_upload_size` as the limit when following the `Location` header (#17543)Till2024-08-293-1/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise we use the `expected_size` from the initial federation request, which might be far too low. ### Pull Request Checklist <!-- Please read https://element-hq.github.io/synapse/latest/development/contributing_guide.html before submitting your pull request --> * [x] Pull request is based on the develop branch * [x] Pull request includes a [changelog file](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#changelog). The entry should: - Be a short description of your change which makes sense to users. "Fixed a bug that prevented receiving messages from other servers." instead of "Moved X method from `EventStore` to `EventWorkerStore`.". - Use markdown where necessary, mostly for `code blocks`. - End with either a period (.) or an exclamation mark (!). - Start with a capital letter. - Feel free to credit yourself, by adding a sentence "Contributed by @github_username." or "Contributed by [Your Name]." to the end of the entry. * [x] [Code style](https://element-hq.github.io/synapse/latest/code_style.html) is correct (run the [linters](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#run-the-linters)) --------- Co-authored-by: Erik Johnston <erikj@element.io>
* Sliding sync: factor out room list logic (#17622)Erik Johnston2024-08-287-1356/+1468
| | | | | | | | | Move calculating of the room lists out of the core handler. This should make it easier to switch things around to start using the tables in #17512. This is just moving code between files and methods. Reviewable commit-by-commit
* Fix hierarchy returning 403 when room is accessible through federation (#17194)Krishan2024-08-283-2/+72
|
* Fix content length on federation `/thumbnail` responses (#17532)Shay2024-08-284-20/+41
|
* Bump serde from 1.0.208 to 1.0.209 (#17613)dependabot[bot]2024-08-281-4/+4
|
* hash_password accepts stdin now (#17608)eyJhb2024-08-275-11/+216
| | | | | | `hash_password` now actually accepts password from stdin. The `getpass` reads from TTY, and does NOT accept stdin in any way. The manpage has been updated to reflect that.
* Bump pyyaml from 6.0.1 to 6.0.2 (#17611)dependabot[bot]2024-08-271-53/+55
|
* Bump phonenumbers from 8.13.43 to 8.13.44 (#17610)dependabot[bot]2024-08-271-3/+3
|
* Bump attrs from 23.2.0 to 24.2.0 (#17609)dependabot[bot]2024-08-271-9/+9
|
* Bump pygithub from 2.3.0 to 2.4.0 (#17612)dependabot[bot]2024-08-271-4/+4
|
* Bump serde_json from 1.0.125 to 1.0.127 (#17614)dependabot[bot]2024-08-271-2/+2
|
* Speed up fetching latest stream positions via cache (#17606)Erik Johnston2024-08-273-67/+77
| | | | The idea is to engineer it so that the vast majority of the rooms can stay in the cache, so we can just ignore them.
* Fix @tag_args for non-methods (#17604)Erik Johnston2024-08-272-7/+8
| | | The decorator assumed we were always wrapping function methods
* Bump types-setuptools from 71.1.0.20240726 to 71.1.0.20240818 (#17586)dependabot[bot]2024-08-231-3/+3
|
* Bump sentry-sdk from 2.12.0 to 2.13.0 (#17585)dependabot[bot]2024-08-231-3/+4
|
* Bump cryptography from 42.0.8 to 43.0.0 (#17584)dependabot[bot]2024-08-231-34/+29
|
* Bump types-jsonschema from 4.23.0.20240712 to 4.23.0.20240813 (#17583)dependabot[bot]2024-08-231-3/+14
|
* Bump serde_json from 1.0.124 to 1.0.125 (#17582)dependabot[bot]2024-08-231-2/+2
|
* Bump serde from 1.0.206 to 1.0.208 (#17581)dependabot[bot]2024-08-231-4/+4
|
* Sliding sync: Split up handler into its own module (#17595)Erik Johnston2024-08-205-1267/+1380
| | | | | | | | | That file was getting long. The changes are non functional, and simply split things up into: - the main class - the connection store - the extensions - the types
* changelog: move SSSS some changes in the features section v1.114.0rc1Quentin Gliech2024-08-201-3/+6
|
* 1.114.0rc1Quentin Gliech2024-08-2034-34/+58
|
* Sliding Sync: Speed up getting receipts for initial rooms (#17592)Erik Johnston2024-08-204-29/+108
| | | | | Let's only pull out the events we care about. Note that the index isn't necessary here, as postgres is happy to scan the set of rooms for the events.
* Add metrics for sliding sync processing time (#17593)Erik Johnston2024-08-202-0/+16
| | | | This should let us see how quickly we actually process things in practice.
* Sliding Sync: Handle timeline limit changes (take 2) (#17579)Erik Johnston2024-08-205-13/+285
| | | | | | | | | | | | | | | This supersedes #17503, given the per-connection state is being heavily rewritten it felt easier to recreate the PR on top of that work. This correctly handles the case of timeline limits going up and down. This does not handle changes in `required_state`, but that can be done as a separate PR. Based on #17575. --------- Co-authored-by: Eric Eastwood <eric.eastwood@beta.gouv.fr>
* Sliding Sync: Batch up fetching receipts (#17589)Erik Johnston2024-08-202-14/+17
| | | This is to make initial sliding sync a bit faster
* Sliding sync: Correctly track which read receipts we have or have not sent ↵Erik Johnston2024-08-196-80/+378
| | | | | | | | | | | down. (#17575) Add connection tracking to the receipts extension. Based on #17574 --------- Co-authored-by: Eric Eastwood <eric.eastwood@beta.gouv.fr>
* Sliding sync: Add classes for per-connection state (#17574)Erik Johnston2024-08-192-94/+190
| | | | | | | | | | | | This is some prep work ahead of correctly tracking receipts, where we will also want to track the room status in terms of last receipt we had sent down. Essentially, we add two classes `PerConnectionState` and a mutable version, and then operate on those. --------- Co-authored-by: Eric Eastwood <eric.eastwood@beta.gouv.fr>
* Fix zero length media handling (#17570)Erik Johnston2024-08-192-1/+2
| | | | | | | | | | | | | | | | | | | Results in: ``` AssertionError: null File "synapse/http/server.py", line 332, in _async_render_wrapper callback_return = await self._async_render(request) File "synapse/http/server.py", line 544, in _async_render callback_return = await raw_callback_return File "synapse/federation/transport/server/_base.py", line 369, in new_func response = await func( File "synapse/federation/transport/server/federation.py", line 826, in on_GET await self.media_repo.get_local_media( File "synapse/media/media_repository.py", line 473, in get_local_media await respond_with_multipart_responder( File "synapse/media/_base.py", line 353, in respond_with_multipart_responder assert content_length is not None ```
* Test github token before running release script (#17562)Erik Johnston2024-08-192-0/+26
| | | | | This stops people from getting half way through a step and it failing due to the github token having expired (this happens to me every damn time).
* Speed up `/keys/changes` (#17548)Erik Johnston2024-08-163-20/+77
| | | | | | Follow on from #17537. This is just adding a batched lookup function (you might want to hide whitespace in the diff).
* Add a flag to /versions about SSS support (#17571)Erik Johnston2024-08-162-0/+7
| | | | | So that clients can check for support. Note that if the feature is only enabled for some users, the `/versions` request must be authenticated to pick up that SSS is enabled for the user
* Register the media threadpool with our metrics (#17566)Andrew Morgan2024-08-142-0/+5
|
* Fix fetching signing keys when `old_verify_keys` is omitted (#17568)Tulir Asokan2024-08-142-1/+2
| | | | | | | `old_verify_keys` isn't marked as required in https://spec.matrix.org/v1.11/server-server-api/#get_matrixkeyv2server and there's no functional difference between an empty object and omitting the object, so I don't think there's any reason synapse should explode when the field is omitted.
* Fix 'Producer was not unregistered' error (#17569)Erik Johnston2024-08-142-0/+4
| | | Follows on from #17567
* Reduce concurrent thread usage in media (#17567)Erik Johnston2024-08-143-39/+90
| | | | | | | | | | | | Follow on from #17558 Basically, we want to reduce the number of threads we want to use at a time, i.e. reduce the number of threads that are paused/blocked. We do this by returning from the thread when the consumer pauses the producer, rather than pausing in the thread. --------- Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
* Handle lower-case http headers in `_Mulitpart_Parser_Protocol` (#17545)Shay2024-08-143-11/+38
|
* Sliding Sync: Exclude partially stated rooms if we must await full state ↵Eric Eastwood2024-08-133-45/+255
| | | | | | | | | | | | | (#17538) Previously, we just had very basic partial room exclusion based on whether we were lazy-loading room members. Now with this PR, we added `must_await_full_state(...)` with rules to check if we have a we're only requesting `required_state` which is completely satisfied even with partial state. Partially-stated rooms should have all state events except for remote membership events so if we require a remote membership event anywhere, then we need to return `True`.
* Use a larger, dedicated threadpool for media sending (#17564)Erik Johnston2024-08-137-17/+48
|
* Add a utility function for generating fake event IDs (#17557)Andrew Morgan2024-08-134-9/+36
|
* Add missing docstrings related to profile methods. (#17559)Patrick Cloke2024-08-133-0/+70
|
* Merge branch 'master' into developErik Johnston2024-08-133-1/+14
|\
| * 1.113.0 v1.113.0Erik Johnston2024-08-133-1/+14
| |
* | Remove logging in multipart (#17563)Erik Johnston2024-08-132-1/+1
| | | | | | | | This is really spurious and causes a lot of spam. I don't think there is a use for it even at DEBUG level.
* | Fixup media logcontexts (#17561)Erik Johnston2024-08-132-2/+10
| | | | | | Regression from #17558
* | Speed up responding to media requests (#17558)Erik Johnston2024-08-137-21/+154
| | | | | | | | | | | | | | We do this by reading from a threadpool, rather than blocking the main thread. This is broadly what we do in the [S3 storage provider](https://github.com/matrix-org/synapse-s3-storage-provider/blob/main/s3_storage_provider.py#L234)
* | Bump serde from 1.0.204 to 1.0.206 (#17556)dependabot[bot]2024-08-131-4/+4
| |
* | Bump setuptools from 67.6.0 to 72.1.0 (#17542)Andrew Morgan2024-08-122-18/+8
| |
* | Bump serde_json from 1.0.122 to 1.0.124 (#17555)dependabot[bot]2024-08-121-2/+2
| |
* | Bump sentry-sdk from 2.10.0 to 2.12.0 (#17553)dependabot[bot]2024-08-121-4/+4
| |
* | Bump types-pyyaml from 6.0.12.20240311 to 6.0.12.20240808 (#17552)dependabot[bot]2024-08-121-3/+3
| |
* | Bump phonenumbers from 8.13.42 to 8.13.43 (#17551)dependabot[bot]2024-08-121-3/+3
| |
* | Bump lxml from 5.2.2 to 5.3.0 (#17550)dependabot[bot]2024-08-121-144/+140
| |
* | Bump sigstore/cosign-installer from 3.5.0 to 3.6.0 (#17549)dependabot[bot]2024-08-121-1/+1
| |
* | Bump types-requests from 2.31.0.20240406 to 2.32.0.20240712 (#17524)dependabot[bot]2024-08-121-3/+3
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Fix performance of device lists in `/key/changes` and sliding sync (#17537) github/developErik Johnston2024-08-094-205/+215
| | | | | | | | | | | | We do this by reusing the code from sync v2. Reviewable commit-by-commit. The function `get_user_ids_changed` has been rewritten entirely, so I would recommend not looking at the diff.
* | Start handlers for new media endpoints when media resource configured (#17483)devonh2024-08-086-70/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is in response to issue #17473. Not all the necessary handlers to deal with media requests are started now when configuring synapse to use a media worker as per the [example config](https://element-hq.github.io/synapse/latest/workers.html#synapseappmedia_repository). The new media endpoints introduced with authenticated media fall under the `client` & `federation` handlers in synapse. This PR starts up handlers for the new media endpoints if a worker has been configured with only the `media` resource type. ### Pull Request Checklist <!-- Please read https://element-hq.github.io/synapse/latest/development/contributing_guide.html before submitting your pull request --> * [X] Pull request is based on the develop branch * [x] Pull request includes a [changelog file](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#changelog). The entry should: - Be a short description of your change which makes sense to users. "Fixed a bug that prevented receiving messages from other servers." instead of "Moved X method from `EventStore` to `EventWorkerStore`.". - Use markdown where necessary, mostly for `code blocks`. - End with either a period (.) or an exclamation mark (!). - Start with a capital letter. - Feel free to credit yourself, by adding a sentence "Contributed by @github_username." or "Contributed by [Your Name]." to the end of the entry. * [X] [Code style](https://element-hq.github.io/synapse/latest/code_style.html) is correct (run the [linters](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#run-the-linters)) --------- Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
* | Replace deprecated `HTTPAdapter.get_connection` method with ↵Andrew Morgan2024-08-082-7/+19
| | | | | | | | `get_connection_with_tls_context` (#17536)
* | SSS: Implement PREVIOUSLY room tracking (#17535)Erik Johnston2024-08-083-88/+53
| | | | | | | | | | | | Implement tracking of rooms that have had updates that have not been sent down to clients. Simplified Sliding Sync (SSS)
* | Sliding Sync: Use `stream_ordering` based timeline pagination for ↵Eric Eastwood2024-08-079-126/+311
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | incremental sync (#17510) Use `stream_ordering` based `timeline` pagination for incremental `/sync` in Sliding Sync. Previously, we were always using a `topological_ordering` but we should only be using that for historical scenarios (initial `/sync`, newly joined, or haven't sent the room down the connection before). This is slightly different than what the [spec suggests](https://spec.matrix.org/v1.10/client-server-api/#syncing) > Events are ordered in this API according to the arrival time of the event on the homeserver. This can conflict with other APIs which order events based on their partial ordering in the event graph. This can result in duplicate events being received (once per distinct API called). Clients SHOULD de-duplicate events based on the event ID when this happens. But we've had a [discussion below in this PR](https://github.com/element-hq/synapse/pull/17510#discussion_r1699105569) and this matches what Sync v2 already does and seems like it makes sense. Created a spec issue https://github.com/matrix-org/matrix-spec/issues/1917 to clarify this. Related issues: - https://github.com/matrix-org/matrix-spec/issues/1917 - https://github.com/matrix-org/matrix-spec/issues/852 - https://github.com/matrix-org/matrix-spec-proposals/pull/4033
* | Bump bytes from 1.6.1 to 1.7.1 (#17526)dependabot[bot]2024-08-071-2/+2
| |
* | Bump regex from 1.10.5 to 1.10.6 (#17527)dependabot[bot]2024-08-071-2/+2
| |
* | Fixup sliding sync comment (#17531)Erik Johnston2024-08-072-1/+2
| | | | | | | | c.f. https://github.com/element-hq/synapse/pull/17529#discussion_r1705780925
* | Sliding Sync: Add more tracing (#17514)Eric Eastwood2024-08-066-240/+346
| | | | | | | | | | | | | | | | | | | | | | | | Spawning from looking at a couple traces and wanting a little more info. Follow-up to github.com/element-hq/synapse/pull/17501 The changes in this PR allow you to find slow Sliding Sync traces ignoring the `wait_for_events` time. In Jaeger, you can now filter for the `current_sync_for_user` operation with `RESULT.result=true` indicating that it actually returned non-empty results. If you want to find traces for your own user, you can use `RESULT.result=true ARG.sync_config.user="@madlittlemods:matrix.org"`
* | Merge branch 'release-v1.113' into developAndrew Morgan2024-08-0620-18/+51
|\|
| * 1.113.0rc1 v1.113.0rc1 github/release-v1.113 release-v1.113Andrew Morgan2024-08-0620-18/+51
| |
* | Clarify `auto_accept_invites.worker_to_run_on` config docs (#17515)Andrew Morgan2024-08-062-1/+6
|/
* Bump phonenumbers from 8.13.39 to 8.13.42 (#17521)dependabot[bot]2024-08-061-3/+3
|
* Bump towncrier from 23.11.0 to 24.7.1 (#17523)dependabot[bot]2024-08-061-5/+5
|
* Bump black from 24.4.2 to 24.8.0 (#17522)dependabot[bot]2024-08-061-25/+25
|
* Bump serde_json from 1.0.121 to 1.0.122 (#17525)dependabot[bot]2024-08-061-2/+2
|
* SS: Reset connection if token is unrecognized (#17529)Erik Johnston2024-08-064-17/+57
| | | | | | | | | | | | | | This triggers the client to start a new sliding sync connection. If we don't do this and the client asks for the full range of rooms, we end up sending down all rooms and their state from scratch (which can be very slow) This causes things like https://github.com/element-hq/element-x-ios/issues/3115 after we restart the server --------- Co-authored-by: Eric Eastwood <eric.eastwood@beta.gouv.fr>
* Sliding Sync: Easier to understand timeline assertions in tests (#17511)Eric Eastwood2024-08-052-21/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added `_assertTimelineEqual(...)` because I got fed up trying to understand the crazy diffs from the standard `self.assertEqual(...)`/`self.assertListEqual(...)` Before: ``` [FAIL] Traceback (most recent call last): File "/home/eric/Documents/github/element/synapse/tests/rest/client/sliding_sync/test_rooms_timeline.py", line 103, in test_rooms_limited_initial_sync self.assertListEqual( File "/usr/lib/python3.12/unittest/case.py", line 1091, in assertListEqual self.assertSequenceEqual(list1, list2, msg, seq_type=list) File "/usr/lib/python3.12/unittest/case.py", line 1073, in assertSequenceEqual self.fail(msg) twisted.trial.unittest.FailTest: Lists differ: ['$4QcmnzhdazSnDYcYSZCS_6-MWSzM_dN3RC7TRvW0w[95 chars]isM'] != ['$8N1XJ7e-3K_wxAanLVD3v8KQ96_B5Xj4huGkgy4N4[95 chars]nnU'] First differing element 0: '$4QcmnzhdazSnDYcYSZCS_6-MWSzM_dN3RC7TRvW0wWA' '$8N1XJ7e-3K_wxAanLVD3v8KQ96_B5Xj4huGkgy4N4-E' - ['$4QcmnzhdazSnDYcYSZCS_6-MWSzM_dN3RC7TRvW0wWA', - '$8N1XJ7e-3K_wxAanLVD3v8KQ96_B5Xj4huGkgy4N4-E', ? ^ + ['$8N1XJ7e-3K_wxAanLVD3v8KQ96_B5Xj4huGkgy4N4-E', ? ^ - '$q4PRxQ_pBZkQI1keYuZPTtExQ23DqpUI3-Lxwfj_isM'] + '$4QcmnzhdazSnDYcYSZCS_6-MWSzM_dN3RC7TRvW0wWA', + '$j3Xj-t2F1wH9kUHsI8X5yqS7hkdSyN2owaArfvk8nnU'] ``` After: ``` [FAIL] Traceback (most recent call last): File "/home/eric/Documents/github/element/synapse/tests/rest/client/sliding_sync/test_rooms_timeline.py", line 178, in test_rooms_limited_initial_sync self._assertTimelineEqual( File "/home/eric/Documents/github/element/synapse/tests/rest/client/sliding_sync/test_rooms_timeline.py", line 110, in _assertTimelineEqual self._assertListEqual( File "/home/eric/Documents/github/element/synapse/tests/rest/client/sliding_sync/test_rooms_timeline.py", line 79, in _assertListEqual self.fail(f"{diff_message}\n{message}") twisted.trial.unittest.FailTest: Items must Expected items to be in actual ('?' = missing expected items): [ (10, master) $w-BoqW1PQQFU4TzVJW5OIelugxh0mY12wrfw6mbC6D4 (m.room.message) activity4 (11, master) $sSidTZf1EOQmCVDU4mrH_1-bopMQhwcDUO2IhoemR6M (m.room.message) activity5 ? (12, master) $bgOcc3D-2QSkbk4aBxKVyOOQJGs7ZuncRJwG3cEANZg (m.room.member, @user1:test) join ] Actual ('+' = found expected items): [ + (11, master) $sSidTZf1EOQmCVDU4mrH_1-bopMQhwcDUO2IhoemR6M (m.room.message) activity5 + (10, master) $w-BoqW1PQQFU4TzVJW5OIelugxh0mY12wrfw6mbC6D4 (m.room.message) activity4 (9, master) $FmCNyc11YeFwiJ4an7_q6H0LCCjQOKd6UCr5VKeXXUw (m.room.message, None) activity3 ] ```
* Sliding Sync: Add typing notification extension (MSC3961) (#17505)Eric Eastwood2024-07-319-7/+640
| | | | | | | [MSC3961](https://github.com/matrix-org/matrix-spec-proposals/pull/3961): Sliding Sync Extension: Typing Notifications Based on [MSC3575](https://github.com/matrix-org/matrix-spec-proposals/pull/3575): Sliding Sync
* Sliding Sync: Split and move tests (#17504)Eric Eastwood2024-07-3115-5860/+6315
| | | | Split and move Sliding Sync tests so we have some more sane test file sizes
* Sliding Sync: Fix `limited` response description (make accurate) (#17507)Eric Eastwood2024-07-312-2/+3
|
* Sliding Sync: Update filters to be robust against remote invite rooms (#17450)Eric Eastwood2024-07-3011-109/+1597
| | | | | | | | | | | | | | | Update `filters.is_encrypted` and `filters.types`/`filters.not_types` to be robust when dealing with remote invite rooms in Sliding Sync. Part of [MSC3575](https://github.com/matrix-org/matrix-spec-proposals/pull/3575): Sliding Sync Follow-up to https://github.com/element-hq/synapse/pull/17434 We now take into account current state, fallback to stripped state for invite/knock rooms, then historical state. If we can't determine the info needed to filter a room (either from state or stripped state), it is filtered out.
* Sliding Sync: Add receipts extension (MSC3960) (#17489)Eric Eastwood2024-07-307-268/+1070
| | | | | | | [MSC3960](https://github.com/matrix-org/matrix-spec-proposals/pull/3960): Receipts extension Based on [MSC3575](https://github.com/matrix-org/matrix-spec-proposals/pull/3575): Sliding Sync
* Merge branch 'master' into developOlivier 'reivilibre2024-07-303-1/+33
|\
| * Merge branch 'release-v1.112' github/master masterOlivier 'reivilibre2024-07-3056-862/+5734
| |\
| | * 1.112.0 v1.112.0 github/release-v1.112 release-v1.112Olivier 'reivilibre2024-07-304-2/+32
| | |
| | * Upgrade locked dependency on Twisted to 24.7.0rc1. (#17502)reivilibre2024-07-308-57/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I also update the tests and HTTP Proxy code to fix it for this new Twisted release. Pulls in fix for https://github.com/twisted/twisted/security/advisories/GHSA-c8m8-j448-xjx7 Signed-off-by: Olivier 'reivilibre <oliverw@matrix.org>
* | | Bump types-setuptools from 70.1.0.20240627 to 71.1.0.20240726 (#17497)dependabot[bot]2024-07-301-3/+3
| | | | | | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | | Bump types-pyopenssl from 24.1.0.20240425 to 24.1.0.20240722 (#17496)dependabot[bot]2024-07-301-3/+3
| | | | | | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | | Bump bcrypt from 4.1.3 to 4.2.0 (#17495)dependabot[bot]2024-07-301-28/+28
| | | | | | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | | Bump serde_json from 1.0.120 to 1.0.121 (#17493)dependabot[bot]2024-07-301-2/+3
| | | | | | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | | Merge branch 'master' into developOlivier 'reivilibre2024-07-309-57/+90
|\| |
| * | Add bold emphasis to some parts of the changelog v1.111.1 github/release-v1.111 release-v1.111Olivier 'reivilibre2024-07-301-2/+2
| | |
| * | 1.111.1Olivier 'reivilibre2024-07-304-2/+27
| | |
| * | Upgrade locked dependency on Twisted to 24.7.0rc1. (#17502)reivilibre2024-07-308-57/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I also update the tests and HTTP Proxy code to fix it for this new Twisted release. Pulls in fix for https://github.com/twisted/twisted/security/advisories/GHSA-c8m8-j448-xjx7 Signed-off-by: Olivier 'reivilibre <oliverw@matrix.org>
* | | Bump ruff from 0.5.4 to 0.5.5 (#17494)dependabot[bot]2024-07-302-21/+21
| | | | | | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | | Add some more opentracing to sliding sync (#17501)Erik Johnston2024-07-303-5/+34
| | | | | | | | | This will make it easier to see what it is doing in jaeger.
* | | Fix `failures` property in `/keys/query` (#17499)Richard van der Hoff2024-07-303-11/+75
| | | | | | | | | | | | Fixes: https://github.com/element-hq/synapse/issues/17498 Fixes: https://github.com/element-hq/element-web/issues/27867
* | | Only send rooms with updates down sliding sync (#17479)Erik Johnston2024-07-305-30/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rather than always including all rooms in range. Also adds a pre-filter to rooms that checks the stream change cache to see if anything might have happened. Based on #17447 --------- Co-authored-by: Eric Eastwood <eric.eastwood@beta.gouv.fr>
* | | Sliding Sync: Track whether we have sent rooms down to clients (#17447)Erik Johnston2024-07-299-45/+814
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The basic idea is that we introduce a new token for a sliding sync connection, which stores the mapping of room to room "status" (i.e. have we sent the room down?). This token allows us to handle duplicate requests properly. In future it can be used to store more "per-connection" information safely. In future this should be migrated into the DB, so its important that we try to reduce the number of syncs where we need to update the per-connection information. In this PoC this only happens when we: a) send down a set of room for the first time, or b) we have previously sent down a room and there are updates but we are not sending the room down the sync (due to not falling in a list range) Co-authored-by: Eric Eastwood <eric.eastwood@beta.gouv.fr>
* | | Refactor Sliding Sync tests to better utilize the ↵Eric Eastwood2024-07-252-1021/+726
| | | | | | | | | | | | | | | | | | | | | | | | `SlidingSyncBase.do_sync(...)` (pt. 2) (#17482) `SlidingSyncBase.do_sync()` for tests was first introduced in https://github.com/element-hq/synapse/pull/17452 Part 1: https://github.com/element-hq/synapse/pull/17481
* | | Refactor Sliding Sync tests to better utilize the `SlidingSyncBase` (pt. 1) ↵Eric Eastwood2024-07-252-228/+107
| | | | | | | | | | | | | | | | | | | | | | | | (#17481) `SlidingSyncBase` for tests was first introduced in https://github.com/element-hq/synapse/pull/17452 Part 2: https://github.com/element-hq/synapse/pull/17482
* | | Update config_documentation - Change example of msisdn in ↵YLong Shi2024-07-252-2/+6
| | | | | | | | | | | | | | | | | | allowed_local_3pids (#17476) Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
* | | Sliding Sync: Add Account Data extension (MSC3959) (#17477)Eric Eastwood2024-07-246-2/+982
| | | | | | | | | | | | | | | | | | Extensions based on [MSC3575](https://github.com/matrix-org/matrix-spec-proposals/pull/3575): Sliding Sync
* | | Sliding Sync: ensure bump stamp ignores backfilled events (#17478)Erik Johnston2024-07-243-3/+130
| | | | | | | | | | | | | | | | | | Backfill events have a negative stream ordering, and so its not useful to use to compare with other (positive) stream orderings. Plus, the Rust SDK currently assumes `bump_stamp` is positive.
* | | Use a new token format for sliding sync (#17452)Erik Johnston2024-07-246-208/+301
| | | | | | | | | | | | | | | | | | | | | This is in preparation for adding per-connection state. --------- Co-authored-by: Eric Eastwood <eric.eastwood@beta.gouv.fr>
* | | Update debian template - new link to the delegation docs (#17475)Maciej Laskowski2024-07-241-1/+1
| |/ |/| | | Update debian template - new link to the delegation docs
* | Address changelog review comments v1.112.0rc1Devon Hudson2024-07-231-5/+5
| |
* | 1.112.0rc1Devon Hudson2024-07-2328-26/+65
| |
* | Speed up SS room sorting (#17468)Erik Johnston2024-07-236-29/+159
| | | | | | | | | | | | | | We do this by bulk fetching the latest stream ordering. --------- Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
* | Reduce volume of 'Waiting for current token' logs, which were introduced in ↵reivilibre2024-07-233-5/+32
| | | | | | | | | | | | | | | | | | | | | | | | v1.109.0. (#17428) Introduced in: #17215 This caused us a minor bit of grief as the volume of logs produced was much higher than normal --------- Signed-off-by: Olivier 'reivilibre <oliverw@matrix.org>
* | Fixed presence results not returning offline users on initial sync (#17231)Michael Hollister2024-07-234-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is to address an issue in which `m.presence` results on initial sync are not returning entries of users who are currently offline. The original behaviour was from https://github.com/element-hq/synapse/issues/1535 This change is useful for applications that use the presence system for tracking user profile information/updates (e.g. https://github.com/element-hq/synapse/pull/16992 or for profile status messages). This is gated behind a new configuration option to avoid performance impact for applications that don't need this, as a pragmatic solution for now.
* | Bump hiredis from 2.3.2 to 3.0.0 (#17464)dependabot[bot]2024-07-221-111/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [hiredis](https://github.com/redis/hiredis-py) from 2.3.2 to 3.0.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/redis/hiredis-py/releases">hiredis's releases</a>.</em></p> <blockquote> <h2>3.0.0</h2> <h1>Changes</h1> <h2>Breaking Changes</h2> <ul> <li>Return Redis sets as Python lists (<a href="https://redirect.github.com/redis/hiredis-py/issues/189">#189</a>)</li> </ul> <h2>🐛 Bug Fixes</h2> <ul> <li>Return Redis sets as Python lists (<a href="https://redirect.github.com/redis/hiredis-py/issues/189">#189</a>)</li> </ul> <h2>Contributors</h2> <p>We'd like to thank all the contributors who worked on this release!</p> <p><a href="https://github.com/gerzse"><code>@​gerzse</code></a></p> <h2>2.4.0</h2> <h1>Changes</h1> <h2>🧰 Maintenance</h2> <ul> <li>Fix small typo (<a href="https://redirect.github.com/redis/hiredis-py/issues/192">#192</a>)</li> <li>Quote version for Python setup action in CI (<a href="https://redirect.github.com/redis/hiredis-py/issues/191">#191</a>)</li> <li>Fix building the wheel for windows (<a href="https://redirect.github.com/redis/hiredis-py/issues/190">#190</a>)</li> <li>pack: Replace sdsalloc.h with alloc.h (<a href="https://redirect.github.com/redis/hiredis-py/issues/159">#159</a>)</li> <li>Bump black from 22.3.0 to 24.3.0 (<a href="https://redirect.github.com/redis/hiredis-py/issues/185">#185</a>)</li> <li>Removing python 3.7 trove (<a href="https://redirect.github.com/redis/hiredis-py/issues/181">#181</a>)</li> <li>Badge for latest released on Pypi (<a href="https://redirect.github.com/redis/hiredis-py/issues/182">#182</a>)</li> <li>Sync license in metadata with LICENSE file (<a href="https://redirect.github.com/redis/hiredis-py/issues/183">#183</a>)</li> </ul> <h2>Contributors</h2> <p>We'd like to thank all the contributors who worked on this release!</p> <p><a href="https://github.com/Apteryks"><code>@​Apteryks</code></a>, <a href="https://github.com/ArtemIsmagilov"><code>@​ArtemIsmagilov</code></a>, <a href="https://github.com/chayim"><code>@​chayim</code></a>, <a href="https://github.com/dependabot"><code>@​dependabot</code></a>, <a href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot], <a href="https://github.com/gerzse"><code>@​gerzse</code></a> and <a href="https://github.com/shadchin"><code>@​shadchin</code></a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/redis/hiredis-py/commit/c1eefbdb76614435f7433207bf385ba8cb930b60"><code>c1eefbd</code></a> Return Redis sets as Python lists (<a href="https://redirect.github.com/redis/hiredis-py/issues/189">#189</a>)</li> <li><a href="https://github.com/redis/hiredis-py/commit/a94bb447173c60b90709a9ed117b3a5b699ff795"><code>a94bb44</code></a> Version 2.4.0 (<a href="https://redirect.github.com/redis/hiredis-py/issues/193">#193</a>)</li> <li><a href="https://github.com/redis/hiredis-py/commit/7792dd23384aa7b00761df51d8011fe24fa33143"><code>7792dd2</code></a> Fix a typo in the README file (<a href="https://redirect.github.com/redis/hiredis-py/issues/192">#192</a>)</li> <li><a href="https://github.com/redis/hiredis-py/commit/01fa2fd6f123e3424ffa00a647f2bf83d48543be"><code>01fa2fd</code></a> Quote version for Python setup action in CI (<a href="https://redirect.github.com/redis/hiredis-py/issues/191">#191</a>)</li> <li><a href="https://github.com/redis/hiredis-py/commit/4c970a336567223573c700a44e405a0c263a85fa"><code>4c970a3</code></a> Fix building the wheel for windows (<a href="https://redirect.github.com/redis/hiredis-py/issues/190">#190</a>)</li> <li><a href="https://github.com/redis/hiredis-py/commit/f4dd0814c16dc9a8efa72434101d49c97778c830"><code>f4dd081</code></a> pack: Replace sdsalloc.h with alloc.h (<a href="https://redirect.github.com/redis/hiredis-py/issues/159">#159</a>)</li> <li><a href="https://github.com/redis/hiredis-py/commit/e70af5b94f0881f23f2fb35417bb2e0d0b792f53"><code>e70af5b</code></a> Bump black from 22.3.0 to 24.3.0 (<a href="https://redirect.github.com/redis/hiredis-py/issues/185">#185</a>)</li> <li><a href="https://github.com/redis/hiredis-py/commit/cc239705fb64f92c6ac3aff36679a300662e0ca7"><code>cc23970</code></a> Removing Python 3.7 trove (<a href="https://redirect.github.com/redis/hiredis-py/issues/181">#181</a>)</li> <li><a href="https://github.com/redis/hiredis-py/commit/64e3394548fe670e7853a2407799e13daa4bf2cb"><code>64e3394</code></a> Badge for latest released on Pypi (<a href="https://redirect.github.com/redis/hiredis-py/issues/182">#182</a>)</li> <li><a href="https://github.com/redis/hiredis-py/commit/ba18089d74f991b9b9e7ac9c17f85432f50d0048"><code>ba18089</code></a> Sync license in metadata with LICENSE file (<a href="https://redirect.github.com/redis/hiredis-py/issues/183">#183</a>)</li> <li>See full diff in <a href="https://github.com/redis/hiredis-py/compare/v2.3.2...v3.0.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=hiredis&package-manager=pip&previous-version=2.3.2&new-version=3.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump pyopenssl from 24.1.0 to 24.2.1 (#17465)dependabot[bot]2024-07-221-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [pyopenssl](https://github.com/pyca/pyopenssl) from 24.1.0 to 24.2.1. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/pyca/pyopenssl/blob/main/CHANGELOG.rst">pyopenssl's changelog</a>.</em></p> <blockquote> <h2>24.2.1 (2024-07-20)</h2> <p>Backward-incompatible changes: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</p> <p>Deprecations: ^^^^^^^^^^^^^</p> <p>Changes: ^^^^^^^^</p> <ul> <li>Fixed changelog to remove sphinx specific restructured text strings.</li> </ul> <h2>24.2.0 (2024-07-20)</h2> <p>Backward-incompatible changes: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</p> <p>Deprecations: ^^^^^^^^^^^^^</p> <ul> <li>Deprecated <code>OpenSSL.crypto.X509Req</code>, <code>OpenSSL.crypto.load_certificate_request</code>, <code>OpenSSL.crypto.dump_certificate_request</code>. Instead, <code>cryptography.x509.CertificateSigningRequest</code>, <code>cryptography.x509.CertificateSigningRequestBuilder</code>, <code>cryptography.x509.load_der_x509_csr</code>, or <code>cryptography.x509.load_pem_x509_csr</code> should be used.</li> </ul> <p>Changes: ^^^^^^^^</p> <ul> <li>Added type hints for the <code>SSL</code> module. <code>[#1308](https://github.com/pyca/pyopenssl/issues/1308) &lt;https://github.com/pyca/pyopenssl/pull/1308&gt;</code>_.</li> <li>Changed <code>OpenSSL.crypto.PKey.from_cryptography_key</code> to accept public and private EC, ED25519, ED448 keys. <code>[#1310](https://github.com/pyca/pyopenssl/issues/1310) &lt;https://github.com/pyca/pyopenssl/pull/1310&gt;</code>_.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/pyca/pyopenssl/commit/8dd94578656d47f854c087783b72431aaeb73d8e"><code>8dd9457</code></a> 24.2.1 (<a href="https://redirect.github.com/pyca/pyopenssl/issues/1320">#1320</a>)</li> <li><a href="https://github.com/pyca/pyopenssl/commit/19f093e0c3db5d7354df0a5256344d9ebc5d931f"><code>19f093e</code></a> make changelog vanilla rst (<a href="https://redirect.github.com/pyca/pyopenssl/issues/1319">#1319</a>)</li> <li><a href="https://github.com/pyca/pyopenssl/commit/e265b2867bbc4f45a14b31affe4a0be710d2b293"><code>e265b28</code></a> Prepare for 24.2.0 release (<a href="https://redirect.github.com/pyca/pyopenssl/issues/1318">#1318</a>)</li> <li><a href="https://github.com/pyca/pyopenssl/commit/6943ee524e511138dd78fde6000e6f8e2bdd4b0c"><code>6943ee5</code></a> Deprecate CSR support in pyOpenSSL (<a href="https://redirect.github.com/pyca/pyopenssl/issues/1316">#1316</a>)</li> <li><a href="https://github.com/pyca/pyopenssl/commit/01b9b5637318bde2490e3f8bb243723546dbcc62"><code>01b9b56</code></a> Add more type definitions for <code>SSL</code> module, check with mypy (<a href="https://redirect.github.com/pyca/pyopenssl/issues/1313">#1313</a>)</li> <li><a href="https://github.com/pyca/pyopenssl/commit/cdcb48baf7d5dd0f040f244934c2967b04b9f4bc"><code>cdcb48b</code></a> Prune redundant <code>:rtype:</code> from SSL module (<a href="https://redirect.github.com/pyca/pyopenssl/issues/1315">#1315</a>)</li> <li><a href="https://github.com/pyca/pyopenssl/commit/b86914d37fc6c0e138e2a0f733dd65dec2efc96c"><code>b86914d</code></a> Fix <code>ruff</code> invocation (<a href="https://redirect.github.com/pyca/pyopenssl/issues/1314">#1314</a>)</li> <li><a href="https://github.com/pyca/pyopenssl/commit/caa1ab3ac5c5096b20b69fac2e42cb67c6f716d1"><code>caa1ab3</code></a> Update changelog for PR <a href="https://redirect.github.com/pyca/pyopenssl/issues/1308">#1308</a> and <a href="https://redirect.github.com/pyca/pyopenssl/issues/1310">#1310</a> (<a href="https://redirect.github.com/pyca/pyopenssl/issues/1311">#1311</a>)</li> <li><a href="https://github.com/pyca/pyopenssl/commit/9a2105501f601798bb2fb1928cee5ed8b21e32e4"><code>9a21055</code></a> Allow loading EC, ED25519, ED448 public keys from cryptography (<a href="https://redirect.github.com/pyca/pyopenssl/issues/1310">#1310</a>)</li> <li><a href="https://github.com/pyca/pyopenssl/commit/9eaa1073621dd46b3e721183efc318c95aba0d74"><code>9eaa107</code></a> Add type annotations for the <code>SSL</code> module (<a href="https://redirect.github.com/pyca/pyopenssl/issues/1308">#1308</a>)</li> <li>Additional commits viewable in <a href="https://github.com/pyca/pyopenssl/compare/24.1.0...24.2.1">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pyopenssl&package-manager=pip&previous-version=24.1.0&new-version=24.2.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Sliding Sync: Add E2EE extension (MSC3884) (#17454)Eric Eastwood2024-07-229-34/+1023
| | | | | | | | | | Spec: [MSC3884](https://github.com/matrix-org/matrix-spec-proposals/pull/3884) Based on [MSC3575](https://github.com/matrix-org/matrix-spec-proposals/pull/3575): Sliding Sync
* | SS: Implement `$ME` support (#17469)Erik Johnston2024-07-223-1/+80
| | | | | | `$ME` can be used as a substitute for the requester's user ID.
* | Speed up room keys query by using read/write lock (#17461)Erik Johnston2024-07-222-9/+10
| | | | | | | | Linaerizing all access slows things down when devices try and fetch lots of keys on login
* | Bump ruff from 0.5.0 to 0.5.4 (#17466)dependabot[bot]2024-07-222-21/+21
| |
* | Bump sentry-sdk from 2.8.0 to 2.10.0 (#17467)dependabot[bot]2024-07-221-3/+3
| |
* | Prepare for authenticated media freeze (#17433)Shay2024-07-2212-12/+362
| | | | | | | | | | | | As part of the rollout of [MSC3916](https://github.com/matrix-org/matrix-spec-proposals/blob/main/proposals/3916-authentication-for-media.md) this PR adds support for designating authenticated media and ensuring that authenticated media is not served over unauthenticated endpoints.
* | Add a cache on `get_rooms_for_local_user_where_membership_is` (#17460)Erik Johnston2024-07-196-4/+38
| | | | | | | | | | | | | | As it gets used in sliding sync. We basically invalidate it in all the same places as `get_rooms_for_user`. Most of the changes are due to needing the arguments you pass in to be hashable (which lists aren't)
* | Generate room sync data concurrently (#17458)Erik Johnston2024-07-192-2/+11
| | | | | | This is also what we do for standard `/sync`.
* | Bump sentry-sdk from 2.6.0 to 2.8.0 (#17456)dependabot[bot]2024-07-191-5/+5
| |
* | Improve default_power_level_content_override documentation (#17451)Ben Banfield-Zanin2024-07-183-0/+35
| | | | | | | | Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
* | Revert "Bump setuptools from 67.6.0 to 70.0.0" (#17455)Erik Johnston2024-07-181-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reverts element-hq/synapse#17448 We hit a bug when deploying with synctl: ``` Traceback (most recent call last): File "/home/synapse/env-python311/bin/synctl", line 33, in <module> sys.exit(load_entry_point('matrix-synapse', 'console_scripts', 'synctl')()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/synapse/env-python311/bin/synctl", line 25, in importlib_load_entry_point return next(matches).load() ^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/importlib/metadata/__init__.py", line 202, in load module = import_module(match.group('module')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1204, in _gcd_import File "<frozen importlib._bootstrap>", line 1176, in _find_and_load File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 690, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/home/synapse/src/synapse/_scripts/synctl.py", line 37, in <module> from synapse.config import find_config_files File "/home/synapse/src/synapse/config/__init__.py", line 22, in <module> from ._base import ConfigError, find_config_files File "/home/synapse/src/synapse/config/_base.py", line 49, in <module> import pkg_resources File "/home/synapse/env-python311/lib/python3.11/site-packages/pkg_resources/__init__.py", line 3282, in <module> @_call_aside ^^^^^^^^^^^ File "/home/synapse/env-python311/lib/python3.11/site-packages/pkg_resources/__init__.py", line 3266, in _call_aside f(*args, **kwargs) File "/home/synapse/env-python311/lib/python3.11/site-packages/pkg_resources/__init__.py", line 3295, in _initialize_master_working_set working_set = _declare_state('object', 'working_set', WorkingSet._build_master()) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/synapse/env-python311/lib/python3.11/site-packages/pkg_resources/__init__.py", line 589, in _build_master ws.require(__requires__) File "/home/synapse/env-python311/lib/python3.11/site-packages/pkg_resources/__init__.py", line 926, in require needed = self.resolve(parse_requirements(requirements)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/synapse/env-python311/lib/python3.11/site-packages/pkg_resources/__init__.py", line 787, in resolve dist = self._resolve_dist( ^^^^^^^^^^^^^^^^^^^ File "/home/synapse/env-python311/lib/python3.11/site-packages/pkg_resources/__init__.py", line 816, in _resolve_dist env = Environment(self.entries) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/synapse/env-python311/lib/python3.11/site-packages/pkg_resources/__init__.py", line 1014, in __init__ self.scan(search_path) File "/home/synapse/env-python311/lib/python3.11/site-packages/pkg_resources/__init__.py", line 1046, in scan for dist in find_distributions(item): File "/home/synapse/env-python311/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2091, in find_on_path yield from factory(fullpath) ^^^^^^^^^^^^^^^^^ File "/home/synapse/env-python311/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2183, in resolve_egg_link return next(dist_groups, ()) ^^^^^^^^^^^^^^^^^^^^^ File "/home/synapse/env-python311/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2179, in <genexpr> resolved_paths = ( ^ File "/home/synapse/env-python311/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2167, in non_empty_lines for line in _read_utf8_with_fallback(path).splitlines(): ^^^^^^^^^^^^^^^^^^^^^^^^ NameError: name '_read_utf8_with_fallback' is not defined ```
* | Add `m.room.create` to default bump event types (#17453)Eric Eastwood2024-07-182-0/+2
| | | | | | | | | | | | Add `m.room.create` to default bump event types This probably helps when no messages have been sent in the room and it was just created.
* | Order `heroes` by `stream_ordering` (as spec'ed) (#17435)Eric Eastwood2024-07-174-26/+456
| | | | | | | | | | | | | | | | | | | | | | | | | | The spec specifically mentions `stream_ordering` but that's a Synapse specific concept. In any case, the essence of the spec is basically the first 5 members of the room which `stream_ordering` accomplishes. Split off from https://github.com/element-hq/synapse/pull/17419#discussion_r1671342794 ## Spec compliance > This should be the first 5 members of the room, **ordered by stream ordering**, which are joined or invited. The list must never include the client’s own user ID. When no joined or invited members are available, this should consist of the banned and left users. > > *-- https://spec.matrix.org/v1.10/client-server-api/#_matrixclientv3sync_roomsummary* Related to https://github.com/matrix-org/matrix-spec/issues/1334
* | Merge branch 'master' into developTill Faelligen2024-07-163-1/+14
|\|
| * 1.111.0 v1.111.0Till Faelligen2024-07-163-1/+14
| |
* | Bump mypy from 1.9.0 to 1.10.1 (#17445)dependabot[bot]2024-07-162-29/+30
| |
* | Bump matrix-org/done-action from 2 to 3 (#17440)dependabot[bot]2024-07-161-2/+2
| |
* | Handle remote download responses with `UNKNOWN_LENGTH` more gracefully (#17439)Shay2024-07-164-60/+166
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Prior to this PR, remote downloads which did not provide a `content-length` were decremented from the remote download ratelimiter at the max allowable size, leading to excessive ratelimiting - see https://github.com/element-hq/synapse/issues/17394. This PR adds a linearizer to limit concurrent remote downloads to 6 per IP address, and decrements remote downloads without a `content-length` from the ratelimiter *after* the download is complete and the response length is known. Also adds logic to ensure that responses with a known length respect the `max_download_size`.
* | Bump setuptools from 67.6.0 to 70.0.0 (#17448)dependabot[bot]2024-07-161-7/+6
| |
* | Remove unnecessary call to resume producing in fake channel (#17449)Shay2024-07-162-4/+1
| | | | | | | | | | This fell out of the authenticated media work - this bit of code masked a bug but does not break anything when removed, so probably should be removed.
* | Fix bug where sync could get stuck when using workers (#17438)Erik Johnston2024-07-154-10/+138
| | | | | | | | This is because we serialized the token wrong if the instance map contained entries from before the minimum token.
* | Bump types-jsonschema from 4.22.0.20240610 to 4.23.0.20240712 (#17446)dependabot[bot]2024-07-151-3/+3
| |
* | Bump bytes from 1.6.0 to 1.6.1 (#17441)dependabot[bot]2024-07-151-2/+2
| |
* | Bump ulid from 1.1.2 to 1.1.3 (#17442)dependabot[bot]2024-07-151-2/+2
| |
* | Bump jsonschema from 4.22.0 to 4.23.0 (#17444)dependabot[bot]2024-07-151-4/+4
| |
* | Bump twine from 5.1.0 to 5.1.1 (#17443)dependabot[bot]2024-07-151-4/+4
| |
* | Make sure we use the right logic for enabling the media repo. (#17424)Quentin Gliech2024-07-154-8/+3
| | | | | | | | | | This removes the `enable_media_repo` attribute on the server config in favour of always using the `can_load_media_repo` in the media config. This should avoid issues like in #17420 in the future
* | Add room subscriptions to Sliding Sync `/sync` (#17432)Eric Eastwood2024-07-155-358/+1489
| | | | | | | | | | | | | | | | | | | | | | | | | | Add room subscriptions to Sliding Sync `/sync` Based on [MSC3575](https://github.com/matrix-org/matrix-spec-proposals/pull/3575): Sliding Sync Currently, you can only subscribe to rooms you have had *any* membership in before. In the future, we will allow `world_readable` rooms to be subscribed to without joining.
* | Add `is_dm` room field to Sliding Sync `/sync` (#17429)Eric Eastwood2024-07-113-29/+70
| | | | | | | | | | Based on [MSC3575](https://github.com/matrix-org/matrix-spec-proposals/pull/3575): Sliding Sync
* | Add `heroes` and room summary fields to Sliding Sync `/sync` (#17419)Eric Eastwood2024-07-116-110/+529
| | | | | | | | | | | | | | Additional room summary fields: `joined_count`, `invited_count` Based on [MSC3575](https://github.com/matrix-org/matrix-spec-proposals/pull/3575): Sliding Sync
* | Fix filtering room types on remote rooms (#17434)Erik Johnston2024-07-114-13/+130
| | | | | | | | | | | | We can only fetch room types for rooms the server is in, so we need to only filter rooms that we're joined to. Also includes a perf fix to bulk fetch room types.
* | Fix docs on `record_action` to clarify the actions are applied (#17426)Travis Ralston2024-07-112-3/+3
| | | | | | | | | | This looks like a copy/paste error: the function doesn't reject anything, but instead allows the action count to go through regardless. The remainder of the function's documentation appears correct.
* | Add Red Hat Enterprise Linux and Rocky Linux installation instructions (#17423)villepeh2024-07-113-2/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added RHEL/Rocky install instructions (PyPI). Instructions cover versions 8 and 9 which are the only supported ones - except for RHEL7 which is now on extended life cycle support phase. Large part of the guide is for installing Python 3.11 or 3.12. RHEL8 ships with Python 3.6 and RHEL9 ships with 3.9. Newer Python versions can be installed easily as they don't interfere with OS software that still relies on the default Python version. I was first planning to add prerequisites part to the prerequisites section and then install instructions on the top of the page but that section is for pre-built packages so it just didn't sound right. So I just dumped everything to the PyPI section of the page. But suggestions to change are welcome. I also didn't combine these with Fedora section. I haven't tested those packages on RHEL and Fedora ships with Python 3.12 out-of-box.
* | Use consistent casing between FROM and AS (#17431)Joe Groocock2024-07-112-3/+3
| | | | | | Signed-off-by: Joe Groocock <me@frebib.net>
* | Bump zipp from 3.15.0 to 3.19.1 (#17427)dependabot[bot]2024-07-111-6/+6
| |
* | Upload new logo with white bg and update readme to use it (#17387)Will Lewis2024-07-103-1/+96
| |
* | Handle to-device extensions to Sliding Sync (#17416)Erik Johnston2024-07-106-12/+392
| | | | | | | | | | | | | | Implements MSC3885 --------- Co-authored-by: Eric Eastwood <eric.eastwood@beta.gouv.fr>
* | Merge branch 'release-v1.111' into developQuentin Gliech2024-07-108-5/+31
|\|
| * 1.111.0rc2 v1.111.0rc2Quentin Gliech2024-07-106-4/+24
| |
| * Fix new media APIs when using synapse.app.media_repository (#17420)Erik Johnston2024-07-093-2/+3
| | | | | | Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
| * Note the new federated media worker endpoints in the worker docs & upgrade ↵Andrew Morgan2024-07-093-2/+5
| | | | | | | | notes (#17421)
| * Route auth'd fed media requests to media repo in Complement tests (#17422)Andrew Morgan2024-07-092-0/+2
| |