Bug 1538995 - pass list of partners to beetmover for pushing to releases/partners/, r=aki
authorNick Thomas <nthomas@mozilla.com>
Fri, 21 Jun 2019 22:12:59 +0000
changeset 537293 1f1987d0fef378d50f9d1c7b036ff9508ca17345
parent 537292 86fac3055d1042916b24e3efb436505c75ad31fd
child 537294 2254823049a2d2512d47be8da403a3896d2eb490
push id2128
push usernthomas@mozilla.com
push dateWed, 14 Aug 2019 02:49:25 +0000
treeherdermozilla-release@2254823049a2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaki
bugs1538995
milestone68.0.2
Bug 1538995 - pass list of partners to beetmover for pushing to releases/partners/, r=aki This passes partner data on to the beetmover scriptworker, so it can publish enabled partners. There is beetmover change at https://github.com/mozilla-releng/beetmoverscript/pull/227 to complete this support. Depends on D35481 Differential Revision: https://phabricator.services.mozilla.com/D35482
taskcluster/taskgraph/transforms/task.py
--- a/taskcluster/taskgraph/transforms/task.py
+++ b/taskcluster/taskgraph/transforms/task.py
@@ -25,16 +25,17 @@ from taskgraph.util.keyed_by import eval
 from taskgraph.util.schema import (
     validate_schema,
     Schema,
     optionally_keyed_by,
     resolve_keyed_by,
     OptimizationSchema,
     taskref_or_string,
 )
+from taskgraph.util.partners import get_partners_to_be_published
 from taskgraph.util.scriptworker import (
     BALROG_ACTIONS,
     get_release_config,
     add_scope_prefix,
 )
 from taskgraph.util.signed_artifacts import get_signed_artifacts
 from voluptuous import Any, Required, Optional, Extra, Match
 from taskgraph import GECKO, MAX_DEPENDENCIES
@@ -992,22 +993,24 @@ def build_beetmover_payload(config, task
 @payload_builder('beetmover-push-to-release', schema={
     # the maximum time to run, in seconds
     Required('max-run-time'): int,
     Required('product'): basestring,
 })
 def build_beetmover_push_to_release_payload(config, task, task_def):
     worker = task['worker']
     release_config = get_release_config(config)
+    partners = ['{}/{}'.format(p, s) for p, s, _ in get_partners_to_be_published(config)]
 
     task_def['payload'] = {
         'maxRunTime': worker['max-run-time'],
         'product': worker['product'],
         'version': release_config['version'],
         'build_number': release_config['build_number'],
+        'partners': partners,
     }
 
 
 @payload_builder('beetmover-maven', schema={
     Required('max-run-time', default=600): int,
     Required('release-properties'): {
         'app-name': basestring,
         'app-version': basestring,