Bug 1553877 - push-apk: Provide default values for -nightly and -beta jobs r=Callek a=release
authorJohan Lorenzo <jlorenzo@mozilla.com>
Tue, 28 May 2019 16:39:42 +0200
changeset 533492 0c64a9593a32dd26649acf4c8b82419178efb24e
parent 533491 28959f2fdc81ab4ed3a089db71eec4f3e8c183af
child 533493 bb0c230ab42a5f7c625aa0667bc01636ed1d925e
push id11340
push userjlorenzo@mozilla.com
push dateFri, 31 May 2019 09:25:33 +0000
treeherdermozilla-beta@c27cd14cd5ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersCallek, release
bugs1553877
milestone68.0
Bug 1553877 - push-apk: Provide default values for -nightly and -beta jobs r=Callek a=release Differential Revision: https://phabricator.services.mozilla.com/D32832
taskcluster/ci/push-apk/kind.yml
taskcluster/taskgraph/transforms/push_apk.py
--- a/taskcluster/ci/push-apk/kind.yml
+++ b/taskcluster/ci/push-apk/kind.yml
@@ -38,20 +38,31 @@ job-defaults:
         kind: other
     run-on-projects: ['try', 'mozilla-central', 'mozilla-beta', 'mozilla-release']
 
 jobs:
     push-apk-nightly/opt:
         attributes:
             release-type: nightly
         worker:
-            # See https://github.com/mozilla-releng/pushapkscript#aurora-beta-release-vs-alpha-beta-production
-            google-play-track: beta
+            google-play-track:
+                by-release-level:
+                    # See https://github.com/mozilla-releng/pushapkscript#aurora-beta-release-vs-alpha-beta-production
+                    production: beta
+                    staging: alpha
         treeherder:
             symbol: pub(gp-n)
 
     push-apk-beta/opt:
         attributes:
             release-type: beta
         worker:
-            google-play-track: production
+            google-play-track:
+                by-release-level:
+                    production: production
+                    staging: alpha
+            rollout-percentage:
+                by-release-level:
+                    # XXX Change this value if google-play-track becomes rollout
+                    production: null
+                    staging: null
         treeherder:
             symbol: pub(gp-b)
--- a/taskcluster/taskgraph/transforms/push_apk.py
+++ b/taskcluster/taskgraph/transforms/push_apk.py
@@ -48,18 +48,23 @@ def make_task_description(config, jobs):
     for job in jobs:
         job['dependencies'] = generate_dependencies(job['dependent-tasks'])
         job['worker']['upstream-artifacts'] = generate_upstream_artifacts(job, job['dependencies'])
 
         params_kwargs = {
             'release-level': config.params.release_level(),
         }
 
-        resolve_keyed_by(job, 'worker.commit', item_name=job['name'], **params_kwargs)
-        resolve_keyed_by(job, 'worker-type', item_name=job['name'], **params_kwargs)
+        for key in (
+            'worker.commit',
+            'worker.google-play-track',
+            'worker.rollout-percentage',
+            'worker-type',
+        ):
+            resolve_keyed_by(job, key, item_name=job['name'], **params_kwargs)
 
         job['scopes'] = [get_push_apk_scope(config, job['attributes'].get('release-type'))]
 
         yield job
 
 
 def generate_dependencies(dependent_tasks):
     # Because we depend on several tasks that have the same kind, we introduce the platform