Bug 1491371 - Update .taskcluster.yml to run comm-task-env r?dustin draft
authorRob Lemley <rob@thunderbird.net>
Wed, 30 Jan 2019 21:41:22 +0000
changeset 72182 4a3307d299b51ea5b6434dd682fc23d11e18f8ea
parent 72181 cc990b721e070272d0784e4cef605e40b0e3b569
child 72183 2e5fec7bb65ea372afe60af58c12e14f48c7ef54
push id8032
push usermozilla@hocat.ca
push dateThu, 21 Mar 2019 19:00:49 +0000
treeherdertry-comm-central@1ee4052f4599 [default view] [failures only]
reviewersdustin
bugs1491371
Bug 1491371 - Update .taskcluster.yml to run comm-task-env r?dustin Prepends/wraps "run-task" execution with "comm-task-env". It will download the configuration file containing the Gecko h.m.o. repository information and set the appropriate environment variables so "run-task" can run. Differential Revision: https://phabricator.services.mozilla.com/D18133
.taskcluster.yml
--- a/.taskcluster.yml
+++ b/.taskcluster.yml
@@ -140,20 +140,17 @@ tasks:
       priority: lowest
       retries: 5
 
       payload:
         env:
           # checkout-gecko uses these to check out the source; the inputs
           # to `mach taskgraph decision` are all on the command line.
           $merge:
-            - GECKO_BASE_REPOSITORY: 'https://hg.mozilla.org/mozilla-unified'
-              GECKO_HEAD_REPOSITORY: 'https://hg.mozilla.org/mozilla-central'
-              GECKO_HEAD_REF: 'default'
-              COMM_BASE_REPOSITORY: 'https://hg.mozilla.org/comm-central'
+            - COMM_BASE_REPOSITORY: 'https://hg.mozilla.org/comm-central'
               COMM_HEAD_REPOSITORY: '${repoUrl}'
               COMM_HEAD_REF: '${push.revision}'
               COMM_HEAD_REV: '${push.revision}'
               HG_STORE_PATH: /builds/worker/checkouts/hg-store
               TASKCLUSTER_CACHES: /builds/worker/checkouts
               # someday, these will be provided by the worker - Bug 1492664
               TASKCLUSTER_ROOT_URL: https://taskcluster.net
               TASKCLUSTER_PROXY_URL: http://taskcluster
@@ -178,16 +175,17 @@ tasks:
         # scriptworker patch!
         image: 'taskcluster/decision:2.1.0@sha256:6db3b697d7a3c7aba440d72f04199331b872111cefff57206b8b8b1d53230360'
 
         maxRunTime: 1800
 
         # TODO use mozilla-unified for the base repository once the tc-vcs
         # tar.gz archives are created or tc-vcs isn't being used.
         command:
+          - /builds/worker/bin/comm-task-env
           - /builds/worker/bin/run-task
           - '--vcs-checkout=/builds/worker/checkouts/gecko'
           - '--sparse-profile=build/sparse-profiles/taskgraph'
           - '--comm-checkout=/builds/worker/checkouts/gecko/comm'
           - '--'
           - bash
           - -cx
           - $let: