Bug 1384320 - Add TRY_COMMIT_MSG to generic worker environment for mozharness tests; r?kmoir draft
authorMaja Frydrychowicz <mjzffr@gmail.com>
Tue, 25 Jul 2017 18:22:43 -0400
changeset 615398 419159a70d9e948982599a91e8015380a1dfe8d5
parent 615176 32d9d1e81cc607320a36391845917f645f7a7f72
child 639162 6b33bb9da7e50a0fc5771d06fb54790d69e1be14
push id70343
push userbmo:mjzffr@gmail.com
push dateTue, 25 Jul 2017 22:23:07 +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
@@ -308,16 +308,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>'
             }
         },