Bug 1385149 - Improve action task testing errors r=dustin
authorBrian Stack <bstack@mozilla.com>
Thu, 27 Jul 2017 18:48:53 -0700
changeset 420555 4ad66eac9af277ab49656e64d3065913656f3c68
parent 420554 f549e61189eb42fbb74e41e7bc82726881974c89
child 420556 18c4500d17f74759beeb0e90573d2818dee66345
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdustin
bugs1385149
milestone56.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 1385149 - Improve action task testing errors r=dustin MozReview-Commit-ID: AHO7RGlU9g2
taskcluster/taskgraph/actions/registry.py
--- a/taskcluster/taskgraph/actions/registry.py
+++ b/taskcluster/taskgraph/actions/registry.py
@@ -300,17 +300,18 @@ def render_actions_json(parameters):
 def trigger_action_callback(task_group_id, task_id, task, input, callback, parameters,
                             test=False):
     """
     Trigger action callback with the given inputs. If `test` is true, then run
     the action callback in testing mode, without actually creating tasks.
     """
     cb = get_callbacks().get(callback, None)
     if not cb:
-        raise Exception('Unknown callback: {}'.format(callback))
+        raise Exception('Unknown callback: {}. Known callbacks: {}'.format(
+            callback, get_callbacks().keys()))
 
     if test:
         util.testing = True
 
     cb(Parameters(**parameters), input, task_group_id, task_id, task)
 
 
 @memoize