-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
129 lines (112 loc) · 3.04 KB
/
config.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
import bugzilla
import yaml
import sys
import os
import google_api as gapi
# [CHANGE NEEDED] Add the relevant information for you report
cfg_path = os.path.expanduser('~/.gapi/personal_cfg.yml')
if len(sys.argv) != 2:
raise IndexError("You must provide the spreadsheet name to work with")
SPREADSHEET_NAME = sys.argv[1]
g = gapi.GoogleSpreadSheetAPI(SPREADSHEET_NAME, "Dashboard configuration")
PRODUCT = g.get_cell_value(7, 3)
BUGZILLA_PRODUCT = g.get_cell_value(7, 4)
VERSION = g.get_cell_value(7, 6)
TARGET_RELEASE = g.get_cell_value(7, 7)
TARGET_MILESTONE = g.get_cell_value(7, 8)
# The version flag should contain only x and y releases:
# ocs-4.2.0 --> ocs-x.y.z so you'll need to add only ocs-4.2 in order to see
# all bugs in version x.y
BUGZILLA_VERSION_FLAG = g.get_cell_value(7, 5)
LAYERED_PRODUCT = g.get_cell_value(10, 4)
# [CHANGE NEEDED] List here all the teams you want to sample, for example:
team1 = "manage"
team2 = "e2e"
team3 = "ecosystem"
all_team = [team1, team2, team3]
severity = {
"urgent": 1,
"high": 2,
"medium": 3,
"low": 4,
"unspecified": 5
}
BUGS_BY_TEAM = {
team1: [],
team2: [],
team3: [],
}
team_members_g = gapi.GoogleSpreadSheetAPI(SPREADSHEET_NAME, "QE_team_member")
TEAM_MEMBERS = list()
idx = 1
while True:
member = team_members_g.get_cell_value(idx, 1)
if member:
TEAM_MEMBERS.append(member)
idx += 1
else:
break
# [CHANGE NEEDED] Add the team members divided into teams. For example:
teams = {
team1: [
"ebenahar", "belimele", "ebondare", "hnallurv", "jijoy", "nberry",
"pbyregow", "prsurve", "sshreeka", "sagrawal", "tdesala",
"fbalak", "mbukatov", "apolak", "srozen",
],
team2: [
"tmuthami", "kramdoss", "akrai", "ksandha", "rperiyas", "sraghave",
"tunguyen", "wusui", "alayani", "savetisy"
],
team3: [
"pbalogh", "clacroix", "dahorak", "shmohan", "vavuthu",
"ratamir", "vakulkar"
],
}
# [CHANGE NEEDED] Add *ALL* the product components exist in Bugzilla for your
# product
COMPONENTS = {
'Build': [],
'Ceph-Ansible': [],
'Cephadm': [],
'Ceph-Dashboard': [],
'Ceph-Installer': [],
'Ceph-Medic': [],
'Ceph-Metrics': [],
'Ceph-Mgr Plugins': [],
'Ceph-Volume': [],
'CephFS': [],
'Container': [],
'Distribution': [],
'Security' : [],
'Documentation': [],
'iSCSI': [],
'RADOS': [],
'RBD': [],
'RBD-Mirror': [],
'RGW': [],
'RGW-Multisite': [],
'Unclassified': [],
}
backlog = {}
URL = "bugzilla.redhat.com"
bzapi = bugzilla.Bugzilla(URL)
# Bug statuses
VERIFIED = "VERIFIED"
ON_QA = "ON_QA"
MODIFIED = "MODIFIED"
OPEN_BUGS = "NEW,ASSIGNED,POST,MODIFIED"
OPEN_BUGS_LIST = ["NEW", "ASSIGNED", "POST", "MODIFIED"]
CLOSED_RESOLUTION = [
"", "WONTFIX", "DEFFERED", "CURRENTRELEASE", "ERRATA", "UPSTREAM",
"NEXTRELEASE", "CANTFIX"
]
# Bug flags
BLOCKER = "blocker+"
CANDIDATE_BLOCKER = "blocker?"
MISSING_ACK = [
"pm_ack+",
"devel_ack+",
"qa_ack?"
]
NEEDINFO = "needinfo?"
QUALITY_IMPACT = "quality_impact="