Bug 1281062 - Create Action Tasks to schedule new jobs. r=dustin

MozReview-Commit-ID: 5MvqLfGrlLC
This commit is contained in:
Kalpesh Krishna
2016-07-11 22:43:58 +05:30
parent 51f3bfa03e
commit 701956d8fb
7 changed files with 237 additions and 10 deletions

View File

@@ -153,6 +153,30 @@ class MachCommands(MachCommandBase):
traceback.print_exc()
sys.exit(1)
@SubCommand('taskgraph', 'action-task',
description="Run the action task")
@CommandArgument('--root', '-r',
default='taskcluster/ci',
help="root of the taskgraph definition relative to topsrcdir")
@CommandArgument('--decision-id',
required=True,
help="Decision Task ID of the reference decision task")
@CommandArgument('--task-labels',
required=True,
help='Comma separated list of task labels to be scheduled')
def taskgraph_action(self, **options):
"""Run the action task: Generates a task graph using the set of labels
provided in the task-labels parameter. It uses the full-task file of
the gecko decision task."""
import taskgraph.action
try:
self.setup_logging()
return taskgraph.action.taskgraph_action(options)
except Exception:
traceback.print_exc()
sys.exit(1)
def setup_logging(self, quiet=False, verbose=True):
"""
Set up Python logging for all loggers, sending results to stderr (so