# 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/.
from taskgraph.target_tasks import register_target_task
from android_taskgraph.release_type import does_task_match_release_type
def _filter_release_promotion(
full_task_graph, parameters, filtered_for_candidates, shipping_phase
): def filter(task, parameters): # Include promotion tasks; these will be optimized out if task.label in filtered_for_candidates: returnTrue
# Ship geckoview in firefox-android ship graph if (
shipping_phase == "ship" and task.attributes.get("shipping_product") == "fennec" and task.kind in ("beetmover-geckoview", "upload-symbols") and parameters["release_product"] == "firefox-android"
): returnTrue
# TODO: get rid of this release_type match if (
task.attributes.get("shipping_phase") == shipping_phase and task.attributes.get("shipping_product") == parameters["release_product"] and does_task_match_release_type(task, parameters["release_type"])
): returnTrue
returnFalse
return [l for l, t in full_task_graph.tasks.items() if filter(t, parameters)]
@register_target_task("screenshots") def target_tasks_screnshots(full_task_graph, parameters, graph_config): """Select the set of tasks required to generate screenshots on a real device."""
return [l for l, t in full_task_graph.tasks.items() if filter(t, parameters)]
@register_target_task("legacy_api_ui_tests") def target_tasks_legacy_api_ui_tests(full_task_graph, parameters, graph_config): """Select the set of tasks required to run select UI tests on other API."""
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.