From b4ef69fd76a291876ac0952e766463a6590ae7d9 Mon Sep 17 00:00:00 2001 From: Johan Lorenzo Date: Thu, 23 Apr 2020 11:58:56 +0200 Subject: [PATCH] [fenix] Revert "Bug 1631839 - part 1: Expose new routes without `project.` (https://github.com/mozilla-mobile/fenix/pull/10092)" (https://github.com/mozilla-mobile/fenix/pull/10139) This reverts commit da090cb36ebf65534b3a6ef462335398442a96d9. --- .taskcluster.yml | 7 ------- taskcluster/ci/config.yml | 2 +- taskcluster/fenix_taskgraph/routes.py | 15 +++------------ 3 files changed, 4 insertions(+), 20 deletions(-) diff --git a/.taskcluster.yml b/.taskcluster.yml index 35de1a5ed0..e516f30ce9 100644 --- a/.taskcluster.yml +++ b/.taskcluster.yml @@ -168,18 +168,11 @@ tasks: # staging release promotion on forks. - $if: 'tasks_for == "github-push"' then: - - index.mobile.v2.${project}.branch.${short_head_branch}.latest.taskgraph.decision - - index.mobile.v2.${project}.branch.${short_head_branch}.revision.${head_sha}.taskgraph.decision - # TODO Bug 1631839: Remove the following routes once all consumers have migrated - index.project.mobile.${project}.v2.branch.${short_head_branch}.latest.taskgraph.decision - index.project.mobile.${project}.v2.branch.${short_head_branch}.revision.${head_sha}.taskgraph.decision - $if: 'tasks_for == "cron"' then: # cron context provides ${head_branch} as a short one - - index.mobile.v2.${project}.branch.${head_branch}.latest.taskgraph.decision-${cron.job_name} - - index.mobile.v2.${project}.branch.${head_branch}.revision.${head_sha}.taskgraph.decision-${cron.job_name} - - index.mobile.v2.${project}.branch.${head_branch}.revision.${head_sha}.taskgraph.cron.${ownTaskId} - # TODO Bug 1631839: Remove the following routes once all consumers have migrated - index.project.mobile.${project}.v2.branch.${head_branch}.latest.taskgraph.decision-${cron.job_name} - index.project.mobile.${project}.v2.branch.${head_branch}.revision.${head_sha}.taskgraph.decision-${cron.job_name} - index.project.mobile.${project}.v2.branch.${head_branch}.revision.${head_sha}.taskgraph.cron.${ownTaskId} diff --git a/taskcluster/ci/config.yml b/taskcluster/ci/config.yml index b8e23a156c..8d68d9331b 100644 --- a/taskcluster/ci/config.yml +++ b/taskcluster/ci/config.yml @@ -25,7 +25,7 @@ taskgraph: repositories: mobile: name: "Fenix" - cached-task-prefix: mobile.v2.fenix + cached-task-prefix: project.mobile.fenix decision-parameters: 'fenix_taskgraph.parameters:get_decision_parameters' workers: diff --git a/taskcluster/fenix_taskgraph/routes.py b/taskcluster/fenix_taskgraph/routes.py index 6f7d03beb0..a1771cd598 100644 --- a/taskcluster/fenix_taskgraph/routes.py +++ b/taskcluster/fenix_taskgraph/routes.py @@ -12,12 +12,6 @@ from taskgraph.transforms.task import index_builder # In the future, notifying consumers may be easier (https://bugzilla.mozilla.org/show_bug.cgi?id=1548810), but # we need to remember to tell users for the time being SIGNING_ROUTE_TEMPLATES = [ - "index.{trust-domain}.v2.{project}.{variant}.latest.{abi}", - "index.{trust-domain}.v2.{project}.{variant}.{build_date}.revision.{head_rev}.{abi}", - "index.{trust-domain}.v2.{project}.{variant}.{build_date}.latest.{abi}", - "index.{trust-domain}.v2.{project}.{variant}.revision.{head_rev}.{abi}", - - # TODO Bug 1631839: Remove the following scopes once all consumers have migrated "index.project.{trust-domain}.{project}.v2.{variant}.{build_date}.revision.{head_rev}", "index.project.{trust-domain}.{project}.v2.{variant}.{build_date}.latest", "index.project.{trust-domain}.{project}.v2.{variant}.latest", @@ -26,6 +20,8 @@ SIGNING_ROUTE_TEMPLATES = [ @index_builder("signing") def add_signing_indexes(config, task): + routes = task.setdefault("routes", []) + if config.params["level"] != "3": return task @@ -36,11 +32,6 @@ def add_signing_indexes(config, task): subs["trust-domain"] = config.graph_config["trust-domain"] subs["variant"] = task["attributes"]["build-type"] - unique_routes = set() for tpl in SIGNING_ROUTE_TEMPLATES: - for abi in task["attributes"]["apks"].keys(): - subs["abi"] = abi - unique_routes.add(tpl.format(**subs)) - - task.setdefault("routes", sorted(list(unique_routes))) + routes.append(tpl.format(**subs)) return task