Bug 1204346 - Add a white-list of caches for try server jobs; r=garndt
authorEhsan Akhgari <ehsan@mozilla.com>
Mon, 14 Sep 2015 22:25:21 -0400
changeset 295122 2c9f4d2e77fabd283b530a0c34bd21719c0a762b
parent 295121 92ba84502c367b5f8f81f59168f1bc43e26b24c2
child 295123 1a912ffbe674eb667c0eae2531a2243c5f786368
push id5245
push userraliiev@mozilla.com
push dateThu, 29 Oct 2015 11:30:51 +0000
treeherdermozilla-beta@dac831dc1bd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgarndt
bugs1204346
milestone43.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 1204346 - Add a white-list of caches for try server jobs; r=garndt
testing/taskcluster/mach_commands.py
--- a/testing/taskcluster/mach_commands.py
+++ b/testing/taskcluster/mach_commands.py
@@ -189,20 +189,25 @@ def set_interactive_task(task, interacti
         payload["features"] = {}
     payload["features"]["interactive"] = True
 
 def remove_caches_from_task(task):
     r"""Remove all caches but tc-vcs from the task.
 
     :param task: task definition.
     """
+    whitelist = [
+        "tc-vcs",
+        "tc-vcs-public-source",
+        "tooltool-cache",
+    ]
     try:
         caches = task["task"]["payload"]["cache"]
         for cache in caches.keys():
-            if cache != "tc-vcs":
+            if cache not in whitelist:
                 caches.pop(cache)
     except KeyError:
         pass
 
 @CommandProvider
 class DecisionTask(object):
     @Command('taskcluster-decision', category="ci",
         description="Build a decision task")