-
Notifications
You must be signed in to change notification settings - Fork 0
/
logs.html.erb
185 lines (175 loc) · 7.61 KB
/
logs.html.erb
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><%= h(name) %>: <%= h(result.long_message.force_encoding("binary")) %></title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../.."><%= h("#{mode} / #{repository}") %></a></li>
<li class="active"><a href=""><%= h("#{coq_version} / #{name} - #{version}") %></a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
<%= h(name) %>
<small>
<%= h(version) %>
<span class="label label-<%= result.status.css_class %>"><%= h(result.long_message).force_encoding("binary") %></span>
</small>
</h1>
<% if result.status.status == "BlackList" then %>
<div class="alert alert-info" role="alert">
<p>This result is black-listed as it is considered as too hard to reproduce / to solve. If you find a way to fix this package, please make a pull-request to <a class="alert-link" href="https://github.com/coq/opam-coq-archive">github.com/coq/opam-coq-archive</a>. The list of black-listed packages is in <a class="alert-link" href="https://github.com/coq-bench/make-html/blob/master/black_list.rb">black_list.rb</a>.</p>
</div>
<% end %>
<h2>Context</h2>
<pre><%= h(result.context) %></pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code><%= h(result.lint_command) %></code></dd>
<dt>Return code</dt>
<dd><%= h(result.lint_status) %></dd>
<% unless result.lint_output.empty? %>
<dt>Output</dt>
<dd><pre><%= h(result.lint_output) %></pre></dd>
<% end %>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code><%= h(result.dry_with_coq_command) %></code></dd>
<dt>Return code</dt>
<dd><%= h(result.dry_with_coq_status) %></dd>
<% unless result.dry_with_coq_output.empty? %>
<dt>Output</dt>
<dd><pre><%= h(result.dry_with_coq_output) %></pre></dd>
<% end %>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code><%= h(result.dry_without_coq_command) %></code></dd>
<dt>Return code</dt>
<dd><%= h(result.dry_without_coq_status) %></dd>
<% unless result.dry_without_coq_output.empty? %>
<dt>Output</dt>
<dd><pre><%= h(result.dry_without_coq_output) %></pre></dd>
<% end %>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code><%= h(result.deps_command) %></code></dd>
<dt>Return code</dt>
<dd><%= h(result.deps_status) %></dd>
<dt>Duration</dt>
<dd><%= h(result.deps_duration.to_i.duration) %></dd>
<% unless result.deps_output.empty? %>
<dt>Output</dt>
<dd><pre><%= h(result.deps_output) %></pre></dd>
<% end %>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code><%= h(result.package_command) %></code></dd>
<dt>Return code</dt>
<dd><%= h(result.package_status) %></dd>
<dt>Duration</dt>
<dd><%= h(result.package_duration.to_i.duration) %></dd>
<% unless result.package_output.empty? %>
<dt>Output</dt>
<dd><pre><%= h(result.package_output) %></pre></dd>
<% end %>
</dl>
<h2>Installation size</h2>
<% if result.install_sizes then %>
<% if result.install_sizes == [] then %>
<p>No files were installed.</p>
<% else %>
<p>Total: <%= result.install_sizes.map {|x| x[1].to_i}.inject(:+).file_size %></p>
<ul>
<% for file_name_size in result.install_sizes.sort_by {|x| x[1].to_i}.reverse %>
<li><%= h(file_name_size[1].to_i.file_size) %> <code><%= h(file_name_size[0]) %></code></li>
<% end %>
</ul>
<% end %>
<% else %>
<p>Data not available in this bench.</p>
<% end %>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code><%= h(result.uninstall_command) %></code></dd>
<dt>Return code</dt>
<dd><%= h(result.uninstall_status) %></dd>
<% unless result.uninstall_output.empty? %>
<dt>Output</dt>
<dd><pre><%= h(result.uninstall_output) %></pre></dd>
<% end %>
<dt>Missing removes</dt>
<dd>
<% if result.missing_removes == [] then %>
none
<% else %>
<ul>
<% for file in result.missing_removes %>
<li><code><%= h(file) %></code></li>
<% end %>
</ul>
<% end %>
</dd>
<dt>Wrong removes</dt>
<dd>
<% if result.mistake_removes == [] then %>
none
<% else %>
<ul>
<% for file in result.mistake_removes %>
<li><code><%= h(file) %></code></li>
<% end %>
</ul>
<% end %>
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>