summary refs log tree commit diff
path: root/.github/workflows/tests.yml (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Run actions/setup-go after checking out complement (#16567)David Robertson2023-10-301-2/+5
|
* complement: enable dirty runs (#16520)kegsay2023-10-271-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * complement: enable dirty runs * Add changelog * Set a low connpool limit when running in Complement Dirty runs can cause many containers to be running concurrently, which seems to easily exhaust resources on the host. The increased speedup from dirty runs also seems to use more db connections on workers, which are misconfigured currently to have `SUM(workers * cp_max) > max_connections`, causing ``` FATAL: sorry, too many clients already ``` which results in tests failing. * Try p=2 concurrency to restrict slowness of servers which causes partial state join tests to flake * Debug logging * Only run flakey tests * Only adjust connection pool limits in worker mode * Move cp vars to somewhere where they get executed in CI * Move cp values back to where they actually work * Debug logging * Try p=1 to see if this makes worker mode happier * Remove debug logging
* Run trial/integration tests if .ci is modified. (#16512)Patrick Cloke2023-10-181-0/+6
|
* Update complement.sh to match new public API shape (#16466)kegsay2023-10-121-0/+1
| | | | | | | | | | | | | * Update complement.sh to match new public API shape Sister PR to https://github.com/matrix-org/complement/pull/666 Context: https://github.com/matrix-org/complement/issues/654#issuecomment-1746613495 * Changelog * Pedantry * Run complement plz
* Don't block CI on sign-off (#16454)Erik Johnston2023-10-091-1/+0
| | | As this doesn't work with the private sign off flow.
* Skip export-data on non-code (e.g. docs) PRs (#16387)David Robertson2023-09-261-3/+4
|
* Avoid running CI steps when the files they check have not been changed. (#14745)reivilibre2023-09-251-14/+82
|
* Bump actions/checkout from 3 to 4 (#16250)dependabot[bot]2023-09-251-22/+22
| | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Get CI to check PRs have been signed-off (#16348)David Robertson2023-09-251-1/+7
|
* Bump minimum supported Rust version to 1.61.0 (#16248)Erik Johnston2023-09-051-9/+9
|
* Remove support for Python 3.7 (#15851)Eric Eastwood2023-07-051-3/+3
| | | Fix https://github.com/matrix-org/synapse/issues/15836
* Fix Sytest environmental variable evaluation in CI (#15804)Shay2023-06-201-2/+2
|
* Bump minimum supported Rust version (#15768)Erik Johnston2023-06-121-9/+9
| | | | Important crates such as `log` and `regex` have bumped theirs to 1.60.0 as well.
* Speed up typechecking CI (#15752)Erik Johnston2023-06-091-4/+4
| | | | By restoring the rust cache before installing the project.
* Merge branch 'master' into developOlivier Wilkinson (reivilibre)2023-05-261-1/+1
|\
| * Fix a bug introduced in Synapse v1.84.0 where workers do not start up when ↵reivilibre2023-05-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | no `instance_map` was provided. (#15672) * Fix #15669: always populate instance map even if it was empty * Fix some tests * Fix more tests * Newsfile Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org> * CI fix: don't forget to update apt repository sources before installing olddeps deps * Add test testing the backwards compatibility --------- Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
* | Fix olddeps build (#15626)Patrick Cloke2023-05-181-1/+2
|/ | | Do an `apt update` before install packages.
* Relax poetry-core lower bound to 1.1.0 (#15571)David Robertson2023-05-121-23/+14
| | | | | See https://github.com/matrix-org/synapse/pull/15566#issuecomment-1543844104 Also check you can `pip install` in the old-deps CI job
* Deal with more GHA deprecations (#15576)David Robertson2023-05-111-7/+8
| | | | | | | | | * Bump netlify PR * Manually cache mypy cache dir cache cache cache cache cache cache cache cache cache cache * Changelog
* Attempt to fix weird mypy failures on ignored files. (#15409)David Robertson2023-04-101-3/+54
| | | | | | By inlining the typechecking job from backend-meta. This seems to resolve odd errors (maybe due to caching?) to have been seen on Dependabot PRs.
* Trust dtolnay/rust-toolchain (#15406)David Robertson2023-04-061-59/+11
| | | | | | | | * Trust dtolnay/rust-toolchain The author is a big deal in the Rust world and I'm happy to trust them. I'm also bored of the dependabot updates tbh. * Changelog
* Use setup-go instead of relying on go 1.17 to exist (#15403)David Robertson2023-04-061-0/+2
| | | | | | | * Use setup-go instead of relying on 1.17 to exist See https://github.com/actions/runner-images/issues/7276 * Changelog
* Speed up generate sample config CI lint (#15340)Erik Johnston2023-03-281-0/+8
|
* Speed up pydantic CI lint (#15339)Erik Johnston2023-03-281-0/+8
|
* Bump dtolnay/rust-toolchain from e12eda571dc9a5ee5d58eecf4738ec291c66f295 to ↵dependabot[bot]2023-03-221-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | fc3253060d0c959bea12a59f10f8391454a0b02d (#15304) * Bump dtolnay/rust-toolchain Bumps [dtolnay/rust-toolchain](https://github.com/dtolnay/rust-toolchain) from e12eda571dc9a5ee5d58eecf4738ec291c66f295 to fc3253060d0c959bea12a59f10f8391454a0b02d. - [Release notes](https://github.com/dtolnay/rust-toolchain/releases) - [Commits](https://github.com/dtolnay/rust-toolchain/compare/e12eda571dc9a5ee5d58eecf4738ec291c66f295...fc3253060d0c959bea12a59f10f8391454a0b02d) --- updated-dependencies: - dependency-name: dtolnay/rust-toolchain dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * Changelog --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: GitHub Actions <github-actions[bot]@users.noreply.github.com>
* Enable running tests & release artifacts on merge queue. (#15244)Patrick Cloke2023-03-151-0/+1
|
* Use nightly rustfmt in CI (#15188)Erik Johnston2023-03-031-1/+2
| | | | As we use some nightly only options, e.g. to group and sort imports consistently.
* Add Sytest jobs with the asyncio reactor enabled (#14101)Quentin Gliech2023-03-021-0/+1
|
* Bump dtolnay/rust-toolchain from 25dc93b901a87e864900a8aec6c12e9aa794c0c3 to ↵dependabot[bot]2023-02-201-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | e12eda571dc9a5ee5d58eecf4738ec291c66f295 (#15101) * Bump dtolnay/rust-toolchain Bumps [dtolnay/rust-toolchain](https://github.com/dtolnay/rust-toolchain) from 25dc93b901a87e864900a8aec6c12e9aa794c0c3 to e12eda571dc9a5ee5d58eecf4738ec291c66f295. - [Release notes](https://github.com/dtolnay/rust-toolchain/releases) - [Commits](https://github.com/dtolnay/rust-toolchain/compare/25dc93b901a87e864900a8aec6c12e9aa794c0c3...e12eda571dc9a5ee5d58eecf4738ec291c66f295) --- updated-dependencies: - dependency-name: dtolnay/rust-toolchain dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * Changelog --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: GitHub Actions <github-actions[bot]@users.noreply.github.com>
* Bump dtolnay/rust-toolchain from 9cd00a88a73addc8617065438eff914dd08d0955 to ↵dependabot[bot]2023-02-131-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | 25dc93b901a87e864900a8aec6c12e9aa794c0c3 (#15060) * Bump dtolnay/rust-toolchain Bumps [dtolnay/rust-toolchain](https://github.com/dtolnay/rust-toolchain) from 9cd00a88a73addc8617065438eff914dd08d0955 to 25dc93b901a87e864900a8aec6c12e9aa794c0c3. - [Release notes](https://github.com/dtolnay/rust-toolchain/releases) - [Commits](https://github.com/dtolnay/rust-toolchain/compare/9cd00a88a73addc8617065438eff914dd08d0955...25dc93b901a87e864900a8aec6c12e9aa794c0c3) --- updated-dependencies: - dependency-name: dtolnay/rust-toolchain dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * Changelog --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: GitHub Actions <github-actions[bot]@users.noreply.github.com>
* Bump dtolnay/rust-toolchain from e645b0cf01249a964ec099494d38d2da0f0b349f to ↵dependabot[bot]2023-02-021-9/+9
| | | | 9cd00a88a73addc8617065438eff914dd08d0955 (#14968)
* Allow enabling the asyncio reactor in complement (#14858)realtyem2023-02-011-1/+4
| | | Signed-off-by: Jason Little realtyem@gmail.com
* Fix running cargo bench & test in CI. (#14943)Patrick Cloke2023-01-311-0/+25
|
* Require poetry>=1.3.2 (#14860)David Robertson2023-01-171-3/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Upgrade to new lockfile format Now requires poetry >= 1.2.2 to read and poetry >= 1.3.0 to write. Cheat sheet: ``` poetry --version poetry show > scratch/before pipx upgrade poetry poetry --version poetry show > scratch/after diff scratch{before,after} && echo "no change!" ``` * Use Poetry 1.3.2 when reading or writing lockfile * Remove unneeded(?) poetry dep for cibuildwheel * Update docs * Remove redundant call to setup-python * Remove outdated comments related to Poetry 1.x * Remove outdated docs line was fixed in #13082 * Minor improvements to poetry cheat sheet * Invoke setup-python-poetry with explicit version Not sure about this. It's hardcoding versions everywhere. * Changelog * Check the lockfile is version 2.0 Might one day incorporate other checks like #14742 * Typo fixes, thanks Sean Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com> Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com>
* Switch to ruff instead of flake8. (#14633)Patrick Cloke2022-12-211-1/+1
| | | | | ruff is a flake8-compatible Python linter written in Rust. It supports the flake8 plugins that we use and is significantly faster in testing.
* Unit tests CI speedup (#14610)realtyem2022-12-071-3/+7
|
* Fix Rust lint CI (#14602)Erik Johnston2022-12-021-1/+23
|
* Run Rust CI when Cargo.lock changes too (#14571)David Robertson2022-11-281-0/+1
| | | | | * Run Rust CI when Cargo.lock changes too * Changelog
* Bump dtolnay/rust-toolchain from 55c7845fad90d0ae8b2e83715cb900e5e861e8cb to ↵dependabot[bot]2022-11-281-7/+7
| | | | | | | | | | | | | | | | | | | | | | | e645b0cf01249a964ec099494d38d2da0f0b349f (#14557) * Bump dtolnay/rust-toolchain Bumps [dtolnay/rust-toolchain](https://github.com/dtolnay/rust-toolchain) from 55c7845fad90d0ae8b2e83715cb900e5e861e8cb to e645b0cf01249a964ec099494d38d2da0f0b349f. - [Release notes](https://github.com/dtolnay/rust-toolchain/releases) - [Commits](https://github.com/dtolnay/rust-toolchain/compare/55c7845fad90d0ae8b2e83715cb900e5e861e8cb...e645b0cf01249a964ec099494d38d2da0f0b349f) --- updated-dependencies: - dependency-name: dtolnay/rust-toolchain dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * Changelog Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: GitHub Actions <github-actions[bot]@users.noreply.github.com>
* Test against PostgreSQL 15 in CI (#14394)Sean Quah2022-11-091-1/+10
| | | | | Resolves #14170. Signed-off-by: Sean Quah <seanq@matrix.org>
* Remove support for PostgreSQL 10 (#14392)Sean Quah2022-11-081-1/+1
| | | Signed-off-by: Sean Quah <seanq@matrix.org>
* Deal with another batch of GHA warning messages (#14313)David Robertson2022-11-011-16/+38
|
* Run trial tests against Python 3.11 (#13812)David Robertson2022-11-011-1/+1
|
* Cache rust build deps in trial CI (#14287)Erik Johnston2022-10-251-0/+8
|
* Bump actions/setup-python from 2 to 4 (#13983)dependabot[bot]2022-10-041-4/+4
| | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: GitHub Actions <github-actions[bot]@users.noreply.github.com>
* Dependabot changelog: don't require a changelog in lintsDavid Robertson2022-10-031-1/+1
|
* Bump actions/upload-artifact from 2 to 3 (#14023)dependabot[bot]2022-10-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | * Bump actions/upload-artifact from 2 to 3 Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 3. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Changelog Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: GitHub Actions <github-actions[bot]@users.noreply.github.com>
* Dependabot changelogs: trigger CI explicitly (#14027)David Robertson2022-10-031-0/+1
| | | | | | | | | | | * Dependabot changelogs: trigger CI explicitly * Changelog * Use merge ref, not head ref ref ref ref ref ref * explanatory note
* Bump actions/checkout from 2 to 3 (#13982)dependabot[bot]2022-10-031-17/+17
| | | | | | | | | | | | | | | | | | | | | | | * Bump actions/checkout from 2 to 3 Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Changelog Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: David Robertson <davidr@element.io>
* Lower minimum rustc version to 1.58.1 (#13857)Erik Johnston2022-09-211-6/+6
|
* Compare ported to unported PG schemas in portdb test job (#13808)David Robertson2022-09-161-4/+23
|
* Minor speedups to CI linting (#13827)David Robertson2022-09-161-4/+5
|
* Simplify CI tests DAG (#13784)David Robertson2022-09-131-4/+0
| | | | | * Simplify CI tests DAG * Changelog
* Fix GHA skippable syntax (#13778)Mathieu Velten2022-09-121-1/+2
| | | Signed-off-by: Mathieu Velten <mathieuv@matrix.org>
* Fix CI on non-PR builds (#13769)Erik Johnston2022-09-121-0/+1
| | | Mark cargo-test as skippable since it only runs on Rust code change.
* Add rust to CI (#13763)Erik Johnston2022-09-091-1/+82
|
* Add some rust caching to CI (#13735)Erik Johnston2022-09-071-0/+5
|
* Add a stub Rust crate (#12595)Erik Johnston2022-09-061-1/+18
|
* Update trial old deps CI to use poetry 1.2.0 (#13707)Erik Johnston2022-09-061-7/+38
|
* Remove configuration options for direct TCP replication. (#13647)Patrick Cloke2022-09-061-1/+0
| | | Removes the ability to configure legacy direct TCP replication. Workers now require Redis to run.
* Reduce number of CI jobs run on PRs (#13713)Erik Johnston2022-09-051-66/+31
| | | | | | | | | | | | | * Reduce number of CI jobs run on PRs * Newsfile * Also limit sytest jobs * Fix typo * Fix up * Fixup
* Only run trial CI on all python versions on non-PRs (#13698)Erik Johnston2022-09-021-0/+10
|
* Bump docker image to use stable poetry version (#13688)Erik Johnston2022-09-011-1/+0
|
* Print complement failure results last (#13639)Richard van der Hoff2022-08-281-1/+1
| | | | | Since github always scrolls to the bottom of any test output, let's put the failed tests last and hide any successful packages.
* Reject non-strict types in Pydantic models (#13502)David Robertson2022-08-171-1/+13
|
* Re-enable running Complement tests against Synapse with workers. (#13420)reivilibre2022-08-011-24/+3
|
* Do not fail build if complement with workers fails. (#13266)Patrick Cloke2022-07-131-3/+24
|
* Factor out some common Complement CI setup commands to a script. (#13157)reivilibre2022-07-051-23/+2
|
* Improve startup times in Complement test runs against workers, particularly ↵reivilibre2022-06-301-46/+3
| | | | | in CPU-constrained environments. (#13127) Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
* Sort failing jobs in Complement CI to the top of the logs to make them ↵reivilibre2022-06-151-0/+10
| | | | easier to read. (#13057)
* Add a CI job to check that schema deltas are in the correct folder. (#13063)Erik Johnston2022-06-151-1/+9
|
* Rename complement-developonly (#13046)Erik Johnston2022-06-151-0/+2
|
* Collapse Docker build commands in Complement CI runs to make the logs easier ↵reivilibre2022-06-151-1/+1
| | | | to read. (#13058)
* Fix Complement runs always being Postgres (#13034)reivilibre2022-06-141-1/+1
| | | | | | | * Fix Complement runs always being Postgres * Newsfile Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
* Enable testing against PostgreSQL databases in Complement CI. (#12965)reivilibre2022-06-091-1/+11
|
* Fix complement tests using the wrong path (#12933)Michael Telatynski2022-06-011-1/+1
|
* Test Synapse against Complement with workers. (#12810)reivilibre2022-05-311-20/+40
| | | Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
* Remove unused `# type: ignore`s (#12531)David Robertson2022-04-271-6/+2
| | | | | | | | | | | | | | | | | | | | | | Over time we've begun to use newer versions of mypy, typeshed, stub packages---and of course we've improved our own annotations. This makes some type ignore comments no longer necessary. I have removed them. There was one exception: a module that imports `select.epoll`. The ignore is redundant on Linux, but I've kept it ignored for those of us who work on the source tree using not-Linux. (#11771) I'm more interested in the config line which enforces this. I want unused ignores to be reported, because I think it's useful feedback when annotating to know when you've fixed a problem you had to previously ignore. * Installing extras before typechecking Lacking an easy way to install all extras generically, let's bite the bullet and make install the hand-maintained `all` extra before typechecking. Now that https://github.com/matrix-org/backend-meta/pull/6 is merged to the release/v1 branch.
* Dump setuptools; correct pyproject version number (#12478)David Robertson2022-04-201-1/+1
|
* Run "main" trial tests under poetry (#12438)David Robertson2022-04-121-13/+13
| | | | | | | | | | | * Run "main" trial tests under poetry Olddeps and twisted trunk tests are handled in separate PRs. The PyPy config is a best-effort only; it's completely untested. Pulled out from #12337. * Changelog
* Run lints under poetry in CI; remove lint tox jobs (#12434)David Robertson2022-04-121-13/+7
| | | Co-authored-by: Dan Callahan <danc@element.io>
* Poetry: select olddeps using `poetry` (#12407)David Robertson2022-04-121-2/+3
| | | Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
* Move complement setup stuff into the Synapse repo (#12404)Richard van der Hoff2022-04-111-17/+1
| | | | | | Fixes matrix-org/complement#330 (or it will, once we remove the old files). It's not quite a lift-and-shift: I've also taken the opportunity to get rid of the custom CA that we used to use to sign the TLS certs, which has been superceded by the CA exposed by Complement.
* CI: Fix the export-data job to run under poetry (#12418)David Robertson2022-04-081-2/+3
| | | Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
* CI: Get the portdb job to run under poetry (#12412)David Robertson2022-04-081-1/+2
|
* Nuke the tox `packaging` job (#12334)David Robertson2022-03-311-1/+0
|
* Remove references to "msc2403" (#12165)Andrew Morgan2022-03-301-1/+1
|
* Re-enable test concurrency on Complement (#12283)kegsay2022-03-241-1/+1
|
* Switch the `tests-done` job to an Action (#12161)Richard van der Hoff2022-03-071-21/+9
| | | | I've factored it out for easier use in other workflows.
* Changelog (#12153)David Robertson2022-03-041-0/+1
|
* Enable MSC2716 Complement tests in Synapse (#12145)Eric Eastwood2022-03-031-1/+1
| | | Co-authored-by: Brendan Abolivier <babolivier@matrix.org>
* Enable MSC3030 Complement tests in Synapse (#12144)Eric Eastwood2022-03-031-1/+1
| | | | | The Complement tests for MSC3030 are now merged, https://github.com/matrix-org/complement/pull/178 Synapse implmentation: https://github.com/matrix-org/synapse/pull/9445
* Add suffices to scripts in scripts-dev (#12137)David Robertson2022-03-021-2/+2
| | | | | | | | | * Rename scripts-dev to have suffices * Update references to `scripts-dev` * Changelog * These scripts don't pass mypy
* Detox, part 1 of N (#12119)David Robertson2022-03-011-3/+10
| | | | * Don't use `tox` for `check-sampleconfig` * Don't use `tox` for check-newsfragment
* Tidy the building of sdists and wheels (#12051)David Robertson2022-02-221-16/+1
| | | | | * Don't build distribution pkgs in tests.yml * Run `release-artifacts` on release branches * Use backend-meta workflow for packaging
* Prepare for rename of default complement branch (#11971)Richard van der Hoff2022-02-111-3/+3
| | | use `HEAD` rather than hardcoding `master`
* Run Complement tests sequentially (#11910)kegsay2022-02-041-1/+1
| | | | | | | | | | | Since #11811 there has been general Complement flakiness around networking. It seems like tests are hitting the wrong containers. In an effort to diagnose the cause of this, as well as reduce its impact on this project, set the parallelsim to 1 (no parallelism) when running tests. If this fixes the flakiness then this indicates the cause and I can diagnose this further. If this doesn't fix the flakiness then that implies some kind of test pollution which also helps to diagnose this further.
* CI: run Complement on the VM, not inside Docker (#11811)kegsay2022-01-251-10/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * CI: run Complement on the VM, not inside Docker This requires https://github.com/matrix-org/complement/pull/289 We now run Complement on the VM instead of inside a Docker container. This is to allow Complement to bind to any high-numbered port when it starts up its own federation servers. We want to do this to allow for more concurrency when running complement tests. Previously, Complement only ever bound to `:8448` when running its own federation server. This prevented multiple federation tests running at the same time as they would fight each other on the port. This did however allow Complement to run in Docker, as the host could just port forward `:8448` to allow homeserver containers to communicate to Complement. Now that we are using random ports however, we cannot use Docker to run Complement. This ends up being a good thing because: - Running Complement tests locally is closer to how they run in CI. - Allows the `CI` env var to be removed in Complement. - Slightly speeds up runs as we don't need to pull down the Complement image prior to running tests. This assumes GHA caches actions sensibly. * Changelog * Full stop * Update .github/workflows/tests.yml Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> * Review comments * Update .github/workflows/tests.yml Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
* Drop support for and remove references to EOL Python 3.6 (#11683)Shay2022-01-211-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * remove reference in comments to python3.6 * upgrade tox python env in script * bump python version in example for completeness * upgrade python version requirement in setup doc * upgrade necessary python version in __init__.py * upgrade python version in setup.py * newsfragment * drops refs to bionic and replace with focal * bump refs to postgres 9.6 to 10 * fix hanging ci * try installing tzdata first * revert change made in b979f336 * ignore new random mypy error while debugging other error * fix lint error for temporary workaround * revert change to install list * try passing env var * export debian frontend var? * move line and add comment * bump pillow dependency * bump lxml depenency * install libjpeg-dev for pillow * bump automat version to one compatible with py3.8 * add libwebp for pillow * bump twisted trunk python version * change suffix of newsfragment * remove redundant python 3.7 checks * lint
* Use buildkit's cache feature to speed up docker builds (#11691)Richard van der Hoff2022-01-121-0/+2
| | | Having spent much of the last week attempting to run complement tests from somewhere with damp string instead of internet... something had to be done.
* Prettier complement logs (#11707)kegsay2022-01-101-1/+2
| | | | | * Prettier complement logs * Changelog
* Drop EOL python 3.6 from CI (#11595)Shay2021-12-211-6/+6
| | | | | | | | | | | * remove python 3.6 and postgres 9.6 from github workflow * remove python 3.6 env from tox * newsfragment * correct postgres version * add py310 to tox env list
* Support the stable /hierarchy endpoint from MSC2946 (#11329)Patrick Cloke2021-11-291-1/+1
| | | | | | This also makes additional updates where the implementation had drifted from the approved MSC. Unstable endpoints will be removed at a later data.
* Return the stable `event` field from `/send_join` per MSC3083. (#11413)Patrick Cloke2021-11-291-1/+1
| | | | | This does not remove the unstable field and still parses both. Handling of the unstable field will need to be removed in the future.
* Fix broken export-data admin command and add a test for it to CI (#11078)Hillery Shay2021-10-181-0/+29
| | | Fix broken export-data admin command and add a test for it to CI
* Always dump logs from trial during CI. (#11068)Patrick Cloke2021-10-121-0/+6
| | | Instead of only dumping them if trial passes.
* Fix CI to run the unit tests without optional deps (#11017)Erik Johnston2021-10-081-3/+6
| | | | | This also turns off calculating code coverage, as we didn't use it and it was a lot of noise
* Run CI with Python 3.10 and Postgres 14 (#10992)David Robertson2021-10-051-7/+7
|
* GHA: reintroduce an env var for `$GITHUB_HEAD_REF` (#10659)David Robertson2021-09-201-0/+1
| | | This should ensure GHA runs synapse against the same-named sytest branch
* Remove buildkite-era commentDavid Robertson2021-08-121-3/+0
|
* portdb also uses coverage, so provide $TOP thereDavid Robertson2021-08-121-0/+2
|
* set TOP in sytest containersDavid Robertson2021-08-111-0/+1
|
* Rename ci to .ciDavid Robertson2021-08-111-3/+3
|
* Remove buildkite from portdb CI testsDavid Robertson2021-08-101-7/+1
|
* Remove unused BUILDKITE_BRANCH env varDavid Robertson2021-08-101-1/+0
|
* Move sytest worker-blacklist to ci directoryDavid Robertson2021-08-101-1/+1
|
* check-newsfragment: pass pr number explicitlyDavid Robertson2021-08-101-4/+2
| | | | | use PULL_REQUEST_NUMBER instead of BUILDKITE_PULL_REQUEST remove the other user of BUILDKITE_PULL_REQUEST, namely merge_base_branch.sh
* Move test_old_deps.sh to new ci dirDavid Robertson2021-08-101-1/+1
|
* Don't fail CI when lint-newfile job was skipped (#10529)Erik Johnston2021-08-051-1/+6
|
* Fix the `tests-done` github actions step, again (#10512)Richard van der Hoff2021-08-021-9/+12
|
* Use new go test running syntax for complement. (#10488)Patrick Cloke2021-07-271-1/+1
| | | Updates CI and the helper script t ensures all tests are run (in parallel).
* Cancel redundant GHA workflows (#10451)Richard van der Hoff2021-07-221-0/+4
|
* Fix the tests-done Github Actions job (#10444)Richard van der Hoff2021-07-221-1/+18
|
* Add a github actions job recording success of other jobs. (#10430)Richard van der Hoff2021-07-201-0/+12
|
* Make GHA config more efficient (#10383)Richard van der Hoff2021-07-141-7/+7
| | | | | | | | A few things here: * Build the debs for single distro for each PR, so that we can see if it breaks. Do the same for develop. Building all the debs ties up the GHA workers for ages. * Stop building the debs for release branches. Again, it takes ages, and I don't think anyone is actually going to stop and look at them. We'll know they are working when we make an RC. * Change the configs so that if we manually cancel a workflow, it actually does something.
* Use the matching complement branch when running tests in CI. (#10160)Patrick Cloke2021-06-111-5/+23
| | | | | | | | | | | This implements similar behavior to sytest where a matching branch is used, if one exists. This is useful when needing to modify both application code and tests at the same time. The following rules are used to find a matching complement branch: 1. Search for the branch name of the pull request. (E.g. feature/foo.) 2. Search for the base branch of the pull request. (E.g. develop or release-vX.Y.) 3. Search for the reference branch of the commit. (E.g. master or release-vX.Y.) 4. Fallback to 'master', the default complement branch name.
* Update Complement run with Synapse-supported MSC-related build tags (#10155)Andrew Morgan2021-06-091-1/+1
| | | | | This PR updates the build tags that we perform Complement runs with to match our [buildkite pipeline](https://github.com/matrix-org/pipelines/blob/618b3e90bcae8efd1a71502ae95b7913e6e24665/synapse/pipeline.yml#L570), as well as adding `msc2403` (as it will be required once #9359 is merged). Build tags are what we use to determine which tests to run in Complement (really it determines which test files are compiled into the final binary). I haven't put in a comment about updating the buildkite side here, as we've decided to migrate fully to GitHub Actions anyhow.
* github actions: summarize Sytest results in an easy-to-read format (#10094)Richard van der Hoff2021-06-021-2/+2
| | | ... using the script from matrix-org/sytest#1052
* Fix GitHub Actions lint for newsfragments (#10069)Dan Callahan2021-05-261-0/+6
| | | | | * Fix GitHub Actions lint for newsfragments Signed-off-by: Dan Callahan <danc@element.io>
* Fix port_db on empty db (#9930)Richard van der Hoff2021-05-101-1/+1
| | | | ... and test it.
* Proof of concept for GitHub Actions (#9661)Dan Callahan2021-04-091-0/+322
Signed-off-by: Dan Callahan <danc@element.io>