-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for testing on Python 3.10 #1184
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://packages.debian.org/bookworm/python3 seems to suggest that bookworm includes Python 3.9 by default. We'd have to explicitly opt-in to using 3.10 I think, by apt-installing this.
Does that sound right @richvdh ?
Yup, looks that way. Not only that, we need to use it explicitly:
... so I think we need to change Not sure if this is best done via docker build args (https://docs.docker.com/engine/reference/commandline/build/#set-build-time-variables---build-arg) or with a completely separate dockerfile. |
I took a stab at using a separate dockerfile for building the 3.10 image and using it explicitly. I am none too familiar with docker but I think I succeeded, very open to feedback if I am wrong or there's a more elegant way to do this! |
So I have managed to ditch the custom dockerfile for python 3.10 and achieve the same result using a build arg passed to the generic Edit: ignore me, I am an idiot and figured out the matrix out soon after I wrote this. I think this should be good to go now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, a few more tweaks!
@@ -57,15 +59,25 @@ jobs: | |||
- sytest_image_tag: focal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the old sytest_image_tag
variables seem to be unused now. Could you get rid of them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe they are still being used on line 54?:
name: "Build sytest-${{ matrix.dockerfile }}:${{ matrix.sytest_image_tag }}"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh yeah. Hrm, that's not ideal - they are bound to get out of sync.
Not sure I've got any better ideas right now though. Let's ship it!
@@ -57,15 +59,25 @@ jobs: | |||
- sytest_image_tag: focal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh yeah. Hrm, that's not ideal - they are bound to get out of sync.
Not sure I've got any better ideas right now though. Let's ship it!
As the title states. One of the tasks outlined here: matrix-org/synapse#11780. Builds a new Docker image with debian:bookworm as the base, pushes it to DockerHub and adds the new image to CI for testing.