synapse: update to 1.131.0.

This commit is contained in:
Joel Beckmeyer 2025-01-15 08:09:17 -05:00 committed by Duncan Overbruck
parent a00385dfa7
commit ef7ee136b7
3 changed files with 51 additions and 3 deletions

View file

@ -0,0 +1,13 @@
diff --git a/pyproject.toml b/pyproject.toml
index 2d982ea..289565b 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -370,7 +370,7 @@ tomli = ">=1.2.3"
# runtime errors caused by build system changes.
# 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"]
build-backend = "poetry.core.masonry.api"

View file

@ -0,0 +1,35 @@
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."""

View file

@ -1,6 +1,6 @@
# Template file for 'synapse' # Template file for 'synapse'
pkgname=synapse pkgname=synapse
version=1.121.1 version=1.131.0
revision=1 revision=1
build_style=python3-pep517 build_style=python3-pep517
build_helper=rust build_helper=rust
@ -26,7 +26,7 @@ license="AGPL-3.0-or-later"
homepage="https://element-hq.github.io/synapse" homepage="https://element-hq.github.io/synapse"
changelog="https://raw.githubusercontent.com/element-hq/synapse/develop/CHANGES.md" 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" distfiles="https://github.com/element-hq/synapse/archive/refs/tags/v${version}.tar.gz"
checksum=58beeacb5b61f87d791b808a3d1e0db3f4df55a731e652ac4ad86bd4145558da checksum=929be56bec346a667d24d1301c629c4052f8ecfec1667813a2662717dc4295a6
system_accounts="synapse" system_accounts="synapse"
synapse_homedir="/var/lib/synapse" synapse_homedir="/var/lib/synapse"
@ -55,5 +55,5 @@ post_install() {
vsconf docs/sample_config.yaml homeserver.yaml vsconf docs/sample_config.yaml homeserver.yaml
vsconf docs/sample_log_config.yaml log.yaml vsconf docs/sample_log_config.yaml log.yaml
vlicense LICENSE vlicense LICENSE-AGPL-3.0
} }