You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.6 KiB

# 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
from __future__ import absolute_import, print_function, unicode_literals
import time
from taskgraph.transforms.task import index_builder
# Please ping the performance testing team (whawkins at the moment) if these routes change.
# In the future, notifying consumers may be easier (, but
# we need to remember to tell users for the time being
def add_signing_indexes(config, task):
if config.params["level"] != "3":
return task
subs = config.params.copy()
subs["build_date"] = time.strftime(
"%Y.%m.%d", time.gmtime(config.params["build_date"])
subs["trust-domain"] = config.graph_config["trust-domain"]
subs["variant"] = task["attributes"]["build-type"]
unique_routes = set()
for abi in task["attributes"]["apks"].keys():
subs["abi"] = abi
task.setdefault("routes", sorted(list(unique_routes)))
return task