summary refs log tree commit diff
path: root/tests (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-06-24send SNI for federation requestsJeroen1-0/+2
2018-06-22Revert "Merge pull request #3431 from matrix-org/rav/erasure_visibility"Richard van der Hoff8-214/+26
This reverts commit ce0d911156b355c5bf452120bfb08653dad96497, reversing changes made to b4a5d767a94f1680d07edfd583aae54ce422573e.
2018-06-22Deleting from event_push_actions needs to use an indexMark Haines1-1/+8
2018-06-22Also log number of events for serach contextErik Johnston1-0/+5
2018-06-22Add some logging to search queriesErik Johnston1-0/+9
2018-06-22Make _get_joined_hosts_cache cache non-iterableErik Johnston1-1/+1
2018-06-22Make push actions rotation configurableErik Johnston1-3/+5
2018-06-22Disable partial state group caching for wildcard lookupsRichard van der Hoff3-32/+61
When _get_state_for_groups is given a wildcard filter, just do a complete lookup. Hopefully this will give us the best of both worlds by not filling up the ram if we only need one or two keys, but also making the cache still work for the federation reader usecase.
2018-06-22Indirect evt_count updates via method callRichard van der Hoff2-1/+12
so that we can stub it for the sentinel and not have a billion failing UTs
2018-06-22Pass around the reactor explicitly (#3385)Amber Brown25-93/+141
2018-06-21Fix description of "python_gc_time" metricRichard van der Hoff1-1/+1
2018-06-21Populate synapse_federation_client_sent_pdu_destinations:count again (#3386)Amber Brown1-3/+7
2018-06-21Fix tcp protocol metrics naming (#3410)Amber Brown1-18/+35
2018-06-21Log number of events fetched from DBRichard van der Hoff3-1/+12
When we finish processing a request, log the number of events we fetched from the database to handle it. [I'm trying to figure out which requests are responsible for large amounts of event cache churn. It may turn out to be more helpful to add counts to the prometheus per-request/block metrics, but that is an extension to this code anyway.]
2018-06-20Write a clear restart indicator in logsRichard van der Hoff2-12/+19
I'm fed up with never being able to find the point a server restarted in the logs.
2018-06-20Fix inflight requests metric (incorrect name & traceback) (#3413)Amber Brown1-3/+7
2018-06-16spell gauge correctlyMatthew Hodgson1-1/+1
2018-06-14link to spec proposal from changelog v0.31.2 github/release-v0.31.2 release-v0.31.2Richard van der Hoff1-0/+3
2018-06-14v0.31.2Richard van der Hoff1-1/+2
2018-06-14changelog for 0.31.2Richard van der Hoff1-0/+6
2018-06-14Fix broken unit testRichard van der Hoff1-2/+14
We need power levels for this test to do what it is supposed to do.
2018-06-14remove spurious debugRichard van der Hoff1-2/+0
2018-06-14Add error code to room creation errorMichael Wagner1-2/+6
This error code is mentioned in the documentation at https://matrix.org/docs/api/client-server/#!/Room32creation/createRoom
2018-06-14Make default state_default 50Richard van der Hoff2-20/+167
Make it so that, before there is a power-levels event in the room, you need a power level of at least 50 to send state. Partially addresses https://github.com/matrix-org/matrix-doc/issues/1192
2018-06-14Clarify interface for event_authRichard van der Hoff1-18/+16
stop pretending that it returns a boolean, which just almost gave me a heart attack.
2018-06-14add a last seen metric (#3396)Amber Brown1-0/+21
2018-06-14Refactor get_send_level to take a power_levels eventRichard van der Hoff2-8/+39
it makes it easier for me to reason about
2018-06-14Remove run_on_reactor (#3395)Amber Brown13-63/+6
2018-06-12Use the RegistryProxy for appservices tooTravis Ralston1-1/+2
Signed-off-by: Travis Ralston <travpc@gmail.com>
2018-06-12The flag is named enable_metrics, not collect_metricsTravis Ralston11-11/+11
Signed-off-by: Travis Ralston <travpc@gmail.com>
2018-06-12Fix federation_client to send the right HostRichard van der Hoff1-14/+51
This appears to have stopped working since matrix.org moved to cloudflare. The Host header should match the name of the server, not whatever is in the SRV record.
2018-06-12Filter out erased messagesRichard van der Hoff2-22/+68
Redact any messges sent by erased users.
2018-06-12mark accounts as erased when requestedRichard van der Hoff3-4/+20
2018-06-12UserErasureStoreRichard van der Hoff3-0/+126
to store which users have been erased
2018-06-12simplify get_persisted_pduRichard van der Hoff2-30/+27
it doesn't make much sense to use get_persisted_pdu on the receive path: just get the event straight from the store.
2018-06-12remove dead filter_events_for_clientsRichard van der Hoff3-92/+35
This is only used by filter_events_for_client, so we can simplify the whole thing by just doing one user at a time, and removing a dead storage function to boot.
2018-06-11Optimise state_group_cache updateRichard van der Hoff1-5/+1
(1) matrix-org-hotfixes has removed the intern calls; let's do the same here. (2) remove redundant iteritems() so we can used an optimised db update.
2018-06-11fix idiotic typo in state resMatthew Hodgson1-2/+2
2018-06-08tweak changelog v0.31.1 github/release-v0.31.1 release-v0.31.1Neil Johnson1-2/+4
2018-06-08Update CHANGES.rstNeil Johnson1-1/+1
2018-06-08changelog a bump versionNeil Johnson2-1/+11
2018-06-08Fix event filtering in get_missing_events handlerRichard van der Hoff1-0/+4
2018-06-08fix various changelog bugs and typosMatthew Hodgson1-4/+3
2018-06-08Try to log more helpful info when a sig verification failsRichard van der Hoff1-6/+25
Firstly, don't swallow the reason for the failure Secondly, don't assume all exceptions are verification failures Thirdly, log a bit of info about the key being used if debug is enabled
2018-06-08Fix event filtering in get_missing_events handlerRichard van der Hoff1-0/+4
2018-06-07fix various changelog bugs and typosMatthew Hodgson1-4/+3
2018-06-07fix logRichard van der Hoff1-1/+1
2018-06-07Fix event-purge-by-ts admin APIRichard van der Hoff1-6/+4
This got completely broken in 0.30. Fixes #3300.
2018-06-06Add missing dependency on attrRichard van der Hoff1-0/+1
We've rcently added a dep on `attr`. I don't know why the CI didn't pick this up, but we should make it explicit anyway.
2018-06-06Fix sql error in _get_state_groups_from_groupsRichard van der Hoff1-1/+1
If this was called with a `(type, None)` entry in types (which is supposed to return all state of type `type`), it would explode with a sql error.
2018-06-067 char sha in changelog v0.31.0 github/release-v0.31.0 release-v0.31.0Neil Johnson1-3/+3
2018-06-06Update CHANGES.rstNeil Johnson1-4/+4
2018-06-06bump version and changelogNeil Johnson2-3/+12
2018-06-06also redact __str__ of ApplicationService used for loggingMichael Telatynski1-1/+5
2018-06-06redact_uri in two missed log pathsMichael Telatynski1-2/+2
2018-06-06pep8David Baker1-3/+3
2018-06-06More doc fixesDavid Baker1-2/+2
2018-06-06Fix metric documentation tables (#3341)Amber Brown1-20/+30
2018-06-06Add note to changelog on prometheus metricsRichard van der Hoff1-1/+4
2018-06-06Fix metric documentation tables (#3341)Amber Brown1-20/+30
2018-06-06federation/send_queue.py: fix usage of sortedcontainers.SortedDictIvan Shapovalov1-27/+22
2018-06-05update tox.ini to cover 292 succeeding testsKrombel1-11/+19
Signed-Off-By: Matthias Kesler <krombel@krombel.de>
2018-06-05factor out uri redaction into a method on httpMichael Telatynski3-13/+17
2018-06-05fix pep8David Baker1-3/+5
2018-06-05doc fixesDavid Baker2-7/+7
2018-06-05Let's try labels instead of label, that might workWill Hunt1-3/+3
2018-06-06Port to sortedcontainers (with tests!) (#3332)Amber Brown6-35/+241
2018-06-05Add metrics to track appservice transactionsWill Hunt1-0/+22
2018-06-04doc/postgres.rest: fix displaying of the last command blockBruno Pagani1-9/+9
Also indent all of them with 4 spaces.
2018-06-04Fix replication metricsRichard van der Hoff1-2/+2
fix bug introduced in #3256
2018-06-04bump version and changelog v0.31.0-rc1Neil Johnson2-1/+47
2018-06-04Hopefully, fix LaterGuage error handlingRichard van der Hoff1-3/+6
2018-06-04Add hacky cache factor override systemErik Johnston4-4/+18
2018-06-04DocstringDavid Baker1-0/+14
2018-06-04Fix commentDavid Baker1-1/+1
2018-06-04Missing yieldDavid Baker1-1/+1
2018-06-04docstringDavid Baker1-1/+9
2018-06-04Put python's logs into Trial when running unit tests (#3319)Amber Brown1-13/+27
2018-06-03federation/send_queue.py: fix usage of LaterGaugeIvan Shapovalov1-1/+1
Fixes a startup crash due to commit df9f72d9e5fe264b86005208e0f096156eb03e4b "replacing portions".
2018-06-02Strip `access_token` from outgoing requests using existing regexMichael Telatynski1-1/+6
2018-06-01Remove was_forgotten_atRichard van der Hoff1-26/+0
This is unused. IT MUST DIE!!!1 ̧̪͈̱̹̳͖͙H̵̰̤̰͕̖e̛ ͚͉̗̼̞w̶̩̥͉̮h̩̺̪̩͘ͅọ͎͉̟ ̜̩͔̦̘ͅW̪̫̩̣̲͔̳a͏͔̳͖i͖͜t͓̤̠͓͙s̘̰̩̥̙̝ͅ ̲̠̬̥Be̡̙̫̦h̰̩i̛̫͙͔̭̤̗̲n̳͞d̸ ͎̻͘T̛͇̝̲̹̠̗ͅh̫̦̝ͅe̩̫͟ ͓͖̼W͕̳͎͚̙̥ą̙l̘͚̺͔͞ͅl̳͍̙̤̤̮̳.̢ ̟̺̜̙͉Z̤̲̙̙͎̥̝A͎̣͔̙͘L̥̻̗̳̻̳̳͢G͉̖̯͓̞̩̦O̹̹̺!̙͈͎̞̬ *
2018-06-01Handle RRs which arrive before their eventsRichard van der Hoff1-25/+19
2018-06-01Ignore depth when updating read-receiptsRichard van der Hoff1-30/+37
Order read receipts by stream ordering instead of depth
2018-06-01Add private IPv6 addresses to preview blacklist #3312Felix Schäfer1-0/+3
The added addresses are expected to be local or loopback addresses and shouldn't be spidered for previews. Signed-off-by: Felix Schäfer <felix@thegcat.net>
2018-06-01remove unnecessary INSERTNeil Johnson1-1/+0
2018-05-31code_style.rst: formattingRichard van der Hoff1-1/+1
2018-05-31