summary refs log tree commit diff
path: root/tests/util (follow)
Commit message (Expand)AuthorAgeFilesLines
* 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