Bug 1526072 - Avoid trailing spaces when generating the schema for build telemetry. r=nalexander
authorChris Manchester <cmanchester@mozilla.com>
Wed, 27 Mar 2019 22:46:22 +0000
changeset 466495 483189a652e1418ddcac2d0ed3c3697789754ff7
parent 466494 2ba58db65271c9be85179a049e15e4535661580a
child 466496 901753b5fe58ad1c3ed11e6c224897de6476b03b
push id35768
push useropoprus@mozilla.com
push dateThu, 28 Mar 2019 09:55:54 +0000
treeherdermozilla-central@c045dd97faf2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnalexander
bugs1526072
milestone68.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
Bug 1526072 - Avoid trailing spaces when generating the schema for build telemetry. r=nalexander Differential Revision: https://phabricator.services.mozilla.com/D22628
python/mozbuild/mozbuild/export_telemetry_schema.py
--- a/python/mozbuild/mozbuild/export_telemetry_schema.py
+++ b/python/mozbuild/mozbuild/export_telemetry_schema.py
@@ -32,13 +32,13 @@ def main():
 
     parser = argparse.ArgumentParser(
         description='Output build system telemetry schema in json-schema format')
     parser.add_argument('output', help='JSON output destination')
     args = parser.parse_args()
 
     schema = luscious.get_jsonschema(mozbuild.telemetry.schema)
     with open(args.output, 'wb') as f:
-        json.dump(schema, f, indent=2, sort_keys=True)
+        json.dump(schema, f, indent=2, separators=(',', ': '), sort_keys=True)
 
 
 if __name__ == '__main__':
     main()