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
--- 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',