Bug 1808606 - part 4: Migrate `push-apk` tasks

(cherry picked from commit e78b5acd7271e622128218eb799d4165c3ca1a93)
pull/600/head
Geoff Brown 2 years ago committed by mergify[bot]
parent e42c8ba7a0
commit 25a41e6dde

@ -1,55 +0,0 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
---
loader: fenix_taskgraph.loader.multi_dep:loader
transforms:
- fenix_taskgraph.transforms.multi_dep:transforms
- fenix_taskgraph.transforms.push_apk:transforms
- taskgraph.transforms.task:transforms
kind-dependencies:
- signing
primary-dependency: signing
group-by: build-type
only-for-build-types:
- beta
- release
- nightly
job-template:
attributes:
shipping_phase: promote # APKs are sent to testing tracks
description: Publish Fenix
worker-type: push-apk
worker:
certificate-alias:
# TODO rename these values to use non-legacy terms.
by-build-type:
nightly: fenix-production
beta: fennec-beta
release: fennec-production
commit: true
channel:
by-build-type:
beta: fennec-beta
release: fennec-production
nightly: production
dep:
by-level:
'3': false
default: true
product: fenix
treeherder:
job-symbol: gp
kind: build
routes:
by-level:
'3':
- "notify.email.release-mgmt@mozilla.com.on-failed"
'default': []

@ -1,29 +0,0 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
"""
Apply some defaults and minor modifications to the jobs defined in the build
kind.
"""
from taskgraph.transforms.base import TransformSequence
from taskgraph.util.schema import resolve_keyed_by
transforms = TransformSequence()
@transforms.add
def resolve_keys(config, tasks):
for task in tasks:
for key in ("worker.channel", "worker.dep", "worker.certificate-alias", "routes"):
resolve_keyed_by(
task,
key,
item_name=task["name"],
**{
"build-type": task["attributes"]["build-type"],
"level": config.params["level"],
}
)
yield task
Loading…
Cancel
Save