Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Change HomeServer definition to work with typing. | Erik Johnston | 2020-08-11 | 1 | -0/+1 |
| | | | | | | | | | | Duplicating function signatures between server.py and server.pyi is silly. This commit changes that by changing all `build_*` methods to `get_*` methods and changing the `_make_dependency_method` to work work as a descriptor that caches the produced value. There are some changes in other files that were made to fix the typing in server.py. | ||||
* | Rename database classes to make some sense (#8033) | Erik Johnston | 2020-08-05 | 1 | -1/+1 |
| | |||||
* | Fix some comments and types in service notices (#7996) | Patrick Cloke | 2020-07-31 | 1 | -0/+1 |
| | |||||
* | Convert storage layer to async/await. (#7963) | Patrick Cloke | 2020-07-28 | 1 | -0/+1 |
| | |||||
* | Fix up types and comments that refer to Deferreds. (#7945) | Patrick Cloke | 2020-07-24 | 1 | -0/+1 |
| | |||||
* | Lint the contrib/ directory in CI and linting scripts, add synctl to linting ↵ | Andrew Morgan | 2020-07-20 | 1 | -1/+1 |
| | | | | | | | script (#7914) Run `isort`, `flake8` and `black` over the `contrib/` directory and `synctl` script. The latter was already being done in CI, but now the linting script does it too. Fixes https://github.com/matrix-org/synapse/issues/7910 | ||||
* | isort 5 compatibility (#7786) | Will Hunt | 2020-07-05 | 1 | -2/+2 |
| | | | The CI appears to use the latest version of isort, which is a problem when isort gets a major version bump. Rather than try to pin the version, I've done the necessary to make isort5 happy with synapse. | ||||
* | Type checking for `FederationHandler` (#7770) | Richard van der Hoff | 2020-07-01 | 1 | -0/+1 |
| | | | fix a few things to make this pass mypy. | ||||
* | Make tox actions work on Debian 10 (#7703) | Dagfinn Ilmari Mannsåker | 2020-06-25 | 1 | -4/+2 |
| | | | | | | - Remove the requirement for a specific version of Python - Move dep comment to a separate line, Tox 3.7.0 like trailing ones Signed-off-by: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> | ||||
* | Clean up exception handling in SAML2ResponseResource (#7614) | Richard van der Hoff | 2020-06-03 | 1 | -0/+1 |
| | | | | | | | | | | | | | * Expose `return_html_error`, and allow it to take a Jinja2 template instead of a raw string * Clean up exception handling in SAML2ResponseResource * use the existing code in `return_html_error` instead of re-implementing it (giving it a jinja2 template rather than inventing a new form of template) * do the exception-catching in the REST layer rather than in the handler layer, to make sure we catch all exceptions. | ||||
* | mypy for synapse.http.site (#7553) | Richard van der Hoff | 2020-05-22 | 1 | -0/+1 |
| | |||||
* | fix mypy for tests/replication (#7518) | Richard van der Hoff | 2020-05-18 | 1 | -1/+1 |
| | |||||
* | Add type hints to room member handlers (#7513) | Patrick Cloke | 2020-05-15 | 1 | -0/+2 |
| | |||||
* | Add type hints to event_auth code. (#7505) | Patrick Cloke | 2020-05-15 | 1 | -0/+1 |
| | |||||
* | Merge branch 'release-v1.13.0' into develop | Andrew Morgan | 2020-05-11 | 1 | -0/+1 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * release-v1.13.0: Don't UPGRADE database rows RST indenting Put rollback instructions in upgrade notes Fix changelog typo Oh yeah, RST Absolute URL it is then Fix upgrade notes link Provide summary of upgrade issues in changelog. Fix ) Move next version notes from changelog to upgrade notes Changelog fixes 1.13.0rc1 Documentation on setting up redis (#7446) Rework UI Auth session validation for registration (#7455) Fix errors from malformed log line (#7454) Drop support for redis.dbid (#7450) | ||||
| * | Rework UI Auth session validation for registration (#7455) | Patrick Cloke | 2020-05-08 | 1 | -0/+1 |
| | | | | | | | | Be less strict about validation of UI authentication sessions during registration to match client expecations. | ||||
* | | Implement OpenID Connect-based login (#7256) | Quentin Gliech | 2020-05-08 | 1 | -0/+1 |
| | | |||||
* | | Add more type hints to SAML handler. (#7445) | Patrick Cloke | 2020-05-07 | 1 | -0/+1 |
| | | |||||
* | | Fix typing annotations in synapse/federation (#7382) | Richard van der Hoff | 2020-05-05 | 1 | -5/+1 |
| | | | | | | | | We're pretty close to having mypy working for `synapse.federation`, so let's finish the job. | ||||
* | | Add MultiWriterIdGenerator. (#7281) | Erik Johnston | 2020-05-04 | 1 | -0/+1 |
|/ | | | | | | This will be used to coordinate stream IDs across multiple writers. Functions as the equivalent of both `StreamIdGenerator` and `SlavedIdTracker`. | ||||
* | Persist user interactive authentication sessions (#7302) | Patrick Cloke | 2020-04-30 | 1 | -1/+2 |
| | | | | | By persisting the user interactive authentication sessions to the database, this fixes situations where a user hits different works throughout their auth session and also allows sessions to persist through restarts of Synapse. | ||||
* | Fix limit logic for EventsStream (#7358) | Richard van der Hoff | 2020-04-29 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | | | * Factor out functions for injecting events into database I want to add some more flexibility to the tools for injecting events into the database, and I don't want to clutter up HomeserverTestCase with them, so let's factor them out to a new file. * Rework TestReplicationDataHandler This wasn't very easy to work with: the mock wrapping was largely superfluous, and it's useful to be able to inspect the received rows, and clear out the received list. * Fix AssertionErrors being thrown by EventsStream Part of the problem was that there was an off-by-one error in the assertion, but also the limit logic was too simple. Fix it all up and add some tests. | ||||
* | Extend StreamChangeCache to support multiple entities per stream ID (#7303) | Richard van der Hoff | 2020-04-22 | 1 | -1/+3 |
| | | | | | | | | | | | | | | | | | | | First some background: StreamChangeCache is used to keep track of what "entities" have changed since a given stream ID. So for example, we might use it to keep track of when the last to-device message for a given user was received [1], and hence whether we need to pull any to-device messages from the database on a sync [2]. Now, it turns out that StreamChangeCache didn't support more than one thing being changed at a given stream_id (this was part of the problem with #7206). However, it's entirely valid to send to-device messages to more than one user at a time. As it turns out, this did in fact work, because *some* methods of StreamChangeCache coped ok with having multiple things changing on the same stream ID, and it seems we never actually use the methods which don't work on the stream change caches where we allow multiple changes at the same stream ID. But that feels horribly fragile, hence: let's update StreamChangeCache to properly support this, and add some typing and some more tests while we're at it. [1]: https://github.com/matrix-org/synapse/blob/release-v1.12.3/synapse/storage/data_stores/main/deviceinbox.py#L301 [2]: https://github.com/matrix-org/synapse/blob/release-v1.12.3/synapse/storage/data_stores/main/deviceinbox.py#L47-L51 | ||||
* | Do not treat display names as globs for push rules. (#7271) | Patrick Cloke | 2020-04-16 | 1 | -0/+1 |
| | |||||
* | Add typing information to federation_server. (#7219) | Patrick Cloke | 2020-04-07 | 1 | -0/+1 |
| | |||||
* | Refactor the CAS code (move the logic out of the REST layer to a handler) ↵ | Patrick Cloke | 2020-03-26 | 1 | -0/+1 |
| | | | | (#7136) | ||||
* | Add prometheus metrics for the number of active pushers (#7103) | Richard van der Hoff | 2020-03-19 | 1 | -0/+2 |
| | |||||
* | Add type annotations and comments to auth handler (#7063) | Patrick Cloke | 2020-03-12 | 1 | -0/+1 |
| | |||||
* | Allow deleting an alias if the user has sufficient power level (#6986) | Patrick Cloke | 2020-03-04 | 1 | -0/+1 |
| | |||||
* | Add some type annotations to the federation base & client classes (#6995) | Patrick Cloke | 2020-02-28 | 1 | -0/+2 |
| | |||||
* | Add some type annotations in `synapse.storage` (#6987) | Richard van der Hoff | 2020-02-27 | 1 | -2/+3 |
| | | | | | I cracked, and added some type definitions in synapse.storage. | ||||
* | Port PresenceHandler to async/await (#6991) | Erik Johnston | 2020-02-26 | 1 | -0/+1 |
| | |||||
* | Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) | Patrick Cloke | 2020-02-21 | 1 | -0/+1 |
| | | | | Ensure good comprehension hygiene using flake8-comprehensions. | ||||
* | Add type hints to the spam check module (#6915) | Patrick Cloke | 2020-02-14 | 1 | -0/+1 |
| | | | | Add typing information to the spam checker modules. | ||||
* | Add typing to synapse.federation.sender (#6871) | Erik Johnston | 2020-02-07 | 1 | -0/+1 |
| | |||||
* | Add typing to SyncHandler (#6821) | Erik Johnston | 2020-02-03 | 1 | -0/+1 |
| | | | | Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | ||||
* | Fix sending server up commands from workers (#6811) | Erik Johnston | 2020-01-30 | 1 | -0/+1 |
| | | | | Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | ||||
* | Fixup synapse.rest to pass mypy (#6732) | Erik Johnston | 2020-01-20 | 1 | -2/+1 |
| | |||||
* | Fixup synapse.api to pass mypy (#6733) | Erik Johnston | 2020-01-20 | 1 | -0/+1 |
| | |||||
* | Fixup synapse.replication to pass mypy checks (#6667) | Erik Johnston | 2020-01-14 | 1 | -0/+1 |
| | |||||
* | Remove unused, undocumented "content repo" resource (#6628) | Richard van der Hoff | 2020-01-03 | 1 | -1/+0 |
| | | | | | | This looks like it got half-killed back in #888. Fixes #6567. | ||||
* | Bump version of mypy | Erik Johnston | 2019-12-12 | 1 | -1/+1 |
| | |||||
* | Include more folders in mypy | Erik Johnston | 2019-12-12 | 1 | -1/+13 |
| | |||||
* | Add benchmarks for structured logging performance (#6266) | Amber Brown | 2019-12-03 | 1 | -0/+9 |
| | |||||
* | Python 3.8 for tox (#6341) | Richard van der Hoff | 2019-11-07 | 1 | -1/+1 |
| | | | | | | | ... and update INSTALL.md to include py3.8. We'll also have to update the buildkite pipeline to run it | ||||
* | Update black to 19.10b0 (#6304) | Amber Brown | 2019-11-01 | 1 | -2/+2 |
| | | | * update version of black and also fix the mypy config being overridden | ||||
* | Update CI to run isort on scripts and scripts-dev (#6270) | Andrew Morgan | 2019-10-30 | 1 | -1/+1 |
| | |||||
* | Remove redundant arguments to CI's flake8 (#6277) | Andrew Morgan | 2019-10-30 | 1 | -1/+1 |
| | |||||
* | Add comment as to why we're pinning black in tests | Erik Johnston | 2019-10-29 | 1 | -1/+1 |
| | |||||
* | Pin black version | Erik Johnston | 2019-10-29 | 1 | -1/+1 |
| | |||||
* | Add config linting script that checks for bool casing (#6203) | Andrew Morgan | 2019-10-23 | 1 | -0/+1 |
| | | | | | Add a linting script that enforces all boolean values in the default config be lowercase. This has annoyed me for a while so I decided to fix it. | ||||
* | Fix presence timeouts when synchrotron restarts. (#6212) | Erik Johnston | 2019-10-18 | 1 | -1/+1 |
| | | | | | | | | | * Fix presence timeouts when synchrotron restarts. Handling timeouts would fail if there was an external process that had timed out, e.g. a synchrotron restarting. This was due to a couple of variable name typoes. Fixes #3715. | ||||
* | Refactor HomeserverConfig so it can be typechecked (#6137) | Amber Brown | 2019-10-10 | 1 | -2/+1 |
| | |||||
* | Fix for structured logging tests stomping on logs (#6023) | Amber Brown | 2019-09-13 | 1 | -6/+24 |
| | |||||
* | Fix coverage in sytest and use plugins for buildkite (#5922) | Amber Brown | 2019-08-29 | 1 | -13/+9 |
| | |||||
* | Implement a structured logging output system. (#5680) | Amber Brown | 2019-08-28 | 1 | -0/+10 |
| | |||||
* | Run Black. (#5482) | Amber Brown | 2019-06-20 | 1 | -3/+6 |
| | |||||
* | Remove Python 2.7 support. (#5425) | Amber Brown | 2019-06-12 | 1 | -2/+2 |
| | | | | | | | | * remove 2.7 from CI and publishing * fill out classifiers and also make it not be installed on 3.5 * some minor bumps so that the old deps work on python 3.5 | ||||
* | Pin eliot to <1.8 on python 3.5.2 (#5218) | Richard van der Hoff | 2019-05-21 | 1 | -1/+1 |
| | | | | | | | | | | * Pin eliot to <1.8 on python 3.5.2 Fixes https://github.com/matrix-org/synapse/issues/5199 * Add support for 'markers' to python_dependencies * tell xargs not to strip quotes | ||||
* | set PIP_USE_PEP517 = False for tests | Richard van der Hoff | 2019-04-25 | 1 | -0/+5 |
| | | | | | pip 19.1 otherwise complains about "editable mode is not supported for pyproject.toml-style projects" | ||||
* | Add comment back in | Erik Johnston | 2019-03-19 | 1 | -0/+1 |
| | |||||
* | Revert changes | Erik Johnston | 2019-03-19 | 1 | -12/+2 |
| | |||||
* | Bring py27-old into line with other test envs | Erik Johnston | 2019-03-18 | 1 | -0/+14 |
| | |||||
* | Add coverage to py27-old | Erik Johnston | 2019-03-18 | 1 | -3/+6 |
| | |||||
* | Include a default configuration file in the 'docs' directory. (#4791) | Richard van der Hoff | 2019-03-04 | 1 | -0/+3 |
| | |||||
* | Run unit tests against python 3.7 (#4677) | Richard van der Hoff | 2019-02-20 | 1 | -27/+2 |
| | | | | | | | | | | | | * Run unit tests against python 3.7 ... so that we span the full range of our supported python versions * Switch to xenial * fix psql fail * pep8 etc want python 3.6 | ||||
* | Merge pull request #4420 from matrix-org/jaywink/openid-listener | Erik Johnston | 2019-02-11 | 1 | -0/+1 |
|\ | | | | | New listener resource for the federation API "openid/userinfo" endpoint | ||||
| * | Add parameterized Python module to test dependencies | Jason Robinson | 2019-01-23 | 1 | -0/+1 |
| | | | | | | | | | | | | Allows running parameterized tests. BSD license. Signed-off-by: Jason Robinson <jasonr@matrix.org> | ||||
* | | Use native UPSERTs where possible (#4306) | Amber Brown | 2019-01-24 | 1 | -0/+1 |
|/ | |||||
* | Make the dependencies more like a standard Python project and hook up the ↵ | Amber Brown | 2018-12-22 | 1 | -3/+1 |
| | | | | optional dependencies to setuptools (#4298) | ||||
* | Merge branch 'master' into develop | Richard van der Hoff | 2018-12-20 | 1 | -0/+1 |
|\ | |||||
| * | Debian packaging via dh_virtualenv (#4285) | Richard van der Hoff | 2018-12-20 | 1 | -0/+1 |
| | | |||||
* | | Make isort tox check print diff when it fails | Erik Johnston | 2018-12-10 | 1 | -2/+2 |
|/ | |||||
* | Report combined coverage to codecov (#4225) | Amber Brown | 2018-11-28 | 1 | -12/+17 |
| | |||||
* | Add a coveragerc (#4180) | Amber Brown | 2018-11-15 | 1 | -2/+13 |
| | |||||
* | Port hash_password to Python 3 (#4161) | Amber Brown | 2018-11-08 | 1 | -1/+1 |
| | | | | | | * port hash_password * changelog | ||||
* | Attempt to fix tox installs | Richard van der Hoff | 2018-10-30 | 1 | -0/+14 |
| | | | | | | | | | | | | It seems that, at some point, the ability to run tox on old servers (with old setuptools) got broken - and it was only working on our Jenkins instance by dint of reusing the tox environments. Let's try to get tox to do the right thing, and remove the guff from jenkins/prepare_synapse.sh. (There is a separate question about whether the jenkins builds should be using tox to prepare the virtualenv at all here, but that is somewhat orthogonal). | ||||
* | disable coverage checking | Richard van der Hoff | 2018-10-25 | 1 | -4/+1 |
| | | | | | I don't think we ever use this, and it slows things down. If we want to use it, we should just do so on a couple of builds rather than all of them. | ||||
* | Make scripts/ and scripts-dev/ pass pyflakes (and the rest of the codebase ↵ | Amber Brown | 2018-10-20 | 1 | -2/+2 |
| | | | | on py3) (#4068) | ||||
* | Run our oldest supported configuration in CI (#3952) | Amber Brown | 2018-09-27 | 1 | -0/+20 |
| | |||||
* | Fix client IPs being broken on Python 3 (#3908) | Amber Brown | 2018-09-20 | 1 | -0/+10 |
| | |||||
* | Add a way to run tests in PostgreSQL in Docker (#3699) | Amber Brown | 2018-09-20 | 1 | -1/+1 |
| | |||||
* | merge (#3576) | Amber Brown | 2018-09-14 | 1 | -41/+3 |
| | |||||
* | Run tests under PostgreSQL (#3423) | Amber Brown | 2018-08-13 | 1 | -1/+19 |
| | |||||
* | rename 'isort' to 'check_isort' as requested | Krombel | 2018-07-16 | 1 | -2/+2 |
| | |||||
* | check isort by travis | Krombel | 2018-07-16 | 1 | -2/+6 |
| | |||||
* | Use towncrier to build the changelog (#3425) | Amber Brown | 2018-06-25 | 1 | -0/+8 |
| | |||||
* | update tox.ini to cover 292 succeeding tests | Krombel | 2018-06-05 | 1 | -11/+19 |
| | | | | Signed-Off-By: Matthias Kesler <krombel@krombel.de> | ||||
* | extend tox testing for py3 to avoid regressions | Krombel | 2018-05-29 | 1 | -1/+28 |
| | |||||
* | tests/metrics is gone now | Amber Brown | 2018-05-22 | 1 | -1/+1 |
| | |||||
* | run config tests on py3 | Adrian Tschira | 2018-04-30 | 1 | -1/+2 |
| | | | | Signed-off-by: Adrian Tschira <nota@notafile.com> | ||||
* | Update tox.ini | Richard van der Hoff | 2018-04-30 | 1 | -1/+1 |
| | | | add missing comma | ||||
* | Add py3 tests to tox with folders that work | Adrian Tschira | 2018-04-27 | 1 | -1/+9 |
| | | | | | | | | It's just a few tests, but it will at least prevent a few files from regressing. Also, it makes it easiert to check your code against py36 while writing it. Signed-off-by: Adrian Tschira <nota@notafile.com> | ||||
* | do tox install with pip -e | Richard van der Hoff | 2017-09-05 | 1 | -5/+29 |
| | | | | | - this ensures we end up with a working virtualenv which we can use for other things. | ||||
* | Fix unittests under tox | Richard van der Hoff | 2016-12-06 | 1 | -0/+7 |
| | | | | | We now need to set PYTHONPATH when running the unit tests; update tox config to do so. | ||||
* | Change /bin/bash to /bin/sh in tox.ini | Bartek Rutkowski | 2016-06-10 | 1 | -2/+2 |
| | | | No features of Bash are used here, so using /bin/sh makes it more portable to systems that don't have Bash natively (like BSD systems). | ||||
* | Fix flake8 warnings for tests | Mark Haines | 2016-02-19 | 1 | -1/+1 |
| | |||||
* | Remove pyc files before running tests | Daniel Wagner-Hall | 2016-02-09 | 1 | -1/+1 |
| | |||||
* | Generate code coverage report when running jenkins.sh | Mark Haines | 2015-12-18 | 1 | -1/+2 |
| | |||||
* | Output results files on jenkins | Daniel Wagner-Hall | 2015-11-16 | 1 | -3/+3 |
| | | | | | | | Outputs: * results.xml * coverage.xml * violations.flake8.log | ||||
* | Pull out jenkins script into a checked in script | Daniel Wagner-Hall | 2015-11-13 | 1 | -1/+3 |
| | |||||
* | Update the other place check_joined_room is called | Mark Haines | 2015-10-30 | 1 | -0/+1 |
| | |||||
* | Use the version of "matrix-angular-sdk" hosted on pypi | Mark Haines | 2015-09-01 | 1 | -2/+0 |
| | |||||
* | Make 'setup.py test' run tox | Mark Haines | 2015-08-26 | 1 | -1/+1 |
| | |||||
* | Allow tests to be filter when using tox | Daniel Wagner-Hall | 2015-08-26 | 1 | -1/+1 |
| | | | | | `tox` will run all tests `tox tests.api.test_auth.AuthTestCase` will run just the tests in AuthTestCase | ||||
* | Set PYTHONDONTWRITEBYTECODE in the tox environment so that we don't spew ↵ | Mark Haines | 2015-08-25 | 1 | -0/+2 |
| | | | | .pyc files everywhere | ||||
* | Add tox.ini file for synapse | Mark Haines | 2015-08-25 | 1 | -0/+25 |