Bug 1286075: never coalesce on try; r=jmaher draft
authorDustin J. Mitchell <dustin@mozilla.com>
Sat, 27 Aug 2016 20:58:07 +0000
changeset 412732 f8b218080ed359eb4b450058ed727a6358b27a53
parent 412731 b69531216aa6ed8e8da5135a75acf6b0244539e4
child 412733 f93569efdd6c4978cc42d27d4bbe4f56129ac440
push id29252
push userdmitchell@mozilla.com
push dateMon, 12 Sep 2016 19:16:39 +0000
reviewersjmaher
bugs1286075
milestone51.0a1
Bug 1286075: never coalesce on try; r=jmaher MozReview-Commit-ID: K6cX58yvdja
taskcluster/taskgraph/task/legacy.py
--- a/taskcluster/taskgraph/task/legacy.py
+++ b/taskcluster/taskgraph/task/legacy.py
@@ -175,25 +175,22 @@ def remove_caches_from_task(task):
         pass
 
 
 def remove_coalescing_from_task(task):
     r"""Remove coalescing route and supersederUrl from job task
 
     :param task: task definition.
     """
-    patterns = [
-        re.compile("^coalesce.v1.builds.*pgo$"),
-    ]
 
     try:
         payload = task["task"]["payload"]
         routes = task["task"]["routes"]
         removable_routes = [route for route in list(routes)
-                            if any([p.match(route) for p in patterns])]
+                            if route.startswith('coalesce.')]
         if removable_routes:
             # we remove supersederUrl only when we have also routes to remove
             payload.pop("supersederUrl")
 
         for route in removable_routes:
             routes.remove(route)
     except KeyError:
         pass