-
Notifications
You must be signed in to change notification settings - Fork 244
/
categories.py
204 lines (192 loc) · 6.47 KB
/
categories.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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
# A ridicously long mapping for categories. Good enough for now.
from cms_static import GH_CMSDIST_REPO as gh_cmsdist
from cms_static import GH_CMSSW_ORGANIZATION as gh_user
from cms_static import GH_CMSSW_REPO as gh_cmssw
from categories_map import CMSSW_CATEGORIES, CMSSW_LABELS
from repo_config import CMSBUILD_USER
from releases import SPECIAL_RELEASE_MANAGERS
authors = {}
# Any Githib user whose comments/requests should be ignored
GITHUB_BLACKLIST_AUTHORS = []
# CMS Offline Release Planning managers
CMSSW_ORP = ["sextonkennedy", "rappoccio", "antoniovilela", "mandrenguyen"]
# CMS-SDT members who has admin rights to various github organizations and repositories.
# They are also reposionsible to sign for externals
CMS_SDT = ["iarspider", "smuzaffar", "aandvalenzuela"]
# List of gh users who can approve a release build request
APPROVE_BUILD_RELEASE = list(set(["smuzaffar"] + CMSSW_ORP + SPECIAL_RELEASE_MANAGERS))
# List of gh users who can request to build a release.
REQUEST_BUILD_RELEASE = APPROVE_BUILD_RELEASE
# List og gh users who are allowed to trigger Pull Request testing
TRIGGER_PR_TESTS = list(
set(
[
"felicepantaleo",
"rovere",
"lgray",
"bsunanda",
"VinInn",
"kpedro88",
"makortel",
"wddgit",
"mtosi",
"gpetruc",
"gartung",
"nsmith-",
"mmusich",
"Sam-Harper",
"sroychow",
"silviodonato",
"slava77",
]
+ REQUEST_BUILD_RELEASE
+ [a for a in authors if authors[a] > 10 and not a in GITHUB_BLACKLIST_AUTHORS]
)
)
# List of on additional release managers
PR_HOLD_MANAGERS = ["kpedro88"]
COMMON_CATEGORIES = ["orp", "tests", "code-checks"]
EXTERNAL_CATEGORIES = ["externals"]
EXTERNAL_REPOS = ["cms-data", "cms-externals", gh_user]
CMSSW_REPOS = [gh_user + "/" + gh_cmssw]
CMSDIST_REPOS = [gh_user + "/" + gh_cmsdist]
CMSSW_ISSUES_TRACKERS = list(set(CMSSW_ORP + ["smuzaffar", "Dr15Jones", "makortel"]))
COMPARISON_MISSING_MAP = ["slava77"]
# CMS L2's and the CMSSW categories they are responsible for. They can also request to start pull requests testing
CMSSW_L2 = {
"Dr15Jones": ["core", "visualization", "geometry"],
"Martin-Grunewald": ["hlt"],
"mmusich": ["hlt"],
"AdrianoDee": ["pdmv"],
"alja": ["visualization"],
"bbilin": ["generators"],
"civanch": ["simulation", "geometry", "fastsim"],
"bsunanda": ["geometry"],
"davidlange6": ["operations"],
"emeschi": ["daq"],
"vlimant": ["ppd", "xpog"],
"hqucms": ["xpog"],
"ftorrresd": ["xpog"],
"fwyzard": ["heterogeneous"],
"jfernan2": ["reconstruction"],
"sunilUIET": ["pdmv"],
"miquork": ["pdmv", "jetmet-pog"],
"makortel": ["heterogeneous", "core", "visualization", "geometry"],
"mandrenguyen": ["reconstruction", "operations"],
"mdhildreth": ["simulation", "geometry", "fastsim"],
"mkirsano": ["generators"],
"menglu21": ["generators"],
"lviliani": ["generators"],
"rappoccio": ["operations"],
"antoniovilela": ["operations"],
"epalencia": ["l1"],
"aloeliger": ["l1"],
"rvenditti": ["dqm"],
"syuvivida": ["dqm"],
"tjavaid": ["dqm"],
"nothingface0": ["dqm"],
"antoniovagnerini": ["dqm"],
"sbein": ["fastsim"],
"smorovic": ["daq"],
"smuzaffar": ["core"],
"srimanob": ["upgrade"],
"subirsarkar": ["upgrade"],
"ssekmen": ["fastsim"],
"francescobrivio": ["db"],
"tvami": ["analysis"],
"saumyaphor4252": ["alca", "db"],
"perrotta": ["alca", "db"],
"consuegs": ["alca", "db"],
CMSBUILD_USER: ["tests"],
# dpgs
"mdelcourt": ["trk-dpg"],
"sroychow": ["trk-dpg"],
"wang0jin": ["ecal-dpg"],
"thomreis": ["ecal-dpg"],
"wang-hui": ["hcal-dpg"],
"jhakala": ["hcal-dpg"],
"abdoulline": ["hcal-dpg"],
"igv4321": ["hcal-dpg"],
"mileva": ["muon-dpg"],
"battibass": ["muon-dpg", "dt-dpg"],
"fcavallo": ["dt-dpg"],
"namapane": ["dt-dpg"],
"ptcox": ["csc-dpg"],
"jhgoh": ["rpc-dpg"],
"andresib": ["rpc-dpg"],
"Pavlov": ["rpc-dpg"],
"kamon": ["gem-dpg"],
"jshlee": ["gem-dpg"],
"watson-ij": ["gem-dpg"],
"fabferro": ["ctpps-dpg"],
"jan-kaspar": ["ctpps-dpg"],
"vavati": ["ctpps-dpg"],
"rovere": ["hgcal-dpg"],
"cseez": ["hgcal-dpg"],
"pfs": ["hgcal-dpg"],
"felicepantaleo": ["hgcal-dpg"],
"fabiocos": ["mtd-dpg", "operations"],
"martinamalberti": ["mtd-dpg"],
"parbol": ["mtd-dpg"],
# pogs
"bellan": ["pf"],
"kdlong": ["pf"],
"swagata87": ["pf"],
"afiqaize": ["egamma-pog"],
"RSalvatico": ["egamma-pog"],
"kirschen": ["jetmet-pog"],
"alkaloge": ["jetmet-pog"],
"knollejo": ["lumi-pog"],
"cschwick": ["lumi-pog"],
"gkaratha": ["muon-pog"],
"JanFSchulte": ["muon-pog"],
"SWuchterl": ["btv-pog"],
"mondalspandan": ["btv-pog"],
"michael-pitt": ["proton-pog"],
"kshcheli": ["proton-pog"],
"cardinia": ["tau-pog"],
"danielwinterbottom": ["tau-pog"],
"slava77": ["tracking-pog"],
"kskovpen": ["pdmv", "tracking-pog"],
"mmasciov": ["tracking-pog"],
# PPD
"malbouis": ["ppd"],
"jordan-martins": ["ppd"],
# ML
"valsdav": ["ml"],
"y19y19": ["ml"],
}
# All CMS_SDT members can sign externals ( e.g Pull Requests in cms-sw/cmsdist , cms-data and cms-externals
for user in CMS_SDT:
if user not in CMSSW_L2:
CMSSW_L2[user] = ["externals"]
elif not "externals" in CMSSW_L2[user]:
CMSSW_L2[user].append("externals")
# All CMSSW L1 can sign for ORP
for user in CMSSW_ORP:
if user not in CMSSW_L2:
CMSSW_L2[user] = ["orp"]
else:
CMSSW_L2[user].append("orp")
USERS_TO_TRIGGER_HOOKS = set(TRIGGER_PR_TESTS + CMSSW_ISSUES_TRACKERS + list(CMSSW_L2.keys()))
CMS_REPOS = set(CMSDIST_REPOS + CMSSW_REPOS + EXTERNAL_REPOS)
for user in CMSSW_L2:
for cat in CMSSW_L2[user]:
if cat not in CMSSW_CATEGORIES:
CMSSW_CATEGORIES[cat] = []
def external_to_package(repo_fullname):
org, repo = repo_fullname.split("/", 1)
if org == "cms-data":
return repo.replace("-", "/")
return ""
# extra labels which bot cn add via 'type label' comment
def get_dpg_pog():
groups = ["pf", "l1t", "castor"]
for user in CMSSW_L2:
for cat in CMSSW_L2[user]:
if "-" not in cat:
continue
grp, ctype = cat.split("-", 1)
if ctype in ["pog", "dpg"]:
groups.append(grp)
return list(set(groups))