forked from cms-sw/cms-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cmssw_known_errors.py
executable file
·124 lines (120 loc) · 8.87 KB
/
cmssw_known_errors.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
#!/usr/bin/env python
from copy import deepcopy
MSG_GCC_ABI_INCOMPETIBILITY = "GCC ABI incompetibility. GridPacks were built with gcc4"
MSG_ARCH_INCOMPETIBILITY = "Architecture incompetibility. GridPacks were built for x86_64"
KNOWN_ERRORS = {"relvals":{}, "addons":{}, "unittests":{}}
KNOWN_ERRORS["relvals"]["CMSSW_9_[2-9]_.+"]={
"slc._amd64_gcc630": {
"512.0": { "step": 1, "exitcode": 16640, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"513.0": { "step": 1, "exitcode": 16640, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"515.0": { "step": 1, "exitcode": 16640, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"516.0": { "step": 1, "exitcode": 16640, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"518.0": { "step": 1, "exitcode": 16640, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"519.0": { "step": 1, "exitcode": 16640, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"521.0": { "step": 1, "exitcode": 16640, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"522.0": { "step": 1, "exitcode": 16640, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"525.0": { "step": 1, "exitcode": 16640, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"526.0": { "step": 1, "exitcode": 16640, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"528.0": { "step": 1, "exitcode": 16640, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"529.0": { "step": 1, "exitcode": 16640, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
},
"slc._amd64_gcc700": {
"512.0": { "step": 1, "exitcode": 16640, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"513.0": { "step": 1, "exitcode": 16640, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"514.0": { "step": 1, "exitcode": 16640, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"515.0": { "step": 1, "exitcode": 16640, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"516.0": { "step": 1, "exitcode": 16640, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"517.0": { "step": 1, "exitcode": 16640, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"518.0": { "step": 1, "exitcode": 16640, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"519.0": { "step": 1, "exitcode": 16640, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"520.0": { "step": 1, "exitcode": 16640, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"521.0": { "step": 1, "exitcode": 16640, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"522.0": { "step": 1, "exitcode": 16640, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"523.0": { "step": 1, "exitcode": 31744, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"524.0": { "step": 1, "exitcode": 16640, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"525.0": { "step": 1, "exitcode": 16640, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"526.0": { "step": 1, "exitcode": 16640, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"527.0": { "step": 1, "exitcode": 16640, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"528.0": { "step": 1, "exitcode": 16640, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"529.0": { "step": 1, "exitcode": 16640, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"530.0": { "step": 1, "exitcode": 16640, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"551.0": { "step": 1, "exitcode": 31744, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"552.0": { "step": 1, "exitcode": 16640, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"554.0": { "step": 1, "exitcode": 16640, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"555.0": { "step": 1, "exitcode": 31744, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"556.0": { "step": 1, "exitcode": 16640, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"562.0": { "step": 1, "exitcode": 16640, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"1360.0": { "step": 1, "exitcode": 34304, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"1361.0": { "step": 1, "exitcode": 34304, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"1362.0": { "step": 1, "exitcode": 34304, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"1363.0": { "step": 1, "exitcode": 34304, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"1361.17": { "step": 1, "exitcode": 34304, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"1362.17": { "step": 1, "exitcode": 34304, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"1363.17": { "step": 1, "exitcode": 34304, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"25210.0": { "step": 1, "exitcode": 34304, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"25211.0": { "step": 1, "exitcode": 34304, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"25212.0": { "step": 1, "exitcode": 34304, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"25213.0": { "step": 1, "exitcode": 34304, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"25211.17": { "step": 1, "exitcode": 34304, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"25212.17": { "step": 1, "exitcode": 34304, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
"25213.17": { "step": 1, "exitcode": 34304, "reason" : MSG_GCC_ABI_INCOMPETIBILITY},
},
"slc._aarch64_.+": {
"512.0": { "step": 1, "exitcode": 16640, "reason" : MSG_ARCH_INCOMPETIBILITY},
"513.0": { "step": 1, "exitcode": 16640, "reason" : MSG_ARCH_INCOMPETIBILITY},
"514.0": { "step": 1, "exitcode": 16640, "reason" : MSG_ARCH_INCOMPETIBILITY},
"515.0": { "step": 1, "exitcode": 16640, "reason" : MSG_ARCH_INCOMPETIBILITY},
"516.0": { "step": 1, "exitcode": 16640, "reason" : MSG_ARCH_INCOMPETIBILITY},
"517.0": { "step": 1, "exitcode": 16640, "reason" : MSG_ARCH_INCOMPETIBILITY},
"518.0": { "step": 1, "exitcode": 16640, "reason" : MSG_ARCH_INCOMPETIBILITY},
"519.0": { "step": 1, "exitcode": 16640, "reason" : MSG_ARCH_INCOMPETIBILITY},
"520.0": { "step": 1, "exitcode": 16640, "reason" : MSG_ARCH_INCOMPETIBILITY},
"521.0": { "step": 1, "exitcode": 16640, "reason" : MSG_ARCH_INCOMPETIBILITY},
"522.0": { "step": 1, "exitcode": 16640, "reason" : MSG_ARCH_INCOMPETIBILITY},
"523.0": { "step": 1, "exitcode": 31744, "reason" : MSG_ARCH_INCOMPETIBILITY},
"524.0": { "step": 1, "exitcode": 16640, "reason" : MSG_ARCH_INCOMPETIBILITY},
"525.0": { "step": 1, "exitcode": 16640, "reason" : MSG_ARCH_INCOMPETIBILITY},
"526.0": { "step": 1, "exitcode": 16640, "reason" : MSG_ARCH_INCOMPETIBILITY},
"527.0": { "step": 1, "exitcode": 16640, "reason" : MSG_ARCH_INCOMPETIBILITY},
"528.0": { "step": 1, "exitcode": 16640, "reason" : MSG_ARCH_INCOMPETIBILITY},
"529.0": { "step": 1, "exitcode": 16640, "reason" : MSG_ARCH_INCOMPETIBILITY},
"530.0": { "step": 1, "exitcode": 16640, "reason" : MSG_ARCH_INCOMPETIBILITY},
"551.0": { "step": 1, "exitcode": 31744, "reason" : MSG_ARCH_INCOMPETIBILITY},
"552.0": { "step": 1, "exitcode": 16640, "reason" : MSG_ARCH_INCOMPETIBILITY},
"554.0": { "step": 1, "exitcode": 16640, "reason" : MSG_ARCH_INCOMPETIBILITY},
"555.0": { "step": 1, "exitcode": 31744, "reason" : MSG_ARCH_INCOMPETIBILITY},
"556.0": { "step": 1, "exitcode": 16640, "reason" : MSG_ARCH_INCOMPETIBILITY},
"562.0": { "step": 1, "exitcode": 16640, "reason" : MSG_ARCH_INCOMPETIBILITY},
"1360.0": { "step": 1, "exitcode": 64000, "reason" : MSG_ARCH_INCOMPETIBILITY},
"1361.0": { "step": 1, "exitcode": 64000, "reason" : MSG_ARCH_INCOMPETIBILITY},
"1362.0": { "step": 1, "exitcode": 64000, "reason" : MSG_ARCH_INCOMPETIBILITY},
"1363.0": { "step": 1, "exitcode": 64000, "reason" : MSG_ARCH_INCOMPETIBILITY},
"1361.17": { "step": 1, "exitcode": 64000, "reason" : MSG_ARCH_INCOMPETIBILITY},
"1362.17": { "step": 1, "exitcode": 64000, "reason" : MSG_ARCH_INCOMPETIBILITY},
"1363.17": { "step": 1, "exitcode": 64000, "reason" : MSG_ARCH_INCOMPETIBILITY},
"25210.0": { "step": 1, "exitcode": 64000, "reason" : MSG_ARCH_INCOMPETIBILITY},
"25211.0": { "step": 1, "exitcode": 64000, "reason" : MSG_ARCH_INCOMPETIBILITY},
"25212.0": { "step": 1, "exitcode": 64000, "reason" : MSG_ARCH_INCOMPETIBILITY},
"25213.0": { "step": 1, "exitcode": 64000, "reason" : MSG_ARCH_INCOMPETIBILITY},
"25211.17": { "step": 1, "exitcode": 64000, "reason" : MSG_ARCH_INCOMPETIBILITY},
"25212.17": { "step": 1, "exitcode": 64000, "reason" : MSG_ARCH_INCOMPETIBILITY},
"25213.17": { "step": 1, "exitcode": 64000, "reason" : MSG_ARCH_INCOMPETIBILITY},
}
}
KNOWN_ERRORS["relvals"]["CMSSW_9_[2-9]_.+"]["slc6_amd64_gcc630"]={"534.0": { "step": 1, "exitcode": 35584, "reason" : MSG_GCC_ABI_INCOMPETIBILITY}}
KNOWN_ERRORS["relvals"]["CMSSW_9_[2-9]_.+"]["slc7_amd64_gcc630"]={"534.0": { "step": 1, "exitcode": 62720, "reason" : MSG_GCC_ABI_INCOMPETIBILITY}}
KNOWN_ERRORS["relvals"]["CMSSW_9_[2-9]_.+"]["slc7_aarch64_gcc530"]={"534.0": { "step": 1, "exitcode": 256, "reason" : MSG_ARCH_INCOMPETIBILITY}}
def get_known_errors(release, architecture, test_type):
if not test_type in KNOWN_ERRORS: return {}
from re import match
errs = {}
for rel in KNOWN_ERRORS[test_type]:
if not match(rel,release): continue
for arch in KNOWN_ERRORS[test_type][rel]:
if not match(arch,architecture): continue
for test in KNOWN_ERRORS[test_type][rel][arch]:
errs[test]=KNOWN_ERRORS[test_type][rel][arch][test]
return errs
if __name__ == "__main__":
from json import dumps
print dumps(KNOWN_ERRORS,sort_keys=True,indent=2)