summaryrefslogtreecommitdiff
path: root/buildscripts/task_generation/task_types/models/resmoke_task_model.py
blob: c1b49fb4345982bf617b270190617c9340e88df4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""Model mapping resmoke suites to tasks."""
from typing import NamedTuple, Optional, List

from shrub.v2 import Task


class ResmokeTask(NamedTuple):
    """Wrapper around shrub.py Task objects with tighter integration with resmoke.py."""

    shrub_task: Task
    resmoke_suite_name: str
    # Path to the generated file does not include the generated config directory.
    execution_task_suite_yaml_path: str
    execution_task_suite_yaml_name: str
    test_list: Optional[List[str]]
    excludes: Optional[List[str]]