Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

Update Synapse pipelines for Python 3.9 #119

Merged
merged 11 commits into from
Jan 8, 2021

Conversation

callahad
Copy link
Contributor

@callahad callahad commented Jan 7, 2021

Fixes #104

Reviewable commit-by-commit.

This goes a bit further than a straight minimal update to Python 3.9; changes could be broken out separately if desired.

Specifically, I try to articulate what we're hoping to test in each section, then add / remove / re-order tests to align with that description.

I also re-named several tests to hopefully avoid truncating test names on the Buildkite dashboard, which I've found can obscure information, especially around the sytest and port_db suites.

If all goes well, we should have something like this:

Before:

Buildkite status

After:

Buildkite status

Signed-off-by: Dan Callahan <[email protected]>
These stanzas have been commented out for more than a year

Signed-off-by: Dan Callahan <[email protected]>
Weird contexts are more likely to uncover issues, test them first.

Diff is a bit weird because of the reptition in the file, but this just
moves the "noextras" stanza to immediately follow the "old deps" stanza.

Signed-off-by: Dan Callahan <[email protected]>
Signed-off-by: Dan Callahan <[email protected]>
Previously tested:
  - Python 3.5 w/ Postgres 9.5
  - Python 3.7 w/ Postgres 11
  - Python 3.8 w/ Postgres 12

Now tests:
  - Python 3.5 w/ Postgres 9.5
  - Python 3.9 w/ Postgres 13

Signed-off-by: Dan Callahan <[email protected]>
Swaps the order of two entries to keep all Monolith and Worker stanzas
grouped together, matching the order in the comment.

Signed-off-by: Dan Callahan <[email protected]>
Avoids truncating and thus obscuring information in the Buildkite dashboard

Signed-off-by: Dan Callahan <[email protected]>
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems generally sensible to me. a couple of thoughts.

synapse/pipeline.yml Outdated Show resolved Hide resolved
synapse/pipeline.yml Outdated Show resolved Hide resolved
synapse/pipeline.yml Outdated Show resolved Hide resolved
callahad and others added 3 commits January 8, 2021 09:43
Co-authored-by: Richard van der Hoff <[email protected]>
Signed-off-by: Dan Callahan <[email protected]>
@callahad
Copy link
Contributor Author

callahad commented Jan 8, 2021

I think this is good to go (note I've not actually tested this on Buildkite, since that's non-trivial, but there shouldn't be any risky changes.)

# 3. Python Version
#
# Tests can run against either a single or multiple PostgreSQL databases.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

technically Synapse can run against a sqlite and a postgres, though doing that seems slightly insane and the sytest setup scripts have no support for such a thing.

@richvdh richvdh merged commit 8bbe3f0 into matrix-org:master Jan 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Python 3.9 to Synapse tests
2 participants