Bug 1412121 - [taskgraph] Upload 'target_task_graph' artifact from the decision task, r?dustin
This is needed to |mach try| can download this taskgraph from CI rather than
generate it locally. Downloading is twice as fast on my machine + connection.
MozReview-Commit-ID: 2WRRs4AoXcK
--- a/taskcluster/taskgraph/decision.py
+++ b/taskcluster/taskgraph/decision.py
@@ -117,16 +117,17 @@ def taskgraph_decision(options, paramete
full_task_json = tgg.full_task_graph.to_json()
write_artifact('full-task-graph.json', full_task_json)
# this is just a test to check whether the from_json() function is working
_, _ = TaskGraph.from_json(full_task_json)
# write out the target task set to allow reproducing this as input
write_artifact('target-tasks.json', tgg.target_task_set.tasks.keys())
+ write_artifact('target-task-graph.json', tgg.target_task_graph.to_json())
# write out the optimized task graph to describe what will actually happen,
# and the map of labels to taskids
write_artifact('task-graph.json', tgg.morphed_task_graph.to_json())
write_artifact('label-to-taskid.json', tgg.label_to_taskid)
# actually create the graph
create_tasks(tgg.morphed_task_graph, tgg.label_to_taskid, parameters)