David Robertson
d59916b06a
tests.utils passes disallow-untyped-defs
2022-06-11 21:45:39 +01:00
David Robertson
e007d87eb1
tests.utils.test_treecache
2022-06-11 21:45:18 +01:00
David Robertson
0ee260f4d4
tests.utils.test_threepids
2022-06-11 21:45:18 +01:00
David Robertson
0f7af76d45
tests.utils.test_stream_change_cache
2022-06-11 21:45:18 +01:00
David Robertson
ca41febb7e
tests.util.test_stringutils
2022-06-11 21:45:18 +01:00
David Robertson
9a42f0785f
tests.util.test_ratelimitutils
2022-06-11 21:45:18 +01:00
David Robertson
0d78696b21
test_retryutils
2022-06-11 21:45:17 +01:00
David Robertson
a8f7a3ac07
test_logformatter
2022-06-11 21:45:17 +01:00
David Robertson
31e42e9b74
test.util.test_itertools
2022-06-11 21:45:17 +01:00
David Robertson
436081dfcd
test.util.test_check_dependencies
2022-06-11 21:45:17 +01:00
David Robertson
78f24160bf
tests.util.rw_lock
2022-06-11 21:45:16 +01:00
David Robertson
d091b71ea2
Type tests.util.test_wheel_timer
2022-06-11 21:45:05 +01:00
David Robertson
92af1306db
Changelog
2022-06-11 19:58:14 +01:00
David Robertson
97d72ef11a
tests.utils is typed
2022-06-11 19:45:49 +01:00
David Robertson
395d624e12
Suppress checking of a mock
2022-06-11 19:45:35 +01:00
David Robertson
3338364dbe
Introduce a Looper type
2022-06-11 19:32:29 +01:00
David Robertson
d6ff8bdf96
Introduce a Timer dataclass
2022-06-11 18:35:02 +01:00
David Robertson
a07c7335cc
Track now as a float
...
`time_ms` returns an int like the proper Synapse `Clock`
2022-06-11 18:33:53 +01:00
David Robertson
39d547bf74
Annotate default_config
2022-06-11 18:11:57 +01:00
David Robertson
fb5809aca4
Use ParamSpec to annotate looping_call
2022-06-11 18:04:56 +01:00
David Robertson
575e1c4309
Annotate create_room
2022-06-11 18:00:24 +01:00
David Robertson
29f721f4b2
Easy annotations
2022-06-11 17:57:53 +01:00
David Robertson
797b2bd9c7
Remove unused method
2022-06-11 17:57:44 +01:00
David Robertson
a95ab83713
Cast to postgres types when handling postgres db
2022-06-11 17:47:35 +01:00
David Robertson
cfff055fa2
Revert "Changelog"
...
This reverts commit ae09cc2ee4 .
This commit was intended for a different branch.
2022-06-10 19:33:21 +01:00
David Robertson
ae09cc2ee4
Changelog
2022-06-10 19:32:40 +01:00
David Robertson
4579445cc5
Add missing TOC link to poetry cheat sheet ( #13022 )
...
Missed by #12475 .
2022-06-10 15:47:49 +01:00
Patrick Cloke
84cd0fe4e2
Fix-up the contrib/graph scripts. ( #13013 )
...
* Clarifies comments and documentation.
* Adds type-hints.
* Fixes Python 3 compatibility (and runs pyupgrade).
* Updates for changes in Synapse internals.
2022-06-10 08:30:14 -04:00
Patrick Cloke
81608490e3
Stop depending on room_id to be returned for children state in the hierarchy response. ( #12991 )
...
The `room_id` field was removed from MSC2946 before
it was accepted. It was initially kept for backwards compatibility
and should be removed now that the stable form of the API
is used.
This change only stops Synapse from validating that it is returned,
a future PR will remove returning it as part of the response.
2022-06-10 07:15:51 -04:00
reivilibre
3d1d510fa9
Enable testing against PostgreSQL databases in Complement CI. ( #12965 )
2022-06-09 14:16:34 +01:00
Patrick Cloke
1df22e16df
Fix example of running complement.sh. ( #12990 )
2022-06-09 07:21:15 -04:00
Richard van der Hoff
7c6b2204d1
Faster joins: add issue links to the TODOs ( #13004 )
...
... to help us keep track of these things
2022-06-09 10:13:03 +00:00
David Robertson
97053c9406
Type annotations for test_v2 ( #12985 )
2022-06-09 09:48:04 +01:00
Nick Mills-Barrett
04ca3a52f6
Use READ COMMITTED isolation level when inserting read receipts ( #12957 )
2022-06-09 09:44:16 +01:00
Patrick Cloke
dd2d66b0c9
Move the (unstable) dir parameter for /relations behind an experimental flag. ( #12984 )
...
MSC3715 defines this parameter, but the unstable version of it should be
behind an experimental flag.
2022-06-08 09:00:35 -04:00
reivilibre
3c8f1290b8
Use a GitHub form for issues rather than a hard-to-read, easy-to-ignore template. ( #12982 )
...
Co-authored-by: Brendan Abolivier <babolivier@matrix.org >
2022-06-08 11:11:02 +00:00
reivilibre
67f51c84f8
Merge the Complement testing Docker images into a single, multi-purpose image. ( #12881 )
...
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com >
2022-06-08 09:57:05 +00:00
James
c316fe8d4a
Docker Compose Worker Documentation and Examples ( #12737 )
2022-06-08 10:26:42 +01:00
Sean Quah
3c1c40d843
Clean up the test code for client disconnections ( #12929 )
...
* Reword failure message about `await_result=False`
* Use `reactor.advance()` instead of `reactor.pump()`
* Raise `AssertionError`s ourselves
* Un-instance method `_test_disconnect`
* Replace `ThreadedMemoryReactorClock` with `MemoryReactorClock`
2022-06-07 18:17:32 +01:00
David Robertson
586bfc6dc0
Use dummy fallback engines if imports fail ( #12979 )
2022-06-07 17:33:55 +01:00
Sean Quah
a10cc5f824
Test cancellation at every await during request handling ( #12674 )
...
* Add tests for `/rooms/<room_id>/members` cancellation.
* Add tests for `/rooms/<room_id>/state` cancellation.
Signed-off-by: Sean Quah <seanq@element.io >
2022-06-07 17:14:47 +01:00
Olivier Wilkinson (reivilibre)
00d915b2a7
Merge branch 'master' into develop
2022-06-07 16:59:41 +01:00
Daniel Aloni
b5a3aecf18
Return the same error message from /login when password is incorrect and when account doesn't exist. ( #12738 )
2022-06-07 14:58:48 +00:00
David Robertson
f30bcbd84a
Fix Synapse git info missing in version strings ( #12973 )
2022-06-07 15:24:11 +01:00
Erik Johnston
a7e506ddee
Reduce amount of state we pull out when attempting to send catchup PDUs. ( #12963 )
...
* Don't pull out state for catchup
* Newsfile
* Merge newsfile
2022-06-07 14:35:56 +01:00
Olivier Wilkinson (reivilibre)
8a499d7a60
Correct typographical errors in the changelog
v1.61.0rc1
2022-06-07 14:22:06 +01:00
Olivier Wilkinson (reivilibre)
495fbf5d63
1.61.0rc1
2022-06-07 13:18:02 +01:00
Patrick Cloke
d2fd7f7b5c
Fix a stale comment in get_room_version_id_txn. ( #12969 )
2022-06-07 07:44:31 -04:00
Patrick Cloke
9dc3293e0b
Consolidate the logic of delete_device/delete_devices. ( #12970 )
...
By always using delete_devices and sometimes passing a list
with a single device ID.
Previously these methods had gotten out of sync with each
other and it seems there's little benefit to the single-device
variant.
2022-06-07 07:43:35 -04:00
Olivier Wilkinson (reivilibre)
a68dfef1f7
Fix Debian changelog
2022-06-07 12:42:23 +01:00