]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
run_tasks: include more tags in sentry 1552/head
authorJosh Durgin <jdurgin@redhat.com>
Wed, 26 Aug 2020 01:15:38 +0000 (21:15 -0400)
committerJosh Durgin <jdurgin@redhat.com>
Wed, 26 Aug 2020 01:23:07 +0000 (21:23 -0400)
Sentry lets you search and filter by tag, so these will help
identifying issues within a suite, or only affecting a particular OS
or machine type.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
teuthology/run_tasks.py

index 17cafacd6cfb82276d82d6517d91da2e66a37baa..99e5a4abb72b003d83ed1c5455b6b46b9fba60ca 100644 (file)
@@ -111,10 +111,11 @@ def run_tasks(tasks, ctx):
                 'task': taskname,
                 'owner': ctx.owner,
             }
-            if 'teuthology_branch' in config:
-                tags['teuthology_branch'] = config['teuthology_branch']
-            if 'branch' in config:
-                tags['branch'] = config['branch']
+            optional_tags = ('teuthology_branch', 'branch', 'suite',
+                             'machine_type', 'os_type', 'os_version')
+            for tag in optional_tags:
+                if tag in config:
+                    tags[tag] = config[tag]
 
             # Remove ssh keys from reported config
             if 'targets' in config: