Esempio n. 1
0
class TaskReliability(_BaseEvergreenObject):
    """Representation of an Evergreen task reliability object."""

    test_file = evg_attrib("test_file")
    task_name = evg_attrib("task_name")
    variant = evg_attrib("variant")
    distro = evg_attrib("distro")
    evg_date_attrib("date")
    num_success = evg_attrib("num_success")
    num_failed = evg_attrib("num_failed")
    num_total = evg_attrib("num_total")
    num_timeout = evg_attrib("num_timeout")
    num_test_failed = evg_attrib("num_test_failed")
    num_system_failed = evg_attrib("num_system_failed")
    num_setup_failed = evg_attrib("num_setup_failed")
    avg_duration_pass = evg_attrib("avg_duration_pass")
    success_rate = evg_attrib("success_rate")

    def __init__(self, json: Dict[str, Any], api: "EvergreenApi") -> None:
        """
        Create an instance of a test stats object.

        :param json: json version of object.
        """
        super(TaskReliability, self).__init__(json, api)
Esempio n. 2
0
class TaskReliability(_BaseEvergreenObject):
    """Representation of an Evergreen task reliability object."""

    test_file = evg_attrib('test_file')
    task_name = evg_attrib('task_name')
    variant = evg_attrib('variant')
    distro = evg_attrib('distro')
    evg_date_attrib('date')
    num_success = evg_attrib('num_success')
    num_failed = evg_attrib('num_failed')
    num_total = evg_attrib('num_total')
    num_timeout = evg_attrib('num_timeout')
    num_test_failed = evg_attrib('num_test_failed')
    num_system_failed = evg_attrib('num_system_failed')
    num_setup_failed = evg_attrib('num_setup_failed')
    avg_duration_pass = evg_attrib('avg_duration_pass')
    success_rate = evg_attrib('success_rate')

    def __init__(self, json, api):
        """
        Create an instance of a test stats object.

        :param json: json version of object.
        """
        super(TaskReliability, self).__init__(json, api)
Esempio n. 3
0
class TaskStats(_BaseEvergreenObject):
    """Representation of an Evergreen task stats object."""

    task_name = evg_attrib("task_name")
    variant = evg_attrib("variant")
    distro = evg_attrib("distro")
    date = evg_date_attrib("date")
    num_pass = evg_attrib("num_success")
    num_fail = evg_attrib("num_failed")
    avg_duration_pass = evg_attrib("avg_duration_success")

    def __init__(self, json: Dict[str, Any], api: "EvergreenApi") -> None:
        """
        Create an instance of a test stats object.

        :param json: json version of object.
        """
        super(TaskStats, self).__init__(json, api)