Bug 1412121 - [taskgraph] Upload 'target_task_graph' artifact from the decision task, r?dustin draft
authorAndrew Halberstadt <ahalberstadt@mozilla.com>
Tue, 31 Oct 2017 14:24:29 -0400
changeset 701477 7dce9c8054daf9a848c96175508458ef7dd6059e
parent 701250 72ee4800d4156931c89b58bd807af4a3083702bb
child 701478 8cd15715b9a269c072536e64e9aef192346effbc
child 701567 a40d15eb38605cb096d6df39b4bcbffa2cbfd05c
push id90173
push userahalberstadt@mozilla.com
push dateTue, 21 Nov 2017 19:44:27 +0000
reviewersdustin
bugs1412121
milestone59.0a1
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
taskcluster/taskgraph/decision.py
--- 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)