Bug 1237739 - Sort keys in generated graph; r?garndt
Deterministic output is easier to read and test. We're not fully
deterministic with this patch, but it's a start.
--- a/testing/taskcluster/mach_commands.py
+++ b/testing/taskcluster/mach_commands.py
@@ -565,17 +565,17 @@ class Graph(object):
print_task(task)
return
# When we are extending the graph remove extra fields...
if params['ci'] is True:
graph.pop('scopes', None)
graph.pop('metadata', None)
- print(json.dumps(graph, indent=4))
+ print(json.dumps(graph, indent=4, sort_keys=True))
@CommandProvider
class CIBuild(object):
@Command('taskcluster-build', category='ci',
description="Create taskcluster try server build task")
@CommandArgument('--base-repository',
help='URL for "base" repository to clone')
@CommandArgument('--head-repository',