|
|
@ -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 ("index", "run-on-tasks-for", "worker-type", "worker.signing-type", "signing-format"):
|
|
|
|
for key in ("run-on-tasks-for",):
|
|
|
|
resolve_keyed_by(
|
|
|
|
resolve_keyed_by(
|
|
|
|
task,
|
|
|
|
task,
|
|
|
|
key,
|
|
|
|
key,
|
|
|
@ -31,6 +31,50 @@ def resolve_keys(config, tasks):
|
|
|
|
)
|
|
|
|
)
|
|
|
|
yield task
|
|
|
|
yield task
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@transforms.add
|
|
|
|
|
|
|
|
def set_worker_type(config, tasks):
|
|
|
|
|
|
|
|
for task in tasks:
|
|
|
|
|
|
|
|
worker_type = "dep-signing"
|
|
|
|
|
|
|
|
if (
|
|
|
|
|
|
|
|
str(config.params["level"]) == "3"
|
|
|
|
|
|
|
|
and task["attributes"]["build-type"]
|
|
|
|
|
|
|
|
in ("nightly", "beta", "release", "android-test-nightly")
|
|
|
|
|
|
|
|
and config.params["tasks_for"] in ("cron", "github-release", "action")
|
|
|
|
|
|
|
|
):
|
|
|
|
|
|
|
|
worker_type = "signing"
|
|
|
|
|
|
|
|
task["worker-type"] = worker_type
|
|
|
|
|
|
|
|
yield task
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@transforms.add
|
|
|
|
|
|
|
|
def set_signing_type(config, tasks):
|
|
|
|
|
|
|
|
for task in tasks:
|
|
|
|
|
|
|
|
signing_type = "dep-signing"
|
|
|
|
|
|
|
|
if (
|
|
|
|
|
|
|
|
str(config.params["level"]) == "3"
|
|
|
|
|
|
|
|
and config.params["tasks_for"] in ("cron", "github-release", "action")
|
|
|
|
|
|
|
|
):
|
|
|
|
|
|
|
|
if task["attributes"]["build-type"] in ("beta", "release"):
|
|
|
|
|
|
|
|
signing_type = "fennec-production-signing"
|
|
|
|
|
|
|
|
elif task["attributes"]["build-type"] in ("nightly", "android-test-nightly"):
|
|
|
|
|
|
|
|
signing_type = "production-signing"
|
|
|
|
|
|
|
|
task.setdefault("worker", {})["signing-type"] = signing_type
|
|
|
|
|
|
|
|
yield task
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@transforms.add
|
|
|
|
|
|
|
|
def set_index(config, tasks):
|
|
|
|
|
|
|
|
for task in tasks:
|
|
|
|
|
|
|
|
index = {}
|
|
|
|
|
|
|
|
if (
|
|
|
|
|
|
|
|
config.params["tasks_for"] in ("cron", "github-release", "action")
|
|
|
|
|
|
|
|
and task["attributes"]["build-type"]
|
|
|
|
|
|
|
|
in ("nightly", "debut", "nightly-simulation", "beta", "release")
|
|
|
|
|
|
|
|
):
|
|
|
|
|
|
|
|
index["type"] = "signing"
|
|
|
|
|
|
|
|
task["index"] = index
|
|
|
|
|
|
|
|
yield task
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@transforms.add
|
|
|
|
@transforms.add
|
|
|
|
def set_signing_attributes(config, tasks):
|
|
|
|
def set_signing_attributes(config, tasks):
|
|
|
|