Bug 1240184 - run mozharness tests in the gecko task graph. r=dustin
authorJustin Wood <Callek@gmail.com>
Mon, 21 Mar 2016 17:41:43 -0400
changeset 290068 93c1fd8563307ecf2543e381e2f79fea0659b796
parent 290067 2c3ebed966864f64b2fe2ba980c7d74cd52ae687
child 290069 4b36423739fa9ccbd2e04b6e934109bc05d8db30
push id30114
push usercbook@mozilla.com
push dateThu, 24 Mar 2016 15:15:54 +0000
treeherdermozilla-central@24c5fbde4488 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdustin
bugs1240184
milestone48.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 1240184 - run mozharness tests in the gecko task graph. r=dustin
testing/taskcluster/tasks/branches/base_jobs.yml
testing/taskcluster/tasks/lint.yml
testing/taskcluster/tasks/tests/eslint-gecko.yml
testing/taskcluster/tasks/tests/mozharness-gecko.yml
--- a/testing/taskcluster/tasks/branches/base_jobs.yml
+++ b/testing/taskcluster/tasks/branches/base_jobs.yml
@@ -357,8 +357,14 @@ tasks:
         - 'tools/lint/**'
   android-api-15-gradle-dependencies:
     task: tasks/builds/android_api_15_gradle_dependencies.yml
     root: true
     when:
       file_patterns:
         - 'testing/docker/android-gradle-build/**'
         - '**/*.gradle'
+  mozharness:
+    task: tasks/tests/mozharness-gecko.yml
+    root: true
+    when:
+      file_patterns:
+        - 'testing/mozharness/**'
--- a/testing/taskcluster/tasks/lint.yml
+++ b/testing/taskcluster/tasks/lint.yml
@@ -29,12 +29,12 @@ task:
     # Thirty minutes should be enough for lint checks
     maxRunTime: 1800
 
     cache:
       level-{{level}}-{{project}}-tc-vcs: '/home/worker/.tc-vcs'
 
   extra:
     build_product: '{{build_product}}'
-    build_name: eslint-gecko
-    build_type: opt
+    build_name: {{build_name}}
+    build_type: {{build_type}}
     index:
       rank: {{pushlog_id}}
--- a/testing/taskcluster/tasks/tests/eslint-gecko.yml
+++ b/testing/taskcluster/tasks/tests/eslint-gecko.yml
@@ -1,11 +1,15 @@
 ---
 $inherits:
     from: 'tasks/lint.yml'
+    variables:
+      build_product: 'lint'
+      build_name: 'eslint-gecko'
+      build_type: 'opt'
 
 task:
   metadata:
     name: '[TC] - ESLint'
     description: 'ESLint test'
 
   payload:
     image:
new file mode 100644
--- /dev/null
+++ b/testing/taskcluster/tasks/tests/mozharness-gecko.yml
@@ -0,0 +1,47 @@
+---
+$inherits:
+    from: 'tasks/lint.yml'
+    variables:
+      build_product: 'lint'
+      build_name: 'mozharness-tox'
+      build_type: 'opt'
+
+task:
+  metadata:
+    name: '[TC] - Mozharness Tox'
+    description: 'Mozharness integration tests'
+
+  scopes:
+    - 'docker-worker:cache:level-{{level}}-{{project}}-dotcache'
+
+  payload:
+    image:
+      type: 'task-image'
+      path: 'public/image.tar'
+      taskId: '{{#task_id_for_image}}desktop-test{{/task_id_for_image}}'
+
+    cache:
+      level-{{level}}-{{project}}-dotcache: '/home/worker/.cache'
+
+    command:
+      - bash
+      - -cx
+      - >
+          tc-vcs checkout ./gecko {{base_repository}} {{head_repository}} {{head_rev}} {{head_ref}} &&
+          cd gecko/testing/mozharness &&
+          pip install tox &&
+          tox -e py27-hg2.6 -e py27-hg3.2
+  extra:
+    extra:
+        build_product: '{{build_product}}'
+    locations:
+        build: null
+        tests: null
+    treeherder:
+        machine:
+            platform: lint
+        groupSymbol: tc
+        symbol: MH
+    treeherderEnv:
+        - production
+        - staging