Closed
Bug 1603634
Opened 6 years ago
Closed 6 years ago
[mozharness] fix tests for python3
Categories
(Release Engineering :: Applications: MozharnessCore, task)
Release Engineering
Applications: MozharnessCore
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: egao, Assigned: egao)
References
Details
(Keywords: leave-open)
Attachments
(7 files)
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review |
A lot of the issues when mozharness tests are run in python3, are the tests themselves.
For example, in test_base_config.py
, the method _get_python_config()
calls execfile
, which is no longer supported in python3.
The only work required in this case is to wrap this in a if six.PY2
conditional and implement python2/3 cases.
This bug is to document the ongoing work to fix the tests themselves. Work requiring changes to the actual mozharness
code should go under its own bugs that block the parent bug 1532427.
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → egao
Keywords: leave-open
Assignee | ||
Comment 1•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Summary: [mozharness] fix tests → [mozharness] fix tests for python3
Updated•6 years ago
|
Attachment #9115655 -
Attachment description: Bug 1603634 - replace execfile syntax for python3 in test_base_config.py → Bug 1603634 - replace execfile syntax with python2/3 compatible call in test_base_config.py
Assignee | ||
Comment 2•6 years ago
|
||
Pushed by egao@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8b75773bd695
wrap dictionary.keys() call with list() to ensure sortability r=aki
Pushed by egao@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/cd8323891d68
replace execfile syntax with python2/3 compatible call in test_base_config.py r=aki
Assignee | ||
Comment 5•6 years ago
|
||
Assignee | ||
Comment 6•6 years ago
|
||
Comment 7•6 years ago
|
||
bugherder |
Pushed by egao@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0080453fdf41
change to integer division operator for both python versions r=aki
Pushed by egao@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bc8ac1530aba
replace file() call with open() in test_base_python.py r=aki
Assignee | ||
Comment 10•6 years ago
|
||
Comment 11•6 years ago
|
||
bugherder |
Updated•6 years ago
|
Attachment #9115926 -
Attachment description: Bug 1603634 - ensure output being processed in mozharness/base/log.py is string type → Bug 1603634 - add check against byte types in mozharness/base/log.py
Assignee | ||
Comment 12•6 years ago
|
||
Comment 13•6 years ago
|
||
Pushed by egao@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3bbca9c01ba3
check if line is a decodable type r=aki,marco
Updated•6 years ago
|
Attachment #9115926 -
Attachment description: Bug 1603634 - add check against byte types in mozharness/base/log.py → Bug 1603634 - ensure iterated value is a list and only perform decode if value supports such action in mozharness/base/log.py
Comment 14•6 years ago
|
||
Pushed by egao@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a2b49a6d061b
ensure iterated value is a list and only perform decode if value supports such action in mozharness/base/log.py r=aki,marco
Comment 15•6 years ago
|
||
bugherder |
Comment 16•6 years ago
|
||
bugherder |
Assignee | ||
Comment 17•6 years ago
|
||
Updated•6 years ago
|
Attachment #9117708 -
Attachment description: Bug 1603634 - use python3.6 in the lint docker image for mozharness tests in python3 → Bug 1603634 - use python3.6 to run mozharness tests in python3
Comment 18•6 years ago
|
||
Pushed by egao@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7e9830f213c8
use python3.6 to run mozharness tests in python3 r=jmaher
Comment 19•6 years ago
|
||
bugherder |
Assignee | ||
Updated•6 years ago
|
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•