forked from cms-sw/cms-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
categories.py
121 lines (114 loc) · 4.72 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
# 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
from repo_config import CMSBUILD_USER
from releases import SPECIAL_RELEASE_MANAGERS
authors = {}
GITHUB_BLACKLIST_AUTHORS = []
CMSSW_L1 = ["dpiparo", "silviodonato","qliphy"]
APPROVE_BUILD_RELEASE = list(set([ "smuzaffar"] + CMSSW_L1 + SPECIAL_RELEASE_MANAGERS))
REQUEST_BUILD_RELEASE = APPROVE_BUILD_RELEASE
TRIGGER_PR_TESTS = list(set([ "felicepantaleo", "rovere", "lgray", "bsunanda", "VinInn", "kpedro88", "makortel", "wddgit", "mtosi", "gpetruc", "gartung", "nsmith-","mmusich","Sam-Harper","sroychow"] + REQUEST_BUILD_RELEASE + [ a for a in authors if authors[a]>10 and not a in GITHUB_BLACKLIST_AUTHORS ]))
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_L1 + [ "smuzaffar", "Dr15Jones", "makortel" ]))
COMPARISON_MISSING_MAP = [ "slava77" ]
CMSSW_L2 = {
"Dr15Jones": ["core", "visualization", "geometry"],
"Martin-Grunewald": ["hlt"],
"ahmad3213": ["dqm"],
"alberto-sanchez": ["generators"],
"agrohsje": ["generators"],
"alja": ["visualization"],
"andrius-k": ["dqm"],
"chayanit": ["pdmv"],
"civanch": ["simulation", "geometry", "fastsim"],
"cvuosalo": ["geometry"],
"davidlange6": ["operations"],
"emeschi": ["daq"],
"ErnestaP": ["dqm"],
"fgolf": ["xpog"],
"fwyzard": ["heterogeneous", "hlt"],
"ggovi": ["db"],
"gouskos": ["xpog"],
"GurpreetSinghChahal": ["generators"],
"ianna": ["geometry"],
"iarspider": ["externals"],
"jfernan2": ["dqm"],
"cecilecaillol": ["l1"],
"jordan-martins": ["pdmv"],
"jpata": ["reconstruction"],
"kmaeshima": ["dqm"],
"kpedro88": ["upgrade"],
"lveldere": ["fastsim"],
"makortel": ["heterogeneous", "core", "visualization", "geometry"],
"mariadalfonso": ["xpog"],
"mdhildreth": ["simulation", "geometry", "fastsim"],
"mkirsano": ["generators"],
"mrodozov": ["externals"],
"perrotta": ["reconstruction"],
"pohsun": ["alca"],
"qliphy": ["operations"],
"rekovic": ["l1"],
"rvenditti": ["dqm"],
"santocch": ["analysis"],
"sbein": ["fastsim"],
"SiewYan": ["generators"],
"silviodonato": ["operations"],
"slava77": ["reconstruction"],
"smorovic": ["daq"],
"smuzaffar": ["core", "externals"],
"srimanob": ["upgrade"],
"ssekmen": ["fastsim"],
"tlampen": ["alca"],
"wajidalikhan": ["pdmv"],
"yuanchao": ["alca"],
"francescobrivio": ["alca"],
"malbouis": ["alca"],
"tvami": ["alca"],
CMSBUILD_USER: ["tests" ],
# dpgs
"tsusa": ["trk-dpg"],
"mmusich": ["trk-dpg"],
"thomreis": ["ecal-dpg"],
"mseidel42": ["hcal-dpg"],
"georgia14": ["hcal-dpg"],
"mileva": ["muon-dpg"],
"battibass": ["dt-dpg"],
"fcavallo": ["dt-dpg"],
"namapane": ["dt-dpg"],
"ptcox": ["csc-dpg"],
"jhgoh": ["rpc-dpg"],
"andresib": ["rpc-dpg"],
"pavlov": ["rpc-dpg"],
"kamon": ["gem-dpg"],
"jlee": ["gem-dpg"],
"fabferro": ["ctpps-dpg"],
"jan-kaspar": ["ctpps-dpg"],
"vavati": ["ctpps-dpg"],
"rovere": ["hgcal-dpg"],
"cseez": ["hgcal-dpg"],
"fabiocos": ["mtd-dpg", "operations"],
"parbol": ["mtd-dpg"],
}
USERS_TO_TRIGGER_HOOKS = set(TRIGGER_PR_TESTS + CMSSW_ISSUES_TRACKERS + list(CMSSW_L2.keys()))
CMS_REPOS = set(CMSDIST_REPOS + CMSSW_REPOS + EXTERNAL_REPOS)
from datetime import datetime
COMMENT_CONVERSION = {}
COMMENT_CONVERSION['kpedro88']={'comments_before': datetime.strptime('2018-07-13','%Y-%m-%d'), 'comments':[('+1', '+upgrade')]}
COMMENT_CONVERSION['qliphy']={'comments_before': datetime.strptime('2020-07-24','%Y-%m-%d'), 'comments':[('+1', '+generators'),('-1', '-generators')]}
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 ''