Bug 1132583: Use different object folders for opt and debug builds.
authorWander Lairson Costa <wcosta@mozilla.com>
Wed, 18 Feb 2015 11:41:31 -0200
changeset 229575 f68c4d461b0b94fb8456423047a76d98cd4a1b8f
parent 229574 975694bde3c143435f18511c982c98d0e860e186
child 229576 b0f2821f2a3b15726e397a026945b3940ceb054b
push id13962
push userwcosta@mozilla.com
push dateWed, 18 Feb 2015 13:41:39 +0000
treeherderb2g-inbound@f68c4d461b0b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1132583
milestone38.0a1
Bug 1132583: Use different object folders for opt and debug builds. Due to caching, using the same object folder for debug and opt builds may lead to object linking issues.
testing/taskcluster/tasks/builds/b2g_desktop_base.yml
testing/taskcluster/tasks/builds/b2g_desktop_debug.yml
testing/taskcluster/tasks/builds/b2g_desktop_opt.yml
--- a/testing/taskcluster/tasks/builds/b2g_desktop_base.yml
+++ b/testing/taskcluster/tasks/builds/b2g_desktop_base.yml
@@ -4,23 +4,21 @@ task:
   metadata:
     name: "[TC] B2G Desktop {{build_type}}"
     description: B2G Desktop {{build_type}}
 
   workerType: b2gbuild-desktop
   scopes:
     - 'docker-worker:cache:sources-gecko'
     - 'docker-worker:cache:sources-gaia'
-    - 'docker-worker:cache:build-b2g-desktop-objects'
 
   payload:
     cache:
       sources-gaia: '/home/worker/gaia'
       sources-gecko: '/home/worker/gecko'
-      build-b2g-desktop-objects: '/home/worker/object-folder'
 
     env:
       MOZCONFIG: 'b2g/config/mozconfigs/linux64_gecko/nightly'
       MOZTT_GIT_URL: '{{moztt_git_url}}'
       MOZTT_REVISION: '{{moztt_revision}}'
 
     command:
       - bin/build-b2g-desktop.sh
--- a/testing/taskcluster/tasks/builds/b2g_desktop_debug.yml
+++ b/testing/taskcluster/tasks/builds/b2g_desktop_debug.yml
@@ -1,14 +1,21 @@
 $inherits:
   from: 'tasks/builds/b2g_desktop_base.yml'
   variables:
     build_type: 'debug'
 
 task:
+  scopes:
+      - 'docker-worker:cache:build-b2g-desktop-objects-debug'
+
+  payload:
+    cache:
+        build-b2g-desktop-objects-debug: '/home/worker/object-folder'
+
   extra:
     treeherder:
       collection:
         debug: true
 
   payload:
     env:
       MOZCONFIG: 'b2g/config/mozconfigs/linux64_gecko/debug'
--- a/testing/taskcluster/tasks/builds/b2g_desktop_opt.yml
+++ b/testing/taskcluster/tasks/builds/b2g_desktop_opt.yml
@@ -1,9 +1,16 @@
 $inherits:
   from: 'tasks/builds/b2g_desktop_base.yml'
   variables:
     build_type: 'opt'
 
 task:
+  scopes:
+      - 'docker-worker:cache:build-b2g-desktop-objects-opt'
+
+  payload:
+    cache:
+        build-b2g-desktop-objects-opt: '/home/worker/object-folder'
+
   payload:
     env:
       MOZCONFIG: 'b2g/config/mozconfigs/linux64_gecko/nightly'