Bug 1246947: cache test workspaces to get SSD/ext4 performance; r=armenzg
authorDustin J. Mitchell <dustin@mozilla.com>
Tue, 09 Feb 2016 15:14:54 +0000
changeset 330100 edfc2f6e1578a4927deb3481382dfc808ecd5d19
parent 330099 d42cc18ad1bd0f4ba94599698cebd8a55f900071
child 330101 e313d46f421e00c65a1b7f9c155050bf982cf519
push id10675
push userbmo:james@hoppipolla.co.uk
push dateWed, 10 Feb 2016 15:13:04 +0000
reviewersarmenzg
bugs1246947
milestone47.0a1
Bug 1246947: cache test workspaces to get SSD/ext4 performance; r=armenzg
testing/taskcluster/tasks/tests/fx_test_base.yml
--- a/testing/taskcluster/tasks/tests/fx_test_base.yml
+++ b/testing/taskcluster/tasks/tests/fx_test_base.yml
@@ -1,23 +1,33 @@
 ---
 $inherits:
   from: 'tasks/test.yml'
 task:
   workerType: desktop-test
+  scopes:
+    - docker-worker:cache:level-{{level}}-{{project}}-test-workspace
+    - docker-worker:cache:level-{{level}}-{{project}}-test-tmp
   payload:
     image:
       type: 'task-image'
       path: 'public/image.tar'
       taskId: '{{#task_id_for_image}}desktop-test{{/task_id_for_image}}'
     env:
         NEED_WINDOW_MANAGER: true
         NEED_PULSEAUDIO: true
         GECKO_HEAD_REPOSITORY: '{{{head_repository}}}'
         GECKO_HEAD_REV: '{{{head_rev}}}'
+
+    cache:
+      # put the workspace and /tmp on a cache, less for inter-task caching than
+      # to get this directory on fast, non-aufs storage
+      level-{{level}}-{{project}}-test-workspace: '/home/worker/workspace'
+      level-{{level}}-{{project}}-test-tmp: '/tmp'
+
     artifacts:
       'public/test':
         type: directory
         path: '/home/worker/artifacts/'
         expires: '{{#from_now}}1 year{{/from_now}}'
     features:
       allowPtrace: true
   extra: