# 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/. """
This transform construct tasks to perform diffs between builds, as
defined in kind.yml """
from taskgraph.transforms.base import TransformSequence from taskgraph.util.schema import Schema from taskgraph.util.taskcluster import get_artifact_path from voluptuous import Any, Optional, Required
from gecko_taskgraph.transforms.task import task_description_schema
diff_description_schema = Schema(
{ # Name of the diff task.
Required("name"): str, # Treeherder tier.
Required("tier"): int, # Treeherder symbol.
Required("symbol"): str, # relative path (from config.path) to the file the task was defined in.
Optional("task-from"): str, # Original and new builds to compare.
Required("original"): index_or_string,
Required("new"): index_or_string, # Arguments to pass to diffoscope, used for task-defaults in # taskcluster/kinds/diffoscope/kind.yml
Optional("args"): str, # Extra arguments to pass to diffoscope, that can be set per job.
Optional("extra-args"): str, # Fail the task when differences are detected.
Optional("fail-on-diff"): bool, # What artifact to check the differences of. Defaults to target.tar.xz # for Linux, target.dmg for Mac, target.zip for Windows, target.apk for # Android.
Optional("artifact"): str, # Whether to unpack first. Diffoscope can normally work without unpacking, # but when one needs to --exclude some contents, that doesn't work out well # if said content is packed (e.g. in omni.ja).
Optional("unpack"): bool, # Commands to run before performing the diff.
Optional("pre-diff-commands"): [str], # Only run the task on a set of projects/branches.
Optional("run-on-projects"): task_description_schema["run-on-projects"],
Optional("optimization"): task_description_schema["optimization"],
}
)
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.