From c74fa9dc501091b46c7599a94b33864499f27ed4 Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Wed, 18 Jun 2025 08:28:35 -0400 Subject: [PATCH] synapse: update to 1.133.0. --- srcpkgs/synapse/patches/poetry-core.patch | 2 +- .../twisted-24.11.0-test-failure.patch | 35 ------------------- srcpkgs/synapse/template | 4 +-- 3 files changed, 3 insertions(+), 38 deletions(-) delete mode 100644 srcpkgs/synapse/patches/twisted-24.11.0-test-failure.patch diff --git a/srcpkgs/synapse/patches/poetry-core.patch b/srcpkgs/synapse/patches/poetry-core.patch index f37a11ad836..9819b8cb30f 100644 --- a/srcpkgs/synapse/patches/poetry-core.patch +++ b/srcpkgs/synapse/patches/poetry-core.patch @@ -7,7 +7,7 @@ index 2d982ea..289565b 100644 # We are happy to raise these upper bounds upon request, # provided we check that it's safe to do so (i.e. that CI passes). -requires = ["poetry-core>=1.1.0,<=1.9.1", "setuptools_rust>=1.3,<=1.10.2"] -+requires = ["poetry-core>=1.1.0,<=2.0.1", "setuptools_rust>=1.3,<=1.11.1"] ++requires = ["poetry-core>=1.1.0,<=2.2.0", "setuptools_rust>=1.3,<=1.11.1"] build-backend = "poetry.core.masonry.api" diff --git a/srcpkgs/synapse/patches/twisted-24.11.0-test-failure.patch b/srcpkgs/synapse/patches/twisted-24.11.0-test-failure.patch deleted file mode 100644 index b90a704c23c..00000000000 --- a/srcpkgs/synapse/patches/twisted-24.11.0-test-failure.patch +++ /dev/null @@ -1,35 +0,0 @@ -diff --git a/tests/storage/databases/main/test_events_worker.py b/tests/storage/databases/main/test_events_worker.py -index 104d141..a172d2c 100644 ---- a/tests/storage/databases/main/test_events_worker.py -+++ b/tests/storage/databases/main/test_events_worker.py -@@ -447,30 +447,6 @@ class DatabaseOutageTestCase(unittest.HomeserverTestCase): - ) - self.assertEqual(str(failure.value), "Could not connect to the database.") - -- def test_recovery(self) -> None: -- """Test that event fetchers recover after a database outage.""" -- with self._outage(): -- # Kick off a bunch of event fetches but do not pump the reactor -- event_deferreds = [] -- for event_id in self.event_ids: -- event_deferreds.append(ensureDeferred(self.store.get_event(event_id))) -- -- # We should have maxed out on event fetcher threads -- self.assertEqual(self.store._event_fetch_ongoing, EVENT_QUEUE_THREADS) -- -- # All the event fetchers will fail -- self.pump() -- self.assertEqual(self.store._event_fetch_ongoing, 0) -- -- for event_deferred in event_deferreds: -- failure = self.get_failure(event_deferred, Exception) -- self.assertEqual( -- str(failure.value), "Could not connect to the database." -- ) -- -- # This next event fetch should succeed -- self.get_success(self.store.get_event(self.event_ids[0])) -- - - class GetEventCancellationTestCase(unittest.HomeserverTestCase): - """Test cancellation of `get_event` calls.""" diff --git a/srcpkgs/synapse/template b/srcpkgs/synapse/template index 963c306f4a4..c682e8b9360 100644 --- a/srcpkgs/synapse/template +++ b/srcpkgs/synapse/template @@ -1,6 +1,6 @@ # Template file for 'synapse' pkgname=synapse -version=1.131.0 +version=1.133.0 revision=1 build_style=python3-pep517 build_helper=rust @@ -26,7 +26,7 @@ license="AGPL-3.0-or-later" homepage="https://element-hq.github.io/synapse" changelog="https://raw.githubusercontent.com/element-hq/synapse/develop/CHANGES.md" distfiles="https://github.com/element-hq/synapse/archive/refs/tags/v${version}.tar.gz" -checksum=929be56bec346a667d24d1301c629c4052f8ecfec1667813a2662717dc4295a6 +checksum=dc6e804431304be6b6e06cbbc11a98e00a489e2193839bcc0258d5547ce9687a system_accounts="synapse" synapse_homedir="/var/lib/synapse"