forked from cms-sw/cms-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
categories.py
90 lines (83 loc) · 3.54 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
# 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"]
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-"] + 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"],
"alberto-sanchez": ["generators"],
"agrohsje": ["generators"],
"alja": ["visualization"],
"andrius-k": ["dqm"],
"benkrikler": ["l1"],
"chayanit": ["pdmv"],
"civanch": ["simulation", "geometry", "fastsim"],
"cmsdoxy": ["docs"],
"cvuosalo": ["geometry"],
"davidlange6": ["operations"],
"efeyazgan": ["generators"],
"emeschi": ["daq"],
"fabiocos": ["operations"],
"fgolf": ["xpog"],
"franzoni": ["operations"],
"fwyzard": ["heterogeneous", "hlt"],
"ggovi": ["db"],
"ianna": ["geometry"],
"jfernan2": ["dqm"],
"kmaeshima": ["dqm"],
"fioriNTU": ["dqm"],
"kpedro88": ["upgrade"],
"lveldere": ["fastsim"],
"makortel": ["heterogeneous", "core", "visualization", "geometry"],
"mdhildreth": ["simulation", "geometry", "fastsim"],
"mkirsano": ["generators"],
"mommsen": ["daq"],
"mrodozov": ["externals"],
"perrotta": ["reconstruction"],
"peruzzim": ["xpog"],
"pgunnell": ["pdmv"],
"pohsun": ["alca"],
"qliphy": ["generators"],
"rekovic": ["l1"],
"santocch": ["analysis"],
"sbein": ["fastsim"],
"schneiml": ["dqm"],
"SiewYan": ["generators"],
"silviodonato": ["operations"],
"slava77": ["reconstruction"],
"smuzaffar": ["core", "externals"],
"tulamor": ["externals"],
"ssekmen": ["fastsim"],
"tlampen": ["alca"],
"tocheng": ["alca"],
"wajidalikhan": ["pdmv"],
"christopheralanwest": ["alca"],
CMSBUILD_USER: ["tests" ],
}
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')]}
def external_to_package(repo_fullname):
org, repo = repo_fullname.split("/",1)
if org == "cms-data":
return repo.replace('-','/')
return ''