Bug 1003417 - Add task for running mozbase python tests on linux, r?dustin draft
authorAndrew Halberstadt <ahalberstadt@mozilla.com>
Fri, 02 Dec 2016 17:21:54 -0500
changeset 480681 6a79cdcae7d1ecaafd9c37d3b0328ebd537e2708
parent 480680 34d735e7ec2e991d85b4164456bc88ca8f61d333
child 545029 cb5f6f7edb911774e46d1156a27788b749158c85
push id44627
push userahalberstadt@mozilla.com
push dateWed, 08 Feb 2017 20:16:08 +0000
reviewersdustin
bugs1003417
milestone54.0a1
Bug 1003417 - Add task for running mozbase python tests on linux, r?dustin This also adds a new 'py' group which should help make it obvious which tasks are python unittests. The tg and MH tasks won't show up in this new py group right away due to a caching bug in the treeherder database, but eventually they should move over. MozReview-Commit-ID: JwL1NAR4bnY
taskcluster/ci/source-check/python-tests.yml
taskcluster/taskgraph/transforms/task.py
--- a/taskcluster/ci/source-check/python-tests.yml
+++ b/taskcluster/ci/source-check/python-tests.yml
@@ -1,12 +1,12 @@
 taskgraph-tests/opt:
     description: taskcluster/taskgraph unit tests
     treeherder:
-        symbol: tg
+        symbol: py(tg)
         kind: test
         tier: 2
         platform: linux64/opt
     worker-type: aws-provisioner-v1/b2gtest
     worker:
         implementation: docker-worker
         docker-image: {in-tree: "lint"}
         max-run-time: 1800
@@ -17,20 +17,49 @@ taskgraph-tests/opt:
         - integration
         - release
     when:
         files-changed:
             - 'taskcluster/**/*.py'
             - 'config/mozunit.py'
             - 'python/mach/**/*.py'
 
+mozbase/opt:
+    description: testing/mozbase unit tests
+    platforms:
+        - linux64/opt
+    treeherder:
+        symbol: py(mb)
+        kind: test
+        tier: 2
+    worker-type:
+        by-platform:
+            linux64.*: aws-provisioner-v1/b2gtest
+    worker:
+        by-platform:
+            linux64.*:
+                implementation: docker-worker
+                docker-image: {in-tree: "lint"}
+                max-run-time: 3600
+    run:
+        using: mach
+        mach: python-test --subsuite mozbase
+    run-on-projects:
+        - integration
+        - release
+    when:
+        files-changed:
+            - 'testing/mozbase/**'
+            - 'config/mozunit.py'
+            - 'python/mach_commands.py'
+
 mozharness/opt:
     description: mozharness integration tests
     treeherder:
-        symbol: MH
+        symbol: py(MH)
         kind: test
         tier: 2
         platform: lint/opt
     worker-type: aws-provisioner-v1/b2gtest
     worker:
         implementation: docker-worker
         docker-image: {in-tree: "lint"}
         max-run-time: 1800
--- a/taskcluster/taskgraph/transforms/task.py
+++ b/taskcluster/taskgraph/transforms/task.py
@@ -340,16 +340,17 @@ task_description_schema = Schema({
         # This task only needs to be run if a file matching one of the given
         # patterns has changed in the push.  The patterns use the mozpack
         # match function (python/mozbuild/mozpack/path.py).
         Optional('files-changed'): [basestring],
     }),
 })
 
 GROUP_NAMES = {
+    'py': 'Python unit tests',
     'tc': 'Executed by TaskCluster',
     'tc-e10s': 'Executed by TaskCluster with e10s',
     'tc-Fxfn-l': 'Firefox functional tests (local) executed by TaskCluster',
     'tc-Fxfn-l-e10s': 'Firefox functional tests (local) executed by TaskCluster with e10s',
     'tc-Fxfn-r': 'Firefox functional tests (remote) executed by TaskCluster',
     'tc-Fxfn-r-e10s': 'Firefox functional tests (remote) executed by TaskCluster with e10s',
     'tc-M': 'Mochitests executed by TaskCluster',
     'tc-M-e10s': 'Mochitests executed by TaskCluster with e10s',