summary refs log tree commit diff
Commit message (Collapse)AuthorAgeFilesLines
* 1.121.0rc1 v1.121.0rc1Andrew Morgan2024-12-0423-21/+54
|
* Pin Rust to 1.82.0 when building Python wheels (#17993)Andrew Morgan2024-12-043-4/+14
| | | Addresses step 1 of #17988.
* Pin softprops/action-gh-release to v0.1.15 (#17995)Andrew Morgan2024-12-042-1/+2
| | | | | | | | | | We are still seeing duplicate releases on v2.0.5, so roll back further. [Other](https://github.com/Poko-Apps/curl-openssl-android/commit/f8a5a60b7c4b196c703d322bb3d11e9495807426#diff-88ab30345d9874c4336fe50b54b083ba5bdd925be961c34060e6a192b56b0433R72) [repositories](https://github.com/Glistix/glistix/commit/55fca4fec74aa114faf553b563ae5883b5d76be0#diff-e426ed45842837026e10e66af23d9c7077e89eacbe6958ce7cb991130ad05adaR105) seem to have settled on this version. Addresses https://github.com/element-hq/synapse/issues/17991 We're just going to test this during 1.121.0rc1.
* Support for MSC4190: device management for application services (#17705)Quentin Gliech2024-12-0412-33/+351
| | | | | | | | This is an implementation of MSC4190, which allows appservices to manage their user's devices without /login & /logout. --------- Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
* MSC4076: Add disable_badge_count to pusher configuration (#17975)manuroe2024-12-034-6/+98
| | | | | This PR implements [MSC4076: Let E2EE clients calculate app badge counts themselves (disable_badge_count)](https://github.com/matrix-org/matrix-spec-proposals/pull/4076).
* Merge branch 'master' into developQuentin Gliech2024-12-0314-23/+419
|\
| * 1.120.2 v1.120.2Quentin Gliech2024-12-033-1/+15
| |
| * Stop building wheels for macOSQuentin Gliech2024-12-031-8/+2
| |
| * 1.120.1 v1.120.1Quentin Gliech2024-12-034-2/+49
| |
| * Restrict which image formats we will decode in order to generate thumbnailsOlivier 'reivilibre2024-12-031-1/+6
| |
| * Don't allow unsupported content-typeDevon Hudson2024-12-032-0/+89
| | | | | | | | Co-authored-by: Eric Eastwood <erice@element.io>
| * Handle null invite and knock room stateErik Johnston2024-12-035-9/+33
| |
| * Sliding Sync: Fix state leaking on incremental syncEric Eastwood2024-12-033-4/+226
| |
| * Fix release process to not create duplicate releases (#17970)Erik Johnston2024-12-032-1/+3
| | | | | | | | | | | | | | | | This is to work around https://github.com/softprops/action-gh-release/issues/445 --------- Co-authored-by: Quentin Gliech <quenting@element.io>
* | Be able to test `/login/sso/redirect` in Complement (#17986)Eric Eastwood2024-12-035-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | Be able to test `/login/sso/redirect` in Complement Spawning from https://github.com/element-hq/sbg/pull/421#discussion_r1854926218 where we have a proxy that intercepts responses to `/_matrix/client/v3/login/sso/redirect(/{idpId})` in order to upgrade them to use OAuth 2.0 Pushed Authorization Requests (PAR). We have some Complement tests in that codebase that go over this flow and these changes are required [in order for the URL's to line up](https://github.com/element-hq/synapse/blob/d648c8ce3f4cbf61191b9f5302e405f7b0288677/synapse/rest/client/login.py#L652-L673).
* | Bump bytes from 1.8.0 to 1.9.0 (#17982)dependabot[bot]2024-12-021-2/+2
| |
* | Bump tomli from 2.1.0 to 2.2.1 (#17979)dependabot[bot]2024-12-021-3/+33
| |
* | Sliding Sync: Include invite, ban, kick, targets when `$LAZY`-loading room ↵Eric Eastwood2024-12-025-11/+181
| | | | | | | | | | members (#17947) Part of https://github.com/element-hq/synapse/issues/17929
* | Use stable error code for account locking (#17965)Travis Ralston2024-12-022-2/+2
| |
* | Bump pysaml2 from 7.3.1 to 7.5.0 (#17978)dependabot[bot]2024-12-021-6/+6
| |
* | Fix release process to not create duplicate releases (#17970)Erik Johnston2024-12-022-1/+3
| | | | | | | | | | | | | | | | This is to work around https://github.com/softprops/action-gh-release/issues/445 --------- Co-authored-by: Quentin Gliech <quenting@element.io>
* | Consolidate SSO redirects through ↵Eric Eastwood2024-11-298-28/+262
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `/_matrix/client/v3/login/sso/redirect(/{idpId})` (#17972) Consolidate SSO redirects through `/_matrix/client/v3/login/sso/redirect(/{idpId})` Spawning from https://github.com/element-hq/sbg/pull/421#discussion_r1859497330 where we have a proxy that intercepts responses to `/_matrix/client/v3/login/sso/redirect(/{idpId})` in order to upgrade them to use OAuth 2.0 Pushed Authorization Requests (PAR). Instead of needing to intercept multiple endpoints that redirect to the authorization endpoint, it seems better to just have Synapse consolidate to a single flow. ### Testing strategy 1. Create a new OAuth application. I'll be using GitHub for example but there are [many options](https://github.com/matrix-org/synapse/blob/be65a8ec0195955c15fdb179c9158b187638e39a/docs/openid.md). Visit https://github.com/settings/developers -> **New OAuth App** - Application name: `Synapse local testing` - Homepage URL: `http://localhost:8008` - Authorization callback URL: `http://localhost:8008/_synapse/client/oidc/callback` 1. Update your Synapse `homeserver.yaml` ```yaml server_name: "my.synapse.server" public_baseurl: http://localhost:8008/ listeners: - port: 8008 bind_addresses: [ #'::1', '127.0.0.1' ] tls: false type: http x_forwarded: true resources: - names: [client, federation, metrics] compress: false # SSO login testing oidc_providers: - idp_id: github idp_name: Github idp_brand: "github" # optional: styling hint for clients discover: false issuer: "https://github.com/" client_id: "xxx" # TO BE FILLED client_secret: "xxx" # TO BE FILLED authorization_endpoint: "https://github.com/login/oauth/authorize" token_endpoint: "https://github.com/login/oauth/access_token" userinfo_endpoint: "https://api.github.com/user" scopes: ["read:user"] user_mapping_provider: config: subject_claim: "id" localpart_template: "{{ user.login }}" display_name_template: "{{ user.name }}" ``` 1. Start Synapse: `poetry run synapse_homeserver --config-path homeserver.yaml` 1. Visit `http://localhost:8008/_synapse/client/pick_idp?redirectUrl=http%3A%2F%2Fexample.com` 1. Choose GitHub 1. Notice that you're redirected to GitHub to sign in (`https://github.com/login/oauth/authorize?...`) Tested locally and works: 1. `http://localhost:8008/_synapse/client/pick_idp?idp=oidc-github&redirectUrl=http%3A//example.com` -> 1. `http://localhost:8008/_matrix/client/v3/login/sso/redirect/oidc-github?redirectUrl=http://example.com` -> 1. `https://github.com/login/oauth/authorize?response_type=code&client_id=xxx&redirect_uri=http%3A%2F%2Flocalhost%3A8008%2F_synapse%2Fclient%2Foidc%2Fcallback&scope=read%3Auser&state=xxx&nonce=xxx`
* | Fix new scheduled tasks jumping the queue (#17962)Richard van der Hoff2024-11-285-55/+64
| | | | | | | | | | | | | | | | | | | | | | | | Currently, when a new scheduled task is added and its scheduled time has already passed, we set it to ACTIVE. This is problematic, because it means it will jump the queue ahead of all other SCHEDULED tasks; furthermore, if the Synapse process gets restarted, it will jump ahead of any ACTIVE tasks which have been started but are taking a while to run. Instead, we leave it set to SCHEDULED, but kick off a call to `_launch_scheduled_tasks`, which will decide if we actually have capacity to start a new task, and start the newly-added task if so.
* | Update setuptools-rust and fix building abi3 wheels (#17969)Erik Johnston2024-11-273-6/+25
| | | | | | | | | | | | | | Newer versions of `setuptools-rust` ignore the `py_limited_api` flag to `RustExtension`, and instead read it from `bdist_wheel` config. c.f. https://github.com/PyO3/setuptools-rust/blob/main/CHANGELOG.md#190-2024-02-24
* | Bump pyo3 to v0.23.2 (#17966)V024602024-11-2711-195/+136
| | | | | | | | | | | | | | | | | | Keep up-to-date with pyo3 releases. This bump enables Python 3.13 support and resolves deprecations. Links for quick reference: https://github.com/PyO3/pyo3/releases https://github.com/davidhewitt/pythonize/releases https://github.com/vorner/pyo3-log
* | MSC4108: Add a Content-Type header on the PUT response (#17253)Quentin Gliech2024-11-262-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a workaround for some proxy setup, where the ETag header gets stripped from the response headers unless there is a Content-Type header set. In particular, we saw this bug when putting Cloudflare in front of Synapse. I'm pretty sure this is a Cloudflare bug, as this behaviour isn't documented anywhere, and doesn't make sense whatsoever. --------- Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
* | Merge branch 'master' into developQuentin Gliech2024-11-264-1/+17
|\|
| * 1.120.0 v1.120.0Quentin Gliech2024-11-264-2/+16
| |
| * Fix `delete_old_otks` job on worker deployments (#17960)Richard van der Hoff2024-11-262-0/+2
| | | | | | | | | | | | | | In a worker-mode deployment, the `E2eKeysHandler` is not necessarily loaded, which means the handler for the `delete_old_otks` task will not be registered. Make sure we load the handler. Introduced in https://github.com/element-hq/synapse/pull/17934
* | Bump tomli from 2.0.2 to 2.1.0 (#17959)dependabot[bot]2024-11-261-3/+3
| |
* | Fix up logic for delaying sending read receipts over federation. (#17933)Erik Johnston2024-11-256-134/+220
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For context of why we delay read receipts, see https://github.com/matrix-org/synapse/issues/4730. Element Web often sends read receipts in quick succession, if it reloads the timeline it'll send one for the last message in the old timeline and again for the last message in the new timeline. This caused remote users to see a read receipt for older messages come through quickly, but then the second read receipt taking a while to arrive for the most recent message. There are two things going on in this PR: 1. There was a mismatch between seconds and milliseconds, and so we ended up delaying for far longer than intended. 2. Changing the logic to reuse the `DestinationWakeupQueue` (used for presence) The changes in logic are: - Treat the first receipt and subsequent receipts in a room in the same way - Whitelist certain classes of receipts to never delay being sent, i.e. receipts in small rooms, receipts for events that were sent within the last 60s, and sending receipts to the event sender's server. - The maximum delay a receipt can have before being sent to a server is 30s, and we'll send out receipts to remotes at least at 50Hz (by default) The upshot is that this should make receipts feel more snappy over federation. This new logic should send roughly between 10%–20% of transactions immediately on matrix.org.
* | Bump tornado from 6.4.1 to 6.4.2 (#17955)dependabot[bot]2024-11-251-13/+13
| |
* | Return suspended status when querying user account (#17952)Shay2024-11-224-1/+5
| |
* | link to element-docker-demo from contrib/docker* (#17953)Matthew Hodgson2024-11-223-0/+7
| |
* | Add Forgejo oidc provider config example (#17872)Valentin Iovene2024-11-202-0/+31
| |
* | Merge branch 'release-v1.120' into developOlivier 'reivilibre2024-11-2014-12/+54
|\|
| * Tweak changelogOlivier 'reivilibre2024-11-201-2/+2
| |
| * 1.120.0rc1 v1.120.0rc1Olivier 'reivilibre2024-11-2014-12/+54
| |
* | Fix incorrect comment in new schema delta (#17936)Erik Johnston2024-11-202-2/+3
| | | | | | Added in #17912, was a bad copy and paste.
* | Bump serde_json from 1.0.132 to 1.0.133 (#17939)dependabot[bot]2024-11-201-2/+2
| |
* | Raise setuptools_rust version cap to 1.10.2 (#17944)V024602024-11-202-1/+2
| |
* | Add encrypted appservice extensions to Complement test image. (#17945)Will Hunt2024-11-202-0/+11
|/
* Fix nix flakeOlivier 'reivilibre2024-11-202-43/+9
|
* Enable authenticated media by default (#17889)Travis Ralston2024-11-2011-16/+129
| | | Co-authored-by: Olivier 'reivilibre <oliverw@matrix.org>
* Support both import names of PyPI package `python-multipart`. (#17932)Renaud Allard2024-11-202-4/+18
|
* Speed up slow initial sliding syncs on large servers (#17946)Erik Johnston2024-11-194-1/+44
| | | | This was due to a missing index, which meant that deleting previous connections associated with the device and `conn_id` took a long time.
* Create one-off scheduled task to delete old OTKs (#17934)Richard van der Hoff2024-11-196-0/+203
| | | | | | | | | | To work around the fact that, pre-https://github.com/element-hq/synapse/pull/17903, our database may have old one-time-keys that the clients have long thrown away the private keys for, we want to delete OTKs that look like they came from libolm. To spread the load a bit, without holding up other background database updates, we use a scheduled task to do the work.
* Bump serde from 1.0.214 to 1.0.215 (#17938)dependabot[bot]2024-11-181-4/+4
|
* Bump packaging from 24.1 to 24.2 (#17940)dependabot[bot]2024-11-181-3/+3
|
* Bump phonenumbers from 8.13.49 to 8.13.50 (#17942)dependabot[bot]2024-11-181-3/+3
|
* Bump immutabledict from 4.2.0 to 4.2.1 (#17941)dependabot[bot]2024-11-181-4/+4
|
* Add some documentation about backing up Synapse (#17931)Richard van der Hoff2024-11-186-3/+147
| | | | Fixes: https://github.com/element-hq/element-meta/issues/2155 Fixes: https://github.com/element-hq/synapse/issues/2046
* Move server event filtering logic to rust (#17928)Devon Hudson2024-11-149-58/+265
| | | | | | | | | | | | | | | | | | | | | | | | | | ### 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))
* Merge branch 'master' into developErik Johnston2024-11-133-3/+15
|\
| * 1.119.0 v1.119.0Erik Johnston2024-11-133-3/+15
| |
* | Removal: Remove support for experimental msc3886 (#17638)Poruri Sai Rahul2024-11-1312-126/+13
| |
* | Bump macos version used to build wheels (#17924)Erik Johnston2024-11-132-3/+4
| | | | | | | | MacOS 12 is end-of-life and GitHub is deprecating support for it (including doing brown outs). Let's bump to MacOS 13.
* | Unpin the upload release GHA action (#17923)Erik Johnston2024-11-122-5/+2
| | | | | | | | | | | | | | We were pinned to an old version that had deprecation warnings. In new versions of the action leaving off properties (i.e. `draft` and `prerelease`) tells the action to not modify those properties of the release.
* | Fix typo in error message when a media ID isn't known (#17865)Benjamin Bouvier2024-11-126-6/+7
| |
* | Merge branch 'release-v1.119' into developErik Johnston2024-11-1136-37/+132
|\|
| * 1.119.0rc2 v1.119.0rc2Erik Johnston2024-11-114-3/+11
| |
| * Fix building and attaching release artifacts (#17921)Erik Johnston2024-11-112-3/+18
| | | | | | | | | | | | | | | | | | | | Broke in #17905 due to upgrading the `upload-artifact` action, as we didn't rename debs. I think we also need to change how we download the artefacts and attach them to a release, as they'll download to a different place. Docs: - https://github.com/actions/upload-artifact/tree/v4/ - https://github.com/actions/download-artifact/tree/v4/
| * Update changelog v1.119.0rc1Erik Johnston2024-11-111-1/+1
| |
| * Update changelogErik Johnston2024-11-112-1/+1
| |
| * Add index to `current_state_delta_stream` (#17912)Erik Johnston2024-11-113-2/+44
| | | | | | | | As we're now using it in the sync APIs to get state changes within a room
| * Update changelog for releaseDevon Hudson2024-11-089-11/+13
| |
| * Merge branch 'develop' into release-v1.119Devon Hudson2024-11-0845-190/+498
| |\
| * | Cleanup changelogDevon Hudson2024-11-061-12/+6
| | |
| * | 1.119.0rc1Devon Hudson2024-11-0625-24/+58
| | |
* | | Bump bleach from 6.1.0 to 6.2.0 (#17918)dependabot[bot]2024-11-111-6/+5
| | |
* | | Bump pygithub from 2.4.0 to 2.5.0 (#17917)dependabot[bot]2024-11-111-3/+3
| | |
* | | Bump ruff from 0.7.2 to 0.7.3 (#17919)dependabot[bot]2024-11-112-22/+22
| | |
* | | Bump anyhow from 1.0.92 to 1.0.93 (#17920)dependabot[bot]2024-11-111-2/+2
| | |
* | | Clarify the semantics of the `enable_authenticated_media` configuration ↵reivilibre2024-11-112-0/+21
| |/ |/| | | | | | | option. (#17913) Signed-off-by: Olivier 'reivilibre <oliverw@matrix.org>
* | Fix MSC4222 returning full state (#17915)Erik Johnston2024-11-089-31/+91
| | | | | | | | | | | | | | | | | | | | | | There was a bug that meant we would return the full state of the room on incremental syncs when using lazy loaded members and there were no entries in the timeline. This was due to trying to use `state_filter or state_filter.all()` as a short hand for handling `None` case, however `state_filter` implements `__bool__` so if the state filter was empty it would be set to full. c.f. MSC4222 and #17888
* | Fix Twisted tests with latest release (#17911)Erik Johnston2024-11-072-4/+12
| | | | | | c.f. #17906 and #17907
* | Switch portdb CI to python 3.13, pg 17 (#17909)Andrew Morgan2024-11-072-2/+3
| |
* | Fix cancellation tests with new Twisted. (#17906)Erik Johnston2024-11-072-24/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The latest Twisted release changed how they implemented `__await__` on deferreds, which broke the machinery we used to test cancellation. This PR changes things a bit to instead patch the `__await__` method, which is a stable API. This mostly doesn't change the core logic, except for fixing two bugs: - We previously did not intercept all await points - After cancellation we now need to not only unblock currently blocked await points, but also make sure we don't block any future await points. c.f. https://github.com/twisted/twisted/pull/12226 --------- Co-authored-by: Devon Hudson <devon.dmytro@gmail.com>
* | Fix other unit tests with latest twisted (#17907)Erik Johnston2024-11-073-7/+55
| | | | | | There's also https://github.com/element-hq/synapse/pull/17906
* | Issue one time keys in upload order (#17903)Richard van der Hoff2024-11-065-8/+116
| | | | | | | | | | | | | | | | Currently, one-time-keys are issued in a somewhat random order. (In practice, they are issued according to the lexicographical order of their key IDs.) That can lead to a situation where a client gives up hope of a given OTK ever being used, whilst it is still on the server. Related: https://github.com/element-hq/element-meta/issues/2356
* | Remove support for python 3.8 (#17908)Devon Hudson2024-11-0623-113/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ### 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>
* | Update version constraint to allow the latest `poetry-core` `1.9.1` (#17902)Eric Eastwood2024-11-062-1/+2
|/ | | | | | | | | | | Update version constraint to allow the latest `poetry-core` `1.9.1` Context: > I am working on updating poetry-core in Fedora and synapse is one of affected packages. Please run a CI to see if it works properly. Thank you. Mergeable version of https://github.com/element-hq/synapse/pull/17848
* Use unique name for each os.arch variant when uploading Wheels (#17905)Devon Hudson2024-11-062-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | ### 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))
* Improve nix flake to use nixpkgs-unstable in lieu of master (#17852)Sandro2024-11-063-15/+16
|
* Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows (#17657)dependabot[bot]2024-11-062-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3 to 4.1.7. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/actions/download-artifact/releases">actions/download-artifact's releases</a>.</em></p> <blockquote> <h2>v4.1.7</h2> <h2>What's Changed</h2> <ul> <li>Update <code>@​actions/artifact</code> dependency by <a href="https://github.com/bethanyj28"><code>@​bethanyj28</code></a> in <a href="https://redirect.github.com/actions/download-artifact/pull/325">actions/download-artifact#325</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/actions/download-artifact/compare/v4.1.6...v4.1.7">https://github.com/actions/download-artifact/compare/v4.1.6...v4.1.7</a></p> <h2>v4.1.6</h2> <h2>What's Changed</h2> <ul> <li>updating <code>@actions/artifact</code> dependency to v2.1.6 by <a href="https://github.com/eggyhead"><code>@​eggyhead</code></a> in <a href="https://redirect.github.com/actions/download-artifact/pull/324">actions/download-artifact#324</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/actions/download-artifact/compare/v4.1.5...v4.1.6">https://github.com/actions/download-artifact/compare/v4.1.5...v4.1.6</a></p> <h2>v4.1.5</h2> <h2>What's Changed</h2> <ul> <li>Update readme with v3/v2/v1 deprecation notice by <a href="https://github.com/robherley"><code>@​robherley</code></a> in <a href="https://redirect.github.com/actions/download-artifact/pull/322">actions/download-artifact#322</a></li> <li>Update dependencies <code>@actions/core</code> to v1.10.1 and <code>@actions/artifact</code> to v2.1.5</li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/actions/download-artifact/compare/v4.1.4...v4.1.5">https://github.com/actions/download-artifact/compare/v4.1.4...v4.1.5</a></p> <h2>v4.1.4</h2> <h2>What's Changed</h2> <ul> <li>Update <code>@​actions/artifact</code> by <a href="https://github.com/bethanyj28"><code>@​bethanyj28</code></a> in <a href="https://redirect.github.com/actions/download-artifact/pull/307">actions/download-artifact#307</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/actions/download-artifact/compare/v4...v4.1.4">https://github.com/actions/download-artifact/compare/v4...v4.1.4</a></p> <h2>v4.1.3</h2> <h2>What's Changed</h2> <ul> <li>Update release-new-action-version.yml by <a href="https://github.com/konradpabjan"><code>@​konradpabjan</code></a> in <a href="https://redirect.github.com/actions/download-artifact/pull/292">actions/download-artifact#292</a></li> <li>Update toolkit dependency with updated unzip logic by <a href="https://github.com/bethanyj28"><code>@​bethanyj28</code></a> in <a href="https://redirect.github.com/actions/download-artifact/pull/299">actions/download-artifact#299</a></li> <li>Update <code>@​actions/artifact</code> by <a href="https://github.com/bethanyj28"><code>@​bethanyj28</code></a> in <a href="https://redirect.github.com/actions/download-artifact/pull/303">actions/download-artifact#303</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/bethanyj28"><code>@​bethanyj28</code></a> made their first contribution in <a href="https://redirect.github.com/actions/download-artifact/pull/299">actions/download-artifact#299</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/actions/download-artifact/compare/v4...v4.1.3">https://github.com/actions/download-artifact/compare/v4...v4.1.3</a></p> <h2>v4.1.2</h2> <ul> <li>Bump <code>@​actions/artifacts</code> to latest version to include <a href="https://redirect.github.com/actions/toolkit/pull/1648">updated GHES host check</a></li> </ul> <h2>v4.1.1</h2> <ul> <li>Fix transient request timeouts <a href="https://redirect.github.com/actions/download-artifact/issues/249">actions/download-artifact#249</a></li> <li>Bump <code>@actions/artifacts</code> to latest version</li> </ul> <h2>v4.1.0</h2> <h2>What's Changed</h2> <ul> <li>Some cleanup by <a href="https://github.com/robherley"><code>@​robherley</code></a> in <a href="https://redirect.github.com/actions/download-artifact/pull/247">actions/download-artifact#247</a></li> <li>Fix default for run-id by <a href="https://github.com/stchr"><code>@​stchr</code></a> in <a href="https://redirect.github.com/actions/download-artifact/pull/252">actions/download-artifact#252</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/actions/download-artifact/commit/65a9edc5881444af0b9093a5e628f2fe47ea3b2e"><code>65a9edc</code></a> Merge pull request <a href="https://redirect.github.com/actions/download-artifact/issues/325">#325</a> from bethanyj28/main</li> <li><a href="https://github.com/actions/download-artifact/commit/fdd1595981c1a29187d3de99c28c28a166bc38f7"><code>fdd1595</code></a> licensed</li> <li><a href="https://github.com/actions/download-artifact/commit/c13dba102f4bb92b3f679fa086db9e2973960ca7"><code>c13dba1</code></a> update <code>@​actions/artifact</code> dependency</li> <li><a href="https://github.com/actions/download-artifact/commit/0daa75ebeac4617faeb127496dbd716b8bcce26e"><code>0daa75e</code></a> Merge pull request <a href="https://redirect.github.com/actions/download-artifact/issues/324">#324</a> from actions/eggyhead/use-artifact-v2.1.6</li> <li><a href="https://github.com/actions/download-artifact/commit/9c19ed7fe5d278cd354c7dfd5d3b88589c7e2395"><code>9c19ed7</code></a> Merge branch 'main' into eggyhead/use-artifact-v2.1.6</li> <li><a href="https://github.com/actions/download-artifact/commit/3d3ea8741ef44e86f7392b41e391bde3c36219bd"><code>3d3ea87</code></a> updating license</li> <li><a href="https://github.com/actions/download-artifact/commit/89af5db8211998d3ca691103a86b0b9362a94286"><code>89af5db</code></a> updating artifact package v2.1.6</li> <li><a href="https://github.com/actions/download-artifact/commit/b4aefff88e83a2676a730654e1ce3dce61880379"><code>b4aefff</code></a> Merge pull request <a href="https://redirect.github.com/actions/download-artifact/issues/323">#323</a> from actions/eggyhead/update-artifact-v215</li> <li><a href="https://github.com/actions/download-artifact/commit/8caf195ad4b1dee92908e23f56eeb0696f1dd42d"><code>8caf195</code></a> package lock update</li> <li><a href="https://github.com/actions/download-artifact/commit/d7a2ec411d177e8ca679ac5969b70be59c322700"><code>d7a2ec4</code></a> updating package version</li> <li>Additional commits viewable in <a href="https://github.com/actions/download-artifact/compare/v3...v4.1.7">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=actions/download-artifact&package-manager=github_actions&previous-version=3&new-version=4.1.7)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) You can trigger a rebase of this PR 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) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/element-hq/synapse/network/alerts). </details> > **Note** > Automatic rebases have been disabled on this pull request as it has been open for over 30 days. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Devon Hudson <devonhudson@librem.one>
* Use more correct changelog entries for refactoring `Generator` usage (#17890)Eric Eastwood2024-11-0513-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use more correct changelog entries for refactoring `Generator` usage - https://github.com/element-hq/synapse/pull/17813 - https://github.com/element-hq/synapse/pull/17814 - https://github.com/element-hq/synapse/pull/17815 - https://github.com/element-hq/synapse/pull/17816 - https://github.com/element-hq/synapse/pull/17817 ### 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))
* Fix WheelTimer implementation that can expired timeout early (#17850)Alexander Udovichenko2024-11-053-28/+29
| | | | | When entries insert in the end of timer queue, then unnecessary entry inserted (with duplicated key). This can lead to some timeouts expired early and consume memory.
* Add experimental support for MSC4222 (#17888)Erik Johnston2024-11-057-56/+395
| | | | | | | | | | | Basically, if the client sets a special query param on `/sync` v2 instead of responding with `state` at the *start* of the timeline, we instead respond with `state_after` at the *end* of the timeline. We do this by using the `current_state_delta_stream` table, which is actually reliable, rather than messing around with "state at" points on the timeline. c.f. MSC4222
* Bump Synapse Dockerfile default to Python 3.12 (#17887)Andrew Morgan2024-11-052-1/+2
|
* Remove usage of internal header encoding API (#17894)Eric Eastwood2024-11-044-36/+60
| | | | | | | | | | | ```py from twisted.web.http_headers import Headers Headers()._canonicalNameCaps Headers()._encodeName ``` Introduced in https://github.com/matrix-org/synapse/pull/15913 <- https://github.com/matrix-org/synapse/pull/15773
* Bump phonenumbers from 8.13.48 to 8.13.49 (#17899)dependabot[bot]2024-11-041-3/+3
|
* Sliding Sync: Lazy-loading room members on incremental sync (remember ↵Eric Eastwood2024-11-044-59/+788
| | | | | | | | memberships) (#17809) Lazy-loading room members on incremental sync and remember which memberships we've sent down the connection before (up-to 100) Fix https://github.com/element-hq/synapse/issues/17804
* Bump ruff from 0.7.1 to 0.7.2 (#17897)dependabot[bot]2024-11-042-21/+21
|
* Bump anyhow from 1.0.91 to 1.0.92 (#17901)dependabot[bot]2024-11-041-2/+2
|
* Bump serde from 1.0.213 to 1.0.214 (#17900)dependabot[bot]2024-11-041-4/+4
|
* Bump mypy-zope from 1.0.7 to 1.0.8 (#17898)dependabot[bot]2024-11-041-4/+4
|
* Support & use stable endpoints for MSC4151 (#17374)Travis Ralston2024-10-313-42/+25
| | | | | | | | | | | https://github.com/matrix-org/matrix-spec-proposals/pull/4151 has finished FCP. See https://github.com/element-hq/synapse/issues/17373 for unstable endpoint removal --------- Co-authored-by: Andrew Morgan <andrew@amorgan.xyz>
* Remove `Generator` in `_prune_old_outbound_device_pokes` (#17814)Jason Little2024-10-302-1/+2
| | | | | | Context: https://github.com/matrix-org/synapse/issues/15439 (https://github.com/element-hq/synapse/issues/15439) Also see discussion in https://github.com/element-hq/synapse/pull/17813
* Remove `Generator` in `_purge_unreferenced_state_groups` twice (#17815)Jason Little2024-10-302-2/+3
| | | | | | Context: https://github.com/matrix-org/synapse/issues/15439 (https://github.com/element-hq/synapse/issues/15439) Also see discussion in https://github.com/element-hq/synapse/pull/17813
* Remove `Generator` in `update_cached_last_access_time` (#17816)Jason Little2024-10-302-3/+4
| | | | | | Context: https://github.com/matrix-org/synapse/issues/15439 (https://github.com/element-hq/synapse/issues/15439) Also see discussion in https://github.com/element-hq/synapse/pull/17813
* Remove `Generator` in `store_search_entries_txn` (#17817)Jason Little2024-10-302-2/+3
| | | | | | Context: https://github.com/matrix-org/synapse/issues/15439 (https://github.com/element-hq/synapse/issues/15439) Also see discussion in https://github.com/element-hq/synapse/pull/17813
* Remove `Generator` from 4 places in `PersistEventStore` (#17818)Jason Little2024-10-302-10/+11
| | | | | | Context: https://github.com/matrix-org/synapse/issues/15439 (https://github.com/element-hq/synapse/issues/15439) Also see discussion in https://github.com/element-hq/synapse/pull/17813
* Remove `Generator` in `_quarantine_media_txn()` (#17813)Jason Little2024-10-302-1/+2
|
* Check if user is in room before being able to tag it (#17839)Lama2024-10-304-0/+123
| | | Fix #17819
* Bump ruff from 0.6.9 to 0.7.1 (#17868)dependabot[bot]2024-10-302-21/+21
|
* Bump phonenumbers from 8.13.47 to 8.13.48 (#17880)dependabot[bot]2024-10-301-3/+3
|
* Bump python-multipart from 0.0.12 to 0.0.16 (#17879)dependabot[bot]2024-10-301-3/+3
|
* Bump bytes from 1.7.2 to 1.8.0 (#17877)dependabot[bot]2024-10-301-2/+2
|
* Bump anyhow from 1.0.90 to 1.0.91 (#17876)dependabot[bot]2024-10-301-2/+2
|
* Bump serde from 1.0.210 to 1.0.213 (#17875)dependabot[bot]2024-10-301-8/+8
|
* Bump regex from 1.11.0 to 1.11.1 (#17874)dependabot[bot]2024-10-301-2/+2
|
* Speed up sliding sync by computing extensions in parallel (#17884)Erik Johnston2024-10-305-13/+285
| | | | | | The main change here is to add a helper function `gather_optional_coroutines`, which works in a similar way as `yieldable_gather_results` but takes a set of coroutines rather than a function
* Add admin handler to list of handlers used for background tasks (#17847)Shay2024-10-295-2/+108
| | | | | | | Fixes #17823 While we're at it, makes a change where the redactions are sent as the admin if the user is not a member of the server (otherwise these fail with a "User must be our own" message).
* Fix check for outdated Rust library (#17861)Erik Johnston2024-10-292-22/+66
| | | | This failed when install with poetry, so let's properly try and detect what's going on.
* Merge branch 'master' into developTill Faelligen2024-10-2918-16/+73
|\
| * Move announcements up v1.118.0Till Faelligen2024-10-291-5/+3
| |
| * 1.118.0Till Faelligen2024-10-293-1/+14
| |
| * fix spelling in changelog v1.118.0rc1Andrew Morgan2024-10-221-6/+4
| |
| * 1.118.0rc1Andrew Morgan2024-10-2218-16/+64
| |
* | Include the destination in the error of 'Destination mismatch' (#17830)Erik Johnston2024-10-292-1/+2
| | | | | | | | To help debug problems such as https://github.com/element-hq/synapse/issues/17822
* | Bump types-setuptools from 75.1.0.20241014 to 75.2.0.20241019 (#17856)dependabot[bot]2024-10-251-3/+3
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump serde_json from 1.0.128 to 1.0.132 (#17857)dependabot[bot]2024-10-251-2/+2
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump types-psycopg2 from 2.9.21.20240819 to 2.9.21.20241019 (#17855)dependabot[bot]2024-10-251-3/+3
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump cryptography from 43.0.1 to 43.0.3 (#17853)dependabot[bot]2024-10-251-29/+29
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump anyhow from 1.0.89 to 1.0.90 (#17858)dependabot[bot]2024-10-251-2/+2
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Add media tests for a CMYK JPEG image (#17786)Andrew Morgan2024-10-234-2/+86
|/
* Sliding Sync: Reset `forgotten` status when membership changes (like ↵Eric Eastwood2024-10-2210-4/+433
| | | | | | | | | | | | | | | | rejoining a room) (#17835) Reset `sliding_sync_membership_snapshots` -> `forgotten` status when membership changes (like rejoining a room). Fix https://github.com/element-hq/synapse/issues/17781 ### What was the problem before? Previously, if someone used `/forget` on one of their rooms, it would update `sliding_sync_membership_snapshots` as expected but when someone rejoined the room (or had any membership change), the upsert didn't overwrite and reset the `forgotten` status so it remained `forgotten` and invisible down the Sliding Sync endpoint.
* Ensure Python 3.13 and PostgreSQL 17 compatibility (#17752)Quentin Gliech2024-10-223-104/+115
| | | | | | | This adds Python 3.13.0 to the trial test matrix Also updates `cffi` and `zope.interface` in the locked dependencies to make sure we have versions compatible with Python 3.13. For some reasons, they are not being picked up by dependabot.
* Bump mypy from 1.10.1 to 1.11.2 (#17842)dependabot[bot]2024-10-176-30/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [mypy](https://github.com/python/mypy) from 1.10.1 to 1.11.2. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/python/mypy/blob/master/CHANGELOG.md">mypy's changelog</a>.</em></p> <blockquote> <h3>Mypy 1.11.2</h3> <ul> <li>Alternative fix for a union-like literal string (Ivan Levkivskyi, PR <a href="https://redirect.github.com/python/mypy/pull/17639">17639</a>)</li> <li>Unwrap <code>TypedDict</code> item types before storing (Ivan Levkivskyi, PR <a href="https://redirect.github.com/python/mypy/pull/17640">17640</a>)</li> </ul> <h3>Acknowledgements</h3> <p>Thanks to all mypy contributors who contributed to this release:</p> <ul> <li>Alex Waygood</li> <li>Alexander Leopold Shon</li> <li>Ali Hamdan</li> <li>Anders Kaseorg</li> <li>Ben Brown</li> <li>Bénédikt Tran</li> <li>bzoracler</li> <li>Christoph Tyralla</li> <li>Christopher Barber</li> <li>dexterkennedy</li> <li>gilesgc</li> <li>GiorgosPapoutsakis</li> <li>Ivan Levkivskyi</li> <li>Jelle Zijlstra</li> <li>Jukka Lehtosalo</li> <li>Marc Mueller</li> <li>Matthieu Devlin</li> <li>Michael R. Crusoe</li> <li>Nikita Sobolev</li> <li>Seo Sanghyeon</li> <li>Shantanu</li> <li>sobolevn</li> <li>Steven Troxler</li> <li>Tadeu Manoel</li> <li>Tamir Duberstein</li> <li>Tushar Sadhwani</li> <li>urnest</li> <li>Valentin Stanciu</li> </ul> <p>I’d also like to thank my employer, Dropbox, for supporting mypy development.</p> <h2>Mypy 1.10</h2> <p>We’ve just uploaded mypy 1.10 to the Python Package Index (<a href="https://pypi.org/project/mypy/">PyPI</a>). Mypy is a static type checker for Python. This release includes new features, performance improvements and bug fixes. You can install it as follows:</p> <pre><code>python3 -m pip install -U mypy </code></pre> <p>You can read the full documentation for this release on <a href="http://mypy.readthedocs.io">Read the Docs</a>.</p> <h3>Support TypeIs (PEP 742)</h3> <p>Mypy now supports <code>TypeIs</code> (<a href="https://peps.python.org/pep-0742/">PEP 742</a>), which allows</p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/python/mypy/commit/789f02c83a5d5cb35f5e33ba91df46c8fea6b28e"><code>789f02c</code></a> Bump version to 1.11.2</li> <li><a href="https://github.com/python/mypy/commit/917cc75fd6f1417edb45eb77e449934f794c18fc"><code>917cc75</code></a> An alternative fix for a union-like literal string (<a href="https://redirect.github.com/python/mypy/issues/17639">#17639</a>)</li> <li><a href="https://github.com/python/mypy/commit/7d805b364ee80396e0b9ca906f32f901b2ac7e12"><code>7d805b3</code></a> Unwrap TypedDict item types before storing (<a href="https://redirect.github.com/python/mypy/issues/17640">#17640</a>)</li> <li><a href="https://github.com/python/mypy/commit/32675dddfacccef616557916cb872757605ab493"><code>32675dd</code></a> Revert &quot;Fix Literal strings containing pipe characters&quot; (<a href="https://redirect.github.com/python/mypy/issues/17638">#17638</a>)</li> <li><a href="https://github.com/python/mypy/commit/778542b93a6f5b3c168a8acc03717700ae6f8048"><code>778542b</code></a> Revert &quot;Fix <code>RawExpressionType.accept</code> crash with <code>--cache-fine-grained</code>&quot; (<a href="https://redirect.github.com/python/mypy/issues/1">#1</a>...</li> <li><a href="https://github.com/python/mypy/commit/14ab742dec6b58a4e94772115cb3b5c67a4b3d33"><code>14ab742</code></a> Bump version to 1.11.2+dev</li> <li><a href="https://github.com/python/mypy/commit/570b90a7a368f04c64f60af339d0ac1808c49c15"><code>570b90a</code></a> Bump version to 1.11</li> <li><a href="https://github.com/python/mypy/commit/b3a102ef31f63a8a8ba32c8dbe160ddef3c43054"><code>b3a102e</code></a> Fix <code>RawExpressionType.accept</code> crash with <code>--cache-fine-grained</code> (<a href="https://redirect.github.com/python/mypy/issues/17588">#17588</a>)</li> <li><a href="https://github.com/python/mypy/commit/aec04c74488d46a81a95ed3553b8e953a6ec59a7"><code>aec04c7</code></a> Fix PEP 604 isinstance caching (<a href="https://redirect.github.com/python/mypy/issues/17563">#17563</a>)</li> <li><a href="https://github.com/python/mypy/commit/cb44e4d8f18b9bc874f1076b33eec7ad67de165c"><code>cb44e4d</code></a> Fix <code>typing.TypeAliasType</code> being undefined on python &lt; 3.12 (<a href="https://redirect.github.com/python/mypy/issues/17558">#17558</a>)</li> <li>Additional commits viewable in <a href="https://github.com/python/mypy/compare/v1.10.1...v1.11.2">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=mypy&package-manager=pip&previous-version=1.10.1&new-version=1.11.2)](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 types-requests from 2.32.0.20240914 to 2.32.0.20241016 (#17841)dependabot[bot]2024-10-171-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [types-requests](https://github.com/python/typeshed) from 2.32.0.20240914 to 2.32.0.20241016. <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/python/typeshed/commits">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=types-requests&package-manager=pip&previous-version=2.32.0.20240914&new-version=2.32.0.20241016)](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 sentry-sdk from 2.16.0 to 2.17.0 (#17844)dependabot[bot]2024-10-171-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 2.16.0 to 2.17.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/getsentry/sentry-python/releases">sentry-sdk's releases</a>.</em></p> <blockquote> <h2>2.17.0</h2> <h3>Various fixes &amp; improvements</h3> <ul> <li>Add support for async calls in Anthropic and OpenAI integration (<a href="https://redirect.github.com/getsentry/sentry-python/issues/3497">#3497</a>) by <a href="https://github.com/vetyy"><code>@​vetyy</code></a></li> <li>Allow custom transaction names in ASGI (<a href="https://redirect.github.com/getsentry/sentry-python/issues/3664">#3664</a>) by <a href="https://github.com/sl0thentr0py"><code>@​sl0thentr0py</code></a></li> <li>Langchain: Handle case when parent span wasn't traced (<a href="https://redirect.github.com/getsentry/sentry-python/issues/3656">#3656</a>) by <a href="https://github.com/rbasoalto"><code>@​rbasoalto</code></a></li> <li>Fix Anthropic integration when using tool calls (<a href="https://redirect.github.com/getsentry/sentry-python/issues/3615">#3615</a>) by <a href="https://github.com/kwnath"><code>@​kwnath</code></a></li> <li>More defensive Django Spotlight middleware injection (<a href="https://redirect.github.com/getsentry/sentry-python/issues/3665">#3665</a>) by <a href="https://github.com/BYK"><code>@​BYK</code></a></li> <li>Remove <code>ensure_integration_enabled_async</code> (<a href="https://redirect.github.com/getsentry/sentry-python/issues/3632">#3632</a>) by <a href="https://github.com/sentrivana"><code>@​sentrivana</code></a></li> <li>Test with newer Falcon version (<a href="https://redirect.github.com/getsentry/sentry-python/issues/3644">#3644</a>, <a href="https://redirect.github.com/getsentry/sentry-python/issues/3653">#3653</a>, <a href="https://redirect.github.com/getsentry/sentry-python/issues/3662">#3662</a>) by <a href="https://github.com/sentrivana"><code>@​sentrivana</code></a></li> <li>Fix mypy (<a href="https://redirect.github.com/getsentry/sentry-python/issues/3657">#3657</a>) by <a href="https://github.com/sentrivana"><code>@​sentrivana</code></a></li> <li>Fix flaky transport test (<a href="https://redirect.github.com/getsentry/sentry-python/issues/3666">#3666</a>) by <a href="https://github.com/sentrivana"><code>@​sentrivana</code></a></li> <li>Remove pin on <code>sphinx</code> (<a href="https://redirect.github.com/getsentry/sentry-python/issues/3650">#3650</a>) by <a href="https://github.com/sentrivana"><code>@​sentrivana</code></a></li> <li>Bump <code>actions/checkout</code> from <code>4.2.0</code> to <code>4.2.1</code> (<a href="https://redirect.github.com/getsentry/sentry-python/issues/3651">#3651</a>) by <a href="https://github.com/dependabot"><code>@​dependabot</code></a></li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md">sentry-sdk's changelog</a>.</em></p> <blockquote> <h2>2.17.0</h2> <h3>Various fixes &amp; improvements</h3> <ul> <li>Add support for async calls in Anthropic and OpenAI integration (<a href="https://redirect.github.com/getsentry/sentry-python/issues/3497">#3497</a>) by <a href="https://github.com/vetyy"><code>@​vetyy</code></a></li> <li>Allow custom transaction names in ASGI (<a href="https://redirect.github.com/getsentry/sentry-python/issues/3664">#3664</a>) by <a href="https://github.com/sl0thentr0py"><code>@​sl0thentr0py</code></a></li> <li>Langchain: Handle case when parent span wasn't traced (<a href="https://redirect.github.com/getsentry/sentry-python/issues/3656">#3656</a>) by <a href="https://github.com/rbasoalto"><code>@​rbasoalto</code></a></li> <li>Fix Anthropic integration when using tool calls (<a href="https://redirect.github.com/getsentry/sentry-python/issues/3615">#3615</a>) by <a href="https://github.com/kwnath"><code>@​kwnath</code></a></li> <li>More defensive Django Spotlight middleware injection (<a href="https://redirect.github.com/getsentry/sentry-python/issues/3665">#3665</a>) by <a href="https://github.com/BYK"><code>@​BYK</code></a></li> <li>Remove <code>ensure_integration_enabled_async</code> (<a href="https://redirect.github.com/getsentry/sentry-python/issues/3632">#3632</a>) by <a href="https://github.com/sentrivana"><code>@​sentrivana</code></a></li> <li>Test with newer Falcon version (<a href="https://redirect.github.com/getsentry/sentry-python/issues/3644">#3644</a>, <a href="https://redirect.github.com/getsentry/sentry-python/issues/3653">#3653</a>, <a href="https://redirect.github.com/getsentry/sentry-python/issues/3662">#3662</a>) by <a href="https://github.com/sentrivana"><code>@​sentrivana</code></a></li> <li>Fix mypy (<a href="https://redirect.github.com/getsentry/sentry-python/issues/3657">#3657</a>) by <a href="https://github.com/sentrivana"><code>@​sentrivana</code></a></li> <li>Fix flaky transport test (<a href="https://redirect.github.com/getsentry/sentry-python/issues/3666">#3666</a>) by <a href="https://github.com/sentrivana"><code>@​sentrivana</code></a></li> <li>Remove pin on <code>sphinx</code> (<a href="https://redirect.github.com/getsentry/sentry-python/issues/3650">#3650</a>) by <a href="https://github.com/sentrivana"><code>@​sentrivana</code></a></li> <li>Bump <code>actions/checkout</code> from <code>4.2.0</code> to <code>4.2.1</code> (<a href="https://redirect.github.com/getsentry/sentry-python/issues/3651">#3651</a>) by <a href="https://github.com/dependabot"><code>@​dependabot</code></a></li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/getsentry/sentry-python/commit/e44c9eeafdb1d6e2df881018fd392c27f8372d59"><code>e44c9ee</code></a> Update CHANGELOG.md</li> <li><a href="https://github.com/getsentry/sentry-python/commit/ee30db346c6b8533e247425a15f5079bd0ff1b79"><code>ee30db3</code></a> release: 2.17.0</li> <li><a href="https://github.com/getsentry/sentry-python/commit/365d9cf2444832e2b1fae8a84363589fc6832dcc"><code>365d9cf</code></a> Fix flaky transport test (<a href="https://redirect.github.com/getsentry/sentry-python/issues/3666">#3666</a>)</li> <li><a href="https://github.com/getsentry/sentry-python/commit/9ae58209ee6e374c134be0aca69acf221db840f0"><code>9ae5820</code></a> Add support for async calls in Anthropic and OpenAI integration (<a href="https://redirect.github.com/getsentry/sentry-python/issues/3497">#3497</a>)</li> <li><a href="https://github.com/getsentry/sentry-python/commit/891afee6dff62060fa4be27178745276cc62ee49"><code>891afee</code></a> fix(spotlight): More defensive Django spotlight middleware injection (<a href="https://redirect.github.com/getsentry/sentry-python/issues/3665">#3665</a>)</li> <li><a href="https://github.com/getsentry/sentry-python/commit/f493057fdee8b542cdd2c949ee042864c8777133"><code>f493057</code></a> Allow custom transaction names in asgi (<a href="https://redirect.github.com/getsentry/sentry-python/issues/3664">#3664</a>)</li> <li><a href="https://github.com/getsentry/sentry-python/commit/e463034c2c6ec20d9dd528f8e3e201f53d777f0a"><code>e463034</code></a> tests: Falcon RC1 (<a href="https://redirect.github.com/getsentry/sentry-python/issues/3662">#3662</a>)</li> <li><a href="https://github.com/getsentry/sentry-python/commit/deca5f2f015511acba3f4ad020ee473d3646201d"><code>deca5f2</code></a> build(deps): Remove pin on sphinx (<a href="https://redirect.github.com/getsentry/sentry-python/issues/3650">#3650</a>)</li> <li><a href="https://github.com/getsentry/sentry-python/commit/302457dec22bd105beb849e98324f653d8c7b5f0"><code>302457d</code></a> build(deps): bump actions/checkout from 4.2.0 to 4.2.1 (<a href="https://redirect.github.com/getsentry/sentry-python/issues/3651">#3651</a>)</li> <li><a href="https://github.com/getsentry/sentry-python/commit/846b8b26aa94fd69565227cda3fbf107f5c4c1b1"><code>846b8b2</code></a> fix(langchain): handle case when parent span wasn't traced (<a href="https://redirect.github.com/getsentry/sentry-python/issues/3656">#3656</a>)</li> <li>Additional commits viewable in <a href="https://github.com/getsentry/sentry-python/compare/2.16.0...2.17.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=sentry-sdk&package-manager=pip&previous-version=2.16.0&new-version=2.17.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 psycopg2 from 2.9.9 to 2.9.10 (#17843)dependabot[bot]2024-10-171-15/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [psycopg2](https://github.com/psycopg/psycopg2) from 2.9.9 to 2.9.10. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/psycopg/psycopg2/blob/master/NEWS">psycopg2's changelog</a>.</em></p> <blockquote> <h2>Current release</h2> <p>What's new in psycopg 2.9.10 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^</p> <ul> <li>Add support for Python 3.13.</li> <li>Receive notifications on commit (:ticket:<code>[#1728](https://github.com/psycopg/psycopg2/issues/1728)</code>).</li> <li><code>~psycopg2.errorcodes</code> map and <code>~psycopg2.errors</code> classes updated to PostgreSQL 17.</li> <li>Drop support for Python 3.7.</li> </ul> <p>What's new in psycopg 2.9.9 ^^^^^^^^^^^^^^^^^^^^^^^^^^^</p> <ul> <li>Add support for Python 3.12.</li> <li>Drop support for Python 3.6.</li> </ul> <p>What's new in psycopg 2.9.8 ^^^^^^^^^^^^^^^^^^^^^^^^^^^</p> <ul> <li>Wheel package bundled with PostgreSQL 16 libpq in order to add support for recent features, such as <code>sslcertmode</code>.</li> </ul> <p>What's new in psycopg 2.9.7 ^^^^^^^^^^^^^^^^^^^^^^^^^^^</p> <ul> <li>Fix propagation of exceptions raised during module initialization (:ticket:<code>[#1598](https://github.com/psycopg/psycopg2/issues/1598)</code>).</li> <li>Fix building when pg_config returns an empty string (:ticket:<code>[#1599](https://github.com/psycopg/psycopg2/issues/1599)</code>).</li> <li>Wheel package bundled with OpenSSL 1.1.1v.</li> </ul> <p>What's new in psycopg 2.9.6 ^^^^^^^^^^^^^^^^^^^^^^^^^^^</p> <ul> <li>Package manylinux 2014 for aarch64 and ppc64le platforms, in order to include libpq 15 in the binary package (:ticket:<code>[#1396](https://github.com/psycopg/psycopg2/issues/1396)</code>).</li> <li>Wheel package bundled with OpenSSL 1.1.1t.</li> </ul> <p>What's new in psycopg 2.9.5 ^^^^^^^^^^^^^^^^^^^^^^^^^^^</p> <ul> <li>Add support for Python 3.11.</li> <li>Add support for rowcount in MERGE statements in binary packages (:ticket:<code>[#1497](https://github.com/psycopg/psycopg2/issues/1497)</code>).</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/psycopg/psycopg2/commits">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=psycopg2&package-manager=pip&previous-version=2.9.9&new-version=2.9.10)](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>
* Merge branch 'master' into developErik Johnston2024-10-153-1/+14
|\
| * 1.117.0 v1.117.0Erik Johnston2024-10-153-1/+14
| |
* | Implement MSC4210: Remove legacy mentions (#17783)Tulir Asokan2024-10-149-2/+37
| |
* | Enable the `.org.matrix.msc4028.encrypted_event` push rule by default (#17826)Andrew Morgan2024-10-142-1/+2
| | | | | | | | | | | | | | | | Clients will still only see this rule if the corresponding experimental feature, `msc4028_push_encrypted_events`, is also enabled. This aligns the implementation with MSC4028, specifically [this section](https://github.com/matrix-org/matrix-spec-proposals/blob/giomfo/push_encrypted_events/proposals/4028-push-all-encrypted-events-except-for-muted-rooms.md#unstable-prefix). See https://github.com/element-hq/synapse/issues/16846 for context.
* | Sliding Sync: Slight optimization when fetching state for the room ↵Eric Eastwood2024-10-144-10/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (`get_events_as_list(...)`) (#17718) Spawning from @kegsay [pointing out](https://matrix.to/#/!cnVVNLKqgUzNTOFQkz:matrix.org/$ExOO7J8uPUQSyH-9Uxc_QCa8jlXX9uK4VRtkSC0EI3o?via=element.io&via=matrix.org&via=jki.re) that the Sliding Sync endpoint doesn't handle a large room with a lot of state well on initial sync (requesting all state via `required_state: [ ["*","*"] ]`) (it just takes forever). After investigating further, the slow part is just `get_events_as_list(...)` fetching all of the current state ID's out for the room (which can be 100k+ events for rooms with a lot of membership). This is just a slow thing in Synapse in general and the same thing happens in Sync v2 or the `/state` endpoint. --- The only idea I had to improve things was to use `batch_iter` to only try fetching a fixed amount at a time instead of working with large maps, lists, and sets. This doesn't seem to have much effect though. There is already a `batch_iter(event_ids, 200)` in `_fetch_event_rows(...)` for when we actually have to touch the database and that's inside a queue to deduplicate work. I did notice one slight optimization to use `get_events_as_list(...)` directly instead of `get_events(...)`. `get_events(...)` just turns the result from `get_events_as_list(...)` into a dict and since we're just iterating over the events, we don't need the dict/map.
* | Fix typo in `target_cache_memory_usage` docs (#17825)Andrew Morgan2024-10-142-1/+2
| |
* | Correctly changes to required state config in sliding sync (#17785)Erik Johnston2024-10-147-14/+1188
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes https://github.com/element-hq/synapse/issues/17698 This handles `required_state` changes by checking if new state has been added to the config, and if so fetching and returning that from the current state. This also takes care to ensure that given a state entry S that is added, removed and then re-added that we do *not* send S down a second time if there have been no changes to S in the current state. This is fine for Rust SDK (as it just remembers all state), but we might decide not to do this behaviour in the MSC. If we decide to always send down S then its easy enough to rip out all the code. --------- Co-authored-by: Eric Eastwood <eric.eastwood@beta.gouv.fr>
* | Bump mypy-zope from 1.0.5 to 1.0.7 (#17827)dependabot[bot]2024-10-141-3/+4
| |
* | Bump types-setuptools from 75.1.0.20240917 to 75.1.0.20241014 (#17828)dependabot[bot]2024-10-141-3/+3
| |
* | Bump sentry-sdk from 2.15.0 to 2.16.0 (#17829)dependabot[bot]2024-10-141-3/+4
| |
* | Build debian packages for new Ubuntu versions (#17824)Erik Johnston2024-10-142-2/+3
| | | | | | | | | | | | | | | | c.f. https://wiki.ubuntu.com/Releases for the currently supported Ubuntu releases. Note: this removes support for 23.04 and 23.10, which are EOL. Fixes #17811
* | Clarify when 3PID invite module callbacks are called (#17627)Andrew Morgan2024-10-142-3/+7
| | | | | | | | Co-authored-by: Eric Eastwood <eric.eastwood@beta.gouv.fr>
* | Fix release script to check GH token (#17803)Erik Johnston2024-10-102-13/+24
| | | | | | The current logic didn't work.
* | Added display_name_claim in jwt_config which sets the user's display name ↵Nathan2024-10-096-6/+50
| | | | | | | | upon registration (#17708)
* | Fix saving of non-RGB thumbnails as PNG (#17736)Martin Weinelt2024-10-082-1/+2
| |
* | Merge branch 'release-v1.117' into developErik Johnston2024-10-0821-19/+47
|\|
| * Fixup changlog v1.117.0rc1Erik Johnston2024-10-081-1/+1
| |
| * 1.117.0rc1Erik Johnston2024-10-0821-19/+47
| |
* | Fix incorrectly documented config path argument (#17802)Andrew Ferrazzutti2024-10-082-2/+3
| |
* | Bump sigstore/cosign-installer from 3.6.0 to 3.7.0 (#17798)dependabot[bot]2024-10-081-1/+1
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump phonenumbers from 8.13.46 to 8.13.47 (#17797)dependabot[bot]2024-10-081-3/+3
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump sentry-sdk from 2.14.0 to 2.15.0 (#17795)dependabot[bot]2024-10-081-3/+3
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump tomli from 2.0.1 to 2.0.2 (#17796)dependabot[bot]2024-10-081-4/+4
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump ruff from 0.6.8 to 0.6.9 (#17794)dependabot[bot]2024-10-082-21/+21
|/ | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Improvements to admin redact api (#17792)Shay2024-10-085-41/+107
| | | | | | - better validation on user input - fix an early task completion - when checking membership in rooms, check for rooms user has been banned from as well
* Add missing license header (#17799)Andrew Ferrazzutti2024-10-0810-3/+87
| | | | Co-authored-by: Erik Johnston <erik@matrix.org>
* Sliding sync: omit bump stamp when it is unchanged (#17788)Erik Johnston2024-10-085-12/+136
| | | This saves some DB lookups in rooms
* Sliding sync minor performance speed up using new table (#17787)Erik Johnston2024-10-083-9/+61
| | | | | | | Use the new tables to work out which rooms have changed. --------- Co-authored-by: Eric Eastwood <eric.eastwood@beta.gouv.fr>
* Speed up sliding sync when there are many active subscriptions (#17789)Erik Johnston2024-10-083-7/+63
| | | | | Two changes: a) use a batch lookup function instead of a loop, b) check existing data to see if we already have what we need and only fetch what we don't.
* Clarify `test_forget_when_not_left` docstring (#17628)Andrew Morgan2024-10-072-1/+2
|
* Add config option redis.password_path (#17717)V024602024-10-074-2/+81
| | | | | | | | | | | Adds the option to load the Redis password from a file, instead of giving it in the config directly. The code is similar to how it’s done for `registration_shared_secret_path`. I changed the example in the documentation to represent the best practice regarding the handling of secrets. Reading secrets from files has the security advantage of separating the secrets from the config. It also simplifies secrets management in Kubernetes.
* docs: add note about PYTHONMALLOC for accurate jemalloc memory tracking (#17709)Henrique2024-10-072-0/+3
| | | | | | | | | | | | | | Added a note in the documentation suggesting that users may set `PYTHONMALLOC=malloc` when using `jemalloc`. This allows jemalloc to track memory usage more accurately by bypassing Python's internal small-object allocator (`pymalloc`), helping to ensure that `cache_autotuning` functions as expected. This doc change aims to provide more clarity for users configuring jemalloc with Synapse. Based on: https://github.com/element-hq/synapse/blob/4ac783549c5bac7a490a715d359f330bb0b1a161/synapse/metrics/jemalloc.py#L198-L201
* Bump python-multipart from 0.0.10 to 0.0.12 (#17772)dependabot[bot]2024-10-072-6/+6
|
* Don't say MSC4140 is supported when it's disabled (#17780)Andrew Ferrazzutti2024-10-043-2/+19
|
* Fix NAME attribute of `ReplicationRemovePusherRestServlet` (#17779)Andrew Morgan2024-10-042-1/+2
|
* explain load balancing for `federation_sender_instances` (#17776)Dirk Klimpel2024-10-032-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding information on how the load is distributed for `federation_sender_instances`. Thx to @devonh for the information. causal source: https://github.com/element-hq/synapse/blob/c2e5e9e67c24264f5a12bf3ceaa9c4e195547d26/synapse/config/_base.py#L946-L989 ### 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: Devon Hudson <devon.dmytro@gmail.com>
* Merge branch 'master' into developAndrew Morgan2024-10-013-1/+14
|\
| * 1.116.0 v1.116.0Andrew Morgan2024-10-013-1/+14
| |
* | Fix perf when streams don't change often (#17767)Erik Johnston2024-09-303-14/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a bug with the `StreamChangeCache` where it would incorrectly return that all entities had changed if asked for entities changed *since* the earliest stream position. Note that for streams we use the inequalities: `$min_stream_id < stream_id <= $max_stream_id`, i.e. when we ask the stream change cache for all things that have changed since `$stream_id` we don't care for events that happened *at* `$stream_id`. Specifically: `_earliest_known_stream_pos` is the position at which we know that we'll have entries for all changes since that point, we can use the cache for any stream IDs that equal `_earliest_known_stream_pos`. `_earliest_known_stream_pos` is set in three places: - On startup we set it either to: - the current maximum stream ID, with not prefilled values; or - the minimum of the latest N values we pulled from the DB - When we evict items from the bottom, we set it to the stream ID of the evicted items. This was changed in https://github.com/matrix-org/synapse/pull/14435, but I think we were overly conservative there. --------- Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
* | Optimise notifier mk2 (#17766)Erik Johnston2024-09-302-35/+62
| | | | | | | | | | | | | | | | | | | | | | | | Based on #17765. Basically the idea is to reduce the overhead of calling `ObservableDeferred` in a loop. The two gains are: a) just using a list of deferreds rather than the machinery of `ObservableDeferred`, and b) only calling `PreseverLoggingContext` once. `PreseverLoggingContext` in particular is expensive to call a lot as each time it needs to call `get_thread_resource_usage` twice, so that it an update the CPU metrics of the log context.
* | Bump ruff from 0.6.7 to 0.6.8 (#17774)dependabot[bot]2024-09-302-21/+21
| |
* | Bump phonenumbers from 8.13.45 to 8.13.46 (#17773)dependabot[bot]2024-09-301-3/+3
| |
* | Bump regex from 1.10.6 to 1.11.0 (#17770)dependabot[bot]2024-09-301-6/+6
| |
* | Reduce overhead of sliding sync E2EE loops (#17771)Erik Johnston2024-09-303-6/+8
| | | | | | | | Mainly toning down logging and only calling `get_membership_from_event_ids` if something has changed.
* | Add fast path for sliding sync streams that only ask for extensions (#17768)Erik Johnston2024-09-302-0/+22
| | | | | | Principally useful for EX e2ee sliding sync connections.
* | Optimise notifier (#17765)Erik Johnston2024-09-303-35/+43
| | | | | | | | | | | | | | The notifier is quite inefficient when it has to wake up many user streams all at once From a silly benchmark this takes the time to notify 1M user streams from ~30s to ~5s
* | Minor perf speed up for large accounts on SSS (#17751)Erik Johnston2024-09-302-4/+7
| | | | | | | | | | | | | | | | | | This works as instead of passing *all* rooms to `record_sent_rooms` we only need to pass rooms that were previously not in the LIVE state. This came from a py-spy where we were spending ~10% CPU calling these functions. Note that `record_sent_rooms` is a no-op for rooms that are already in the `LIVE` state, so we only need to call them for `PREVIOUSLY` or `INITIAL` rooms.
* | Merge branch 'release-v1.116' into developQuentin Gliech2024-09-267-7/+414
|\|
| * 1.116.0rc2 v1.116.0rc2Quentin Gliech2024-09-264-2/+16
| |
| * Support MSC3757: Restricting who can overwrite a state event (#17513)Andrew Ferrazzutti2024-09-265-6/+399
| | | | | | | | | | | | | | | | Link to the MSC: https://github.com/matrix-org/matrix-spec-proposals/pull/3757 --------- Co-authored-by: Quentin Gliech <quenting@element.io>
* | Remove spurious TODO in debian install step (#17749)Erik Johnston2024-09-262-5/+4
|/ | | | | | | | This was a note added in the PR to move to AGPL, which we failed to remove before landing. (The context for this was that we needed to decide if we were going to change which debian repository we published too, but decided not to in the end)
* Changelog fixes v1.116.0rc1Quentin Gliech2024-09-251-20/+17
|
* 1.116.0rc1Quentin Gliech2024-09-2528-32/+73
|
* Bump treq from 23.11.0 to 24.9.1 (#17744)dependabot[bot]2024-09-253-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [treq](https://github.com/twisted/treq) from 23.11.0 to 24.9.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/twisted/treq/releases">treq's releases</a>.</em></p> <blockquote> <h2>Treq 24.9.0</h2> <h2>Features</h2> <ul> <li>treq now ships type annotations. (<a href="https://redirect.github.com/twisted/treq/issues/366">#366</a>)</li> <li>The new <code>treq.cookies</code> module provides helper functions for working with <code>http.cookiejar.Cookie</code> and <code>CookieJar</code> objects. (<a href="https://redirect.github.com/twisted/treq/issues/384">#384</a>)</li> <li>Python 3.13 is now supported. (<a href="https://redirect.github.com/twisted/treq/issues/391">#391</a>)</li> </ul> <h2>Bugfixes</h2> <ul> <li><code>treq.content.text_content()</code> no longer generates deprecation warnings due to use of the <code>cgi</code> module. (<a href="https://redirect.github.com/twisted/treq/issues/355">#355</a>)</li> </ul> <h2>Deprecations and Removals</h2> <ul> <li>Mixing the <em>json</em> argument with <em>files</em> or <em>data</em> now raises <code>TypeError</code>. (<a href="https://redirect.github.com/twisted/treq/issues/297">#297</a>)</li> <li>Passing non-string (<code>str</code> or <code>bytes</code>) values as part of a dict to the <em>headers</em> argument now results in a <code>TypeError</code>, as does passing any collection other than a <code>dict</code> or <code>Headers</code> instance. (<a href="https://redirect.github.com/twisted/treq/issues/302">#302</a>)</li> <li>Support for Python 3.7 and PyPy 3.8, which have reached end of support, has been dropped. (<a href="https://redirect.github.com/twisted/treq/issues/378">#378</a>)</li> </ul> <h2>Misc</h2> <ul> <li><a href="https://redirect.github.com/twisted/treq/issues/336">#336</a>, <a href="https://redirect.github.com/twisted/treq/issues/382">#382</a>, <a href="https://redirect.github.com/twisted/treq/issues/395">#395</a></li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/twisted/treq/blob/trunk/CHANGELOG.rst">treq's changelog</a>.</em></p> <blockquote> <h1>24.9.1 (2024-09-19)</h1> <h2>Bugfixes</h2> <ul> <li>treq has vendored its dependency on the <code>multipart</code> library to avoid import conflicts with <code>python-multipart</code>; it should now be installable alongside that library. (<code>[#399](https://github.com/twisted/treq/issues/399) &lt;https://github.com/twisted/treq/issues/399&gt;</code>__)</li> </ul> <h1>24.9.0 (2024-09-17)</h1> <h2>Features</h2> <ul> <li>treq now ships type annotations. (<code>[#366](https://github.com/twisted/treq/issues/366) &lt;https://github.com/twisted/treq/issues/366&gt;</code>__)</li> <li>The new :mod:<code>treq.cookies</code> module provides helper functions for working with <code>http.cookiejar.Cookie</code> and <code>CookieJar</code> objects. (<code>[#384](https://github.com/twisted/treq/issues/384) &lt;https://github.com/twisted/treq/issues/384&gt;</code>__)</li> <li>Python 3.13 is now supported. (<code>[#391](https://github.com/twisted/treq/issues/391) &lt;https://github.com/twisted/treq/issues/391&gt;</code>__)</li> </ul> <h2>Bugfixes</h2> <ul> <li>:mod:<code>treq.content.text_content()</code> no longer generates deprecation warnings due to use of the <code>cgi</code> module. (<code>[#355](https://github.com/twisted/treq/issues/355) &lt;https://github.com/twisted/treq/issues/355&gt;</code>__)</li> </ul> <h2>Deprecations and Removals</h2> <ul> <li>Mixing the <em>json</em> argument with <em>files</em> or <em>data</em> now raises <code>TypeError</code>. (<code>[#297](https://github.com/twisted/treq/issues/297) &lt;https://github.com/twisted/treq/issues/297&gt;</code>__)</li> <li>Passing non-string (<code>str</code> or <code>bytes</code>) values as part of a dict to the <em>headers</em> argument now results in a <code>TypeError</code>, as does passing any collection other than a <code>dict</code> or <code>Headers</code> instance. (<code>[#302](https://github.com/twisted/treq/issues/302) &lt;https://github.com/twisted/treq/issues/302&gt;</code>__)</li> <li>Support for Python 3.7 and PyPy 3.8, which have reached end of support, has been dropped. (<code>[#378](https://github.com/twisted/treq/issues/378) &lt;https://github.com/twisted/treq/issues/378&gt;</code>__)</li> </ul> <h2>Misc</h2> <ul> <li><code>[#336](https://github.com/twisted/treq/issues/336) &lt;https://github.com/twisted/treq/issues/336&gt;</code><strong>, <code>[#382](https://github.com/twisted/treq/issues/382) &lt;https://github.com/twisted/treq/issues/382&gt;</code></strong>, <code>[#395](https://github.com/twisted/treq/issues/395) &lt;https://github.com/twisted/treq/issues/395&gt;</code>__</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/twisted/treq/commit/caaf9fcb62992de47ad5ebcb628cce5106b8d1b1"><code>caaf9fc</code></a> Release 24.9.1</li> <li><a href="https://github.com/twisted/treq/commit/9cedb088b40e5d756f1196defb46b5a7e41bf1c8"><code>9cedb08</code></a> Merge pull request <a href="https://redirect.github.com/twisted/treq/issues/400">#400</a> from twisted/vendor-multipart-for-now</li> <li><a href="https://github.com/twisted/treq/commit/4aa1ee8a3ca5461c165ea380b1cbd0ea5b41cce4"><code>4aa1ee8</code></a> news fragment</li> <li><a href="https://github.com/twisted/treq/commit/d7c16de8f522c5fc10cf2108371afce635d39e4e"><code>d7c16de</code></a> octothorpes rise up</li> <li><a href="https://github.com/twisted/treq/commit/4fd3c842c21a3fa45560dc7eb41767fcbb4e653a"><code>4fd3c84</code></a> try to make the linter happy</li> <li><a href="https://github.com/twisted/treq/commit/f0a5148cba2c983335758dd34ab78bff46f2dc6b"><code>f0a5148</code></a> fix import, switch to <code>from</code></li> <li><a href="https://github.com/twisted/treq/commit/7f16b87f0a2574a2ef67a50e6bf89ad9941fcf4c"><code>7f16b87</code></a> correct import</li> <li><a href="https://github.com/twisted/treq/commit/1526431a37745bb33982f79bb38d1d4e4554907d"><code>1526431</code></a> add a lightly-modified vendored version of <a href="https://github.com/defnull/multipa">https://github.com/defnull/multipa</a>...</li> <li><a href="https://github.com/twisted/treq/commit/7c52d4917f41291da271fd5cebf2e69e73dcee32"><code>7c52d49</code></a> remove dependency on <code>multipart</code> package</li> <li><a href="https://github.com/twisted/treq/commit/ca3966f57a34fa4a3c0b3eb1a90e3f1cc1951bf3"><code>ca3966f</code></a> Merge pull request <a href="https://redirect.github.com/twisted/treq/issues/398">#398</a> from twisted/397-release-24.9.0</li> <li>Additional commits viewable in <a href="https://github.com/twisted/treq/compare/release-23.11.0...treq-24.9.1">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=treq&package-manager=pip&previous-version=23.11.0&new-version=24.9.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> Co-authored-by: Quentin Gliech <quenting@element.io>
* Remove the deprecated cgi module (#17741)V024602024-09-253-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removes all uses of the `cgi` module from Synapse. It was deprecated in Python version 3.11 and removed in version 3.13 ([“dead battery”](https://docs.python.org/3.13/whatsnew/3.13.html#pep-594-remove-dead-batteries-from-the-standard-library)). ### 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: Quentin Gliech <quenting@element.io>
* Bump phonenumbers from 8.13.44 to 8.13.45 (#17762)dependabot[bot]2024-09-251-3/+3
|
* Bump ruff from 0.6.5 to 0.6.7 (#17760)dependabot[bot]2024-09-242-21/+21
|
* Bump msgpack from 1.0.8 to 1.1.0 (#17759)dependabot[bot]2024-09-241-57/+65
|
* Bump idna from 3.8 to 3.10 (#17758)dependabot[bot]2024-09-251-3/+6
|
* Bump types-setuptools from 74.1.0.20240907 to 75.1.0.20240917 (#17757)dependabot[bot]2024-09-241-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [types-setuptools](https://github.com/python/typeshed) from 74.1.0.20240907 to 75.1.0.20240917. <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/python/typeshed/commits">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=types-setuptools&package-manager=pip&previous-version=74.1.0.20240907&new-version=75.1.0.20240917)](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 pydantic from 2.8.2 to 2.9.2 (#17756)dependabot[bot]2024-09-241-99/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [pydantic](https://github.com/pydantic/pydantic) from 2.8.2 to 2.9.2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/pydantic/pydantic/releases">pydantic's releases</a>.</em></p> <blockquote> <h2>v2.9.2 (2024-09-17)</h2> <h2>What's Changed</h2> <h3>Fixes</h3> <ul> <li>Do not error when trying to evaluate annotations of private attributes by <a href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/10358">#10358</a></li> <li>Adding notes on designing sound <code>Callable</code> discriminators by <a href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/10400">#10400</a></li> <li>Fix serialization schema generation when using <code>PlainValidator</code> by <a href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/10427">#10427</a></li> <li>Fix <code>Union</code> serialization warnings by <a href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a> in <a href="https://redirect.github.com/pydantic/pydantic-core/pull/1449">pydantic/pydantic-core#1449</a></li> <li>Fix variance issue in <code>_IncEx</code> type alias, only allow <code>True</code> by <a href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/10414">#10414</a></li> <li>Fix <code>ZoneInfo</code> validation with various invalid types by <a href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/10408">#10408</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/pydantic/pydantic/compare/v2.9.1...v2.9.2">https://github.com/pydantic/pydantic/compare/v2.9.1...v2.9.2</a></p> <h2>v2.9.1 (2024-09-09)</h2> <h2>What's Changed</h2> <h3>Fixes</h3> <ul> <li>Fix Predicate issue in v2.9.0 by <a href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/10321">#10321</a></li> <li>Fixing <code>annotated-types</code> bound to <code>&gt;=0.6.0</code> by <a href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/10327">#10327</a></li> <li>Turn <code>tzdata</code> install requirement into optional <code>timezone</code> dependency by <a href="https://github.com/jakob-keller"><code>@​jakob-keller</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/10331">#10331</a></li> <li>Fix <code>IncExc</code> type alias definition by <a href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/10339">#10339</a></li> <li>Use correct types namespace when building namedtuple core schemas by <a href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/10337">#10337</a></li> <li>Fix evaluation of stringified annotations during namespace inspection by <a href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/10347">#10347</a></li> <li>Fix tagged union serialization with alias generators by <a href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a> in <a href="https://redirect.github.com/pydantic/pydantic-core/pull/1442">pydantic/pydantic-core#1442</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/pydantic/pydantic/compare/v2.9.0...v2.9.1">https://github.com/pydantic/pydantic/compare/v2.9.0...v2.9.1</a></p> <h2>v2.9.0 (2024-09-05)</h2> <p>The code released in v2.9.0 is practically identical to that of v2.9.0b2.</p> <p>Check out our <a href="https://pydantic.dev/articles/pydantic-v2-9-release">blog post</a> to learn more about the release highlights!</p> <h2>What's Changed</h2> <h3>Packaging</h3> <ul> <li>Bump <code>ruff</code> to <code>v0.5.0</code> and <code>pyright</code> to <code>v1.1.369</code> by <a href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/9801">#9801</a></li> <li>Bump <code>pydantic-extra-types</code> to <code>v2.9.0</code> by <a href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/9832">#9832</a></li> <li>Support compatibility with <code>pdm v2.18.1</code> by <a href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/10138">#10138</a></li> <li>Bump <code>v1</code> version stub to <code>v1.10.18</code> by <a href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/10214">#10214</a></li> <li>Bump <code>pydantic-core</code> to <code>v2.23.2</code> by <a href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/10311">#10311</a></li> </ul> <h3>New Features</h3> <ul> <li>Add support for <code>ZoneInfo</code> by <a href="https://github.com/Youssefares"><code>@​Youssefares</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/9896">#9896</a></li> <li>Add <code>Config.val_json_bytes</code> by <a href="https://github.com/josh-newman"><code>@​josh-newman</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/9770">#9770</a></li> <li>Add DSN for Snowflake by <a href="https://github.com/aditkumar72"><code>@​aditkumar72</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/10128">#10128</a></li> <li>Support <code>complex</code> number by <a href="https://github.com/changhc"><code>@​changhc</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/9654">#9654</a></li> <li>Add support for <code>annotated_types.Not</code> by <a href="https://github.com/aditkumar72"><code>@​aditkumar72</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/10210">#10210</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/pydantic/pydantic/blob/main/HISTORY.md">pydantic's changelog</a>.</em></p> <blockquote> <h2>v2.9.2 (2024-09-17)</h2> <p><a href="https://github.com/pydantic/pydantic/releases/tag/v2.9.2">GitHub release</a></p> <h3>What's Changed</h3> <h4>Fixes</h4> <ul> <li>Do not error when trying to evaluate annotations of private attributes by <a href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/10358">#10358</a></li> <li>Adding notes on designing sound <code>Callable</code> discriminators by <a href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/10400">#10400</a></li> <li>Fix serialization schema generation when using <code>PlainValidator</code> by <a href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/10427">#10427</a></li> <li>Fix <code>Union</code> serialization warnings by <a href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a> in <a href="https://redirect.github.com/pydantic/pydantic-core/pull/1449">pydantic/pydantic-core#1449</a></li> <li>Fix variance issue in <code>_IncEx</code> type alias, only allow <code>True</code> by <a href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/10414">#10414</a></li> <li>Fix <code>ZoneInfo</code> validation with various invalid types by <a href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/10408">#10408</a></li> </ul> <h2>v2.9.1 (2024-09-09)</h2> <p><a href="https://github.com/pydantic/pydantic/releases/tag/v2.9.1">GitHub release</a></p> <h3>What's Changed</h3> <h4>Fixes</h4> <ul> <li>Fix Predicate issue in v2.9.0 by <a href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/10321">#10321</a></li> <li>Fixing <code>annotated-types</code> bound to <code>&gt;=0.6.0</code> by <a href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/10327">#10327</a></li> <li>Turn <code>tzdata</code> install requirement into optional <code>timezone</code> dependency by <a href="https://github.com/jakob-keller"><code>@​jakob-keller</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/10331">#10331</a></li> <li>Fix <code>IncExc</code> type alias definition by <a href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/10339">#10339</a></li> <li>Use correct types namespace when building namedtuple core schemas by <a href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/10337">#10337</a></li> <li>Fix evaluation of stringified annotations during namespace inspection by <a href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/10347">#10347</a></li> <li>Fix tagged union serialization with alias generators by <a href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a> in <a href="https://redirect.github.com/pydantic/pydantic-core/pull/1442">pydantic/pydantic-core#1442</a></li> </ul> <h2>v2.9.0 (2024-09-05)</h2> <p><a href="https://github.com/pydantic/pydantic/releases/tag/v2.9.0">GitHub release</a></p> <p>The code released in v2.9.0 is practically identical to that of v2.9.0b2.</p> <h3>What's Changed</h3> <h4>Packaging</h4> <ul> <li>Bump <code>ruff</code> to <code>v0.5.0</code> and <code>pyright</code> to <code>v1.1.369</code> by <a href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/9801">#9801</a></li> <li>Bump <code>pydantic-extra-types</code> to <code>v2.9.0</code> by <a href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/9832">#9832</a></li> <li>Support compatibility with <code>pdm v2.18.1</code> by <a href="https://github.com/Viicos"><code>@​Viicos</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/10138">#10138</a></li> <li>Bump <code>v1</code> version stub to <code>v1.10.18</code> by <a href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/10214">#10214</a></li> <li>Bump <code>pydantic-core</code> to <code>v2.23.2</code> by <a href="https://github.com/sydney-runkle"><code>@​sydney-runkle</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/10311">#10311</a></li> </ul> <h4>New Features</h4> <ul> <li>Add support for <code>ZoneInfo</code> by <a href="https://github.com/Youssefares"><code>@​Youssefares</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/9896">#9896</a></li> <li>Add <code>Config.val_json_bytes</code> by <a href="https://github.com/josh-newman"><code>@​josh-newman</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/9770">#9770</a></li> <li>Add DSN for Snowflake by <a href="https://github.com/aditkumar72"><code>@​aditkumar72</code></a> in <a href="https://redirect.github.com/pydantic/pydantic/pull/10128">#10128</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/pydantic/pydantic/commit/7cedbfb03df82ac55c844c97e6f975359cb51bb9"><code>7cedbfb</code></a> history updates</li> <li><a href="https://github.com/pydantic/pydantic/commit/7eab2b8f7565077410ee6b5f59efc2a8245a7e34"><code>7eab2b8</code></a> v bump</li> <li><a href="https://github.com/pydantic/pydantic/commit/c0a288f1457734c0ae7ea8d3ae2f5e458327c4cd"><code>c0a288f</code></a> Fix <code>ZoneInfo</code> with various invalid types (<a href="https://redirect.github.com/pydantic/pydantic/issues/10408">#10408</a>)</li> <li><a href="https://github.com/pydantic/pydantic/commit/ea6115de0f36461b8fa9638c49249ebd4b9fd806"><code>ea6115d</code></a> Fix variance issue in <code>_IncEx</code> type alias, only allow <code>True</code> (<a href="https://redirect.github.com/pydantic/pydantic/issues/10414">#10414</a>)</li> <li><a href="https://github.com/pydantic/pydantic/commit/fbfe25a1195c1055034581e1a48ff6308231d70c"><code>fbfe25a</code></a> Fix serialization schema generation when using <code>PlainValidator</code> (<a href="https://redirect.github.com/pydantic/pydantic/issues/10427">#10427</a>)</li> <li><a href="https://github.com/pydantic/pydantic/commit/26cff3ccf65f29fd503c1357280a9f4d87f41fd6"><code>26cff3c</code></a> Adding notes on designing callable discriminators (<a href="https://redirect.github.com/pydantic/pydantic/issues/10400">#10400</a>)</li> <li><a href="https://github.com/pydantic/pydantic/commit/8a0e7adf6ac6d31056818f9bf8ce5a9dab6c9a6e"><code>8a0e7ad</code></a> Do not error when trying to evaluate annotations of private attributes (<a href="https://redirect.github.com/pydantic/pydantic/issues/10358">#10358</a>)</li> <li><a href="https://github.com/pydantic/pydantic/commit/ecc5275d01e3d8de15c3641d35eb5151f5778833"><code>ecc5275</code></a> bump</li> <li><a href="https://github.com/pydantic/pydantic/commit/2c61bfda43e67b8308f86c77ae4121f447f134dd"><code>2c61bfd</code></a> Fix evaluation of stringified annotations during namespace inspection (<a href="https://redirect.github.com/pydantic/pydantic/issues/10347">#10347</a>)</li> <li><a href="https://github.com/pydantic/pydantic/commit/3d364cbf994bc6676b8419b8ad588d4d49ab2f29"><code>3d364cb</code></a> Use correct types namespace when building namedtuple core schemas (<a href="https://redirect.github.com/pydantic/pydantic/issues/10337">#10337</a>)</li> <li>Additional commits viewable in <a href="https://github.com/pydantic/pydantic/compare/v2.8.2...v2.9.2">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pydantic&package-manager=pip&previous-version=2.8.2&new-version=2.9.2)](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 types-pyyaml from 6.0.12.20240808 to 6.0.12.20240917 (#17755)dependabot[bot]2024-09-241-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [types-pyyaml](https://github.com/python/typeshed) from 6.0.12.20240808 to 6.0.12.20240917. <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/python/typeshed/commits">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=types-pyyaml&package-manager=pip&previous-version=6.0.12.20240808&new-version=6.0.12.20240917)](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 prometheus-client from 0.20.0 to 0.21.0 (#17746)dependabot[bot]2024-09-241-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [prometheus-client](https://github.com/prometheus/client_python) from 0.20.0 to 0.21.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/prometheus/client_python/releases">prometheus-client's releases</a>.</em></p> <blockquote> <h2>0.21.0 / 2024-09-20</h2> <h2>What's Changed</h2> <p>[CHANGE] Reject invalid (not GET or OPTION) HTTP methods. <a href="https://redirect.github.com/prometheus/client_python/issues/1019">#1019</a> [ENHANCEMENT] Allow writing metrics when holding a lock for the metric in the same thread. <a href="https://redirect.github.com/prometheus/client_python/issues/1014">#1014</a> [BUGFIX] Check for and error on None label values. <a href="https://redirect.github.com/prometheus/client_python/issues/1012">#1012</a> [BUGFIX] Fix timestamp comparison. <a href="https://redirect.github.com/prometheus/client_python/issues/1038">#1038</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/prometheus/client_python/commit/3b183b44994454be226c208037e1fe4b9a89dfc5"><code>3b183b4</code></a> Release 0.21.0</li> <li><a href="https://github.com/prometheus/client_python/commit/0014e9776350a252930671ed170edee464f9b428"><code>0014e97</code></a> Use re-entrant lock. (<a href="https://redirect.github.com/prometheus/client_python/issues/1014">#1014</a>)</li> <li><a href="https://github.com/prometheus/client_python/commit/7c45f84e5e3d2e0a75b3946408fec1a4d5c72841"><code>7c45f84</code></a> Reject invalid HTTP methods and resources (<a href="https://redirect.github.com/prometheus/client_python/issues/1019">#1019</a>)</li> <li><a href="https://github.com/prometheus/client_python/commit/09a5ae30602a7a81f6174dae4ba08b93ee7feed2"><code>09a5ae3</code></a> Fix timestamp comparison (<a href="https://redirect.github.com/prometheus/client_python/issues/1038">#1038</a>)</li> <li><a href="https://github.com/prometheus/client_python/commit/e364a96f506bbb70ae744e0b3307e4b693e28258"><code>e364a96</code></a> Fix a typo in ASGI docs (<a href="https://redirect.github.com/prometheus/client_python/issues/1036">#1036</a>)</li> <li><a href="https://github.com/prometheus/client_python/commit/eeec421b2f489d2c465bb8ca419b772829b7b16c"><code>eeec421</code></a> Pin python 3.8 and 3.9 at patch level (<a href="https://redirect.github.com/prometheus/client_python/issues/1024">#1024</a>)</li> <li><a href="https://github.com/prometheus/client_python/commit/7bc8cddfbbc9b72c98725a879d9b94a675a6c7da"><code>7bc8cdd</code></a> docs: correct link to multiprocessing docs (<a href="https://redirect.github.com/prometheus/client_python/issues/1023">#1023</a>)</li> <li><a href="https://github.com/prometheus/client_python/commit/4535ce0f43097aa48e44a65747d82064f2aadaf5"><code>4535ce0</code></a> Add sanity check for label value (<a href="https://redirect.github.com/prometheus/client_python/issues/1012">#1012</a>)</li> <li>See full diff in <a href="https://github.com/prometheus/client_python/compare/v0.20.0...v0.21.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=prometheus-client&package-manager=pip&previous-version=0.20.0&new-version=0.21.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 pyasn1-modules from 0.4.0 to 0.4.1 (#17747)dependabot[bot]2024-09-241-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [pyasn1-modules](https://github.com/pyasn1/pyasn1-modules) from 0.4.0 to 0.4.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/pyasn1/pyasn1-modules/releases">pyasn1-modules's releases</a>.</em></p> <blockquote> <h2>Release 0.4.1</h2> <p>It's a minor release.</p> <ul> <li>Added support for Python 3.13.</li> </ul> <p>All changes are noted in the <a href="https://github.com/pyasn1/pyasn1-modules/blob/main/CHANGES.txt">CHANGELOG</a>.</p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/pyasn1/pyasn1-modules/blob/main/CHANGES.txt">pyasn1-modules's changelog</a>.</em></p> <blockquote> <h2>Revision 0.4.1, released 10-09-2024</h2> <ul> <li>Added support for Python 3.13</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/pyasn1/pyasn1-modules/commit/36b036311a83c78175e92161f23afc5e9e56a6da"><code>36b0363</code></a> Prepare release 0.4.1</li> <li><a href="https://github.com/pyasn1/pyasn1-modules/commit/b0d849798afe8e908f3fd467984d0c0bb7875f74"><code>b0d8497</code></a> Add support for Python 3.13 (<a href="https://redirect.github.com/pyasn1/pyasn1-modules/issues/17">#17</a>)</li> <li>See full diff in <a href="https://github.com/pyasn1/pyasn1-modules/compare/v0.4.0...v0.4.1">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pyasn1-modules&package-manager=pip&previous-version=0.4.0&new-version=0.4.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>
* Bump python-multipart from 0.0.9 to 0.0.10 (#17745)dependabot[bot]2024-09-241-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [python-multipart](https://github.com/Kludex/python-multipart) from 0.0.9 to 0.0.10. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/Kludex/python-multipart/releases">python-multipart's releases</a>.</em></p> <blockquote> <h2>Version 0.0.10</h2> <h2>What's Changed</h2> <ul> <li>Support <code>on_header_begin</code> by <a href="https://github.com/Kludex"><code>@​Kludex</code></a> in <a href="https://redirect.github.com/Kludex/python-multipart/pull/103">Kludex/python-multipart#103</a></li> <li>Improve type hints on <code>FormParser</code> by <a href="https://github.com/Kludex"><code>@​Kludex</code></a> in <a href="https://redirect.github.com/Kludex/python-multipart/pull/104">Kludex/python-multipart#104</a></li> <li>Fix <code>OnFileCallback</code> type by <a href="https://github.com/Kludex"><code>@​Kludex</code></a> in <a href="https://redirect.github.com/Kludex/python-multipart/pull/106">Kludex/python-multipart#106</a></li> <li>Improve type hints by <a href="https://github.com/Kludex"><code>@​Kludex</code></a> in <a href="https://redirect.github.com/Kludex/python-multipart/pull/110">Kludex/python-multipart#110</a></li> <li>Improve type hints on <code>File</code> by <a href="https://github.com/Kludex"><code>@​Kludex</code></a> in <a href="https://redirect.github.com/Kludex/python-multipart/pull/111">Kludex/python-multipart#111</a></li> <li>Add type hint to helper functions by <a href="https://github.com/Kludex"><code>@​Kludex</code></a> in <a href="https://redirect.github.com/Kludex/python-multipart/pull/112">Kludex/python-multipart#112</a></li> <li>Minor fix for Field.<strong>repr</strong> by <a href="https://github.com/eltbus"><code>@​eltbus</code></a> in <a href="https://redirect.github.com/Kludex/python-multipart/pull/114">Kludex/python-multipart#114</a></li> <li>Fix use of chunk_size parameter by <a href="https://github.com/jhnstrk"><code>@​jhnstrk</code></a> in <a href="https://redirect.github.com/Kludex/python-multipart/pull/136">Kludex/python-multipart#136</a></li> <li>Allow digits and valid token chars in headers by <a href="https://github.com/jhnstrk"><code>@​jhnstrk</code></a> in <a href="https://redirect.github.com/Kludex/python-multipart/pull/134">Kludex/python-multipart#134</a></li> <li>Fix headers being carried between parts. fixes <a href="https://redirect.github.com/Kludex/python-multipart/issues/63">#63</a> by <a href="https://github.com/jhnstrk"><code>@​jhnstrk</code></a> in <a href="https://redirect.github.com/Kludex/python-multipart/pull/135">Kludex/python-multipart#135</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/onuralpszr"><code>@​onuralpszr</code></a> made their first contribution in <a href="https://redirect.github.com/Kludex/python-multipart/pull/108">Kludex/python-multipart#108</a></li> <li><a href="https://github.com/janusheide"><code>@​janusheide</code></a> made their first contribution in <a href="https://redirect.github.com/Kludex/python-multipart/pull/119">Kludex/python-multipart#119</a></li> <li><a href="https://github.com/yecril23pl"><code>@​yecril23pl</code></a> made their first contribution in <a href="https://redirect.github.com/Kludex/python-multipart/pull/121">Kludex/python-multipart#121</a></li> <li><a href="https://github.com/manunio"><code>@​manunio</code></a> made their first contribution in <a href="https://redirect.github.com/Kludex/python-multipart/pull/117">Kludex/python-multipart#117</a></li> <li><a href="https://github.com/jhnstrk"><code>@​jhnstrk</code></a> made their first contribution in <a href="https://redirect.github.com/Kludex/python-multipart/pull/136">Kludex/python-multipart#136</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/Kludex/python-multipart/compare/0.0.9...0.0.10">https://github.com/Kludex/python-multipart/compare/0.0.9...0.0.10</a></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/Kludex/python-multipart/blob/master/CHANGELOG.md">python-multipart's changelog</a>.</em></p> <blockquote> <h2>0.0.10 (2024-09-21)</h2> <ul> <li>Support <code>on_header_begin</code> <a href="https://redirect.github.com/Kludex/python-multipart/pull/103">#103</a>.</li> <li>Improve type hints on <code>FormParser</code> <a href="https://redirect.github.com/Kludex/python-multipart/pull/104">#104</a>.</li> <li>Fix <code>OnFileCallback</code> type <a href="https://redirect.github.com/Kludex/python-multipart/pull/106">#106</a>.</li> <li>Improve type hints <a href="https://redirect.github.com/Kludex/python-multipart/pull/110">#110</a>.</li> <li>Improve type hints on <code>File</code> <a href="https://redirect.github.com/Kludex/python-multipart/pull/111">#111</a>.</li> <li>Add type hint to helper functions <a href="https://redirect.github.com/Kludex/python-multipart/pull/112">#112</a>.</li> <li>Minor fix for Field.<strong>repr</strong> <a href="https://redirect.github.com/Kludex/python-multipart/pull/114">#114</a>.</li> <li>Fix use of chunk_size parameter <a href="https://redirect.github.com/Kludex/python-multipart/pull/136">#136</a>.</li> <li>Allow digits and valid token chars in headers <a href="https://redirect.github.com/Kludex/python-multipart/pull/134">#134</a>.</li> <li>Fix headers being carried between parts <a href="https://redirect.github.com/Kludex/python-multipart/pull/135">#135</a>.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/Kludex/python-multipart/commit/851a0263fc0052eeecdbee34331bcde2c2967e75"><code>851a026</code></a> Add entry to changelog (<a href="https://redirect.github.com/Kludex/python-multipart/issues/157">#157</a>)</li> <li><a href="https://github.com/Kludex/python-multipart/commit/265d6a4d1cd22aec1627f89b3633d2228f7fe55f"><code>265d6a4</code></a> Upgrade documentation packages (<a href="https://redirect.github.com/Kludex/python-multipart/issues/156">#156</a>)</li> <li><a href="https://github.com/Kludex/python-multipart/commit/21825fced43cd7ef043a2c4d0e142309891482f9"><code>21825fc</code></a> Version 0.0.10 (<a href="https://redirect.github.com/Kludex/python-multipart/issues/155">#155</a>)</li> <li><a href="https://github.com/Kludex/python-multipart/commit/0defda6213edfe4e1f56d893bd80872df96432ca"><code>0defda6</code></a> Update pipelines (<a href="https://redirect.github.com/Kludex/python-multipart/issues/154">#154</a>)</li> <li><a href="https://github.com/Kludex/python-multipart/commit/c664cef3bb67a5c0cae0194c68afa11d5be1ffbd"><code>c664cef</code></a> Use uv (<a href="https://redirect.github.com/Kludex/python-multipart/issues/153">#153</a>)</li> <li><a href="https://github.com/Kludex/python-multipart/commit/8b85d35fd79869766f678cbdc27bfaebe37b5527"><code>8b85d35</code></a> Fix headers being carried between parts. fixes <a href="https://redirect.github.com/Kludex/python-multipart/issues/63">#63</a> (<a href="https://redirect.github.com/Kludex/python-multipart/issues/135">#135</a>)</li> <li><a href="https://github.com/Kludex/python-multipart/commit/3ea51c714ea8ddb66acd766964414fe50ef0eecf"><code>3ea51c7</code></a> Allow digits and valid token chars in headers (<a href="https://redirect.github.com/Kludex/python-multipart/issues/134">#134</a>)</li> <li><a href="https://github.com/Kludex/python-multipart/commit/3a722ed61ab8c3e094bc8d9e7e74133623060ca5"><code>3a722ed</code></a> Fix use of chunk_size parameter (<a href="https://redirect.github.com/Kludex/python-multipart/issues/136">#136</a>)</li> <li><a href="https://github.com/Kludex/python-multipart/commit/b5a5c19902f5ac3c6e69fe665fb2951419735308"><code>b5a5c19</code></a> Bump the python-packages group with 7 updates (<a href="https://redirect.github.com/Kludex/python-multipart/issues/138">#138</a>)</li> <li><a href="https://github.com/Kludex/python-multipart/commit/eb7b1fc3921dbd75fe4435d389e925cbc1458647"><code>eb7b1fc</code></a> Bump the github-actions group with 1 update (<a href="https://redirect.github.com/Kludex/python-multipart/issues/139">#139</a>)</li> <li>Additional commits viewable in <a href="https://github.com/Kludex/python-multipart/compare/0.0.9...0.0.10">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=python-multipart&package-manager=pip&previous-version=0.0.9&new-version=0.0.10)](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 bytes from 1.7.1 to 1.7.2 (#17743)dependabot[bot]2024-09-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [bytes](https://github.com/tokio-rs/bytes) from 1.7.1 to 1.7.2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/tokio-rs/bytes/releases">bytes's releases</a>.</em></p> <blockquote> <h2>Bytes 1.7.2</h2> <h1>1.7.2 (September 17, 2024)</h1> <h3>Fixed</h3> <ul> <li>Fix default impl of <code>Buf::{get_int, get_int_le}</code> (<a href="https://redirect.github.com/tokio-rs/bytes/issues/732">#732</a>)</li> </ul> <h3>Documented</h3> <ul> <li>Fix double spaces in comments and doc comments (<a href="https://redirect.github.com/tokio-rs/bytes/issues/731">#731</a>)</li> </ul> <h3>Internal changes</h3> <ul> <li>Ensure BytesMut::advance reduces capacity (<a href="https://redirect.github.com/tokio-rs/bytes/issues/728">#728</a>)</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/tokio-rs/bytes/blob/master/CHANGELOG.md">bytes's changelog</a>.</em></p> <blockquote> <h1>1.7.2 (September 17, 2024)</h1> <h3>Fixed</h3> <ul> <li>Fix default impl of <code>Buf::{get_int, get_int_le}</code> (<a href="https://redirect.github.com/tokio-rs/bytes/issues/732">#732</a>)</li> </ul> <h3>Documented</h3> <ul> <li>Fix double spaces in comments and doc comments (<a href="https://redirect.github.com/tokio-rs/bytes/issues/731">#731</a>)</li> </ul> <h3>Internal changes</h3> <ul> <li>Ensure BytesMut::advance reduces capacity (<a href="https://redirect.github.com/tokio-rs/bytes/issues/728">#728</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/tokio-rs/bytes/commit/d7c1d658d90c922eeee1dbc29bc6f6fd9a1a1a66"><code>d7c1d65</code></a> chore: prepare bytes v1.7.2 (<a href="https://redirect.github.com/tokio-rs/bytes/issues/736">#736</a>)</li> <li><a href="https://github.com/tokio-rs/bytes/commit/ac46ebdd464144cecd7463a96ca9eb347458ae94"><code>ac46ebd</code></a> ci: update nightly to nightly-2024-09-15 (<a href="https://redirect.github.com/tokio-rs/bytes/issues/734">#734</a>)</li> <li><a href="https://github.com/tokio-rs/bytes/commit/79fb85323cf4cf14d9b85f487b65fc147030cf4b"><code>79fb853</code></a> fix: apply sign extension when decoding int (<a href="https://redirect.github.com/tokio-rs/bytes/issues/732">#732</a>)</li> <li><a href="https://github.com/tokio-rs/bytes/commit/291df5acc94b82a48765e67eeb1c1a2074539e68"><code>291df5a</code></a> Fix double spaces in comments and doc comments (<a href="https://redirect.github.com/tokio-rs/bytes/issues/731">#731</a>)</li> <li><a href="https://github.com/tokio-rs/bytes/commit/ed7d5ff39e39c2802c0fa9e2fc308f6a3e0beda7"><code>ed7d5ff</code></a> test: ensure BytesMut::advance reduces capacity (<a href="https://redirect.github.com/tokio-rs/bytes/issues/728">#728</a>)</li> <li>See full diff in <a href="https://github.com/tokio-rs/bytes/compare/v1.7.1...v1.7.2">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=bytes&package-manager=cargo&previous-version=1.7.1&new-version=1.7.2)](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>
* Never return negative bump stamp (#17748)Erik Johnston2024-09-242-0/+17
| | | Fixes #17737
* Support MSC4140: Delayed events (Futures) (#17326)Andrew Ferrazzutti2024-09-2321-12/+1772
|
* Speed up sorting of sliding sync rooms in initial request (#17734)Erik Johnston2024-09-202-2/+70
| | | | | | | We do this by using the event stream cache. --------- Co-authored-by: Devon Hudson <devon.dmytro@gmail.com>
* Sliding sync: Add connection tracking to the `account_data` extension (#17695)Erik Johnston2024-09-197-67/+742
| | | | | | | | | | | This is basically exactly the same logic as for receipts. Essentially we just need to track which room account data we have and haven't sent down to clients, and use that when we pull stuff out. I think this just needs a couple of extra tests written --------- Co-authored-by: Eric Eastwood <eric.eastwood@beta.gouv.fr>
* Sliding Sync: Avoid fetching left rooms and add back `newly_left` rooms (#17725)Eric Eastwood2024-09-198-110/+833
| | | | | | | | | | | | | | | Performance optimization: We can avoid fetching rooms that the user has left themselves (which could be a significant amount), then only add back rooms that the user has `newly_left` (left in the token range of an incremental sync). It's a lot faster to fetch less rooms than fetch them all and throw them away in most cases. Since the user only leaves a room (or is state reset out) once in a blue moon, we can avoid a lot of work. Based on @erikjohnston's branch, erikj/ss_perf --------- Co-authored-by: Erik Johnston <erik@matrix.org>
* Fix sliding sync for rooms with unknown room version (#17733)Erik Johnston2024-09-194-0/+68
| | | Follow on from #17727
* Sliding Sync: Add cache to `get_tags_for_room(...)` (#17730)Eric Eastwood2024-09-195-6/+21
| | | | | | | | | Add cache to `get_tags_for_room(...)` This helps Sliding Sync because `get_tags_for_room(...)` is going to be used in https://github.com/element-hq/synapse/pull/17695 Essentially, we're just trying to match `get_account_data_for_room(...)` which already has a tree cache.
* Sliding Sync: No need to sort if the range is large enough to cover all of ↵Eric Eastwood2024-09-195-51/+80
| | | | | | | | | the rooms (#17731) No need to sort if the range is large enough to cover all of the rooms in the list. Previously, we would only do this optimization if the range was exactly large enough. Follow-up to https://github.com/element-hq/synapse/pull/17672
* Sliding Sync: Fix `_bulk_get_max_event_pos(...)` being inefficient (#17728)Eric Eastwood2024-09-192-1/+2
| | | | | | | | | | | | Fix `_bulk_get_max_event_pos(...)` being inefficient. It kept adding all of the `batch_results` to the `results` over and over every time we checked a single room in the batch. I think we still ended up with the right answer before because we accumulate `recheck_rooms` and actually recheck them to overwrite the bad data we wrote to the `results` before. Introduced in https://github.com/element-hq/synapse/pull/17606/files#diff-cbd54e4b5a2a1646299d659a2d5884d6cb14e608efd2e1658e72b465bb66e31bR1481
* 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