Port mozregression to python3
Categories
(Testing :: mozregression, enhancement)
Tracking
(Not tracked)
People
(Reporter: wlach, Assigned: wlach)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Comment 1•7 years ago
|
||
Assignee | ||
Comment 2•7 years ago
|
||
Comment 3•7 years ago
|
||
Comment 4•6 years ago
•
|
||
FWIW many pip commands (with python 2.7) now spit out this warning:
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
So if possible, it seems like we should consider migrating to python3 by then (or before too long after that). Note that the deprecation date is ~11 months away.
Assignee | ||
Comment 5•6 years ago
|
||
(In reply to Daniel Holbert [:dholbert] from comment #4)
So if possible, it seems like we should consider migrating to python3 by then (or before too long after that). Note that the deprecation date is ~11 months away.
Yup, I am hoping this will happen this year. It looks like the mozbase migration to python 3 is finally starting to pick up steam, which is the only blocking issue.
Assignee | ||
Comment 6•6 years ago
|
||
Starting to work on this again, piece by piece. Building up the CI infrastructure to test python2 and python3 in parallel. Ran modernize on the command-line version + tests, currently working through the set of test failures. Porting the GUI will come last.
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 7•5 years ago
|
||
Update: I have run modernize on the codebase and am running some basic linting/ast checks to make sure that we don't inadvertently regress basic python 3 compatibility while this work is in flight.
https://github.com/mozilla/mozregression/pull/543
I think the command-line version actually does run on python3 now, though I'm out of time to actually test this thoroughly and add CI. My plan here goes something like this:
- Release mozregression 3.0, which supports both python 2.7 and python 3 (not sure what minimum version of python 3 we'll require... tbd).
- Port mozregression-gui to python 3.0, might also involve a port to pyqt5.
Probably shortly after (2) I will stop supporting python 2.7.
Assignee | ||
Comment 8•5 years ago
|
||
mozregression command-line now works with python3.5 and up (we have unit tests to prove it): https://github.com/mozilla/mozregression/pull/545
Will probably release a new version shortly. Still need to port the GUI
we have unit tests to prove it
I'm afraid that's not the case, python3-linux job is using Python 2.7.6... https://travis-ci.org/mozilla/mozregression/jobs/562715426#L676
FWIW I got 28 failed, 395 passed, 60 warnings when tested against Python 3.7.3
Assignee | ||
Comment 10•5 years ago
•
|
||
(In reply to 61.1p57 from comment #9)
we have unit tests to prove it
I'm afraid that's not the case, python3-linux job is using Python 2.7.6... https://travis-ci.org/mozilla/mozregression/jobs/562715426#L676FWIW I got 28 failed, 395 passed, 60 warnings when tested against Python 3.7.3
Sigh, you are right. Can't believe I missed that...
I don't think the issues are all that difficult to fix, I'll try to work through them over the next couple weeks as time allows. Anyone else should feel free to submit PRs (especially next week, when I'll be out).
Assignee | ||
Comment 11•5 years ago
|
||
Ok, finally this is working! Thanks to gloomy ghost for helping out.
Assignee | ||
Updated•5 years ago
|
Description
•