Bug 1413196 - Almost permafailing gecko decision tasks on Try: TypeError: argument of type 'NoneType' is not iterable during Generating tasks for release-bouncer-sub fennec r=rail
authorRok Garbas <rok@garbas.si>
Tue, 31 Oct 2017 15:01:23 +0100
changeset 389433 8b8e9e2e62439714840b2e5d266fb7ab6e8947e0
parent 389432 fed21152df1863ba2c0c48d9d2b1d90123e9fefa
child 389434 31f259ee387b61199ae3ea2f92d68fea45d88db2
push id96855
push userarchaeopteryx@coole-files.de
push dateTue, 31 Oct 2017 23:40:37 +0000
treeherdermozilla-inbound@285362745f60 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrail
bugs1413196
milestone58.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 1413196 - Almost permafailing gecko decision tasks on Try: TypeError: argument of type 'NoneType' is not iterable during Generating tasks for release-bouncer-sub fennec r=rail MozReview-Commit-ID: 54FykvKXUEw
taskcluster/taskgraph/transforms/task.py
--- a/taskcluster/taskgraph/transforms/task.py
+++ b/taskcluster/taskgraph/transforms/task.py
@@ -1338,17 +1338,19 @@ def build_task(config, tasks):
         notifications = task.get('notifications')
         if notifications:
             task_def['extra'].setdefault('notifications', {})
             for k, v in notifications.items():
                 if isinstance(v, dict) and len(v) == 1 and v.keys()[0].startswith('by-'):
                     v = {'tmp': v}
                     resolve_keyed_by(v, 'tmp', 'notifications', **config.params)
                     v = v['tmp']
-                if isinstance(v, list):
+                if v is None:
+                    continue
+                elif isinstance(v, list):
                     v = {'ids': v}
                     if 'completed' == k:
                         v.update({
                             "subject": "Completed: {}".format(FULL_TASK_NAME),
                             "message": "{} has completed successfully! Yay!".format(
                                 FULL_TASK_NAME),
                         })
                     elif k == 'failed':