Bug 1289643 - Add $ to regular expression in hg-shared cache name; r=dustin
authorGregory Szorc <gps@mozilla.com>
Fri, 29 Jul 2016 10:29:25 -0700
changeset 307521 0beb6afa58b70382dc1974bd07326bb8b948561a
parent 307520 eb9e8982f50cabcf45c596fb1fd9a2c97baad462
child 307522 50b87c38d18dc57a57de8b5c24079899180af11a
push id30964
push usergszorc@mozilla.com
push dateMon, 01 Aug 2016 16:55:46 +0000
treeherderautoland@6ea38e685679 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdustin
bugs1289643
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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)