Bug 1499254 - sort reverse_chunk_deps for easier diffing. r=tomprince
authorAki Sasaki <asasaki@mozilla.com>
Tue, 23 Oct 2018 19:28:16 +0000
changeset 491029 6f85b1efc3d27984fda22198353a56fee1cdd994
parent 491028 dce16565d2a8c37e885b9e105ffcb78a0e6458db
child 491030 2eea4d6c1597ce9a997eca8bc5fdb78119d7aced
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewerstomprince
bugs1499254
milestone65.0a1
Bug 1499254 - sort reverse_chunk_deps for easier diffing. r=tomprince Differential Revision: https://phabricator.services.mozilla.com/D9194
taskcluster/taskgraph/transforms/reverse_chunk_deps.py
--- a/taskcluster/taskgraph/transforms/reverse_chunk_deps.py
+++ b/taskcluster/taskgraph/transforms/reverse_chunk_deps.py
@@ -28,17 +28,18 @@ def yield_job(orig_job, deps, count):
 
 
 @transforms.add
 def add_dependencies(config, jobs):
     for job in release_deps.add_dependencies(config, jobs):
         count = 1
         deps = {}
 
-        for dep_label in job['dependencies'].keys():
+        # sort for deterministic chunking
+        for dep_label in sorted(job['dependencies'].keys()):
             deps[dep_label] = dep_label
             if len(deps) == MAX_DEPENDENCIES:
                 yield yield_job(job, deps, count)
                 deps = {}
                 count += 1
         if deps:
             yield yield_job(job, deps, count)
             count += 1