Bug 1048446 - [taskcluster] Add a 'mochitest selftest' task that depends on a build, r?dustin draft
authorAndrew Halberstadt <ahalberstadt@mozilla.com>
Wed, 31 May 2017 13:52:29 -0400
changeset 591745 7414d042db01b87d4845ac4da506c623f4905362
parent 591744 e9e0846331c43bfc1b508a16cfd73049578640ea
child 632611 95f3760cf568bdb642f55c6695f252767aa13881
push id63159
push userahalberstadt@mozilla.com
push dateFri, 09 Jun 2017 15:00:30 +0000
reviewersdustin
bugs1048446
milestone55.0a1
Bug 1048446 - [taskcluster] Add a 'mochitest selftest' task that depends on a build, r?dustin These are integration tests for testing the mochitest framework itself. MozReview-Commit-ID: Jqyhbj7nC6z
taskcluster/ci/source-test/python-tests.yml
--- a/taskcluster/ci/source-test/python-tests.yml
+++ b/taskcluster/ci/source-test/python-tests.yml
@@ -45,16 +45,52 @@ marionette-harness:
     when:
         files-changed:
           - 'testing/marionette/harness/**'
           - 'testing/mozbase/mozlog/mozlog/**'
           - 'testing/mozbase/mozlog/setup.py'
           - 'testing/mozbase/packages.txt'
           - 'python/mach_commands.py'
 
+mochitest-harness:
+    description: testing/mochitest unittests
+    platform: linux64/opt
+    require-build: true
+    treeherder:
+        symbol: py(mch)
+        kind: test
+        tier: 2
+    worker-type:
+        by-platform:
+            linux64.*: aws-provisioner-v1/gecko-t-linux-xlarge
+    worker:
+        by-platform:
+            linux64.*:
+                docker-image: {in-tree: "desktop1604-test"}
+                max-run-time: 3600
+    run:
+        using: run-task
+        command: >
+            source /home/worker/scripts/xvfb.sh &&
+            start_xvfb '1600x1200x24' 0 &&
+            cd /home/worker/checkouts/gecko &&
+            ./mach python-test --subsuite mochitest
+    run-on-projects:
+        - integration
+        - release
+    when:
+        files-changed:
+            - 'config/mozunit.py'
+            - 'python/mach_commands.py'
+            - 'testing/mochitest/**'
+            - 'testing/mozharness/mozharness/base/log.py'
+            - 'testing/mozharness/mozharness/mozilla/structuredlog.py'
+            - 'testing/mozharness/mozharness/mozilla/testing/errors.py'
+            - 'testing/profiles/prefs_general.js'
+
 mozbase:
     description: testing/mozbase unit tests
     platform:
         - linux64/opt
     treeherder:
         symbol: py(mb)
         kind: test
         tier: 2