Bug 1289625 - Use checkout-gecko-and-run in mozharness-gecko task; r?dustin draft
authorGregory Szorc <gps@mozilla.com>
Tue, 26 Jul 2016 19:12:14 -0700
changeset 393133 a751b434a6740e0dd0459a50cb6a18b33b99a7d7
parent 393060 8c361c7cc683e24771a973f2b822fd84605db0ed
child 526501 792277233f3a16fae9be22f1d135bee33d2eb315
push id24221
push usergszorc@mozilla.com
push dateWed, 27 Jul 2016 02:17:56 +0000
reviewersdustin
bugs1289625
milestone50.0a1
Bug 1289625 - Use checkout-gecko-and-run in mozharness-gecko task; r?dustin The first thing we do is switch from the desktop-test image to the lint image: the mozharness tests don't need anything in the desktop-test image. This does mean converting from Ubuntu 12.04 to 16.04. I'm fine upgrading to a newer operating system by 4 years :) Once we're on the lint image, we switch to use checkout-gecko-and-run. The mozharness-gecko task now does version control just like eslint-gecko and mozlint-flake8. MozReview-Commit-ID: 6mzAZ7LSBWl
taskcluster/ci/legacy/tasks/tests/mozharness-gecko.yml
--- a/taskcluster/ci/legacy/tasks/tests/mozharness-gecko.yml
+++ b/taskcluster/ci/legacy/tasks/tests/mozharness-gecko.yml
@@ -1,17 +1,17 @@
 ---
 $inherits:
     from: 'tasks/lint.yml'
     variables:
       build_product: 'lint'
       build_name: 'mozharness-tox'
       build_type: 'opt'
 
-docker-image: desktop-test
+docker-image: lint
 task:
   metadata:
     name: '[TC] - Mozharness Tox'
     description: 'Mozharness integration tests'
 
   scopes:
     - 'docker-worker:cache:level-{{level}}-{{project}}-dotcache'
 
@@ -21,23 +21,24 @@ task:
       path: 'public/image.tar'
       taskId:
         task-reference: "<docker-image>"
 
     cache:
       level-{{level}}-{{project}}-dotcache: '/home/worker/.cache'
 
     command:
+      - /home/worker/bin/checkout-gecko-and-run
+      - /home/worker/workspace/gecko
       - bash
       - -cx
       - >
-          tc-vcs checkout ./gecko {{base_repository}} {{head_repository}} {{head_rev}} {{head_ref}} &&
-          cd gecko/testing/mozharness &&
-          pip install tox &&
-          tox -e py27-hg3.7
+          cd /home/worker/workspace/gecko/testing/mozharness &&
+          /usr/bin/pip2 install tox &&
+          /home/worker/.local/bin/tox -e py27-hg3.7
   extra:
     extra:
         build_product: '{{build_product}}'
     locations:
         build: null
         tests: null
     treeherder:
         machine: