summary refs log tree commit diff
path: root/tests/util (follow)
Commit message (Expand)AuthorAgeFilesLines
* Better return type for `get_all_entities_changed` (#14604)Erik Johnston2022-12-051-8/+12
* Compare to the earliest known stream pos in the stream change cache. (#14435)Patrick Cloke2022-12-051-25/+13
* Add missing types to tests.util. (#14597)Patrick Cloke2022-12-0219-266/+357
* Add missing type hints to test.util.caches (#14529)Patrick Cloke2022-11-225-61/+69
* Save login tokens in database (#13844)Quentin Gliech2022-10-261-28/+0
* Remove unused `@lru_cache` decorator (#13595)Nick Mills-Barrett2022-10-251-36/+4
* Bump flake8-bugbear from 21.3.2 to 22.9.23 (#14042)dependabot[bot]2022-10-191-1/+1
* Don't require `setuptools_rust` at runtime (#13952)David Robertson2022-09-291-2/+18
* Fix `have_seen_event` cache not being invalidated (#13863)Eric Eastwood2022-09-271-1/+32
* Make DictionaryCache have better expiry properties (#13292)Erik Johnston2022-07-211-4/+31
* Move the "email unsubscribe" resource, refactor the macaroon generator & simp...Quentin Gliech2022-06-141-0/+146
* Add config flags to allow for cache auto-tuning (#12701)Shay2022-05-131-1/+57
* Immediately retry any requests that have backed off when a server comes back ...Erik Johnston2022-05-101-0/+80
* Update `delay_cancellation` to accept any awaitable (#12468)Sean Quah2022-04-221-2/+31
* Fix edge case where a `Linearizer` could get stuck (#12358)Sean Quah2022-04-051-4/+47
* Update docstrings for `ReadWriteLock` tests (#12354)Sean Quah2022-04-051-6/+6
* Refactor and convert `Linearizer` to async (#12357)Sean Quah2022-04-051-2/+2
* Convert `Linearizer` tests from `inlineCallbacks` to async (#12353)Sean Quah2022-04-051-91/+133
* Try to detect borked package installations. (#12244)David Robertson2022-03-181-1/+14
* Add cancellation support to `@cached` and `@cachedList` decorators (#12183)Sean Quah2022-03-141-2/+145
* Add cancellation support to `ReadWriteLock` (#12120)Sean Quah2022-03-141-58/+337
* Add `delay_cancellation` utility function (#12180)Sean Quah2022-03-141-6/+118
* Allow for ignoring some arguments when caching. (#12189)Patrick Cloke2022-03-091-3/+81
* Merge branch 'master' into developOlivier Wilkinson (reivilibre)2022-03-081-0/+19
|\
| * Fix a bug introduced in 1.54.0rc1 which meant that Synapse would refuse to st...reivilibre2022-03-081-0/+19
* | Merge remote-tracking branch 'origin/release-v1.54' into developRichard van der Hoff2022-03-041-2/+19
|\|
| * Don't impose version checks on dev extras at runtime (#12129)David Robertson2022-03-031-2/+19
* | Add test for `ObservableDeferred`'s cancellation behaviour (#12149)Sean Quah2022-03-041-0/+28
|/
* Use importlib.metadata to read requirements (#12088)David Robertson2022-03-011-0/+95
* Fix rare error in `ReadWriteLock` when writers complete immediately (#12105)Sean Quah2022-03-011-0/+30
* Add `stop_cancellation` utility function (#12106)Sean Quah2022-03-011-0/+45
* Fix 'Unhandled error in Deferred' (#12089)Richard van der Hoff2022-03-011-5/+5
* Improve exception handling for concurrent execution (#12109)Richard van der Hoff2022-03-011-2/+113
* Replace assertEquals and friends with non-deprecated versions. (#12092)Patrick Cloke2022-02-286-151/+151
* Remove `HomeServer.get_datastore()` (#12031)Richard van der Hoff2022-02-231-2/+2
* Re-apply: Move glob_to_regex and re_word_boundary to matrix-python-common #11...reivilibre2022-01-051-59/+0
* Improve opentracing support for `ResponseCache` (#11607)Richard van der Hoff2021-12-201-11/+34
* Add missing type hints to `synapse.logging.context` (#11556)Sean Quah2021-12-141-35/+0
* Revert "Move `glob_to_regex` and `re_word_boundary` to `matrix-python-common`...Sean Quah2021-12-071-0/+59
* Move `glob_to_regex` and `re_word_boundary` to `matrix-python-common` (#11505)Sean Quah2021-12-061-59/+0
* Fix `LruCache` corruption bug with a `size_callback` that can return 0 (#11454)Sean Quah2021-11-301-0/+12
* Additional test for `cachedList` (#11246)Richard van der Hoff2021-11-041-0/+43
* ObservableDeferred: run observers in order (#11229)Richard van der Hoff2021-11-022-4/+69
* Use direct references for configuration variables (part 4). (#10893)Patrick Cloke2021-09-231-1/+1
* Use inline type hints in `tests/` (#10350)Jonathan de Jong2021-07-132-10/+10
* Add support for evicting cache entries based on last access time. (#10205)Erik Johnston2021-07-051-1/+45
* Extend `ResponseCache` to pass a context object into the callback (#10157)Richard van der Hoff2021-06-141-7/+68
* Rewrite the KeyRing (#10035)Erik Johnston2021-06-021-21/+16
* Fix up `BatchingQueue` (#10078)Erik Johnston2021-05-271-2/+76
* Combine `LruCache.invalidate` and `invalidate_many` (#9973)Richard van der Hoff2021-05-271-3/+3
* Add missing type hints to synapse.util (#9982)Patrick Cloke2021-05-241-2/+2
* Remove `keylen` from `LruCache`. (#9993)Richard van der Hoff2021-05-242-4/+6
* Don't hammer the database for destination retry timings every ~5mins (#10036)Erik Johnston2021-05-211-7/+11
* Add a batching queue implementation. (#10017)Erik Johnston2021-05-211-0/+169
* Minor `@cachedList` enhancements (#9975)Richard van der Hoff2021-05-141-3/+14
* Change the format of access tokens away from macaroons (#5588)Richard van der Hoff2021-05-121-1/+7
* Merge pull request from GHSA-x345-32rc-8h85Richard van der Hoff2021-05-111-0/+59
* Merge branch 'master' into developAndrew Morgan2021-04-201-4/+2
|\
| * Always use the name as the log ID. (#9829)Patrick Cloke2021-04-201-4/+2
* | Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-1421-21/+0
|/
* Use mock from the stdlib. (#9772)Patrick Cloke2021-04-094-6/+4
* Bugbear: Add Mutable Parameter fixes (#9682)Jonathan de Jong2021-04-081-2/+4
* Record more information into structured logs. (#9654)Patrick Cloke2021-04-082-28/+14
* Add type hints to DictionaryCache and TTLCache. (#9442)Patrick Cloke2021-03-291-1/+3
* Add ResponseCache tests. (#9458)Jonathan de Jong2021-03-081-0/+131
* Update black, and run auto formatting over the codebase (#9381)Eric Eastwood2021-02-164-15/+23
* Clean up caching/locking of OIDC metadata load (#9362)Richard van der Hoff2021-02-161-0/+161
* Fix chain cover update to handle events with duplicate auth events (#9210)Erik Johnston2021-01-221-0/+12
* Fix event chain bg update. (#9118)Erik Johnston2021-01-141-0/+8
* Use a chain cover index to efficiently calculate auth chain difference (#8868)Erik Johnston2021-01-111-1/+40
* Empty iterables should count towards cache usage. (#9028)Patrick Cloke2021-01-061-23/+50
* Implement and use an @lru_cache decorator (#8595)Richard van der Hoff2020-10-301-1/+59
* Add some more testsRichard van der Hoff2020-10-212-0/+147
* Push some deferred wrangling down into DeferredCacheRichard van der Hoff2020-10-212-12/+11
* Combine the two sets of tests for CacheDescriptorRichard van der Hoff2020-10-211-0/+230
* Fix 'LruCache' object has no attribute '_on_resize' (#8591)Richard van der Hoff2020-10-191-1/+7
* Add `DeferredCache.get_immediate` method (#8568)Richard van der Hoff2020-10-191-4/+23
* Make LruCache register its own metrics (#8561)Richard van der Hoff2020-10-161-2/+2
* Combine the two sets of DeferredCache testsRichard van der Hoff2020-10-141-2/+75
* move DeferredCache into its own moduleRichard van der Hoff2020-10-142-44/+64
* Rename Cache->DeferredCacheRichard van der Hoff2020-10-141-2/+2
* Stop sub-classing object (#8249)Patrick Cloke2020-09-042-12/+12
* Convert ReadWriteLock to async/await. (#8202)Patrick Cloke2020-08-281-2/+4
* Reduce run-times of tests by advancing the reactor less (#7757)Andrew Morgan2020-08-271-1/+1
* Remove the unused inlineCallbacks code-paths in the caching code (#8119)Patrick Cloke2020-08-191-6/+6
* Remove : from allowed client_secret chars (#8101)Andrew Morgan2020-08-181-3/+0
* Convert some util functions to async (#8035)Patrick Cloke2020-08-061-33/+11
* Fix some spelling mistakes / typos. (#7811)Patrick Cloke2020-07-091-2/+2
* Fix inconsistent handling of upper and lower cases of email addresses. (#7021)Dirk Klimpel2020-07-031-0/+49
* Replace all remaining six usage with native Python 3 equivalents (#7704)Dagfinn Ilmari Mannsåker2020-06-162-3/+1
* Add test for Linearizer.is_queued(..)Erik Johnston2020-05-271-0/+32
* Allow configuration of Synapse's cache without using synctl or environment va...Amber Brown2020-05-113-8/+5
* Extend StreamChangeCache to support multiple entities per stream ID (#7303)Richard van der Hoff2020-04-221-9/+60
* Clean up some LoggingContext stuff (#7120)Richard van der Hoff2020-03-244-28/+37
* Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957)Patrick Cloke2020-02-211-13/+5
* Validate client_secret parameter (#6767)Andrew Morgan2020-01-241-0/+51
* Log saml assertions rather than the whole responseRichard van der Hoff2020-01-161-0/+47
* Merge pull request #6505 from matrix-org/erikj/make_deferred_yiedableErik Johnston2019-12-101-0/+24
|\
| * Fix make_deferred_yieldable to work with coroutinesErik Johnston2019-12-101-0/+24
* | Remove SnapshotCache in favour of ResponseCacheErik Johnston2019-12-091-63/+0
|/
* Make ObservableDeferred.observe() always return deferred.Erik Johnston2019-10-301-2/+2
* Quick fix to ensure cache descriptors always return deferredsErik Johnston2019-10-281-2/+2
* Add 'failure_ts' column to 'destinations' table (#6016)Richard van der Hoff2019-09-171-0/+127
* Retry well-known lookup before expiry.Erik Johnston2019-08-131-2/+2
* Fix some error cases in the caching layer. (#5749)Richard van der Hoff2019-07-251-3/+87
* Replace returnValue with return (#5736)Amber Brown2019-07-231-4/+4
* Fixes to the federation rate limiter (#5621)Richard van der Hoff2019-07-051-0/+97
* Move logging utilities out of the side drawer of util/ and into logging/ (#5606)Amber Brown2019-07-045-47/+44
* Fix media repo breaking (#5593)Amber Brown2019-07-021-12/+21
* Run Black. (#5482)Amber Brown2019-06-202-53/+53
* Run Black on the tests again (#5170)Amber Brown2019-05-101-12/+11
* Remove periods from copyright headers (#5046)Andrew Morgan2019-04-111-1/+1
* Add a caching layer to .well-known responses (#4516)Richard van der Hoff2019-01-301-0/+83
* Fix incorrect logcontexts after a Deferred was cancelled (#4407)Richard van der Hoff2019-01-171-0/+104
* Include eventid in log lines when processing incoming federation transactions...Richard van der Hoff2018-09-271-0/+5
* Fix some instances of ExpiringCache not expiring cache itemsErik Johnston2018-09-211-1/+0
* Run black.black2018-08-1010-76/+41
* Rename async to async_helpers because `async` is a keyword on Python 3.7 (#3678)Amber Brown2018-08-102-2/+2
* fix invalidationRichard van der Hoff2018-07-271-1/+41
* Rewrite cache list decoratorRichard van der Hoff2018-07-271-0/+61
* Test and fix support for cancellation in LinearizerRichard van der Hoff2018-07-201-0/+31
* Combine Limiter and LinearizerRichard van der Hoff2018-07-202-70/+47
* Add a sleep to the Limiter to fix stack overflows.Richard van der Hoff2018-07-201-4/+4
* Add unit testErik Johnston2018-07-171-0/+16
* Fixup unit testErik Johnston2018-07-131-3/+3
* run isortAmber Brown2018-07-0914-30/+38
* Reinstate lost run_on_reactor in unit testRichard van der Hoff2018-07-041-2/+15
* Disable partial state group caching for wildcard lookupsRichard van der Hoff2018-06-221-6/+6
* Pass around the reactor explicitly (#3385)Amber Brown2018-06-223-11/+13
* Remove run_on_reactor (#3395)Amber Brown2018-06-141-2/+0
* Port to sortedcontainers (with tests!) (#3332)Amber Brown2018-06-061-0/+198
* fix another dumb typoMatthew Hodgson2018-05-291-2/+2
* Merge branch 'develop' into rav/more_logcontext_leaksRichard van der Hoff2018-05-021-0/+38
|\
| * Fix incorrect reference to StringIORichard van der Hoff2018-05-021-0/+38
* | Remove spurious unittest.DEBUGRichard van der Hoff2018-05-021-1/+0
* | Fix a class of logcontext leaksRichard van der Hoff2018-05-021-11/+56
|/
* Merge branch 'develop' into rav/deferred_timeoutRichard van der Hoff2018-04-272-2/+3
|\
| * Make tests py3 compatibleAdrian Tschira2018-04-162-2/+3
* | Use deferred.addTimeout instead of time_bound_deferredRichard van der Hoff2018-04-231-33/+0
|/
* Fix overzealous cache invalidationRichard van der Hoff2018-04-051-0/+46
* Merge pull request #2804 from matrix-org/erikj/file_consumerErik Johnston2018-01-181-0/+176
|\
| * Move test stuff to testsErik Johnston2018-01-181-8/+46
| * Add decent impl of a FileConsumerErik Johnston2018-01-171-0/+138
* | Optimise LoggingContext creation and copyingRichard van der Hoff2018-01-161-8/+8
|/
* Fix name of test_logcontextRichard van der Hoff2017-10-171-0/+0
* Add some tests for make_deferred_yieldableRichard van der Hoff2017-10-171-0/+38
* Fix stackoverflow and logcontexts from linearizerRichard van der Hoff2017-10-111-4/+24
* Make get_state_groups_from_groups faster.Erik Johnston2017-05-171-1/+1
* Fix up testsErik Johnston2017-03-302-1/+41
* Fix the logcontext handling in the cache wrappers (#2077)Richard van der Hoff2017-03-301-0/+91
* Merge pull request #2052 from matrix-org/rav/time_bound_deferredRichard van der Hoff2017-03-231-0/+33
|\
| * Fix time_bound_deferred to throw the right exceptionRichard van der Hoff2017-03-231-0/+33
* | Fix caching of remote servers' signature keysRichard van der Hoff2017-03-222-0/+100
|/
* Stop preserve_fn leaking context into the reactorRichard van der Hoff2017-03-181-0/+61
* Tidy up testErik Johnston2017-01-171-12/+12
* Speed up cache size calculationErik Johnston2017-01-171-15/+15
* Add ExpiringCache testsErik Johnston2017-01-161-0/+84
* Optionally measure size of cache by sum of length of valuesErik Johnston2017-01-131-0/+25
* Add Limiter: limit concurrent access to resourceErik Johnston2016-11-101-0/+70
* Ensure invalidation list does not grow unboundedlyErik Johnston2016-08-191-0/+40
* Add concept of cache contextsErik Johnston2016-08-191-0/+113
* Add ReadWriteLockErik Johnston2016-07-051-0/+85
* Deduplicate joinsErik Johnston2016-04-071-0/+44
* Add a test for TreeCache.__contains__Mark Haines2016-02-221-0/+6
* Fix flake8 warnings for testsMark Haines2016-02-194-2/+2
* Add wheeltimer implErik Johnston2016-02-171-0/+74
* Fix testErik Johnston2016-02-091-9/+1
* Add testsErik Johnston2016-01-292-0/+19
* Revert all the bits changing keys of eeverything that used LRUCaches to tuplesDavid Baker2016-01-221-22/+22
* Make LRU cache not default to treecache & add options to use itDavid Baker2016-01-221-1/+2
* Test treecache directlyDavid Baker2016-01-221-0/+19
* Add tests for treecache directly and test del_multi at the LruCache level too.David Baker2016-01-221-0/+66
* Change LRUCache to be tree-based so we can delete subtrees.David Baker2016-01-211-22/+22
* copyrightsMatthew Hodgson2016-01-074-4/+4
* Add a unit test for the snapshot cacheMark Haines2015-12-231-0/+60
* Remove the LockManager class because it wasn't being usedMark Haines2015-11-041-108/+0
* Move all the caches into their own package, synapse.util.cachesErik Johnston2015-08-112-4/+2
* Move DictionaryCacheErik Johnston2015-08-041-1/+1
* Add basic dictionary cacheErik Johnston2015-08-041-0/+101
* Add a lru cache classMark Haines2015-02-111-0/+56
* Add a request-id to each log lineMark Haines2014-10-301-0/+43
* Have all unit tests import from our own subclass of trial's unittest TestCase...Paul "LeoNerd" Evans2014-09-121-2/+2
* fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org has...Matthew Hodgson2014-09-032-2/+2
* add in copyrights to everything, not just the synapse subdir, and add a copyr...Matthew Hodgson2014-08-132-0/+28
* Reference Matrix Home Servermatrix.org2014-08-122-0/+95