Bug 1286075: never coalesce on try; r=jmaher
MozReview-Commit-ID: K6cX58yvdja
--- 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