Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Firefox/taskcluster/gecko_taskgraph/transforms/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Quelle  snap_test.py   Sprache: Python

 
# 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/.
"""
"""


import logging

from taskgraph.transforms.base import TransformSequence
from taskgraph.util.dependencies import get_primary_dependency
from taskgraph.util.treeherder import inherit_treeherder_from_dep

logger = logging.getLogger(__name__)

transforms = TransformSequence()


@transforms.add
def fill_template(config, tasks):
    for task in tasks:
        test_type = task.get("attributes")["snap_test_type"]
        test_release = task.get("attributes")["snap_test_release"]

        assert "-test-" in task.get("label")
        task["label"] = task.get("label").replace(
            "-test-""-test-" + test_type + "-" + test_release + "-"
        )

        dep = get_primary_dependency(config, task)
        assert dep

        inherit_treeherder_from_dep(task, dep)
        task_platform = task["task"]["extra"]["treeherder"]["machine"]["platform"]

        # Disambiguate the treeherder symbol.
        full_platform_collection = (
            task_platform
            + "-snap-"
            + task.get("label").split("-")[-2]
            + "-"
            + test_release
            + "-"
            + task.get("label").split("-")[-1]
        )

        (platform, collection) = full_platform_collection.split("/")
        task["task"]["extra"]["treeherder"]["collection"] = {collection: True}
        task["task"]["extra"]["treeherder"]["machine"]["platform"] = platform
        task["task"]["extra"]["treeherder-platform"] = full_platform_collection
        task["task"]["metadata"]["name"] = task["label"]

        timeout = 10
        if collection != "opt":
            timeout = 60
            task["task"]["payload"]["env"]["BUILD_IS_DEBUG"] = "1"

        task["task"]["payload"]["env"]["TEST_TIMEOUT"] = "{}".format(timeout)

        yield task

88%


¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

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.