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 480653 59a4340b7a031bc859c740e17ec0f4d1a0cb94e3
parent 480652 6a12339f7dbfed0fb5f8f7ba433de6c202c0134d
child 545022 7a8c609c930ecf12b8a8c347908187709895154b
push id44617
push userahalberstadt@mozilla.com
push dateWed, 08 Feb 2017 19:29:51 +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',