From 488a75b5576df5008b857920cde79d7c7cad84f1 Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Tue, 25 Aug 2020 21:15:38 -0400 Subject: [PATCH] run_tasks: include more tags in sentry 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 --- teuthology/run_tasks.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/teuthology/run_tasks.py b/teuthology/run_tasks.py index 17cafacd6c..99e5a4abb7 100644 --- a/teuthology/run_tasks.py +++ b/teuthology/run_tasks.py @@ -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: -- 2.39.5