Closed Bug 1594914 Opened 6 years ago Closed 5 years ago

mach - python-test compatibility for python3

Categories

(Firefox Build System :: Mach Core, task, P3)

task

Tracking

(firefox-esr78 fixed, firefox81 fixed)

RESOLVED FIXED
81 Branch
Tracking Status
firefox-esr78 --- fixed
firefox81 --- fixed

People

(Reporter: egao, Assigned: hamzah18051)

References

Details

Attachments

(1 file, 1 obsolete file)

Enable python3 compatibility for ./mach python-test.

To complete fully, this task will require multiple sub-tasks to be completed:

  • migration of all dependencies to be python3 compatible
  • all tests of dependencies run on python3 in addition to python2.7

Once the prerequisites are complete, I envision the following tasks:

  • migrate syntax to python3
  • enable and pass tests on python3

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: General → Task Configuration
Component: Task Configuration → Mach Core
Attached file Bug 1594914 - /mach python-test (obsolete) —
Assignee: nobody → hamzah18051
Status: NEW → ASSIGNED
Attachment #9153514 - Attachment is obsolete: true
Depends on: 1648506
Attachment #9153524 - Attachment description: Bug 1594914 - /mach python-test → Bug 1594914 - Conver mach python-test to run with python 3
Attachment #9153524 - Attachment description: Bug 1594914 - Conver mach python-test to run with python 3 → Bug 1594914 - Convert mach python-test to run with python 3
Pushed by gbrown@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/19269e470c71 Convert mach python-test to run with python 3 r=gbrown
Regressions: 1651474
Depends on: 1651696
Depends on: 1652756
Regressions: 1654868
No longer regressions: 1654868

The failures on the first landing were from running python tests during make check, which we don't do anymore as of bug 1655111, so this can reland.

Yes! ...except for some new mozbuild failures, only on py2/osx:

https://treeherder.mozilla.org/#/jobs?repo=try&revision=efc3b4ed78b0ad0c4dd3cfc123da83b5899e1793

I'll have a look today...maybe just disable on py2/osx again?

Pushed by gbrown@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a274e08c3a77 Convert mach python-test to run with python 3 r=gbrown
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch
See Also: → 1662381

Comment on attachment 9153524 [details]
Bug 1594914 - Convert mach python-test to run with python 3

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: Needed to uplift https://phabricator.services.mozilla.com/D88296, otherwise the non-pipenv test runner runs with Python 2, and that fails.
  • User impact if declined: None
  • Fix Landed on Version: 81
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): It's a build-only patch
  • String or UUID changes made by this patch:
Attachment #9153524 - Flags: approval-mozilla-esr78?

Comment on attachment 9153524 [details]
Bug 1594914 - Convert mach python-test to run with python 3

Needed to better support running mach on newer macOS releases. Approved for 78.8esr.

Attachment #9153524 - Flags: approval-mozilla-esr78? → approval-mozilla-esr78+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: