Bug 1286075: never coalesce on try; r=jmaher

MozReview-Commit-ID: K6cX58yvdja

--HG--
extra : rebase_source : f8b218080ed359eb4b450058ed727a6358b27a53
This commit is contained in:
Dustin J. Mitchell 2016-08-27 20:58:07 +00:00
Родитель 383d581bc6
Коммит 7033c6330d
1 изменённых файлов: 1 добавлений и 4 удалений

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

@ -180,15 +180,12 @@ def remove_coalescing_from_task(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")