Bug 1340564: use attributes to identify talos jobs; r=bstack

MozReview-Commit-ID: B29F5SL8JNr

--HG--
extra : source : fd1f5c9160453dec2a83293cbf1f727a2d5ffc0a
This commit is contained in:
Dustin J. Mitchell 2017-04-25 22:34:13 +00:00
Родитель 8cd3cb39d2
Коммит fd4071972b
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -98,7 +98,10 @@ def add_talos(decision_task_id, times=1):
* Adding all talos jobs to a push. * Adding all talos jobs to a push.
""" """
full_task_json = get_artifact(decision_task_id, "public/full-task-graph.json") full_task_json = get_artifact(decision_task_id, "public/full-task-graph.json")
task_labels = [label for label in full_task_json if "talos" in label] task_labels = [
label for label, task in full_task_json.iteritems()
if "talos_try_name" in task['attributes']
]
for time in xrange(times): for time in xrange(times):
add_tasks(decision_task_id, task_labels, '{}-'.format(time)) add_tasks(decision_task_id, task_labels, '{}-'.format(time))