-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathenums.py
80 lines (60 loc) · 1.96 KB
/
enums.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
from enum import Enum
class Decoration(Enum):
standard = "standard"
upgrade = "upgrade"
upload_limit = "upload_limit"
passing_empty_upload = "passing_empty_upload"
failing_empty_upload = "failing_empty_upload"
processing_upload = "processing_upload"
class Notification(Enum):
comment = "comment"
status_changes = "status_changes"
status_patch = "status_patch"
status_project = "status_project"
checks_changes = "checks_changes"
checks_patch = "checks_patch"
checks_project = "checks_project"
slack = "slack"
webhook = "webhook"
gitter = "gitter"
irc = "irc"
hipchat = "hipchat"
codecov_slack_app = "codecov_slack_app"
notification_type_status_or_checks = {
Notification.status_changes,
Notification.status_patch,
Notification.status_project,
Notification.checks_changes,
Notification.checks_patch,
Notification.checks_project,
}
class NotificationState(Enum):
pending = "pending"
success = "success"
error = "error"
class CompareCommitState(Enum):
pending = "pending"
processed = "processed"
error = "error"
class CompareCommitError(Enum):
missing_base_report = "missing_base_report"
missing_head_report = "missing_head_report"
provider_client_error = "provider_client_error"
class CommitErrorTypes(Enum):
INVALID_YAML = "invalid_yaml"
YAML_CLIENT_ERROR = "yaml_client_error"
YAML_UNKNOWN_ERROR = "yaml_unknown_error"
REPO_BOT_INVALID = "repo_bot_invalid"
class TrialStatus(Enum):
NOT_STARTED = "not_started"
ONGOING = "ongoing"
EXPIRED = "expired"
CANNOT_TRIAL = "cannot_trial"
class ReportType(Enum):
COVERAGE = "coverage"
TEST_RESULTS = "test_results"
BUNDLE_ANALYSIS = "bundle_analysis"
class FlakeSymptomType(Enum):
FAILED_IN_DEFAULT_BRANCH = "failed_in_default_branch"
CONSECUTIVE_DIFF_OUTCOMES = "consecutive_diff_outcomes"
UNRELATED_MATCHING_FAILURES = "unrelated_matching_failures"