summary refs log tree commit diff
Commit message (Collapse)AuthorAgeFilesLines
...
* | Fixup changelog links v1.99.0rc1Erik Johnston2024-01-091-4/+4
| |
* | Fix changelog linksErik Johnston2024-01-091-15/+15
| |
* | 1.99.0rc1Erik Johnston2024-01-0924-23/+54
| |
* | Filter out rooms from the room directory being served to other homeservers ↵reivilibre2024-01-084-52/+221
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | when those rooms block that homeserver by their Access Control Lists. (#16759) The idea here being that the directory server shouldn't advertise rooms to a requesting server is the requesting server would not be allowed to join or participate in the room. <!-- Fixes: # <!-- --> <!-- Supersedes: # <!-- --> <!-- Follows: # <!-- --> <!-- Part of: # <!-- --> Base: `develop` <!-- git-stack-base-branch:develop --> <!-- This pull request is commit-by-commit review friendly. <!-- --> <!-- This pull request is intended for commit-by-commit review. <!-- --> Original commit schedule, with full messages: <ol> <li> Pass `from_federation_origin` down into room list retrieval code </li> <li> Don't cache /publicRooms response for inbound federated requests </li> <li> fixup! Don't cache /publicRooms response for inbound federated requests </li> <li> Cap the number of /publicRooms entries to 100 </li> <li> Simplify code now that you can't request unlimited rooms </li> <li> Filter out rooms from federated requests that don't have the correct ACL </li> <li> Request a handful more when filtering ACLs so that we can try to avoid shortchanging the requester </li> </ol> --------- Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
* | Port `EventInternalMetadata` class to Rust (#16782)Erik Johnston2024-01-0812-124/+600
| | | | | | | | | | | | | | | | | | | | | | | | | | There are a couple of things we need to be careful of here: 1. The current python code does no validation when loading from the DB, so we need to be careful to ignore such errors (at least on jki.re there are some old events with internal metadata fields of the wrong type). 2. We want to be memory efficient, as we often have many hundreds of thousands of events in the cache at a time. --------- Co-authored-by: Quentin Gliech <quenting@element.io>
* | Fix linting (#16780)Erik Johnston2024-01-052-1/+12
| | | | | | Introduced in #16762
* | Simplify internal metadata class. (#16762)Erik Johnston2024-01-056-46/+24
| | | | | | | | | | | | | | | | | | We remove these fields as they're just duplicating data the event already stores, and (for reasons :shushing_face:) I'd like to simplify the class to only store simple types. I'm not entirely convinced that we shouldn't instead add helper methods to the event class to generate stream tokens, but I don't really think that's where they belong either
* | Implement cosign on docker image (#16774)Gaël Goinvic2024-01-042-1/+17
| | | | | | Signed-off-by: Gaël Goinvic <gaelg@element.io>
* | Add recursion_depth to /relations if recursing (#16775)David Baker2024-01-042-0/+5
| | | | | | | | | | This is an extra response parameter just added to MSC3981. In the current impl, the recursion depth is always 3, so this just returns a static 3 if the recurse parameter is supplied.
* | Search non ASCII display names using Admin API (#16767)Adam Jędrzejewski2024-01-043-1/+26
| | | | | | | | | | Closes #16370 Signed-off-by: Adam Jedrzejewski <adamjedrzejewski@icloud.com>
* | Update the contributing guide after reliecensing (#16772)Erik Johnston2024-01-032-78/+16
| |
* | Fix email verification redirection (#16761)FadhlanR2024-01-024-5/+43
| | | | | | | | | | | | Previously, the response status of `HTMLResource` was hardcoded as `200`. However, for proper redirection after the user verifies their email, we require the status to be `302`. This PR addresses that issue by using `code` as response status.
* | Re-enable automatic triagingErik Johnston2024-01-021-3/+2
| |
* | Revert "Disable automatic traiging"Erik Johnston2024-01-021-5/+5
| | | | | | | | This reverts commit 742bae3761b7b2c638975f853ab6161527629240.
* | Delete the add version picker GHA workflow (#9453)Andrew Morgan2024-01-022-90/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added in https://github.com/matrix-org/synapse/pull/16533, this workflow was intended to be run once to add the version picker to all historical versions of the https://matrix-org.github.io/synapse documentation website. Note that the latest version of the docs built from this repo now exist at https://element-hq.github.io/synapse/. The workflow has been run successfully and the version picker was added to the documentation. Thus we can now delete this workflow. --- Note: Do not confuse this PR with https://github.com/matrix-org/synapse/issues/9453. This PR was made while we were populating this repo with "Dummy issues" after the changeover from matrix-org/synapse to element-hq/synapse - therefore referencing this PR may cause some confusion.
* | Add another custom statistics collection server (#16769)Christian Lölkes2024-01-022-0/+2
| | | | | | Signed-off-by: Christian Lölkes <christian.loelkes@gmail.com>
* | Enable user without password (#16770)Dirk Klimpel2024-01-024-26/+34
| | | | | | | | | | | | | | | | | | | | | | Closes: - https://github.com/matrix-org/synapse/issues/10397 - #10397 An administrator should know whether he wants to set a password or not. There are many uses cases where a blank password is required. - Use of only some users with SSO. - Use of bots with password, users with SSO
* | Remove config value from header (#16763)Fredrik Lanker2024-01-022-1/+2
| | | | | | Signed-off-by: Fredrik Lanker <fredrik@lanker.se>
* | Move the rust stubs inline for better IDE integration (#16757)Erik Johnston2023-12-215-0/+1
| | | | | | | | At least for vscode this allows click through / type checking / syntax highlighting.
* | Fix sample config doc CI (#16758)Erik Johnston2023-12-212-0/+2
| | | | | | I accidentally broke it during the move by removing a trailing new line.
* | Disable automatic traigingErik Johnston2023-12-151-5/+5
| |
* | Fix typoErik Johnston2023-12-1317-52/+50
| |
* | Update book locationErik Johnston2023-12-1343-122/+120
| |
* | More renamingErik Johnston2023-12-1324-126/+125
| |
* | Update nightly jobs to run on element-hq/synapse.Erik Johnston2023-12-132-5/+5
| |
* | Update repo for release scripts.Patrick Cloke2023-12-132-14/+16
| |
* | Keep pointing at packages.matrix.org for nowErik Johnston2023-12-132-4/+4
| |
* | Fix debian linkErik Johnston2023-12-131-1/+1
| |
* | Update documentation to refer to element-hq.Patrick Cloke2023-12-138-52/+36
| |
* | Fix linksErik Johnston2023-12-132-2/+2
| |
* | Update debian build with AGPL changes.Patrick Cloke2023-12-133-3/+3
| |
* | Log the new license during start.Patrick Cloke2023-12-131-0/+4
| |
* | Merge remote-tracking branch 'gitlab/clokep/license-license' into new_developErik Johnston2023-12-131125-8815/+19505
|\ \
| * | Update license headersPatrick Cloke2023-11-211137-8638/+19110
| | |
| * | Update packaging metadataPatrick Cloke2023-11-211-1/+1
| | |
| * | Update the license from Apache License v2 to AGPL-3.0.Patrick Cloke2023-11-211-176/+660
| | |
* | | Revert changes to READMEErik Johnston2023-12-132-25/+4
| | |
* | | Update README.rstWill Lewis2023-12-131-0/+2
| | |
* | | Update README.rstWill Lewis2023-12-131-1/+1
| | |
* | | Merge remote-tracking branch 'origin/clokep/morg-readme' into developErik Johnston2023-12-132-4/+23
|\ \ \ | | |/ | |/|
| * | Update text github/clokep/morg-readme clokep/morg-readmeErik Johnston2023-12-122-6/+15
| | |
| * | Update the README pointing to the Element fork.Patrick Cloke2023-12-122-4/+14
| | |
* | | Merge remote-tracking branch 'origin/master' into developErik Johnston2023-12-125-7/+20
|\| |
| * | Update changelog v1.98.0 github/release-v1.98 release-v1.98Erik Johnston2023-12-121-3/+3
| | |
| * | 1.98.0Erik Johnston2023-12-123-2/+15
| | |
| * | Version picker added for v1.98 docsAction Bot2023-12-116-2/+230
| | |
* | | Sentry Alert configuration based on production and development environment ↵Zeeshan Rafiq2023-12-124-1/+9
| | | | | | | | | | | | (#16738)
* | | Add avatar and topic settings for server notice room (#16679)Mathieu Velten2023-12-126-14/+235
| | |
* | | Add config to change the delay before sending a notification email (#16696)Mathieu Velten2023-12-124-9/+17
| | |
* | | Bump isort from 5.13.0 to 5.13.1 (#16752)dependabot[bot]2023-12-121-169/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [isort](https://github.com/pycqa/isort) from 5.13.0 to 5.13.1. - [Release notes](https://github.com/pycqa/isort/releases) - [Changelog](https://github.com/PyCQA/isort/blob/main/CHANGELOG.md) - [Commits](https://github.com/pycqa/isort/compare/5.13.0...5.13.1) --- updated-dependencies: - dependency-name: isort dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | | Bump types-setuptools from 68.2.0.2 to 69.0.0.0 (#16744)dependabot[bot]2023-12-121-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [types-setuptools](https://github.com/python/typeshed) from 68.2.0.2 to 69.0.0.0. - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-setuptools dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | | Bump isort from 5.12.0 to 5.13.0 (#16745)dependabot[bot]2023-12-121-6/+166
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [isort](https://github.com/pycqa/isort) from 5.12.0 to 5.13.0. - [Release notes](https://github.com/pycqa/isort/releases) - [Changelog](https://github.com/PyCQA/isort/blob/main/CHANGELOG.md) - [Commits](https://github.com/pycqa/isort/compare/5.12.0...5.13.0) --- updated-dependencies: - dependency-name: isort dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | | Bump ruff from 0.1.6 to 0.1.7 (#16746)dependabot[bot]2023-12-122-20/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [ruff](https://github.com/astral-sh/ruff) from 0.1.6 to 0.1.7. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/v0.1.6...v0.1.7) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | | Bump actions/setup-go from 4 to 5 (#16749)dependabot[bot]2023-12-123-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [actions/setup-go](https://github.com/actions/setup-go) from 4 to 5. - [Release notes](https://github.com/actions/setup-go/releases) - [Commits](https://github.com/actions/setup-go/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/setup-go dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | | Bump actions/setup-python from 4 to 5 (#16748)dependabot[bot]2023-12-126-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | | Bump pydantic from 2.5.1 to 2.5.2 (#16747)dependabot[bot]2023-12-121-110/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [pydantic](https://github.com/pydantic/pydantic) from 2.5.1 to 2.5.2. - [Release notes](https://github.com/pydantic/pydantic/releases) - [Changelog](https://github.com/pydantic/pydantic/blob/v2.5.2/HISTORY.md) - [Commits](https://github.com/pydantic/pydantic/compare/v2.5.1...v2.5.2) --- updated-dependencies: - dependency-name: pydantic dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | | Bump immutabledict from 3.0.0 to 4.0.0 (#16743)dependabot[bot]2023-12-121-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [immutabledict](https://github.com/corenting/immutabledict) from 3.0.0 to 4.0.0. - [Release notes](https://github.com/corenting/immutabledict/releases) - [Changelog](https://github.com/corenting/immutabledict/blob/master/CHANGELOG.md) - [Commits](https://github.com/corenting/immutabledict/compare/v3.0.0...v4.0.0) --- updated-dependencies: - dependency-name: immutabledict dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | | Adding a version picker for Synapse docs (#16533)Dmytro Kagirov2023-12-119-1/+323
| | |
* | | Write signing keys with file mode 0640 (#16740)elara-leitstellentechnik2023-12-083-5/+17
| | | | | | | | | | | | Co-authored-by: Fabian Klemp <fabian.klemp@frequentis.com>
* | | Clarify documentation for `only_for_reauth` (#16737)Dirk Klimpel2023-12-072-9/+10
| | |
* | | Expose OIDC discovery information under the CSAPI (#16726)David Robertson2023-12-064-0/+125
|/ / | | | | | | Co-authored-by: Quentin Gliech <quenting@element.io>
* | Revert postgres logical replication deltaas v1.98.0rc1David Robertson2023-12-05118-213/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts two commits: 0bb8e418a41c6f583ca9d705b400e37e2308a534 "Fix postgres schema after dropping old tables (#16730)" and 51e4e35653f98c3f61222fbdbdb1dcb8864f7fca "Add a Postgres `REPLICA IDENTITY` to tables that do not have an implicit one. This should allow use of Postgres logical replication. (take 2, now with no added deadlocks!) (#16658)" and also amends the changelog.
* | Amend changelog typoDavid Robertson2023-12-051-1/+1
| |
* | Fixup dependency bumps syntax in changelogDavid Robertson2023-12-051-1/+1
| |
* | 1.98.0rc1David Robertson2023-12-0530-28/+81
| |
* | Fix upgrading a room without `events` field in power levels (#16725)David Robertson2023-12-053-1/+30
| |
* | Add how to validate configuration file with synapse.config script (#16714)Amanda H. L. de Andrade Katz2023-12-052-0/+18
| |
* | Set response values to zero if None for ↵Will Hunt2023-12-052-2/+3
| | | | | | | | | | | | /_synapse/admin/v1/federation/destinations (#16729)
* | Fix postgres schema after dropping old tables (#16730)David Robertson2023-12-056-5/+1
| |
* | Add a Postgres `REPLICA IDENTITY` to tables that do not have an implicit ↵reivilibre2023-12-04123-1/+218
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | one. This should allow use of Postgres logical replication. (take 2, now with no added deadlocks!) (#16658) * Add `ALTER TABLE ... REPLICA IDENTITY ...` for individual tables We can't combine them into one file as it makes it likely to hit a deadlock if Synapse is running, as it only takes one other transaction to access two tables in a different order to the schema delta. * Add notes * Newsfile Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org> * Re-introduce REPLICA IDENTITY test --------- Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
* | Switch UNIX socket paths to /run, and add a UNIX socket example for HAProxy ↵villepeh2023-12-043-8/+13
| | | | | | | | (#16700)
* | Bump phonenumbers from 8.13.23 to 8.13.26 (#16722)dependabot[bot]2023-12-041-3/+3
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Server notices: add an autojoin setting for the notices room (#16699)Mathieu Velten2023-12-046-1/+50
| | | | | | | | Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
* | Bump matrix-org/netlify-pr-preview from 2 to 3 (#16719)dependabot[bot]2023-12-041-1/+1
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Implement MSC4069: Inhibit profile propagation (#16636)Travis Ralston2023-12-046-5/+203
| | | | | | MSC: https://github.com/matrix-org/matrix-spec-proposals/pull/4069
* | Bump idna from 3.4 to 3.6 (#16720)dependabot[bot]2023-12-041-3/+3
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump cryptography from 41.0.6 to 41.0.7 (#16721)dependabot[bot]2023-12-041-24/+24
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump sphinx-autodoc2 from 0.4.2 to 0.5.0 (#16723)dependabot[bot]2023-12-042-7/+7
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump types-jsonschema from 4.19.0.4 to 4.20.0.0 (#16724)dependabot[bot]2023-12-041-3/+3
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | ModuleAPI SSO auth callbacks (#15207)Andrew Yasinishyn2023-12-018-2/+56
| | | | | | Signed-off-by: Andrii Yasynyshyn yasinishyn.a.n@gmail.com
* | Drop unused tables & unneeded access token ID for events. (#16522)Patrick Cloke2023-12-014-8/+29
| |
* | Upgrade poetry-core range to fix issue with .so file (#16702)Mo Balaa2023-11-292-1/+2
| | | | | | | | | | | | | | | | poetry-core 1.8.x includes a fix which properly moves the generate synapse_rust.abi3.so file to the synapse directory when using an editable install. Without this change developers are left with a confusing experience of the synapse.synapse_rust module not being found after installation.
* | Declare support for Matrix v1.7, v1.8, and v1.9. (#16707)Patrick Cloke2023-11-292-0/+4
| |
* | Request & follow redirects for /media/v3/download (#16701)Patrick Cloke2023-11-297-38/+212
| | | | | | | | | | | | Implement MSC3860 to follow redirects for federated media downloads. Note that the Client-Server API doesn't support this (yet) since the media repository in Synapse doesn't have a way of supporting redirects.
* | Reduce DB load when forget on leave setting is disabled (#16668)Erik Johnston2023-11-292-3/+9
| | | | | | | | | | * Reduce DB load when forget on leave setting is disabled * Newsfile
* | Add a workflow to try and automatically fixup a PR (#16704)Erik Johnston2023-11-292-0/+53
| | | | | | Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
* | Speed up pruning of `user_ips` table (#16667)Erik Johnston2023-11-292-10/+8
| | | | | | Silly query planner
* | Bump cryptography from 41.0.5 to 41.0.6 (#16703)dependabot[bot]2023-11-281-25/+25
| |
* | Merge branch 'master' into developErik Johnston2023-11-283-2/+14
|\ \
| * | 1.97.0 v1.97.0Erik Johnston2023-11-283-2/+14
| | |
* | | Document which versions of Synapse have compatible schema versions. (#16661)Patrick Cloke2023-11-286-1/+216
| | |
* | | Ignore `encryption_enabled_by_default_for_room_type` for notices room (#16677)Mathieu Velten2023-11-283-1/+11
| | |
* | | Remove old full schema dumps. (#16697)Patrick Cloke2023-11-2821-2962/+1
| | | | | | | | | | | | These are not useful and make it difficult to search for table definitions, etc.
* | | Fix poetry version typo in contributors' guide (#16695)David Robertson2023-11-272-1/+2
| | |
* | | Bump prometheus-client from 0.18.0 to 0.19.0 (#16691)dependabot[bot]2023-11-271-3/+3
| | | | | | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | | Bump pyasn1 from 0.5.0 to 0.5.1 (#16689)dependabot[bot]2023-11-271-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [pyasn1](https://github.com/pyasn1/pyasn1) from 0.5.0 to 0.5.1. - [Release notes](https://github.com/pyasn1/pyasn1/releases) - [Changelog](https://github.com/pyasn1/pyasn1/blob/main/CHANGES.rst) - [Commits](https://github.com/pyasn1/pyasn1/compare/v0.5.0...v0.5.1) --- updated-dependencies: - dependency-name: pyasn1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | | Bump types-setuptools from 68.2.0.0 to 68.2.0.2 (#16688)dependabot[bot]2023-11-271-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [types-setuptools](https://github.com/python/typeshed) from 68.2.0.0 to 68.2.0.2. - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-setuptools dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | | Bump ruff from 0.1.4 to 0.1.6 (#16690)dependabot[bot]2023-11-272-20/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [ruff](https://github.com/astral-sh/ruff) from 0.1.4 to 0.1.6. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/v0.1.4...v0.1.6) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | | Bump jsonschema from 4.19.1 to 4.20.0 (#16692)dependabot[bot]2023-11-271-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [jsonschema](https://github.com/python-jsonschema/jsonschema) from 4.19.1 to 4.20.0. - [Release notes](https://github.com/python-jsonschema/jsonschema/releases) - [Changelog](https://github.com/python-jsonschema/jsonschema/blob/main/CHANGELOG.rst) - [Commits](https://github.com/python-jsonschema/jsonschema/compare/v4.19.1...v4.20.0) --- updated-dependencies: - dependency-name: jsonschema dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | | Bump serde from 1.0.192 to 1.0.193 (#16693)dependabot[bot]2023-11-271-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [serde](https://github.com/serde-rs/serde) from 1.0.192 to 1.0.193. - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.192...v1.0.193) --- updated-dependencies: - dependency-name: serde dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | | Move media retention tests out of rest tests (#16684)David Robertson2023-11-272-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | * Move media retention tests out of rest tests AFAICS this doesn't make any HTTP requests and so it ought not to belong in `tests.rest`. * Changelog
* | | Correctly read to-device stream pos on SQLite (#16682)David Robertson2023-11-243-13/+21
| | |
* | | Keep track of `user_ips` and `monthly_active_users` when delegating auth ↵David Robertson2023-11-2311-82/+201
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#16672) * Describe `insert_client_ip` * Pull out client_ips and MAU tracking to BaseAuth * Define HAS_AUTHLIB once in tests sick of copypasting * Track ips and token usage when delegating auth * Test that we track MAU and user_ips * Don't track `__oidc_admin`
* | | Enable refreshable tokens on the admin registration endpoint (#16642)Charles Wright2023-11-222-1/+10
| | | | | | | | | Signed-off-by: Charles Wright <cvwright@futo.org>
* | | Bump pyo3 (0.20), pythonize (0.20), pyo3-log (0.9) (#16673)V024602023-11-223-35/+32
| | | | | | | | | Signed-off-by: Kai A. Hiller <V02460@gmail.com>
* | | Admin API for server notice: consistently bypass rate limits (#16670)Mathieu Velten2023-11-222-0/+3
| | | | | | | | | | | | | | | | | | | | | * Admin API for server notice: disable rate limit for all calls * Add changelog * Update changelog.d/16670.bugfix
* | | Bump pydantic from 2.4.2 to 2.5.1 (#16663)dependabot[bot]2023-11-221-111/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [pydantic](https://github.com/pydantic/pydantic) from 2.4.2 to 2.5.1. - [Release notes](https://github.com/pydantic/pydantic/releases) - [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md) - [Commits](https://github.com/pydantic/pydantic/compare/v2.4.2...v2.5.1) --- updated-dependencies: - dependency-name: pydantic dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | | Filter out auth chain queries that don't exist (#16552)Jason Little2023-11-222-0/+6
| | |
* | | Merge branch 'release-v1.97' into developDavid Robertson2023-11-2139-37/+77
|\| | | |/ |/|
| * fix changelog typo v1.97.0rc1David Robertson2023-11-211-1/+1
| |
| * 1.97.0rc1David Robertson2023-11-2139-37/+77
| |
* | Bump sentry-sdk from 1.32.0 to 1.35.0 (#16666)dependabot[bot]2023-11-201-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 1.32.0 to 1.35.0. - [Release notes](https://github.com/getsentry/sentry-python/releases) - [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md) - [Commits](https://github.com/getsentry/sentry-python/compare/1.32.0...1.35.0) --- updated-dependencies: - dependency-name: sentry-sdk dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump pyopenssl from 23.2.0 to 23.3.0 (#16662)dependabot[bot]2023-11-201-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [pyopenssl](https://github.com/pyca/pyopenssl) from 23.2.0 to 23.3.0. - [Changelog](https://github.com/pyca/pyopenssl/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pyca/pyopenssl/compare/23.2.0...23.3.0) --- updated-dependencies: - dependency-name: pyopenssl dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump types-pillow from 10.1.0.0 to 10.1.0.2 (#16664)dependabot[bot]2023-11-201-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [types-pillow](https://github.com/python/typeshed) from 10.1.0.0 to 10.1.0.2. - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-pillow dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump types-psycopg2 from 2.9.21.15 to 2.9.21.16 (#16665)dependabot[bot]2023-11-201-4/+4
|/ | | | | | | | | | | | | | Bumps [types-psycopg2](https://github.com/python/typeshed) from 2.9.21.15 to 2.9.21.16. - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-psycopg2 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Speed up how quickly we launch new tasks (#16660)Erik Johnston2023-11-172-1/+2
| | | Now that we're reducing concurrency (#16656), this is more important.
* Bump requests-toolbelt from 0.10.1 to 1.0.0. (#16659)Patrick Cloke2023-11-172-4/+5
|
* Speed up purge room by adding index (#16657)Erik Johnston2023-11-173-0/+26
| | | What it says on the tin
* Also discard 'caches' and 'backfill' stream POSITIONS (#16655)Erik Johnston2023-11-172-0/+17
| | | Follow on from #16640
* Merge branch 'master' into developPatrick Cloke2023-11-175-4/+41
|\
| * Tweaks from review. v1.96.1Patrick Cloke2023-11-171-4/+6
| |
| * Move the forking note to 1.96.1.Patrick Cloke2023-11-171-8/+8
| |
| * 1.96.1Patrick Cloke2023-11-174-2/+15
| |
| * Fix building wheels in CI. (#16653)Patrick Cloke2023-11-172-1/+2
| | | | | | | | | | | | pip was using a vendored setuptools that was incompatible with Python 3.12. Upgrading cibuildwheels to a version with a newer version of pip (and thus a newer version of setuptools) fixes the issue.
| * Add blogpost link to changelog. v1.96.0Patrick Cloke2023-11-161-2/+8
| |
| * 1.96.0Patrick Cloke2023-11-164-2/+16
| |
| * Fix "'int' object is not iterable" error in set_device_id_for_pushers ↵Patrick Cloke2023-11-022-2/+3
| | | | | | | | | | | | background update (#16594) A regression from removing the cursor_to_dict call, adds back the wrapping into a tuple.
* | Update admin user API return types in docs. (#16654)Michael Weimann2023-11-172-4/+16
| |
* | Reduce task concurrency (#16656)Erik Johnston2023-11-173-2/+3
| |
* | Revert "Fix test not detecting tables with missing primary keys and missing ↵Erik Johnston2023-11-163-111/+0
| | | | | | | | | | replica identities, then add more replica identities. (#16647)" (#16652) This reverts commit 830988ae72d63bbb67d2020a3f221664f3f456ee.
* | Revert "Add a Postgres `REPLICA IDENTITY` to tables that do not have an ↵Erik Johnston2023-11-164-203/+1
| | | | | | | | | | implicit one. This should allow use of Postgres logical replication. (#16456)" (#16651) This reverts commit 69afe3f7a0d89f3422ddbd3aa16bc9bbc01056eb.
* | Speed up deleting device messages (#16643)Erik Johnston2023-11-164-29/+88
| | | | | | Keeping track of a lower bound of stream ID where we've deleted everything below makes the queries much faster. Otherwise, every time we scan for rows to delete we'd re-scan across all the rows that have previously deleted (until the next table VACUUM).
* | Speed up persisting large number of outliers (#16649)Erik Johnston2023-11-164-12/+134
| | | | | | Recalculating the roots tuple every iteration could be very expensive, so instead let's do a topological sort.
* | Fix sending out of order `POSITION` over replication (#16639)Erik Johnston2023-11-165-21/+45
| | | | | | | | | | If a worker reconnects to Redis we send out the current positions of all our streams. However, if we're also trying to send out a backlog of RDATA at the same time then we can end up sending a `POSITION` with the current token *before* we've sent all the RDATA before the current token. This doesn't cause actual bugs as the receiving servers see the POSITION, fetch the relevant rows from the DB, and then ignore the old RDATA as they come in. However, this is inefficient so it'd be better if we didn't send out-of-order positions
* | More efficiently handle no-op POSITION (#16640)Erik Johnston2023-11-163-0/+53
| | | | | | | | We may receive `POSITION` commands where we already know that worker has advanced past that position, so there is no point in handling it.
* | Fix test not detecting tables with missing primary keys and missing replica ↵reivilibre2023-11-164-3/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | identities, then add more replica identities. (#16647) * Fix the CI query that did not detect all cases of missing primary keys * Add more missing REPLICA IDENTITY entries * Newsfile Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org> --------- Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
* | Add an Admin API to temporarily grant the ability to update an existing ↵David Robertson2023-11-1512-14/+613
| | | | | | | | cross-signing key without UIA (#16634)
* | Asynchronous Uploads (#15503)Sumner Evans2023-11-1514-59/+568
| | | | | | Support asynchronous uploads as defined in MSC2246.
* | Add links to pre-1.0 changelog issue/PR references. (#16638)Patrick Cloke2023-11-152-807/+808
| |
* | Use full GitHub links instead of bare issue numbers. (#16637)Patrick Cloke2023-11-1539-73/+94
| |
* | Improve documentation for ↵Will Hunt2023-11-142-1/+3
| | | | | | | | `/_synapse/admin/v1/rooms/<room_id>/timestamp_to_event` (#16631)
* | Remove whole table locks on push rule add/delete (#16051)Nick Mills-Barrett2023-11-132-16/+28
| | | | | | | | The statements are already executed within a transaction thus a table level lock is unnecessary.
* | Add a Postgres `REPLICA IDENTITY` to tables that do not have an implicit ↵reivilibre2023-11-134-1/+202
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | one. This should allow use of Postgres logical replication. (#16456) * Add Postgres replica identities to tables that don't have an implicit one Fixes #16224 * Newsfile Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org> * Move the delta to version 83 as we missed the boat for 82 * Add a test that all tables have a REPLICA IDENTITY * Extend the test to include when indices are deleted * isort * black * Fully qualify `oid` as it is a 'hidden attribute' in Postgres 11 * Update tests/storage/test_database.py Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> * Add missed tables --------- Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org> Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
* | Fix outbound_federation_restricted_to docs & note when added (#16628)David Robertson2023-11-132-0/+4
| |
* | Bump serde from 1.0.190 to 1.0.192 (#16627)dependabot[bot]2023-11-131-4/+4
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump prometheus-client from 0.17.1 to 0.18.0 (#16626)dependabot[bot]2023-11-131-4/+4
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump treq from 22.2.0 to 23.11.0 (#16623)dependabot[bot]2023-11-131-6/+6
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump types-pyopenssl from 23.2.0.2 to 23.3.0.0 (#16625)dependabot[bot]2023-11-131-4/+4
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump types-bleach from 6.1.0.0 to 6.1.0.1 (#16624)dependabot[bot]2023-11-131-3/+3
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump towncrier from 23.6.0 to 23.11.0 (#16622)dependabot[bot]2023-11-131-18/+4
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Use attempt_to_set_autocommit everywhere. (#16615)Patrick Cloke2023-11-095-22/+24
| | | | | | To avoid asserting the type of the database connection.
* | Fix a long-standing bug where Synapse would not unbind third-party ↵reivilibre2023-11-092-11/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | identifiers for Application Service users when deactivated and would not emit a compliant response. (#16617) * Don't skip unbinding 3PIDs and returning success status when deactivating AS user Fixes #16608 * Newsfile Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org> --------- Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
* | Use dbname instead of database for Postgres config. (#16618)Patrick Cloke2023-11-095-8/+9
| |
* | Use _invalidate_cache_and_stream_bulk in more places. (#16616)Patrick Cloke2023-11-098-47/+72
| | | | | | | | | | This takes advantage of the new bulk method in more places to invalidate caches for many keys at once (and then to stream that over replication).
* | Convert simple_select_one_txn and simple_select_one to return tuples. (#16612)Patrick Cloke2023-11-0933-279/+283
| |
* | Return attrs for more media repo APIs. (#16611)Patrick Cloke2023-11-0910-110/+148
| |
* | Bulk-invalidate e2e cached queries after claiming keys (#16613)David Robertson2023-11-096-28/+249
| | | | | | | | Co-authored-by: Patrick Cloke <patrickc@matrix.org>
* | Bump pyicu from 2.11 to 2.12 (#16603)dependabot[bot]2023-11-081-2/+2
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump serde_json from 1.0.107 to 1.0.108 (#16604)dependabot[bot]2023-11-081-2/+2
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Avoid updating the same rows multiple times with simple_update_many_txn. ↵Patrick Cloke2023-11-073-6/+4
| | | | | | | | | | | | (#16609) simple_update_many_txn had a bug in it which would cause each update to be applied twice.
* | Avoid executing no-op queries. (#16583)Patrick Cloke2023-11-077-39/+39
| | | | | | | | | | | | If simple_{insert,upsert,update}_many_txn is called without any data to modify then return instead of executing the query. This matches the behavior of simple_{select,delete}_many_txn.
* | More tests for the simple_* methods. (#16596)Patrick Cloke2023-11-073-27/+633
| | | | | | | | Expand tests for the simple_* database methods, additionally test against both PostgreSQL and SQLite variants.
* | Collect information for PushRuleEvaluator in parallel. (#16590)Patrick Cloke2023-11-064-34/+87
| | | | | | | | | | | | | | | | Fetch information needed for push rule evaluation in parallel. Ideally this would use query pipelining, but this is not available in psycopg2. Due to the database thread pool this may result in little to no parallelization.
* | Bump setuptools_rust to match pinned version. (#16605)Patrick Cloke2023-11-062-1/+2
| |
* | Support reactor timing metric on more reactors. (#16532)Patrick Cloke2023-11-063-29/+106
| | | | | | | | | | | | | | | | | | | | Previously only Twisted's EPollReactor was compatible with the reactor timing metric, notably not working when asyncio was used. After this change, the following configurations support the reactor timing metric: * poll, epoll, or select reactors * asyncio reactor with a poll, epoll, select, /dev/poll, or kqueue event loop.
* | Bump setuptools-rust from 1.8.0 to 1.8.1 (#16601)dependabot[bot]2023-11-061-3/+3
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump types-pyyaml from 6.0.12.11 to 6.0.12.12 (#16602)dependabot[bot]2023-11-061-3/+3
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump types-jsonschema from 4.19.0.3 to 4.19.0.4 (#16599)dependabot[bot]2023-11-061-3/+3
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump ruff from 0.0.292 to 0.1.4 (#16600)dependabot[bot]2023-11-062-21/+21
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Simplify event persistence code (#16584)Patrick Cloke2023-11-034-312/+326
| | | | | | | | | | | | | | | | | | | | | | The event persistence code used to handle multiple rooms at a time, but was simplified to only ever be called with a single room at a time (different rooms are now handled in parallel). The code is still generic to multiple rooms causing a lot of work that is unnecessary (e.g. unnecessary loops, and partitioning data by room). This strips out the ability to handle multiple rooms at once, greatly simplifying the code.
* | Use simple_select_many_txn in event persistance code. (#16585)Patrick Cloke2023-11-022-5/+12
| | | | | | | | | | Just to standardize on the normal helpers, it might also have a slight perf improvement on PostgreSQL which will now use `ANY (?)` instead of `IN (?, ?, ...)`.
* | Bump twisted from 23.8.0 to 23.10.0 (#16588)dependabot[bot]2023-11-015-12/+12
| |
* | Do not call getfullargspec on every call. (#16589)Patrick Cloke2023-10-312-2/+6
| | | | | | | | | | getfullargspec is relatively expensive and the results will not change between calls, so precalculate it outside the wrapper.
* | Remove remaining usage of cursor_to_dict. (#16564)Patrick Cloke2023-10-3118-157/+300
| |
* | Merge branch 'release-v1.96' into developErik Johnston2023-10-3141-39/+68
|\|
| * Update changelog v1.96.0rc1Erik Johnston2023-10-311-5/+5
| |
| * 1.96.0rc1Erik Johnston2023-10-3141-39/+68
| |
| * Merge remote-tracking branch 'origin/develop' into release-v1.96Erik Johnston2023-10-316-2/+37
| |\
| * | Revert "1.96.0rc1"Erik Johnston2023-10-3141-68/+39
| | | | | | | | | | | | This reverts commit 4724a6ded136c727bcff5082b94c2b3d6355e908.
| * | 1.96.0rc1Erik Johnston2023-10-3141-39/+68
| | |
* | | Fix import ordering issue introduced in ↵Patrick Cloke2023-10-311-1/+1
| |/ |/| | | | | 7a3a55ac98847d7adb0e200378abe07ef8d0c645.
* | Merge branch 'release-v1.95' into developErik Johnston2023-10-313-1/+21
|\ \
| * | 1.95.1 v1.95.1Erik Johnston2023-10-313-1/+21
| | |
| * | Merge pull request from GHSA-mp92-3jfm-3575Patrick Cloke2023-10-313-1/+16
| | |
* | | Merge pull request from GHSA-mp92-3jfm-3575Patrick Cloke2023-10-313-1/+16
| |/ |/|
* | Claim local one-time-keys in bulk (#16565)David Robertson2023-10-304-114/+308
| | | | | | | | Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
* | Clients link fixed in README (#16569)Niranjan Kurhade2023-10-302-1/+2
| |
* | Add fast path for replication events stream fetch (#16580)Erik Johnston2023-10-302-0/+7
| | | | | | | | We can bail early if the from token is greater than or equal to the current token.
* | Claim fallback keys in bulk (#16570)David Robertson2023-10-305-0/+162
| |
* | Bump setuptools-rust from 1.7.0 to 1.8.0 (#16574)dependabot[bot]2023-10-303-6/+6
| | | | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: David Robertson <davidr@element.io>
* | Run actions/setup-go after checking out complement (#16567)David Robertson2023-10-304-6/+16
| |
* | Fix HTTP repl response to use minimum token (#16578)Erik Johnston2023-10-302-1/+2
| |
* | Bump cryptography from 41.0.4 to 41.0.5 (#16572)dependabot[bot]2023-10-301-24/+24
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump serde from 1.0.189 to 1.0.190 (#16577)dependabot[bot]2023-10-301-4/+4
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump phonenumbers from 8.13.22 to 8.13.23 (#16576)dependabot[bot]2023-10-301-3/+3
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump black from 23.10.0 to 23.10.1 (#16575)dependabot[bot]2023-10-301-19/+19
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump types-psycopg2 from 2.9.21.14 to 2.9.21.15 (#16573)dependabot[bot]2023-10-301-5/+7
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Portdb: don't copy a table that gets rebuilt (#16563)David Robertson2023-10-272-1/+2
| |
* | complement: enable dirty runs (#16520)kegsay2023-10-275-4/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * complement: enable dirty runs * Add changelog * Set a low connpool limit when running in Complement Dirty runs can cause many containers to be running concurrently, which seems to easily exhaust resources on the host. The increased speedup from dirty runs also seems to use more db connections on workers, which are misconfigured currently to have `SUM(workers * cp_max) > max_connections`, causing ``` FATAL: sorry, too many clients already ``` which results in tests failing. * Try p=2 concurrency to restrict slowness of servers which causes partial state join tests to flake * Debug logging * Only run flakey tests * Only adjust connection pool limits in worker mode * Move cp vars to somewhere where they get executed in CI * Move cp values back to where they actually work * Debug logging * Try p=1 to see if this makes worker mode happier * Remove debug logging
* | Ensure local invited & knocking users leave before purge. (#16559)Patrick Cloke2023-10-274-4/+73
| | | | | | | | | | This is mostly useful for federated rooms where some users would get stuck in the invite or knock state when the room was purged from their homeserver.
* | Reduce amount of caches POSITIONS we send (#16561)Erik Johnston2023-10-272-0/+11
| | | | | | Follow on from / actually correctly does #16557
* | Reduce spurious replication catchup (#16555)Erik Johnston2023-10-272-5/+10
| |
* | Fix cross-worker ratelimiting (#16558)Erik Johnston2023-10-272-16/+58
| | | | | | c.f. #16481
* | Reduce replication traffic due to reflected cache stream POSITION (#16557)Erik Johnston2023-10-272-1/+19
| |
* | Add new module API for adding custom fields to events `unsigned` section ↵Erik Johnston2023-10-2719-44/+194
| | | | | | | | (#16549)
* | Remove more usages of cursor_to_dict. (#16551)Patrick Cloke2023-10-2626-134/+193
| | | | | | Mostly to improve type safety.
* | Add a new module API to update user presence state. (#16544)Patrick Cloke2023-10-2612-53/+221
| | | | | | | | | | | | | | | | | | | | This adds a module API which allows a module to update a user's presence state/status message. This is useful for controlling presence from an external system. To fully control presence from the module the presence.enabled config parameter gains a new state of "untracked" which disables internal tracking of presence changes via user actions, etc. Only updates from the module will be persisted and sent down sync properly).
* | Convert simple_select_list and simple_select_list_txn to return lists of ↵Patrick Cloke2023-10-2631-509/+609
| | | | | | | | | | tuples (#16505) This should use fewer allocations and improves type hints.
* | Pin the recommended poetry version in contributors' guide (#16550)David Robertson2023-10-252-1/+2
| |
* | Allow multiple workers to write to receipts stream. (#16432)Erik Johnston2023-10-2515-89/+604
| | | | | | Fixes #16417
* | Fix tests on Twisted trunk. (#16528)Patrick Cloke2023-10-256-111/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | Twisted trunk makes a change to the `TLSMemoryBIOFactory` where the underlying protocol is changed from `TLSMemoryBIOProtocol` to `BufferingTLSTransport` to improve performance of TLS code (see https://github.com/twisted/twisted/issues/11989). In order to properly hook this code up in tests we need to pass the test reactor's clock into `TLSMemoryBIOFactory` to avoid the global (trial) reactor being used by default. Twisted does something similar internally for tests: https://github.com/twisted/twisted/blob/157cd8e659705940e895d321339d467e76ae9d0a/src/twisted/web/test/test_agent.py#L871-L874
* | Fix http/s proxy authentication with long username/passwords (#16504)Richard Brežák2023-10-243-1/+23
| |
* | Revert "Add test case to detect dodgy b64 encoding"David Robertson2023-10-241-14/+0
| | | | | | | | | | | | | | | | | | This reverts commit 5fe76b9434e22bb752c252dd9c66c3c2bfb90dfc. I think I had this accidentally commited on my local develop branch, and so it accidentally got merged into upstream develop. This should re-land with corrections in #16504.
* | Merge branch 'master' into developDavid Robertson2023-10-244-1/+15
|\|
| * 1.95.0 v1.95.0David Robertson2023-10-244-2/+14
| |
| * Build Debian packages for Ubuntu 23.10 Mantic Minotaur (#16524)David Robertson2023-10-192-0/+2
| |
* | Merge branch 'develop' of github.com:matrix-org/synapse into developDavid Robertson2023-10-2433-460/+786
|\ \
| * | Rework alias and public room list rules docs (#16541)David Robertson2023-10-242-34/+133
| | |
| * | Remove duplicate call to wake a remote destination when using federation ↵Jason Little2023-10-243-13/+1
| | | | | | | | | | | | sending worker (#16515)
| * | Replace all Prometheus datasource UIDs of the Grafana Dashboard with the ↵Michael Sasser2023-10-232-314/+306
| | | | | | | | | | | | variable `${DS_PROMETHEUS}` and remove `__inputs` (#16471)
| * | Fix type hint errors from Twisted trunk (#16526)Patrick Cloke2023-10-236-8/+17
| | |
| * | Fix bug where a new writer advances their token too quickly (#16473)Erik Johnston2023-10-239-77/+305
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix bug where a new writer advances their token too quickly When starting a new writer (for e.g. persisting events), the `MultiWriterIdGenerator` doesn't have a minimum token for it as there are no rows matching that new writer in the DB. This results in the the first stream ID it acquired being announced as persisted *before* it actually finishes persisting, if another writer gets and persists a subsequent stream ID. This is due to the logic of setting the minimum persisted position to the minimum known position of across all writers, and the new writer starts off not being considered. * Fix sending out POSITIONs when our token advances without update Broke in #14820 * For replication HTTP requests, only wait for minimal position
| * | Fix bug that could cause a `/sync` to tightloop with sqlite after restart ↵Erik Johnston2023-10-232-1/+5
| | | | | | | | | | | | | | | (#16540) This could happen if the last rows in the account data stream were inserted into `account_data`. After a restart the max account ID would be calculated without looking at the `account_data` table, and so have an old ID.
| * | Mention how to redirect the Jaeger traces to a specific Jaeger instance (#16531)Marcel2023-10-232-0/+6
| | |
| * | Force TLS certificate verification in registration script. (#16530)Denis Kasak2023-10-232-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If using the script remotely, there's no particularly convincing reason to disable certificate verification, as this makes the connection interceptible. If on the other hand, the script is used locally (the most common use case), you can simply target the HTTP listener and avoid TLS altogether. This is what the script already attempts to do if passed a homeserver configuration YAML file.
| * | Remove the last reference to event_txn_id. (#16521)Patrick Cloke2023-10-233-7/+5
| | | | | | | | | | | | This table was no longer used, except for a background process which purged old entries in it.
| * | Bump matrix-synapse-ldap3 from 0.2.2 to 0.3.0 (#16539)David Robertson2023-10-232-4/+5
| | |
* | | Add test case to detect dodgy b64 encodingDavid Robertson2023-10-231-0/+14
|/ /
* | Bump black from 23.9.1 to 23.10.0 (#16538)dependabot[bot]2023-10-231-23/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [black](https://github.com/psf/black) from 23.9.1 to 23.10.0. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](https://github.com/psf/black/compare/23.9.1...23.10.0) --- updated-dependencies: - dependency-name: black dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump types-requests from 2.31.0.2 to 2.31.0.10 (#16537)dependabot[bot]2023-10-231-23/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [types-requests](https://github.com/python/typeshed) from 2.31.0.2 to 2.31.0.10. - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-requests dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump gitpython from 3.1.37 to 3.1.40 (#16534)dependabot[bot]2023-10-231-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [gitpython](https://github.com/gitpython-developers/GitPython) from 3.1.37 to 3.1.40. - [Release notes](https://github.com/gitpython-developers/GitPython/releases) - [Changelog](https://github.com/gitpython-developers/GitPython/blob/main/CHANGES) - [Commits](https://github.com/gitpython-developers/GitPython/compare/3.1.37...3.1.40) --- updated-dependencies: - dependency-name: gitpython dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump types-pillow from 10.0.0.3 to 10.1.0.0 (#16536)dependabot[bot]2023-10-231-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [types-pillow](https://github.com/python/typeshed) from 10.0.0.3 to 10.1.0.0. - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-pillow dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump pygithub from 1.59.1 to 2.1.1 (#16535)dependabot[bot]2023-10-231-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [pygithub](https://github.com/pygithub/pygithub) from 1.59.1 to 2.1.1. - [Release notes](https://github.com/pygithub/pygithub/releases) - [Changelog](https://github.com/PyGithub/PyGithub/blob/main/doc/changes.rst) - [Commits](https://github.com/pygithub/pygithub/compare/v1.59.1...v2.1.1) --- updated-dependencies: - dependency-name: pygithub dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Clarify presence router docs. (#16529)Patrick Cloke2023-10-202-3/+12
| |
* | Mark sync as limited if there is a gap in the timeline (#16485)Erik Johnston2023-10-195-33/+166
| | | | | | | | | | | | | | | | This splits thinsg into two queries, but most of the time we won't have new event backwards extremities so this shouldn't actually add an extra RTT for the majority of cases. Note this removes the check for events with no prev events, but that was part of MSC2716 work that has since been removed.
* | Avoid sending massive replication updates when purging a room. (#16510)Patrick Cloke2023-10-184-30/+115
| |
* | Improve performance of delete device messages query (#16492)Mathieu Velten2023-10-183-7/+11
| |
* | Run trial/integration tests if .ci is modified. (#16512)Patrick Cloke2023-10-182-0/+7
| |
* | Bump urllib3 from 1.26.17 to 1.26.18 (#16516)dependabot[bot]2023-10-181-3/+3
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Test against Python 3.12 release (#16511)Patrick Cloke2023-10-172-2/+3
|/
* Update the changelog. v1.95.0rc1Patrick Cloke2023-10-171-2/+2
|
* 1.95.0rc1Patrick Cloke2023-10-1733-31/+55
|
* Convert DeviceLastConnectionInfo to attrs. (#16507)Patrick Cloke2023-10-174-103/+104
| | | To improve type safety & memory usage.
* Fix a bug where servers could be marked as up when they were failing (#16506)Patrick Cloke2023-10-173-13/+93
| | | | After this change a server will only be reported as back online if they were previously having requests fail.
* Update the release script to remind releaser to check for special release ↵reivilibre2023-10-162-0/+5
| | | | | | | | | | | | | | | | | notes. (#16461) * Add reminder to check special release notes board in release script * Newsfile Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org> * Update release.py * Bah, black --------- Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
* Convert state delta processing from a dict to attrs. (#16469)Patrick Cloke2023-10-168-109/+111
| | | For improved type checking & memory usage.
* Bump pillow from 10.0.1 to 10.1.0 (#16498)dependabot[bot]2023-10-161-55/+55
| | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump serde from 1.0.188 to 1.0.189 (#16494)dependabot[bot]2023-10-161-4/+4
| | | | | | | | | | | | | | | Bumps [serde](https://github.com/serde-rs/serde) from 1.0.188 to 1.0.189. - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.188...v1.0.189) --- updated-dependencies: - dependency-name: serde dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump sentry-sdk from 1.31.0 to 1.32.0 (#16496)dependabot[bot]2023-10-161-3/+3
| | | | | | | | | | | | | | | | Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 1.31.0 to 1.32.0. - [Release notes](https://github.com/getsentry/sentry-python/releases) - [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md) - [Commits](https://github.com/getsentry/sentry-python/compare/1.31.0...1.32.0) --- updated-dependencies: - dependency-name: sentry-sdk dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Remove useless async job to delete device messages on sync (#16491)Mathieu Velten2023-10-163-24/+4
|