Closed Bug 1725404 Opened 4 years ago Closed 4 years ago

Unify command line handling between standalone and gecko taskgraphs

Categories

(Firefox Build System :: Task Configuration, task)

task

Tracking

(firefox93 fixed)

RESOLVED FIXED
93 Branch
Tracking Status
firefox93 --- fixed

People

(Reporter: ahal, Assigned: ahal)

References

Details

Attachments

(10 files)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

Currently gecko taskgraph is implemented as a mach_commands.py file and standalone taskgraph implements the cli in main.py (which is absent in gecko taskgraph).

This bug will sync main.py into gecko and then refactor the mach_commands.py to use it. The gecko taskgraph has a bunch of cli features that don't exist in standalone. For now I'll aim to leave these in mach_commands.py, though we may eventually wish to upstream some of them to standalone (this will be left for a follow-up bugs).

This matches the similar command in standalone taskgraph.

Depends on D122526

Attachment #9236053 - Attachment description: WIP: Bug 1725404 - [taskgraph] Sync main.py from standalone taskgraph → Bug 1725404 - [taskgraph] Sync main.py from standalone taskgraph, r?bhearsum!
Attachment #9236054 - Attachment description: WIP: Bug 1725404 - [taskgraph] Re-use 'show' subcommand args from main.py → Bug 1725404 - [taskgraph] Re-use 'show' subcommand args from main.py, r?bhearsum!
Attachment #9236055 - Attachment description: WIP: Bug 1725404 - [taskgraph] Re-use 'docker' subcommand args from main.py → Bug 1725404 - [taskgraph] Re-use 'docker' subcommand args from main.py, r?bhearsum!
Attachment #9236056 - Attachment description: WIP: Bug 1725404 - [taskgraph] Use copy of 'get_filtered_taskgraph' from main.py → Bug 1725404 - [taskgraph] Use copy of 'get_filtered_taskgraph' from main.py, r?bhearsum!
Attachment #9236057 - Attachment description: WIP: Bug 1725404 - [taskgraph] Re-use 'decision' args from main.py → Bug 1725404 - [taskgraph] Re-use 'decision' args from main.py, r?bhearsum!
Attachment #9236060 - Attachment description: WIP: Bug 1725404 - [taskgraph] Re-use 'action-callback' subcommand args from main.py → Bug 1725404 - [taskgraph] Re-use 'action-callback' subcommand args from main.py, r?bhearsum!
Attachment #9236061 - Attachment description: WIP: Bug 1725404 - [taskgraph] Implement 'mach taskcluster-image-digest' command → Bug 1725404 - [taskgraph] Implement 'mach taskcluster-image-digest' command, r?bhearsum!
Pushed by ahalberstadt@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7d7c18031ad8 [taskgraph] Sync main.py from standalone taskgraph, r=bhearsum https://hg.mozilla.org/integration/autoland/rev/94dc0216cc89 [taskgraph] Re-use 'show' subcommand args from main.py, r=bhearsum https://hg.mozilla.org/integration/autoland/rev/62795119c234 [taskgraph] Re-use 'docker' subcommand args from main.py, r=bhearsum https://hg.mozilla.org/integration/autoland/rev/57bed0e90166 [taskgraph] Use copy of 'get_filtered_taskgraph' from main.py, r=bhearsum https://hg.mozilla.org/integration/autoland/rev/c6b1b814b1f8 [taskgraph] Re-use 'decision' args from main.py, r=bhearsum https://hg.mozilla.org/integration/autoland/rev/24be2a25cdef [taskgraph] Re-use 'action-callback' subcommand args from main.py, r=bhearsum https://hg.mozilla.org/integration/autoland/rev/a935d1217a4d [taskgraph] Implement 'mach taskcluster-image-digest' command, r=bhearsum
Pushed by ahalberstadt@mozilla.com: https://hg.mozilla.org/ci/taskgraph/rev/671e3d08bbd0 Sync back changes in 'main.py' from mozilla-central, r=bhearsum
Keywords: leave-open
Depends on: 1726017

This syncs in the latest 'main.py' from standalone taskgraph and refactors
mach_commands.py to use it.

A drive-by fix I noticed.

Depends on D122778

Pushed by geoff@darktrojan.net: https://hg.mozilla.org/comm-central/rev/95bf32e159cb Port bug 1725404 - Add --repository-type argument to `mach taskgraph decision`. rs=bustage-fix
Keywords: leave-open
Pushed by ahalberstadt@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e2712f329b8c Refactor '--target-kind' / '--output-file' logic to use standalone taskgraph's implementation, r=bhearsum https://hg.mozilla.org/integration/autoland/rev/61127b8f451c Only print warning about -J if '--diff' was specified, r=bhearsum
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: