2828run_task_schema = Schema (
2929 {
3030 Required ("using" ): "run-task" ,
31- # if true, add a cache at ~worker/.cache, which is where things like pip
32- # tend to hide their caches. This cache is never added for level-1 tasks.
33- # TODO Once bug 1526028 is fixed, this and 'use-caches' should be merged.
34- Required ("cache-dotcache" ): bool ,
3531 # Which caches to use. May take a boolean in which case either all
3632 # (True) or no (False) caches will be used. Alternatively, it can
3733 # accept a list of caches to enable. Defaults to only the checkout cache
@@ -115,7 +111,6 @@ def common_setup(config, task, taskdesc, command):
115111
116112
117113worker_defaults = {
118- "cache-dotcache" : False ,
119114 "checkout" : True ,
120115 "sparse-profile" : None ,
121116 "run-as-root" : False ,
@@ -142,16 +137,6 @@ def docker_worker_run_task(config, task, taskdesc):
142137 command = run .pop ("run-task-command" , ["/usr/local/bin/run-task" ])
143138 common_setup (config , task , taskdesc , command )
144139
145- if run .get ("cache-dotcache" ):
146- worker ["caches" ].append (
147- {
148- "type" : "persistent" ,
149- "name" : "{project}-dotcache" .format (** config .params ),
150- "mount-point" : "{workdir}/.cache" .format (** run ),
151- "skip-untrusted" : True ,
152- }
153- )
154-
155140 run_command = run ["command" ]
156141
157142 # dict is for the case of `{'task-reference': str}`.
@@ -184,13 +169,6 @@ def generic_worker_run_task(config, task, taskdesc):
184169 common_setup (config , task , taskdesc , command )
185170
186171 worker .setdefault ("mounts" , [])
187- if run .get ("cache-dotcache" ):
188- worker ["mounts" ].append (
189- {
190- "cache-name" : "{project}-dotcache" .format (** config .params ),
191- "directory" : "{workdir}/.cache" .format (** run ),
192- }
193- )
194172 worker ["mounts" ].append (
195173 {
196174 "content" : {
0 commit comments