Closed Bug 1460470 Opened 6 years ago Closed 6 years ago

Port run-task to Python 3

Categories

(Firefox Build System :: Task Configuration, task)

3 Branch
task
Not set
normal

Tracking

(firefox62 fixed)

RESOLVED FIXED
mozilla62
Tracking Status
firefox62 --- fixed

People

(Reporter: gps, Assigned: gps)

References

Details

Attachments

(5 files)

I'd like to get run-task running on Python 3 so we are future compatible.

Ideally, we'd make run-task Python 3 only. Depending on results of a Try push, I may or may not do that in this bug.
I'm not 100% certain this passes Try. And we're blocked on landing this at present due to gmplib.org being offline. Try pushes in the past ~24h are using the patch in bug 1460777 to work around the problem.
This also requires bug 1460475 to get Python 3 on image_builder (or a change to use /usr/bin/python2.7 with run-task on image_builder until Python 3 is available).
Depends on: 1460475
Comment on attachment 8974867 [details]
Bug 1460470 - Make run-task compile on Python 3;

https://reviewboard.mozilla.org/r/243252/#review250048
Attachment #8974867 - Flags: review+
Attachment #8974867 - Flags: review?(core-build-config-reviews)
Comment on attachment 8974868 [details]
Bug 1460470 - Make run-task somewhat usable on Python 3;

https://reviewboard.mozilla.org/r/243254/#review250058

::: taskcluster/scripts/run-task:729
(Diff revision 3)
>      return run_and_prefix_output(b'task', task_args)
>  
>  
>  if __name__ == '__main__':
>      # Unbuffer stdio.
> +    if not PY3

nit: Missing colon. You fix this in a future patch - maybe a mixed up rebase?
Attachment #8974868 - Flags: review+
Attachment #8974868 - Flags: review?(core-build-config-reviews)
Comment on attachment 8974869 [details]
Bug 1460470 - More run-task Python 3 porting;

https://reviewboard.mozilla.org/r/243256/#review250060
Attachment #8974869 - Flags: review+
Attachment #8974869 - Flags: review?(core-build-config-reviews)
Comment on attachment 8974870 [details]
Bug 1460470 - Change run-task to use Python 3 by default;

https://reviewboard.mozilla.org/r/243258/#review250064
Attachment #8974870 - Flags: review+
Attachment #8974870 - Flags: review?(core-build-config-reviews)
Comment on attachment 8975094 [details]
Bug 1460470 - Make run-task Python 3.5+ only;

https://reviewboard.mozilla.org/r/243436/#review250066
Attachment #8975094 - Flags: review+
Attachment #8975094 - Flags: review?(core-build-config-reviews)
Comment on attachment 8974868 [details]
Bug 1460470 - Make run-task somewhat usable on Python 3;

https://reviewboard.mozilla.org/r/243254/#review250058

> nit: Missing colon. You fix this in a future patch - maybe a mixed up rebase?

Yup. I'll submit a new series with this fixed up.
Pushed by gszorc@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ebd569c9d870
Make run-task compile on Python 3; r=mshal
https://hg.mozilla.org/integration/autoland/rev/16d15b4b97fa
Make run-task somewhat usable on Python 3; r=mshal
https://hg.mozilla.org/integration/autoland/rev/88324086394e
More run-task Python 3 porting; r=mshal
https://hg.mozilla.org/integration/autoland/rev/94c3b68ccc48
Change run-task to use Python 3 by default; r=mshal
https://hg.mozilla.org/integration/autoland/rev/07a3e76abc8c
Make run-task Python 3.5+ only; r=mshal
Backout by aciure@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0648f20903e7
Backed out 5 changesets for gps: image build failures a=backout CLOSED TREE
Pushed by gszorc@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ef477a048b57
Make run-task compile on Python 3; r=mshal
https://hg.mozilla.org/integration/autoland/rev/19fe5702cf6d
Make run-task somewhat usable on Python 3; r=mshal
https://hg.mozilla.org/integration/autoland/rev/4902cab3ce5d
More run-task Python 3 porting; r=mshal
https://hg.mozilla.org/integration/autoland/rev/33fe8423f88c
Change run-task to use Python 3 by default; r=mshal
https://hg.mozilla.org/integration/autoland/rev/94a9641c5a01
Make run-task Python 3.5+ only; r=mshal
8a820882e927 (bug 1460411) introduced octal syntax to run-task between my last try run and the initial landing. Yay bit rot. Relanded with an "0666" changed to "0o666".
Backout by aciure@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/278ac3ea0ce5
Backed out 5 changesets for toolchains bustages a=backout CLOSED TREE
GCC tasks failed to build because www.multiprecision.org is currently offline. We'll be able to reland once that service comes back online.
With the taskcluster-images rebuilt with this change, this can actually reland without triggering rebuilds of gcc.
hg error in cmd: hg rebase -s ef477a048b575958be74287a2273830813b385f1 -d 51cd668c0e87: abort: unknown revision '51cd668c0e87'!
hg error in cmd: hg rebase -s ef477a048b575958be74287a2273830813b385f1 -d fb6bfcb8a12b: abort: unknown revision 'fb6bfcb8a12b'!
Pushed by gszorc@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3332fd1664fd
Make run-task compile on Python 3; r=mshal
https://hg.mozilla.org/integration/autoland/rev/7926b62aaed8
Make run-task somewhat usable on Python 3; r=mshal
https://hg.mozilla.org/integration/autoland/rev/27253061b12b
More run-task Python 3 porting; r=mshal
https://hg.mozilla.org/integration/autoland/rev/d12067020656
Change run-task to use Python 3 by default; r=mshal
https://hg.mozilla.org/integration/autoland/rev/26af09fb8be9
Make run-task Python 3.5+ only; r=mshal
Version: Version 3 → 3 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: