Bug 1634184 - Pick up visual metrics tasks in the cron task. r=tarek

The visual metrics tasks were not being picked up by the cron task. This patch fixes this by correctly parsing for vismet tasks in the general_perf_testing cron task.

Differential Revision: https://phabricator.services.mozilla.com/D73294
This commit is contained in:
Gregory Mierzwinski 2020-05-04 16:42:55 +00:00
Родитель d8878e67e5
Коммит 0b3a27bfae
1 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -529,9 +529,15 @@ def target_tasks_general_perf_testing(full_task_graph, parameters, graph_config)
def filter(task):
platform = task.attributes.get('build_platform')
attributes = task.attributes
if attributes.get('unittest_suite') != 'raptor':
vismet = attributes.get('kind') == 'visual-metrics-dep'
if attributes.get('unittest_suite') != 'raptor' and not vismet:
return False
try_name = attributes.get('raptor_try_name')
if vismet:
# Visual metric tasks are configured a bit differently
platform = task.task.get('extra').get('treeherder-platform')
try_name = task.label
# Run chrome and chromium on all platforms available
if '-chrome' in try_name: