Bug 1289643 - Add $ to regular expression in hg-shared cache name; r?dustin
All the other expressions are anchored via ^ and $.
MozReview-Commit-ID: BkCbZZUnwK6
--- a/taskcluster/taskgraph/task/legacy.py
+++ b/taskcluster/taskgraph/task/legacy.py
@@ -146,17 +146,17 @@ def set_interactive_task(task, interacti
def remove_caches_from_task(task):
r"""Remove all caches but vcs from the task.
:param task: task definition.
"""
whitelist = [
re.compile("^level-[123]-.*-tc-vcs(-public-sources)?$"),
- re.compile("^level-[123]-hg-shared"),
+ re.compile("^level-[123]-hg-shared$"),
re.compile("^tooltool-cache$"),
]
try:
caches = task["task"]["payload"]["cache"]
scopes = task["task"]["scopes"]
for cache in caches.keys():
if not any(pat.match(cache) for pat in whitelist):
caches.pop(cache)