# 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 typing import Optional, Union
from taskgraph.transforms.base import TransformSequence from taskgraph.util.schema import Schema from taskgraph.util.taskcluster import get_artifact_path
from gecko_taskgraph.transforms.task import TaskDescriptionSchema
class IndexSearchSchema(Schema):
index_search: str
class DiffDescriptionSchema(Schema, kw_only=True): # Name of the diff task.
name: str # Treeherder tier.
tier: int # Treeherder symbol.
symbol: str # relative path (from config.path) to the file the task was defined in.
task_from: Optional[str] = None # Original and new builds to compare.
original: Union[str, IndexSearchSchema]
new: Union[str, IndexSearchSchema] # Arguments to pass to diffoscope, used for task-defaults in # taskcluster/kinds/diffoscope/kind.yml
args: Optional[str] = None # Extra arguments to pass to diffoscope, that can be set per job.
extra_args: Optional[str] = None # Fail the task when differences are detected.
fail_on_diff: Optional[bool] = None # 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.
artifact: Optional[str] = None # 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).
unpack: Optional[bool] = None # Commands to run before performing the diff.
pre_diff_commands: Optional[list[str]] = None # Only run the task on a set of projects/branches.
run_on_projects: TaskDescriptionSchema.__annotations__["run_on_projects"] = None
run_on_repo_type: TaskDescriptionSchema.__annotations__["run_on_repo_type"] = None
optimization: TaskDescriptionSchema.__annotations__["optimization"] = None
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 und die Messung sind noch experimentell.