# 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 http://mozilla.org/MPL/2.0/. """
Transform the partials task into an actual task description. """
import logging
from taskgraph.transforms.base import TransformSequence from taskgraph.util.dependencies import get_primary_dependency from taskgraph.util.taskcluster import get_artifact_prefix from taskgraph.util.treeherder import inherit_treeherder_from_dep
from gecko_taskgraph.util.attributes import (
copy_attributes_from_dependent_job,
release_level,
) from gecko_taskgraph.util.partials import get_builds from gecko_taskgraph.util.platforms import architecture
data = list() for filename in filenames:
data.append(
{ "type": "file", "path": f"/home/worker/artifacts/{filename}", "name": f"{artifact_prefix}/{locale_output_path}{filename}",
}
)
data.append(
{ "type": "file", "path": "/home/worker/artifacts/manifest.json", "name": f"{artifact_prefix}/{locale_output_path}manifest.json",
}
) return data
def identify_desired_signing_keys(project, product): if project in ["mozilla-central", "comm-central", "larch", "pine", "maple"]: return"nightly" if project == "mozilla-beta": if product == "devedition": return"nightly" return"release" if (
project in ["mozilla-release", "comm-release", "comm-beta"] or project.startswith("mozilla-esr") or project.startswith("comm-esr")
): return"release" return"dep1"
@transforms.add def make_task_description(config, jobs): # If no balrog release history, then don't generate partials ifnot config.params.get("release_history"): return for job in jobs:
dep_job = get_primary_dependency(config, job) assert dep_job
# We only want caching on linux/windows due to bug 1436977 if int(level) == 3 and any(
[build_platform.startswith(prefix) for prefix in ["linux", "win"]]
):
task["scopes"].append( "auth:aws-s3:read-write:tc-gp-private-1d-us-east-1/releng/mbsdiff-cache/"
)
yield task
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.