David Robertson
b88cfe6d41
Require poetry>=1.3.2 ( #14860 )
* 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>
1 rok temu
Patrick Cloke
7010a3d015
Switch to ruff instead of flake8. ( #14633 )
ruff is a flake8-compatible Python linter written in Rust.
It supports the flake8 plugins that we use and is significantly
faster in testing.
1 rok temu
realtyem
2506dd7641
Unit tests CI speedup ( #14610 )
1 rok temu
Erik Johnston
890e5f610e
Fix Rust lint CI ( #14602 )
1 rok temu
David Robertson
105ab1c3d2
Run Rust CI when Cargo.lock changes too ( #14571 )
* Run Rust CI when Cargo.lock changes too
* Changelog
1 rok temu
dependabot[bot]
7d24662fdd
Bump dtolnay/rust-toolchain from 55c7845fad
to e645b0cf01
( #14557 )
* Bump dtolnay/rust-toolchain
Bumps [dtolnay/rust-toolchain](https://github.com/dtolnay/rust-toolchain ) from 55c7845fad
to e645b0cf01
.
- [Release notes](https://github.com/dtolnay/rust-toolchain/releases )
- [Commits](55c7845fad
...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>
1 rok temu
Sean Quah
22d46db0ea
Test against PostgreSQL 15 in CI ( #14394 )
Resolves #14170 .
Signed-off-by: Sean Quah <seanq@matrix.org>
1 rok temu
Sean Quah
a5fcdea090
Remove support for PostgreSQL 10 ( #14392 )
Signed-off-by: Sean Quah <seanq@matrix.org>
1 rok temu
David Robertson
2e2cffe1a2
Cherry-pick "Run trial tests against Python 3.11 ( #13812 )" and fixup commit
4f5d492cd6
The release branch CI is failing because poetry seems unable to install
wrapt 1.13.3 when run under CPython 3.11. Develop has already bumped
wrapt for 3.11 compatibility. Cherry-pick that commit here to try and
get CI going again.
1 rok temu
David Robertson
a62c796f63
Deal with another batch of GHA warning messages ( #14313 )
1 rok temu
David Robertson
5905ba12d0
Run trial tests against Python 3.11 ( #13812 )
1 rok temu
Erik Johnston
d125919963
Cache rust build deps in trial CI ( #14287 )
1 rok temu
dependabot[bot]
b64b7297f2
Bump actions/setup-python from 2 to 4 ( #13983 )
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: GitHub Actions <github-actions[bot]@users.noreply.github.com>
1 rok temu
David Robertson
92ae90aca2
Dependabot changelog: don't require a changelog in lints
1 rok temu
dependabot[bot]
0c9c159f45
Bump actions/upload-artifact from 2 to 3 ( #14023 )
* 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>
1 rok temu
David Robertson
2d5ce8c087
Dependabot changelogs: trigger CI explicitly ( #14027 )
* Dependabot changelogs: trigger CI explicitly
* Changelog
* Use merge ref, not head ref
ref ref ref ref ref
* explanatory note
1 rok temu
dependabot[bot]
7f4f2a3782
Bump actions/checkout from 2 to 3 ( #13982 )
* 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>
1 rok temu
Erik Johnston
b7508b1538
Lower minimum rustc version to 1.58.1 ( #13857 )
1 rok temu
David Robertson
642c4b253d
Compare ported to unported PG schemas in portdb test job ( #13808 )
1 rok temu
David Robertson
5e84461653
Minor speedups to CI linting ( #13827 )
1 rok temu
David Robertson
540afb0bfc
Simplify CI tests DAG ( #13784 )
* Simplify CI tests DAG
* Changelog
1 rok temu
Mathieu Velten
fa2f3d8d0c
Fix GHA skippable syntax ( #13778 )
Signed-off-by: Mathieu Velten <mathieuv@matrix.org>
1 rok temu
Erik Johnston
dd7484b562
Fix CI on non-PR builds ( #13769 )
Mark cargo-test as skippable since it only runs on Rust code change.
1 rok temu
Erik Johnston
c85c5ace52
Add rust to CI ( #13763 )
1 rok temu
Erik Johnston
dc0e896b68
Add some rust caching to CI ( #13735 )
1 rok temu
Erik Johnston
c9b7e97355
Add a stub Rust crate ( #12595 )
1 rok temu
Erik Johnston
b5effc7201
Update trial old deps CI to use poetry 1.2.0 ( #13707 )
1 rok temu
Patrick Cloke
32fc3b7ba4
Remove configuration options for direct TCP replication. ( #13647 )
Removes the ability to configure legacy direct TCP replication. Workers now require Redis to run.
1 rok temu
Erik Johnston
8edf3f66d5
Reduce number of CI jobs run on PRs ( #13713 )
* Reduce number of CI jobs run on PRs
* Newsfile
* Also limit sytest jobs
* Fix typo
* Fix up
* Fixup
1 rok temu
Erik Johnston
0fdb685c2b
Only run trial CI on all python versions on non-PRs ( #13698 )
1 rok temu
Erik Johnston
18e4092801
Bump docker image to use stable poetry version ( #13688 )
1 rok temu
Richard van der Hoff
4f6de33f41
Print complement failure results last ( #13639 )
Since github always scrolls to the bottom of any test output, let's put the
failed tests last and hide any successful packages.
1 rok temu
David Robertson
ba8938b090
Reject non-strict types in Pydantic models ( #13502 )
1 rok temu
reivilibre
b817574be7
Re-enable running Complement tests against Synapse with workers. ( #13420 )
1 rok temu
Patrick Cloke
90e9b4fa1e
Do not fail build if complement with workers fails. ( #13266 )
1 rok temu
reivilibre
68695d8007
Factor out some common Complement CI setup commands to a script. ( #13157 )
1 rok temu
reivilibre
9667bad55d
Improve startup times in Complement test runs against workers, particularly in CPU-constrained environments. ( #13127 )
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
1 rok temu
reivilibre
e12ff697a4
Sort failing jobs in Complement CI to the top of the logs to make them easier to read. ( #13057 )
1 rok temu
Erik Johnston
de334ac183
Add a CI job to check that schema deltas are in the correct folder. ( #13063 )
1 rok temu
Erik Johnston
9ad2197fa7
Rename complement-developonly ( #13046 )
1 rok temu
reivilibre
538044ac01
Collapse Docker build commands in Complement CI runs to make the logs easier to read. ( #13058 )
1 rok temu
reivilibre
09a3c5ce0b
Fix Complement runs always being Postgres ( #13034 )
* Fix Complement runs always being Postgres
* Newsfile
Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
1 rok temu
reivilibre
3d1d510fa9
Enable testing against PostgreSQL databases in Complement CI. ( #12965 )
1 rok temu
Michael Telatynski
782cb7420a
Fix complement tests using the wrong path ( #12933 )
1 rok temu
reivilibre
bf01e51554
Test Synapse against Complement with workers. ( #12810 )
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
1 rok temu
David Robertson
6463244375
Remove unused `# type: ignore`s ( #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.
2 lat temu
David Robertson
e5a76ec00b
Dump setuptools; correct pyproject version number ( #12478 )
2 lat temu
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
2 lat temu
David Robertson
58c657322a
Run lints under poetry in CI; remove lint tox jobs ( #12434 )
Co-authored-by: Dan Callahan <danc@element.io>
2 lat temu
David Robertson
4e13743738
Poetry: select olddeps using `poetry` ( #12407 )
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2 lat temu