-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
support Python 3.10 #3140
support Python 3.10 #3140
Conversation
@hirosassa what do we need to solve these 3.10 errors? There have been a couple 3.10 related PRs that i've merged in the past few days (or so) - a deprecation warning and the tenacity version upgrade. Are there additional changes that we need to make before updating this branch and retesting? So sorry for my infrequent review and feedback here |
@dlstadther Thanks for your comment! I would like to discuss about the CI failure. I found the problem comes from the code below: I tried adding retry using Do you have any ideas? |
It could be possible that the GitHub Actions CI runners are using different configuration of procfs, such that the read of Another reason Did Python 10 change anything about way |
Are there any plans to make luigi Python 3.10 compatible in the future? |
@rschmidtner In my environment (production, too), Luigi is working well with Python 3.10. |
@hirosassa thanks for starting this PR! Regarding the cmdline issue from #3140 (comment), have you tried to add a short sleep between these two lines (e.g. Lines 39 to 40 in 38b0c2b
EDIT: I'm not saying that is a fix, but it might confirm a problem. |
95b24fc
to
c5ff943
Compare
@ravwojdyla Thanks for your comment! I added sleep at c5ff943 but it failed. |
Lines 61 to 62 in 38b0c2b
|
@ravwojdyla Wow! Thank you. Finally all the tests are succeed. |
@hirosassa nice, good job! EDIT: there might be a more idiomatic way to handle this in a test than sleep, maybe something could be synchronized etc, but I will leave that up the you/reviewers to decide. |
The sleep is fragile. On a bad day, it won't be enough and a longer sleep slows down tests. I suggest moving the |
@lallea @ravwojdyla Thanks for your comment. I agree with your opinion. I'll try it. |
@lallea that sounds good. afaiu you are suggesting to retry until you can get the cmd line from |
I'm suggesting breaking out the call to a new function in |
@lallea @ravwojdyla I added retry on |
@dlstadther Hi Dillon! Could you review this PR? |
@dlstadther Thank you for your review and merge. |
Apologies @hirosassa ; I have been a bit consumed as of late. @honnix , could Spotify devs prep and release a new Luigi version? |
@dlstadther We will take care of it. Looking at #3220, it seems we should get that in before dropping a new release. |
Thanks @honnix ! |
Description
This PR adds Python 3.10 CI workflow to support Python 3.10.
Motivation and Context
To follow latest Python version.
Have you tested this? If so, how?
Ran tox on local Mac and Docker (ubuntu 20.04)