Bug 1385149 - Improve action task testing errors r=dustin
☠☠ backed out by eae0a0bb18e8 ☠ ☠
authorBrian Stack <bstack@mozilla.com>
Thu, 27 Jul 2017 18:48:53 -0700
changeset 420386 bb231507aab86fa5e5b32d3275236937c20ce1a2
parent 420385 b6ef3ef539fc348a3b365a1e52200af60ebefa9d
child 420387 bec038e5f354f4194db9c2d66f859104cd3df875
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