forked from kuba-moo/nipa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchecks.html
151 lines (143 loc) · 3.39 KB
/
checks.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>PW check stats</title>
<link rel="shortcut icon" href="/favicon-stats.png" type="image/png" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/chart.umd.min.js"></script>
<script src="checks.js"></script>
<script>
do_it();
</script>
<style>
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}
td, th {
border: 1px solid #eeeeee;
text-align: left;
padding: 8px;
}
tr:nth-child(even) {
background-color: #eeeeee;
}
.row {
display: flex;
}
.column {
flex: 50%;
padding: 1em;
}
</style>
</head>
<body>
<div><p style="text-align:right;" id="status_line"></p></div>
<div class="row">
<div class="column">
<h3>Patch color (accepted)</h3>
<canvas id="gyr_accept"></canvas>
</div>
<div class="column">
<h3>Patch color (all)</h3>
<canvas id="gyr_all"></canvas>
</div>
</div>
<div class="row">
<div class="column">
<h3>Check fail rate (accepted)</h3>
<canvas id="pc_accept"></canvas>
</div>
<div class="column">
<h3>Check fail rate (all)</h3>
<canvas id="pc_all"></canvas>
</div>
</div>
<div class="row">
<div class="column">
<h3>Avg fail rate (accepted)</h3>
<table id="avg_rate_accept">
<thead>
<tr>
<th></th>
<th colspan="3">2 Weeks</th>
<th colspan="3">All time</th>
</tr>
<tr>
<th>Check</th>
<th>Success</th>
<th>Warning</th>
<th>Fail</th>
<th>Success</th>
<th>Warning</th>
<th>Fail</th>
</tr>
<thead>
</table>
</div>
<div class="column">
<h3>Avg fail rate (all)</h3>
<table id="avg_rate_all">
<thead>
<tr>
<th></th>
<th colspan="3">2 Weeks</th>
<th colspan="3">All time</th>
</tr>
<tr>
<th>Check</th>
<th>Success</th>
<th>Warning</th>
<th>Fail</th>
<th>Success</th>
<th>Warning</th>
<th>Fail</th>
</tr>
<thead>
</table>
</div>
</div>
<div class="row">
<div class="column">
<h3>Top 15 developers failing checks (patch applied anyway)</h3>
<table id="person_accept">
<tr>
<th></th>
<th>Person</th>
<th>Fails</th>
<th>Warnings</th>
<th>Total</th>
</tr>
</table>
</div>
<div class="column">
<h3>Top 15 developers failing checks</h3>
<table id="person_all">
<tr>
<th></th>
<th>Person</th>
<th>Fails</th>
<th>Warnings</th>
<th>Total</th>
</tr>
</table>
</div>
</div>
<div class="row">
<div class="column">
<h3>Top 20 check outputs</h3>
<table id="logTable">
<tr>
<th>Check</th>
<th>Output</th>
<th>Hits</th>
</tr>
</table>
</div>
<div class="column">
</div>
</div>
</body>
</html>