How to use the taskgraph.target_tasks._target_task function in taskgraph

To help you get started, we’ve selected a few taskgraph examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mozilla-mobile / fenix / taskcluster / fenix_taskgraph / target_tasks.py View on Github external
@_target_task('default')
def target_tasks_default(full_task_graph, parameters, graph_config):
    """Target the tasks which have indicated they should be run on this project
    via the `run_on_projects` attributes."""
    return [l for l, t in full_task_graph.tasks.iteritems() if _old_decision_filter(t, parameters)]
github mozilla-mobile / fenix / taskcluster / fenix_taskgraph / target_tasks.py View on Github external
@_target_task("nightly")
def target_tasks_nightly(full_task_graph, parameters, graph_config):
    """Select the set of tasks required for a nightly build."""

    def filter(task, parameters):
        if task.attributes.get("nightly", False):
            return True

        return _old_decision_filter(task, parameters)

    return [l for l, t in full_task_graph.tasks.iteritems() if filter(t, parameters)]
github mozilla-mobile / firefox-tv / taskcluster / firefox_tv_taskgraph / target_tasks.py View on Github external
@_target_task("production")
def target_tasks_production(full_task_graph, parameters, graph_config):
    return [l for l, task in full_task_graph.tasks.iteritems() if tag_filter("production", task, parameters)]
github mozilla-mobile / firefox-tv / taskcluster / firefox_tv_taskgraph / target_tasks.py View on Github external
@_target_task("lat")
def target_tasks_production(full_task_graph, parameters, graph_config):
    return [l for l, task in full_task_graph.tasks.iteritems() if tag_filter("lat", task, parameters)]
github mozilla-mobile / fenix / taskcluster / fenix_taskgraph / target_tasks.py View on Github external
@_target_task('raptor')
def target_tasks_raptor(full_task_graph, parameters, graph_config):
    def filter(t, params):
        if t.kind == 'raptor':
            return True

        return _old_decision_filter(t, params)

    return [l for l, t in full_task_graph.tasks.iteritems() if filter(t, parameters)]
github mozilla-mobile / firefox-tv / taskcluster / firefox_tv_taskgraph / target_tasks.py View on Github external
@_target_task("default")
def target_tasks_default(full_task_graph, parameters, graph_config):
    filter = standard_filter
    return [l for l, task in full_task_graph.tasks.iteritems() if filter(task, parameters)]