mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-15 18:12:54 +00:00
[fenix] Bug 1612540 - part 1: Move Fennec Beta to GitHub releases and a to a dedicated hook (https://github.com/mozilla-mobile/fenix/pull/8270)
This commit is contained in:
parent
aeb016ff85
commit
c87350f5b3
@ -134,13 +134,10 @@ jobs:
|
|||||||
|
|
||||||
fennec-beta:
|
fennec-beta:
|
||||||
attributes:
|
attributes:
|
||||||
# TODO replace `nightly: true` by `release-type: beta` once the data migration
|
release-type: beta
|
||||||
# testing is over
|
|
||||||
# TODO when making the above change, uncomment `filter-incomplete-translations: true`
|
|
||||||
nightly: true
|
|
||||||
include-release-version: true
|
include-release-version: true
|
||||||
include-shippable-secrets: true
|
include-shippable-secrets: true
|
||||||
# filter-incomplete-translations: true
|
filter-incomplete-translations: true
|
||||||
run:
|
run:
|
||||||
geckoview-engine: geckoBeta
|
geckoview-engine: geckoBeta
|
||||||
gradle-build-type: fennecBeta
|
gradle-build-type: fennecBeta
|
||||||
|
@ -18,6 +18,7 @@ group-by: build-type
|
|||||||
|
|
||||||
only-for-build-types:
|
only-for-build-types:
|
||||||
- fennec-nightly
|
- fennec-nightly
|
||||||
|
- fennec-beta
|
||||||
- nightly
|
- nightly
|
||||||
- beta
|
- beta
|
||||||
- production
|
- production
|
||||||
@ -26,10 +27,14 @@ job-template:
|
|||||||
description: Publish Fenix
|
description: Publish Fenix
|
||||||
worker-type: push-apk
|
worker-type: push-apk
|
||||||
worker:
|
worker:
|
||||||
commit: true
|
commit:
|
||||||
|
by-build-type:
|
||||||
|
fennec-beta: false
|
||||||
|
default: true
|
||||||
channel:
|
channel:
|
||||||
by-build-type:
|
by-build-type:
|
||||||
fennec-nightly: fennec-nightly
|
fennec-nightly: fennec-nightly
|
||||||
|
fennec-beta: fennec-beta
|
||||||
nightly: nightly
|
nightly: nightly
|
||||||
beta: beta
|
beta: beta
|
||||||
production: production
|
production: production
|
||||||
|
@ -32,19 +32,28 @@ def target_tasks_nightly(full_task_graph, parameters, graph_config):
|
|||||||
def filter(task, parameters):
|
def filter(task, parameters):
|
||||||
return (
|
return (
|
||||||
task.attributes.get("nightly", False) and
|
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)]
|
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")
|
@_target_task("fennec-nightly")
|
||||||
def target_tasks_fennec_nightly(full_task_graph, parameters, graph_config):
|
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."""
|
"""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')
|
@_target_task('raptor')
|
||||||
|
@ -18,7 +18,7 @@ transforms = TransformSequence()
|
|||||||
@transforms.add
|
@transforms.add
|
||||||
def resolve_keys(config, tasks):
|
def resolve_keys(config, tasks):
|
||||||
for task in tasks:
|
for task in tasks:
|
||||||
for key in ("worker.channel", "worker.dep"):
|
for key in ("worker.channel", "worker.commit", "worker.dep"):
|
||||||
resolve_keyed_by(
|
resolve_keyed_by(
|
||||||
task,
|
task,
|
||||||
key,
|
key,
|
||||||
@ -38,12 +38,15 @@ def build_worker_definition(config, tasks):
|
|||||||
worker_definition["certificate-alias"] = "{}-{}".format(
|
worker_definition["certificate-alias"] = "{}-{}".format(
|
||||||
task["worker"]["product"], task["worker"]["channel"]
|
task["worker"]["product"], task["worker"]["channel"]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
build_type = task["attributes"]["build-type"]
|
||||||
# Fenix production doesn't follow the rule {product}-{channel}
|
# Fenix production doesn't follow the rule {product}-{channel}
|
||||||
if task["attributes"]["build-type"] == "production":
|
if build_type == "production":
|
||||||
worker_definition["certificate-alias"] = "fenix"
|
worker_definition["certificate-alias"] = "fenix"
|
||||||
# Neither does Fennec nightly
|
# Neither do Fennec flavored builds
|
||||||
elif task["attributes"]["build-type"] == "fennec-nightly":
|
elif build_type.startswith("fennec-"):
|
||||||
worker_definition["certificate-alias"] = "fennec-nightly"
|
worker_definition["certificate-alias"] = build_type
|
||||||
|
|
||||||
task["worker"].update(worker_definition)
|
task["worker"].update(worker_definition)
|
||||||
|
|
||||||
yield task
|
yield task
|
||||||
|
@ -1 +1 @@
|
|||||||
3.1.0-beta.1
|
4.0.0-beta.2
|
||||||
|
Loading…
Reference in New Issue
Block a user