blob: 12ff2736250e7d382f03ce69e611edcf54449463 (
plain)
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
|
{% extends "base.html" %}
{% block heading %}
Inocations {{invocation | e}}
{% endblock %}
{% macro show_action(action, first = false) %}
<li>
{% if first %}
<details open>
{% else %}
<details>
{% endif %}
<summary>
{{ action["name_prefix"] | e }} <tt>{{ action["name"] | e}}</tt>
{% if action["may_fail"] %}
{% if action["exit_code"] != 0 %}
failure: <b>{{ action["may_fail"] }}</b>
{% else %}
tainted (<tt>{{ action["may_fail"] }}</tt>)
{% endif %}
{% elif action["primary_output"] %}
{% if action["exit_code"] != 0 %}
failed to build: <b>{{ action["primary_output"] | e }}</b>
{% else %}
build: <tt>{{ action["primary_output"] | e }}</tt>
{% endif %}
{% endif %}
</summary>
<ul>
{% if action["stdout"] %}
<li> stdout: <a href="/blob/{{ action["stdout"] | e }}">{{action["stdout"] | e }}</a></li>
{% endif %}
{% if action["stderr"] %}
<li> stderr: <a href="/blob/{{ action["stderr"] | e }}">{{action["stderr"] | e }}</a></li>
{% endif %}
{% if action["cmd"] %}
<li>
<details>
<summary>command</summary>
<tt>{{ action["cmd"] | e }}</tt>
</details>
</li>
{% endif %}
{% if action["origins"] %}
<li> origins
<ul>
{% for origin in action["origins"] %}
<li> <tt>{{ origin | e }}</tt></li>
{% endfor %}
</ul>
</li>
{% endif %}
{% if action["duration"] %}
<li> duration: {{ action["duration"] | e }}</li>
{% endif %}
{% if action["cached"] %}
<li> cached: {{ action["cached"] | e }}</li>
{% endif %}
{% if action["exit_code"] != 0 %}
<li> exit code: {{ action["exit_code"] }}</li>
{% endif %}
{% if action["output"] %}
<li> output
<ul>
{% for out in action["output"] %}
{% if action["artifacts"].get(out) %}
<li>
<a href="/blob/{{ action["artifacts"].get(out) | e}}"><tt>{{ out | e }}</tt></a>
<a href="/blob/{{ action["artifacts"].get(out) | e}}/{{ out | e}}"><tt>[↓]</tt></a>
</li>
{% else %}
<li> <tt>{{ out | e }}</tt></li>
{% endif %}
{% endfor %}
</ul>
</li>
{% endif %}
{% if action["output_dirs"] %}
<li> output directories
<ul>
{% for out in action["output_dirs"] %}
{% if action["artifacts"].get(out) %}
<li> <a href="/tree/{{ action["artifacts"].get(out) | e}}"><tt>{{ out | e }}</tt></a></li>
{% else %}
<li> <tt>{{ out | e }}</tt></li>
{% endif %}
{% endfor %}
</ul>
</li>
{% endif %}
</ul>
</details>
</li>
{% endmacro %}
{% block content %}
<h1>Invocation {{invocation | e}}</h1>
<h2>Overview</h2>
<ul>
{% if cmd %}
<li> Subcommand and positional arguments: <span id="invocation-target"><tt>{{ cmd | e }}</tt></span></li>
{% endif %}
{% if cmdline %}
<li>
<details>
<summary>Full command line</summary>
<tt>{{ cmdline | e }}</tt>
</details>
</li>
{% endif %}
{% if repo_config %}
<li> Repository configuration:
<a href="/blob/{{ repo_config | e }}"><tt>{{ repo_config | e}}</tt></a>
</li>
{% endif %}
{% if target %}
<li> Target: <tt>{{ target | e }}</tt></li>
{% endif %}
{% if config %}
<li> Target configuration: <tt>{{ config | e }}</tt></li>
{% endif %}
{% if remote_address %}
<li> Remote:
<ul>
<li> Address: <tt>{{ remote_address | e }}</tt></li>
{% if remote_props %}
<li> Properties:
<ul>
{% for prop in remote_props %}
<li> <tt>{{ prop["key"] | e }}</tt> :
<a href="/filterinvocations/remote/prop/{{ prop["key_hex"] | e }}/{{ prop["value_hex"] }}"><tt>{{ prop["value"] | e }}</tt></a>
</li>
{% endfor %}
</ul>
</li>
{% else %}
<li> Properties: <i>(none)</i></li>
{% endif %}
<li> Dispatch: <tt>{{ remote_dispatch | e }}</tt></li>
</ul>
</li>
{% endif %}
{% if context %}
<li> Context:
<ul>
{% for entry in context %}
<li> <tt>{{ entry["key"] | e }}</tt> :
<a href="/filterinvocations/context/{{ entry["key_hex"] | e }}/{{ entry["value_hex"] }}"><tt>{{ entry["value"] | e }}</tt></a>
</li>
{% endfor %}
</ul>
</li>
{% else %}
<li> Context: <i>(none)</i></li>
{% endif %}
{% if exit_code != None %}
<li> Exit code: <tt>{{ exit_code | e }}</tt></li>
{% endif %}
{% if artifacts %}
<li>
<details>
<summary>{{ artifacts_count | e }} artifacts</summary>
<ul>
{% for entry in artifacts %}
<li>
<a href="/{{ entry["type"] | e}}/{{ entry["hash"] | e}}">{{ entry["path"] | e}}</a>
{% if entry["type"] == "blob" %}
<a href="/blob/{{ entry["hash"] | e}}/{{ entry["basename"] | e}}">[↓]</a>
{% endif %}
</li>
{% endfor %}
</ul>
</details>
</li>
{% endif %}
</ul>
{% if have_profile %}
{% if analysis_errors %}
<h2>Analysis errors</h2>
<ul>
{% for error in analysis_errors %}
<li> <pre>{{ error["msg"] | e}}</pre>
{% if error["blobs"] %}
Blobs:
{% for blob in error["blobs"] %}
<a href="/blob/{{ blob | e }}"><tt>{{ blob | e }}</tt></a>
{% endfor %}
{% endif %}
</li>
{% endfor %}
</ul>
{% else %}
{% if exit_code == 0 or exit_code == 1 or exit_code == 2 %}
<h2>Actions</h2>
<ul>
<li> Processed: <tt>{{ action_count | e }}</tt></li>
<li> Cached: <tt>{{ action_count_cached | e }}</tt></li>
</ul>
<h3>Failed actions</h3>
{% if failed_actions %}
<ul>
{% for action in failed_actions %}
{{ show_action(action, loop.index == 1) }}
{% endfor %}
</ul>
{% else %}
<i>(none)</i>
{% endif %}
<h3>Other actions with console output</h3>
{% if output_actions %}
<ul>
{% for action in output_actions %}
{{ show_action(action) }}
{% endfor %}
</ul>
{% else %}
<i>(none)</i>
{% endif %}
<h3>Remaining non-cached actions</h3>
{% if non_cached %}
In order of decreasing run time.
<ul>
{% for action in non_cached %}
{{ show_action(action) }}
{% endfor %}
{% if more_non_cached %}
<li> … and {{ more_non_cached | e }} actions</li>
{% endif %}
</ul>
{% else %}
<i>(none)</i>
{% endif %}
{% endif %}
{% endif %}
{% else %}
<b>No profiling data available; invocation data is not (yet) complete.</b>
{% endif %}
{% endblock %}
|