Bug 1430823: Pass in `Parameters` to `load_kinds` in `mach artifact toolchain`; r=dustin
authorTom Prince <mozilla@hocat.ca>
Wed, 17 Jan 2018 12:02:42 -0700
changeset 454026 3a84918576511005057a1a234587ed8fdf63ef4d
parent 454025 6405716d757df0ee49f6beec764086422529b6a2
child 454027 5b730501efa0302ddc914e542b2c70b06d06deb0
push id1648
push usermtabara@mozilla.com
push dateThu, 01 Mar 2018 12:45:47 +0000
treeherdermozilla-release@cbb9688c2eeb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdustin
bugs1430823
milestone59.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 1430823: Pass in `Parameters` to `load_kinds` in `mach artifact toolchain`; r=dustin Differential Revision: https://phabricator.services.mozilla.com/D409
python/mozbuild/mozbuild/mach_commands.py
--- a/python/mozbuild/mozbuild/mach_commands.py
+++ b/python/mozbuild/mozbuild/mach_commands.py
@@ -1223,16 +1223,17 @@ class PackageFrontend(MachCommandBase):
             unpack_file,
         )
         from requests.adapters import HTTPAdapter
         import redo
         import requests
         import shutil
 
         from taskgraph.generator import load_graph_config, Kind
+        from taskgraph.parameters import Parameters
         from taskgraph.util.taskcluster import (
             get_artifact_url,
             list_artifacts,
         )
         import yaml
 
         self._set_log_level(verbose)
         # Normally, we'd use self.log_manager.enable_unstructured(),
@@ -1346,17 +1347,17 @@ class PackageFrontend(MachCommandBase):
                 'pushlog_id': 0,
                 'owner': '',
             }
 
             # TODO: move to the taskcluster package
             def tasks(kind_name):
                 root_path = mozpath.join(self.topsrcdir, 'taskcluster', 'ci')
                 graph_config = load_graph_config(root_path)
-                tasks = Kind.load(root_path, graph_config, kind_name).load_tasks(params, {})
+                tasks = Kind.load(root_path, graph_config, kind_name).load_tasks(Parameters(**params), {})
                 return {
                     task.task['metadata']['name']: task
                     for task in tasks
                 }
 
             toolchains = tasks('toolchain')
 
             aliases = {}