Bug 1289643 - Add $ to regular expression in hg-shared cache name; r?dustin draft
authorGregory Szorc <gps@mozilla.com>
Fri, 29 Jul 2016 10:29:25 -0700
changeset 394427 079417a03c9a476823ae2205dc34e351e861152a
parent 394324 738db6c78ddebfcff0b129a760e12b59128ecae9
child 394428 9f9afec64dfef7bb63e81f7d80947625d0f381d9
child 394433 0b4a2752fba5922c350fd226d0f70a0c245fb8b6
child 394450 4620f74ff8f16f1076e03caf37fab0bcf3021180
push id24562
push userbmo:gps@mozilla.com
push dateFri, 29 Jul 2016 18:12:23 +0000
reviewersdustin
bugs1289643
milestone50.0a1
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
taskcluster/taskgraph/task/legacy.py
--- 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)