Unverified Commit de759bb3 authored by Johan Lorenzo's avatar Johan Lorenzo Committed by GitHub
Browse files

Bug 1612540 - part 1: Move Fennec Beta to GitHub releases and a to a dedicated hook (#8270)

parent 4582c252
......@@ -134,13 +134,10 @@ jobs:
fennec-beta:
attributes:
# TODO replace `nightly: true` by `release-type: beta` once the data migration
# testing is over
# TODO when making the above change, uncomment `filter-incomplete-translations: true`
nightly: true
release-type: beta
include-release-version: true
include-shippable-secrets: true
# filter-incomplete-translations: true
filter-incomplete-translations: true
run:
geckoview-engine: geckoBeta
gradle-build-type: fennecBeta
......
......@@ -18,6 +18,7 @@ group-by: build-type
only-for-build-types:
- fennec-nightly
- fennec-beta
- nightly
- beta
- production
......@@ -26,10 +27,14 @@ job-template:
description: Publish Fenix
worker-type: push-apk
worker:
commit: true
commit:
by-build-type:
fennec-beta: false
default: true
channel:
by-build-type:
fennec-nightly: fennec-nightly
fennec-beta: fennec-beta
nightly: nightly
beta: beta
production: production
......
......@@ -32,19 +32,28 @@ def target_tasks_nightly(full_task_graph, parameters, graph_config):
def filter(task, parameters):
return (
task.attributes.get("nightly", False) and
not _filter_fennec_nightly(task, parameters)
not _filter_fennec("nightly", task, parameters)
)
return [l for l, t in full_task_graph.tasks.iteritems() if filter(t, parameters)]
def _filter_fennec_nightly(task, parameters):
return task.attributes.get("build-type", "") == "fennec-nightly"
def _filter_fennec(fennec_type, task, parameters):
return task.attributes.get("build-type", "") == "fennec-{}".format(fennec_type)
@_target_task("fennec-nightly")
def target_tasks_fennec_nightly(full_task_graph, parameters, graph_config):
"""Select the set of tasks required for a nightly build signed with the fennec key."""
return [l for l, t in full_task_graph.tasks.iteritems() if _filter_fennec_nightly(t, parameters)]
return [l for l, t in full_task_graph.tasks.iteritems() if _filter_fennec("nightly", t, parameters)]
@_target_task("fennec-beta")
def target_tasks_fennec_nightly(full_task_graph, parameters, graph_config):
"""Select the set of tasks required for a beta build signed with the fennec key."""
return [l for l, t in full_task_graph.tasks.iteritems() if _filter_fennec("beta", t, parameters)]
@_target_task('raptor')
......
......@@ -18,7 +18,7 @@ transforms = TransformSequence()
@transforms.add
def resolve_keys(config, tasks):
for task in tasks:
for key in ("worker.channel", "worker.dep"):
for key in ("worker.channel", "worker.commit", "worker.dep"):
resolve_keyed_by(
task,
key,
......@@ -38,12 +38,15 @@ def build_worker_definition(config, tasks):
worker_definition["certificate-alias"] = "{}-{}".format(
task["worker"]["product"], task["worker"]["channel"]
)
build_type = task["attributes"]["build-type"]
# Fenix production doesn't follow the rule {product}-{channel}
if task["attributes"]["build-type"] == "production":
if build_type == "production":
worker_definition["certificate-alias"] = "fenix"
# Neither does Fennec nightly
elif task["attributes"]["build-type"] == "fennec-nightly":
worker_definition["certificate-alias"] = "fennec-nightly"
# Neither do Fennec flavored builds
elif build_type.startswith("fennec-"):
worker_definition["certificate-alias"] = build_type
task["worker"].update(worker_definition)
yield task
3.1.0-beta.1
4.0.0-beta.2
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment