Bug 1387135 - Tag all tasks with their kind, r?dustin draft
authorAndrew Halberstadt <ahalberstadt@mozilla.com>
Wed, 16 Aug 2017 15:52:18 -0400
changeset 648488 305a9ad0c77fa88040ae209f1b88eafb7262ac03
parent 648487 0e37b7f4ee3362f0a69b6dbd415558fec5bd48f5
child 648489 4fe3fd7cf401d2c73b7d26e2e6382fce82e4257e
push id74770
push userahalberstadt@mozilla.com
push dateThu, 17 Aug 2017 20:33:01 +0000
reviewersdustin
bugs1387135
milestone57.0a1
Bug 1387135 - Tag all tasks with their kind, r?dustin MozReview-Commit-ID: DqMKNbSmgj3
taskcluster/taskgraph/transforms/task.py
--- a/taskcluster/taskgraph/transforms/task.py
+++ b/taskcluster/taskgraph/transforms/task.py
@@ -1004,17 +1004,20 @@ def build_task(config, tasks):
             routes.append('coalesce.v1.' + key)
 
         if 'priority' not in task:
             task['priority'] = BRANCH_PRIORITIES.get(
                 config.params['project'],
                 DEFAULT_BRANCH_PRIORITY)
 
         tags = task.get('tags', {})
-        tags.update({'createdForUser': config.params['owner']})
+        tags.update({
+            'createdForUser': config.params['owner'],
+            'kind': config.kind,
+        })
 
         task_def = {
             'provisionerId': provisioner_id,
             'workerType': worker_type,
             'routes': routes,
             'created': {'relative-datestamp': '0 seconds'},
             'deadline': {'relative-datestamp': task['deadline-after']},
             'expires': {'relative-datestamp': task['expires-after']},