Bug 1247168 - Actually use workspace cache in decision task; r=dustin
authorGregory Szorc <gps@mozilla.com>
Wed, 20 Jul 2016 15:34:10 -0700
changeset 346539 6c9ced9abf7eae19b05bf10420770dce0b20c045
parent 346538 34a4e796fa4d27ca4c8c27b3518b81d262a01222
child 346540 7450495f51828d454328f1af8c3bc575f36f6642
push id6389
push userraliiev@mozilla.com
push dateMon, 19 Sep 2016 13:38:22 +0000
treeherdermozilla-beta@01d67bfe6c81 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdustin
bugs1247168
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 1247168 - Actually use workspace cache in decision task; r=dustin The decision task configures a /home/worker/workspace cache. However, the command we run in the container references a "workspace" relative path. From logs in automation, it appears that PWD during execution is "/" because "workspace" is being resolved to "/workspace." The net result of this is we appear to be performing a VCS clone+checkout on every single task. This commit fixes the paths so our workspace cache is actually used. MozReview-Commit-ID: Kj6REep5bSs
.taskcluster.yml
taskcluster/taskgraph/action.yml
--- a/.taskcluster.yml
+++ b/.taskcluster.yml
@@ -84,18 +84,18 @@ tasks:
 
         maxRunTime: 1800
 
         command:
           - /bin/bash
           - -cx
           - >
             mkdir -p /home/worker/artifacts &&
-            checkout-gecko workspace &&
-            cd workspace/gecko &&
+            checkout-gecko /home/worker/workspace &&
+            cd /home/worker/workspace/gecko &&
             ln -s /home/worker/artifacts artifacts &&
             ./mach taskgraph decision
             --pushlog-id='{{pushlog_id}}'
             --project='{{project}}'
             --message='{{comment}}'
             --owner='{{owner}}'
             --level='{{level}}'
             --base-repository='https://hg.mozilla.org/mozilla-central'
--- a/taskcluster/taskgraph/action.yml
+++ b/taskcluster/taskgraph/action.yml
@@ -49,18 +49,18 @@ payload:
   # repository which is cached.
   maxRunTime: 1800
 
   command:
     - /bin/bash
     - -cx
     - >
       mkdir -p /home/worker/artifacts &&
-      checkout-gecko workspace &&
-      cd workspace/gecko &&
+      checkout-gecko /home/worker/workspace &&
+      cd /home/worker/workspace/gecko &&
       ln -s /home/worker/artifacts artifacts &&
       ./mach taskgraph action-task
       --decision-id='{{decision_task_id}}'
       --task-labels='{{task_labels}}'
 
   artifacts:
     'public':
       type: 'directory'