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 283779 edfc2f6e1578a4927deb3481382dfc808ecd5d19
parent 283778 d42cc18ad1bd0f4ba94599698cebd8a55f900071
child 283780 e313d46f421e00c65a1b7f9c155050bf982cf519
push id71681
push userdmitchell@mozilla.com
push dateWed, 10 Feb 2016 14:27:30 +0000
treeherdermozilla-inbound@edfc2f6e1578 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersarmenzg
bugs1246947
milestone47.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 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: