Bug 1354038 - [push-apk] taskgraph: Use rollout and deactivate dry-run on release r=aki draft
authorJohan Lorenzo <jlorenzo@mozilla.com>
Thu, 20 Apr 2017 18:21:52 +0200
changeset 565865 1555ddae7ab9ed5292725bd552d9086c38981853
parent 565752 27311156637f9b5d4504373967e01c4241902ae7
child 625159 0aab383987f2560c5d5ae38cc9c6e3a75993d5cf
push id55046
push userbmo:jlorenzo@mozilla.com
push dateThu, 20 Apr 2017 16:24:45 +0000
reviewersaki
bugs1354038
milestone55.0a1
Bug 1354038 - [push-apk] taskgraph: Use rollout and deactivate dry-run on release r=aki MozReview-Commit-ID: 4Rc0Qd5ZI4Z
taskcluster/taskgraph/transforms/task.py
taskcluster/taskgraph/util/scriptworker.py
--- a/taskcluster/taskgraph/transforms/task.py
+++ b/taskcluster/taskgraph/transforms/task.py
@@ -406,17 +406,17 @@ task_description_schema = Schema({
             # type of signing task (for CoT)
             Required('taskType'): basestring,
 
             # Paths to the artifacts to sign
             Required('paths'): [basestring],
         }],
 
         # "Invalid" is a noop for try and other non-supported branches
-        Required('google-play-track'): Any('production', 'beta', 'alpha', 'invalid'),
+        Required('google-play-track'): Any('production', 'beta', 'alpha', 'rollout', 'invalid'),
         Required('dry-run', default=True): bool,
         Optional('rollout-percentage'): int,
     }),
 })
 
 GROUP_NAMES = {
     'py': 'Python unit tests',
     'tc': 'Executed by TaskCluster',
--- a/taskcluster/taskgraph/util/scriptworker.py
+++ b/taskcluster/taskgraph/util/scriptworker.py
@@ -209,35 +209,37 @@ PUSH_APK_SCOPES = {
     'release': 'project:releng:googleplay:release',
     'default': 'project:releng:googleplay:invalid',
 }
 
 # See https://github.com/mozilla-releng/pushapkscript#aurora-beta-release-vs-alpha-beta-production
 PUSH_APK_GOOGLE_PLAY_TRACT = {
     'aurora': 'beta',
     'beta': 'production',
-    'release': 'production',
+    'release': 'rollout',
     'default': 'invalid',
 }
 
 PUSH_APK_BREAKPOINT_WORKER_TYPE = {
     'aurora': 'aws-provisioner-v1/taskcluster-generic',
     'beta': 'null-provisioner/human-breakpoint',
     'release': 'null-provisioner/human-breakpoint',
     'default': 'invalid/invalid',
 }
 
 PUSH_APK_DRY_RUN_OPTION = {
     'aurora': False,
     'beta': False,
-    'release': True,
+    'release': False,
     'default': True,
 }
 
 PUSH_APK_ROLLOUT_PERCENTAGE = {
+    # XXX Please make sure to change PUSH_APK_GOOGLE_PLAY_TRACT to 'rollout' if you add a new
+    # supported project
     'release': 10,
     'default': None,
 }
 
 
 # scope functions {{{1
 def get_scope_from_project(alias_to_project_map, alias_to_scope_map, config):
     """Determine the restricted scope from `config.params['project']`.