No bug: [taskgraph] Sort soft-dependencies output to make diffing easier; r=aki
authorTom Prince <mozilla@hocat.ca>
Mon, 21 Oct 2019 16:04:49 +0000
changeset 498393 fe98d2b3f313f64ebb716baf98a50dc12439fb2b
parent 498392 96bb55419dcb5b8a31c3b65ddaaf07ef00b0eba0
child 498394 118aa8a35c792f37e0e2472119112f047b68fce6
push id36717
push usernbeleuzu@mozilla.com
push dateMon, 21 Oct 2019 21:51:55 +0000
treeherdermozilla-central@563f437f24b9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaki
milestone71.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
No bug: [taskgraph] Sort soft-dependencies output to make diffing easier; r=aki Differential Revision: https://phabricator.services.mozilla.com/D49772
taskcluster/taskgraph/task.py
--- a/taskcluster/taskgraph/task.py
+++ b/taskcluster/taskgraph/task.py
@@ -56,17 +56,17 @@ class Task(object):
             raise AttributeError("Task {} does not have a name.".format(self.label))
 
     def to_json(self):
         rv = {
             'kind': self.kind,
             'label': self.label,
             'attributes': self.attributes,
             'dependencies': self.dependencies,
-            'soft_dependencies': self.soft_dependencies,
+            'soft_dependencies': sorted(self.soft_dependencies),
             'optimization': self.optimization,
             'task': self.task,
         }
         if self.task_id:
             rv['task_id'] = self.task_id
         if self.release_artifacts:
             rv['release_artifacts'] = sorted(self.release_artifacts)
         return rv