Bug 1317189 - Fix --rebuild-talos for TC try jobs by checking the correct attribute. r=wcosta draft
authorChris Manchester <cmanchester@mozilla.com>
Tue, 09 May 2017 14:04:10 -0700
changeset 575095 b7589432cf14eb728f94c442e1e50f3a464ff591
parent 574999 b9bd73036a925e44f44ee87e779fbbdb2dbe618c
child 627815 c3bf5b6e2b6b6c1529abfcdf001a6a2eedd473e6
push id57946
push userbmo:cmanchester@mozilla.com
push dateTue, 09 May 2017 21:10:03 +0000
reviewerswcosta
bugs1317189
milestone55.0a1
Bug 1317189 - Fix --rebuild-talos for TC try jobs by checking the correct attribute. r=wcosta MozReview-Commit-ID: K3WwZS9rVdj
taskcluster/taskgraph/target_tasks.py
--- a/taskcluster/taskgraph/target_tasks.py
+++ b/taskcluster/taskgraph/target_tasks.py
@@ -72,17 +72,17 @@ def target_tasks_try_option_syntax(full_
     for l in target_tasks_labels:
         task = full_task_graph[l]
         # If the developer wants test jobs to be rebuilt N times we add that value here
         if options.trigger_tests > 1 and 'unittest_suite' in task.attributes:
             task.attributes['task_duplicates'] = options.trigger_tests
             task.attributes['profile'] = False
 
         # If the developer wants test talos jobs to be rebuilt N times we add that value here
-        if options.talos_trigger_tests > 1 and 'talos_suite' in task.attributes:
+        if options.talos_trigger_tests > 1 and task.attributes.get('unittest_suite') == 'talos':
             task.attributes['task_duplicates'] = options.talos_trigger_tests
             task.attributes['profile'] = options.profile
 
         task.attributes.update(attributes)
 
     # Add notifications here as well
     if options.notifications:
         for task in full_task_graph: