Bug 1286075: add a valgrind kind; r=mshal draft
authorDustin J. Mitchell <dustin@mozilla.com>
Wed, 07 Sep 2016 00:48:31 +0000
changeset 412750 8ad5e1a0866f64755e985d5ec61b379efa54b54d
parent 412749 ba9a1f6d653328a76a45bf14825848ee4d64bb50
child 412751 d1e1086e24f8e772689089626a3bb47e04164fe4
push id29252
push userdmitchell@mozilla.com
push dateMon, 12 Sep 2016 19:16:39 +0000
reviewersmshal
bugs1286075
milestone51.0a1
Bug 1286075: add a valgrind kind; r=mshal MozReview-Commit-ID: IM6iFkBIHam
taskcluster/ci/valgrind/kind.yml
taskcluster/docs/kinds.rst
taskcluster/taskgraph/try_option_syntax.py
new file mode 100644
--- /dev/null
+++ b/taskcluster/ci/valgrind/kind.yml
@@ -0,0 +1,40 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+implementation: taskgraph.task.transform:TransformTask
+
+transforms:
+   - taskgraph.transforms.build_attrs:transforms
+   - taskgraph.transforms.job:transforms
+   - taskgraph.transforms.task:transforms
+
+jobs:
+    linux64-valgrind/opt:
+        description: "Linux64 Valgrind Opt"
+        index:
+            product: firefox
+            job-name: linux64-valgrind-opt
+        treeherder:
+            platform: linux64/opt
+            symbol: tc(V)
+            kind: build
+            tier: 1
+        worker-type: aws-provisioner-v1/gecko-{level}-b-linux
+        worker:
+            implementation: docker-worker
+            docker-image: {in-tree: desktop-build}
+            max-run-time: 72000
+        run:
+            using: mozharness
+            actions: [get-secrets build valgrind-test generate-build-stats]
+            custom-build-variant-cfg: valgrind
+            config:
+                - builds/releng_base_linux_64_builds.py
+                - balrog/production.py
+            script: "mozharness/scripts/fx_desktop_build.py"
+            secrets: true
+            tooltool-downloads: public
+            need-xvfb: true
+
+
--- a/taskcluster/docs/kinds.rst
+++ b/taskcluster/docs/kinds.rst
@@ -39,16 +39,21 @@ analysis, or measurement work -- basical
 build.
 
 upload-symbols
 --------------
 
 Upload-symbols tasks run after builds and upload the symbols files generated by
 build tasks to Socorro for later use in crash analysis.
 
+valgrind
+--------
+
+Valgrind tasks produce builds instrumented by valgrind.
+
 Tests
 -----
 
 Test tasks for Gecko products are divided into several kinds, but share a
 common implementation.  The process goes like this, based on a set of YAML
 files named in ``kind.yml``:
 
  * For each build task, determine the related test platforms based on the build
--- a/taskcluster/taskgraph/try_option_syntax.py
+++ b/taskcluster/taskgraph/try_option_syntax.py
@@ -23,16 +23,17 @@ BUILD_TYPE_ALIASES = {
 
 # consider anything in this whitelist of kinds to be governed by -b/-p
 BUILD_KINDS = set([
     'build',
     'artifact-build',
     'hazard',
     'l10n',
     'upload-symbols',
+    'valgrind',
 ])
 
 # anything in this list is governed by -j
 JOB_KINDS = set([
     'source-check',
 ])