# 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/.
RELEASE_PROJECTS = { "mozilla-central", "mozilla-beta", "mozilla-release", "mozilla-esr115", "mozilla-esr128", "comm-central", "comm-beta", "comm-release", "comm-esr115", "comm-esr128", # bug 1845368: pine is a permanent project branch used for testing # nightly updates "pine", # bug 1877483: larch has similar needs for nightlies "larch", # maple is also an L3 branch: https://phabricator.services.mozilla.com/D184833 "maple",
}
def match_run_on_projects(project, run_on_projects): """Determine whether the given project is included in the `run-on-projects`
parameter, applying expansions for things like "integration" mentioned in
the attribute documentation."""
aliases = RUN_ON_PROJECT_ALIASES.keys()
run_aliases = set(aliases) & set(run_on_projects) if run_aliases: if any(RUN_ON_PROJECT_ALIASES[alias](project) for alias in run_aliases): returnTrue
return project in run_on_projects
def match_run_on_hg_branches(hg_branch, run_on_hg_branches): """Determine whether the given project is included in the `run-on-hg-branches`
parameter. Allows 'all'.""" if"all"in run_on_hg_branches: returnTrue
for expected_hg_branch_pattern in run_on_hg_branches: if re.match(expected_hg_branch_pattern, hg_branch): returnTrue
returnFalse
def copy_attributes_from_dependent_job(dep_job, denylist=()): return {
attr: dep_job.attributes[attr] for attr in _COPYABLE_ATTRIBUTES if attr in dep_job.attributes and attr notin denylist
}
def sorted_unique_list(*args): """Join one or more lists, and return a sorted list of unique members"""
combined = set().union(*args) return sorted(combined)
def release_level(project): """
Whether this is a staging release ornot.
:return str: One of "production"or"staging". """ return"production"if project in RELEASE_PROJECTS else"staging"
def is_try(params): """
Determine whether this graph is being built on a try project orfor
`mach try fuzzy`. """ return"try"in params["project"] or params["try_mode"] == "try_select"
def task_name(task): if task.label.startswith(task.kind + "-"): return task.label[len(task.kind) + 1 :] raise AttributeError(f"Task {task.label} does not have a name.")
¤ Dauer der Verarbeitung: 0.12 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.