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 616220 4eef98771d0374f192245455c22a8cc97d8af9ab
parent 616219 b6da3839bc2acc8cfc038a5b6813aad899a4c67c
child 616221 4df14467e14cd45297ff6fb096f9f4340e79144a
push id70636
push userhikezoe@mozilla.com
push dateWed, 26 Jul 2017 21:50:17 +0000
reviewerskmoir
bugs1384320
milestone56.0a1
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>'
             }
         },