Bug 1384320 - Add TRY_COMMIT_MSG to generic worker environment for mozharness tests; r=kmoir
authorMaja Frydrychowicz <mjzffr@gmail.com>
Tue, 25 Jul 2017 18:22:43 -0400
changeset 371117 4eef98771d0374f192245455c22a8cc97d8af9ab
parent 371116 b6da3839bc2acc8cfc038a5b6813aad899a4c67c
child 371118 4df14467e14cd45297ff6fb096f9f4340e79144a
push id47296
push usermjzffr@gmail.com
push dateWed, 26 Jul 2017 16:59:26 +0000
treeherderautoland@4eef98771d03 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskmoir
bugs1384320
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1384320 - Add TRY_COMMIT_MSG to generic worker environment for mozharness tests; r=kmoir This is needed to populate try_test_paths in mozharness trytools. MozReview-Commit-ID: IRJshk2MRDu
taskcluster/taskgraph/transforms/job/mozharness_test.py
--- a/taskcluster/taskgraph/transforms/job/mozharness_test.py
+++ b/taskcluster/taskgraph/transforms/job/mozharness_test.py
@@ -311,16 +311,19 @@ def mozharness_test_on_generic_worker(co
             mh_command.append('--total-chunk={}'.format(test['chunks']))
             mh_command.append('--this-chunk={}'.format(test['this-chunk']))
         elif mozharness['chunking-args'] == 'test-suite-suffix':
             suffix = mozharness['chunk-suffix'].replace('<CHUNK>', str(test['this-chunk']))
             for i, c in enumerate(mh_command):
                 if isinstance(c, basestring) and c.startswith('--test-suite'):
                     mh_command[i] += suffix
 
+    if config.params['project'] == 'try':
+        env['TRY_COMMIT_MSG'] = config.params['message']
+
     worker['mounts'] = [{
         'directory': '.',
         'content': {
             'artifact': 'public/build/mozharness.zip',
             'task-id': {
                 'task-reference': '<build>'
             }
         },