1
0
Commit Graph

105 Commits

Author SHA1 Message Date
Brendan Abolivier
b9ce2499ce Fix value for TOP in sytest 2022-06-08 14:36:02 +01:00
Brendan Abolivier
45635f58cf More tweaking 2022-06-08 14:00:23 +01:00
Brendan Abolivier
efe2f85e3c Run less stuff in CI 2022-06-08 13:55:39 +01:00
Brendan Abolivier
a8046e43ed Fix limited test list 2022-06-08 11:17:31 +01:00
Brendan Abolivier
a7891a6de9 Use correct value for TOP in Sytest 2022-06-08 11:08:01 +01:00
Brendan Abolivier
ea40fbb3d6 Don't run all the tests for now 2022-06-08 11:00:13 +01:00
Brendan Abolivier
ea2478b68f Make coverage job depend on sytest 2022-06-07 11:23:33 +01:00
Brendan Abolivier
8e4b43dc41 Retrieve coverage files from sytest 2022-06-07 11:01:33 +01:00
Michael Telatynski
45e57d3fb3 Merge branch 'develop' of https://github.com/matrix-org/synapse into sonar
 Conflicts:
	poetry.lock
2022-06-07 10:14:42 +01:00
Michael Telatynski
782cb7420a Fix complement tests using the wrong path (#12933) 2022-06-01 15:57:09 +01:00
Michael Telatynski
35d2211efe Merge remote-tracking branch 't3chguy/sonar' into sonar 2022-06-01 15:08:26 +01:00
Michael Telatynski
b06bd9954c Update to matrix-org/sonarcloud-workflow-action@v2.1
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2022-06-01 15:08:03 +01:00
Michael Telatynski
fc8262bb41 Merge branch 'develop' into sonar 2022-06-01 10:00:57 +01:00
Michael Telatynski
2cd4be8008 Revert spacing tweak
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2022-06-01 08:42:58 +01:00
Michael Telatynski
2bb8d38adf Update sonarqube workflow to use new composite action
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2022-06-01 08:42:21 +01:00
Michael Telatynski
8978c26e65 Make use of artifact merging :o
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2022-05-31 14:58:08 +01:00
Michael Telatynski
71e98756d9 Fix coverage upload wildcard
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2022-05-31 14:05:05 +01:00
reivilibre
bf01e51554 Test Synapse against Complement with workers. (#12810)
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2022-05-31 13:02:00 +00:00
Michael Telatynski
e990b8a563 Move coverage files to where the tool expects
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2022-05-31 13:18:45 +01:00
Michael Telatynski
4d8d0a2fa4 Add coverage to poetry as installing it can take 3 mins
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2022-05-31 12:12:45 +01:00
Michael Telatynski
b6a6efc5f8 Use poetry and set $TOP env in trial & coverage jobs
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2022-05-31 11:25:33 +01:00
Michael Telatynski
1d9d5c8f19 Get rid of --jobs for now
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2022-05-31 11:13:31 +01:00
Michael Telatynski
6dceb4c349 arguments --
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2022-05-31 11:04:20 +01:00
Michael Telatynski
f09a4ad816 Correct two paths and a switch
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2022-05-30 19:17:39 +01:00
Michael Telatynski
23eaa313a3 Stash initial SonarQube work
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2022-05-30 19:06:06 +01:00
Henry
b8fa24b022 Use docker/metadata-action to generate docker image tags (#12573)
Update the "Build docker images" GitHub Actions workflow to use
`docker/metadata-action` to generate docker image tags, instead of a
custom shell script.

Signed-off-by: Henry <97804910+henryclw@users.noreply.github.com>
2022-05-05 12:36:42 +00:00
David Robertson
57fac2a234 Allow unused ignores in "bleeding edge" CI (#12576)
* Allow unused ignores in "bleeding edge" CI

Where "bleeding edge" means the Twisted Trunk and Latest Deps jobs.

Follow up from #12531.
Resolves #12574.

* Use `--extras all` in latest deps mypy CI

Twisted trunk job already does this.

Missed in #12531.

* changelog
2022-04-29 17:57:23 +01:00
David Robertson
5d3509dfda Revert accidental direct-to-develop commits.
This reverts commit 5a320baa45.
This reverts commit f282d5fc11.
This reverts commit ce6ecdd4b4.
2022-04-28 11:33:05 +01:00
David Robertson
f282d5fc11 Use --extras all in latest deps mypy CI
Twisted trunk job already does this.

Missed in #12531.
2022-04-28 11:29:13 +01:00
David Robertson
ce6ecdd4b4 Allow unused ignores in "bleeding edge" CI
Where "bleeding edge" means the Twisted Trunk and Latest Deps jobs.

Follow up from #12531.
Resolves #12574.
2022-04-28 11:28:22 +01:00
David Robertson
6463244375 Remove unused # type: ignores (#12531)
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.
2022-04-27 14:03:44 +01:00
David Robertson
e5a76ec00b Dump setuptools; correct pyproject version number (#12478) 2022-04-20 17:33:20 +01:00
David Robertson
eed38c5027 Add CI job to act as a canary for testing against latest dependencies (#12472)
Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
2022-04-20 12:48:44 +01:00
David Robertson
d24cd17820 Use poetry lockfile in twisted trunk CI job (#12425)
Fixes #12458

Co-authored-by: Sean Quah <seanq@element.io>
Co-authored-by: Dan Callahan <danc@element.io>
2022-04-13 11:26:53 +01:00
David Robertson
5a275a2377 Run "main" trial tests under poetry (#12438)
* 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
2022-04-12 17:41:21 +01:00
David Robertson
58c657322a Run lints under poetry in CI; remove lint tox jobs (#12434)
Co-authored-by: Dan Callahan <danc@element.io>
2022-04-12 17:35:48 +01:00
David Robertson
4e13743738 Poetry: select olddeps using poetry (#12407)
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2022-04-12 10:50:11 +00:00
Richard van der Hoff
5f72ea1bde Move complement setup stuff into the Synapse repo (#12404)
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.
2022-04-11 11:39:28 +01:00
David Robertson
98ec375b26 CI: Fix the export-data job to run under poetry (#12418)
Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
2022-04-08 19:18:54 +00:00
David Robertson
7851a2c62f CI: Get the portdb job to run under poetry (#12412) 2022-04-08 12:00:05 +01:00
Andrew Morgan
163fd686b5 Update mdbook to 0.4.17 (#12339)
Update mdbook (the tool used to render the documentation website) to version 0.4.17.
2022-04-05 17:21:58 +01:00
David Robertson
9a3f1f5383 Nuke the tox packaging job (#12334) 2022-03-31 11:01:26 +01:00
Andrew Morgan
19a1d6a42a Remove references to "msc2403" (#12165) 2022-03-30 11:15:47 +00:00
kegsay
8b7b371ff6 Re-enable test concurrency on Complement (#12283) 2022-03-24 15:59:06 -04:00
reivilibre
bfa7d6b035 Fix CI not attaching source distributions and wheels to the GitHub releases. (#12131) 2022-03-08 15:11:50 +00:00
Richard van der Hoff
0211f18d65 Switch the tests-done job to an Action (#12161)
I've factored it out for easier use in other workflows.
2022-03-07 12:24:06 +00:00
David Robertson
36071d39f7 Changelog (#12153) 2022-03-04 12:01:51 +00:00
Eric Eastwood
a511a890d7 Enable MSC2716 Complement tests in Synapse (#12145)
Co-authored-by: Brendan Abolivier <babolivier@matrix.org>
2022-03-03 11:19:20 +00:00
Eric Eastwood
31b125ccec Enable MSC3030 Complement tests in Synapse (#12144)
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
2022-03-03 11:45:23 +01:00
David Robertson
1fbe0316a9 Add suffices to scripts in scripts-dev (#12137)
* Rename scripts-dev to have suffices

* Update references to `scripts-dev`

* Changelog

* These scripts don't pass mypy
2022-03-02 18:00:26 +00:00