2022-03-31 19:42:49 +01:00
|
|
|
from datetime import timedelta
|
|
|
|
|
|
|
|
|
|
|
|
class MesaCIException(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class MesaCITimeoutError(MesaCIException):
|
|
|
|
def __init__(self, *args, timeout_duration: timedelta) -> None:
|
|
|
|
super().__init__(*args)
|
|
|
|
self.timeout_duration = timeout_duration
|
|
|
|
|
|
|
|
|
|
|
|
class MesaCIRetryError(MesaCIException):
|
|
|
|
def __init__(self, *args, retry_count: int) -> None:
|
|
|
|
super().__init__(*args)
|
2022-04-21 00:55:47 +01:00
|
|
|
self.retry_count = retry_count
|
|
|
|
|
|
|
|
|
|
|
|
class MesaCIParseException(MesaCIException):
|
|
|
|
pass
|
2022-07-07 02:59:11 +01:00
|
|
|
|
|
|
|
|
|
|
|
class MesaCIKnownIssueException(MesaCIException):
|
|
|
|
"""Exception raised when the Mesa CI script finds something in the logs that
|
|
|
|
is known to cause the LAVA job to eventually fail"""
|
|
|
|
|
|
|
|
pass
|