Bug 1286075: simplify toolchain build tasks; r=glandium draft
authorDustin J. Mitchell <dustin@mozilla.com>
Mon, 08 Aug 2016 22:34:36 +0000
changeset 412716 a2bcef79cdda65630762d322e0c1897ca0f2cd3d
parent 412715 26c16cb14bb9f7bb90cbea717222f86b07af37d3
child 412717 9381b1291e56161c75c3e7a27261c16fcc1e1ebd
push id29252
push userdmitchell@mozilla.com
push dateMon, 12 Sep 2016 19:16:39 +0000
reviewersglandium
bugs1286075
milestone51.0a1
Bug 1286075: simplify toolchain build tasks; r=glandium This removes the use of inheritance for these tasks, incorporating some things that used to be inherited and dropping others. In particular, * drops index routes * drops the unused DISABLE_MOZHARNESS * sets tier explicitly to 1 * uses tooltool for both, even if gcc ignores it * drops the unused secrets scope MozReview-Commit-ID: GaMUpHa7PWN
taskcluster/ci/legacy/tasks/builds/linux64_clang.yml
taskcluster/ci/legacy/tasks/builds/linux64_gcc.yml
--- a/taskcluster/ci/legacy/tasks/builds/linux64_clang.yml
+++ b/taskcluster/ci/legacy/tasks/builds/linux64_clang.yml
@@ -1,52 +1,59 @@
 $inherits:
-  from: 'tasks/builds/firefox_docker_base.yml'
+  from: 'tasks/build.yml'
   variables:
+    build_product: firefox
     build_name: 'linux64-clang'
     build_type: 'opt'
+
+docker-image: desktop-build
 task:
   metadata:
     name: '[TC] Clang'
     description: 'Clang'
 
   workerType: 'gecko-{{level}}-b-linux'
 
-  routes:
-    - 'index.buildbot.branches.{{project}}.clang'
-    - 'index.buildbot.revisions.{{head_rev}}.{{project}}.clang'
-
   scopes:
+    - 'docker-worker:cache:level-{{level}}-{{project}}-tc-vcs'
     - 'docker-worker:cache:tooltool-cache'
 
   payload:
+    image:
+      type: 'task-image'
+      path: 'public/image.tar'
+      taskId:
+        task-reference: "<docker-image>"
+
     cache:
+      level-{{level}}-{{project}}-tc-vcs: '/home/worker/.tc-vcs'
       tooltool-cache: '/home/worker/tooltool-cache'
 
     env:
-      MOZHARNESS_DISABLE: 'true'
       TOOLS_DISABLE: 'true'
       TOOLTOOL_CACHE: '/home/worker/tooltool-cache'
 
     maxRunTime: 36000
 
     command: ["/bin/bash", "-c", "cd /home/worker/ && ./bin/checkout-sources.sh && ./workspace/build/src/taskcluster/scripts/misc/build-clang-linux.sh" ]
 
     artifacts:
-      'public/clang.tar.xz':
-        type: file
-        path: '/home/worker/workspace/artifacts/clang.tar.xz'
+      'public':
+        type: directory
+        path: '/home/worker/workspace/artifacts/'
         expires:
           relative-datestamp: "1 year"
 
   extra:
     treeherderEnv:
       - staging
       - production
     treeherder:
       groupSymbol: Cc
       groupName: Compilers, submitted by taskcluster
       symbol: Clang
+      tier: 1
       machine:
         platform: linux64
     locations:
         build: null
         tests: null
--- a/taskcluster/ci/legacy/tasks/builds/linux64_gcc.yml
+++ b/taskcluster/ci/legacy/tasks/builds/linux64_gcc.yml
@@ -1,45 +1,59 @@
 $inherits:
-  from: 'tasks/builds/firefox_docker_base.yml'
+  from: 'tasks/build.yml'
   variables:
+    build_product: firefox
     build_name: 'linux64-gcc'
     build_type: 'opt'
+
+docker-image: desktop-build
 task:
   metadata:
     name: '[TC] GCC'
     description: 'GCC'
 
   workerType: 'gecko-{{level}}-b-linux'
 
-  routes:
-    - 'index.buildbot.branches.{{project}}.gcc'
-    - 'index.buildbot.revisions.{{head_rev}}.{{project}}.gcc'
+  scopes:
+    - 'docker-worker:cache:level-{{level}}-{{project}}-tc-vcs'
+    - 'docker-worker:cache:tooltool-cache'
 
   payload:
+    image:
+      type: 'task-image'
+      path: 'public/image.tar'
+      taskId:
+        task-reference: "<docker-image>"
+
+    cache:
+      level-{{level}}-{{project}}-tc-vcs: '/home/worker/.tc-vcs'
+      tooltool-cache: '/home/worker/tooltool-cache'
+
     env:
-      MOZHARNESS_DISABLE: 'true'
       TOOLS_DISABLE: 'true'
+      TOOLTOOL_CACHE: '/home/worker/tooltool-cache'
 
     maxRunTime: 36000
 
     command: ["/bin/bash", "-c", "cd /home/worker/ && ./bin/checkout-sources.sh && ./workspace/build/src/taskcluster/scripts/misc/build-gcc-linux.sh" ]
 
     artifacts:
-      'public/gcc.tar.xz':
-        type: file
-        path: '/home/worker/workspace/artifacts/gcc.tar.xz'
+      'public':
+        type: directory
+        path: '/home/worker/workspace/artifacts/'
         expires:
           relative-datestamp: "1 year"
 
   extra:
     treeherderEnv:
       - staging
       - production
     treeherder:
       groupSymbol: Cc
       groupName: Compilers, submitted by taskcluster
       symbol: GCC
+      tier: 1
       machine:
         platform: linux64
     locations:
         build: null
         tests: null