Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: appengine/swarming/templates/user_task.html

Issue 2267363004: Add CIPD pin reporting to swarming. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@master
Patch Set: Fix bottest Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « appengine/swarming/swarming_rpcs.py ('k') | client/cipd.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 {% extends "swarming/base.html" %} 1 {% extends "swarming/base.html" %}
2 2
3 3
4 {% block headers %} 4 {% block headers %}
5 <style> 5 <style>
6 h1 { 6 h1 {
7 margin-top: 10px; 7 margin-top: 10px;
8 margin-bottom: 10px; 8 margin-bottom: 10px;
9 } 9 }
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 } 66 }
67 67
68 .spaced { 68 .spaced {
69 margin-top: 10px; 69 margin-top: 10px;
70 margin-bottom: 5px; 70 margin-bottom: 5px;
71 } 71 }
72 72
73 .package-list { 73 .package-list {
74 margin-left: 1em; 74 margin-left: 1em;
75 } 75 }
76
77 .package-pin-name {
78 font-weight: bold;
79 }
80
81 .package-pin-version {
82 color: blue;
83 }
76 </style> 84 </style>
77 {% endblock %} 85 {% endblock %}
78 86
79 87
80 {% block body %} 88 {% block body %}
81 {% import 'swarming/bot_view.html' as bot_view %} 89 {% import 'swarming/bot_view.html' as bot_view %}
82 90
83 91
84 {% macro summarize_array(values) %} 92 {% macro summarize_array(values) %}
85 {% if not values %} 93 {% if not values %}
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 <td>{{request.properties.io_timeout_secs}}</td> 224 <td>{{request.properties.io_timeout_secs}}</td>
217 </tr> 225 </tr>
218 <tr title="Additional environment variables to the one provided by the b ot."> 226 <tr title="Additional environment variables to the one provided by the b ot.">
219 <td>Env vars</td> 227 <td>Env vars</td>
220 <td>{{bot_view.render_dict(request.properties.env)}}</td> 228 <td>{{bot_view.render_dict(request.properties.env)}}</td>
221 </tr> 229 </tr>
222 <tr title="If True, successful task results may be reused for subsequent requests, so the task can be deduped."> 230 <tr title="If True, successful task results may be reused for subsequent requests, so the task can be deduped.">
223 <td>Idempotent</td> 231 <td>Idempotent</td>
224 <td>{{request.properties.idempotent}}</td> 232 <td>{{request.properties.idempotent}}</td>
225 </tr> 233 </tr>
226 {% if request.properties.cipd_input %} 234 {% if cipd %}
227 <tr title="CIPD server"> 235 <tr title="CIPD server">
228 <td>CIPD server</td> 236 <td>CIPD server</td>
229 <td>{{request.properties.cipd_input.server}}</td> 237 <td>{{cipd.server}}</td>
230 </tr> 238 </tr>
231 <tr title="CIPD client"> 239 <tr title="CIPD client">
232 <td>CIPD client</td> 240 <td>CIPD client</td>
233 <td>{{request.properties.cipd_input.client_package}}</td> 241 <td>{{cipd.client_package}}</td>
234 </tr> 242 </tr>
235 <tr title="CIPD pacakges"> 243 {% if cipd.packages %}
236 <td>CIPD packages</td> 244 <tr title="CIPD pacakges">
237 <td> 245 <td>CIPD packages</td>
238 {% for path, packages in request.properties.cipd_input.packages_gr ouped_by_path() %} 246 <td>
239 <div>{{ path or '.'}}/</div> 247 {% for path, packages in cipd.packages %}
240 <div class="package-list"> 248 <div>{{path or '.'}}/</div>
241 {{packages|join('<br>'|safe)}} 249 <div class="package-list">
242 </div> 250 {{packages|join('<br>'|safe)}}
243 {% endfor %} 251 </div>
244 </td> 252 {% endfor %}
245 </tr> 253 </td>
254 </tr>
255 {% endif %}
246 {% endif %} 256 {% endif %}
247 {% if request.properties.inputs_ref and request.properties.inputs_ref.is olated %} 257 {% if request.properties.inputs_ref and request.properties.inputs_ref.is olated %}
248 <tr title="Inputs files"> 258 <tr title="Inputs files">
249 <td>Isolated inputs</td> 259 <td>Isolated inputs</td>
250 <td> 260 <td>
251 <a 261 <a
252 href="{{request.properties.inputs_ref.isolatedserver}}/browse?na mespace={{request.properties.inputs_ref.namespace}}&hash={{request.properties.in puts_ref.isolated}}"> 262 href="{{request.properties.inputs_ref.isolatedserver}}/browse?na mespace={{request.properties.inputs_ref.namespace}}&hash={{request.properties.in puts_ref.isolated}}">
253 {{request.properties.inputs_ref.isolated}} 263 {{request.properties.inputs_ref.isolated}}
254 </a> 264 </a>
255 </td> 265 </td>
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 <tr title="Current bot dimensions."> 421 <tr title="Current bot dimensions.">
412 <td>Bot dimensions</td> 422 <td>Bot dimensions</td>
413 <td> 423 <td>
414 {% if task.bot_dimensions %} 424 {% if task.bot_dimensions %}
415 {{bot_view.render_dict(task.bot_dimensions)}} 425 {{bot_view.render_dict(task.bot_dimensions)}}
416 {% else %} 426 {% else %}
417 {{bot_view.bot_dimensions(bot)}} 427 {{bot_view.bot_dimensions(bot)}}
418 {% endif %} 428 {% endif %}
419 </td> 429 </td>
420 </tr> 430 </tr>
431 {% if cipd_pins %}
432 <tr title="CIPD client">
433 <td>CIPD client</td>
434 <td>{{cipd_pins.client_package}}</td>
435 </tr>
436 {% if cipd_pins.packages %}
437 <tr title="CIPD pacakges">
438 <td>CIPD packages</td>
439 <td>
440 {% for path, packages in cipd_pins.packages %}
441 <div>{{path or '.'}}/</div>
442 <div class="package-list">
443 {{packages|join('<br>'|safe)}}
444 </div>
445 {% endfor %}
446 </td>
447 </tr>
448 {% endif %}
449 {% endif %}
421 <tr title="Current bot version. TODO(maruel): List bot version at time of task reaping."> 450 <tr title="Current bot version. TODO(maruel): List bot version at time of task reaping.">
422 <td>Bot version</td> 451 <td>Bot version</td>
423 <td>{{task.bot_version}}</td> 452 <td>{{task.bot_version}}</td>
424 </tr> 453 </tr>
425 <tr title="List of server versions that touched this task."> 454 <tr title="List of server versions that touched this task.">
426 <td>Server version</td> 455 <td>Server version</td>
427 <td> 456 <td>
428 {% for v in task.server_versions %} 457 {% for v in task.server_versions %}
429 {% if is_gae_admin %} 458 {% if is_gae_admin %}
430 <a href="https://appengine.google.com/logs?&app_id={{full_appid}}& version_id={{v}}"> 459 <a href="https://appengine.google.com/logs?&app_id={{full_appid}}& version_id={{v}}">
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 568
540 {% set output = task.get_output() %} 569 {% set output = task.get_output() %}
541 {% if output is not none %} 570 {% if output is not none %}
542 <h3>Output:</h3> 571 <h3>Output:</h3>
543 <pre> 572 <pre>
544 {{task.get_output().decode('utf-8', 'replace')}}{% if is_running %}<p class="con sole"><span class="blink">|</span>{% endif %} 573 {{task.get_output().decode('utf-8', 'replace')}}{% if is_running %}<p class="con sole"><span class="blink">|</span>{% endif %}
545 </pre> 574 </pre>
546 {% endif %} 575 {% endif %}
547 576
548 {% endblock %} 577 {% endblock %}
OLDNEW
« no previous file with comments | « appengine/swarming/swarming_rpcs.py ('k') | client/cipd.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698