summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/bldviewer/templates/task.html
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2013-10-11 13:46:23 +0100
committerAlexandru DAMIAN <alexandru.damian@intel.com>2013-10-16 15:26:37 +0100
commitcb1338dedc3873ac81488df9dd3aa6f048e6b02f (patch)
treec94cfe05a88b87bcd8cda1ae5b825ac475601b80 /bitbake/lib/toaster/bldviewer/templates/task.html
parentfaf8f8660fae26a14578738b642fdeb08bcb9d54 (diff)
downloadpoky-cb1338dedc3873ac81488df9dd3aa6f048e6b02f.tar.gz
bitbake: add toaster code to bitbake
This patch adds the Toaster component to Bitbake. Toaster is a module designed to record the progress of a Bitbake build, and data about the resultant artifacts. It contains a web-based interface and a REST API allowing post-facto inspection of the build process and artifacts. Features present in this build: * toaster start script * relational data model * Django boilerplate code * the REST API * the Simple UI web interface This patch has all the development history squashed together. Code portions contributed by Calin Dragomir <calindragomir@gmail.com>. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Diffstat (limited to 'bitbake/lib/toaster/bldviewer/templates/task.html')
-rw-r--r--bitbake/lib/toaster/bldviewer/templates/task.html63
1 files changed, 63 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/bldviewer/templates/task.html b/bitbake/lib/toaster/bldviewer/templates/task.html
new file mode 100644
index 0000000000..e7253698cd
--- /dev/null
+++ b/bitbake/lib/toaster/bldviewer/templates/task.html
@@ -0,0 +1,63 @@
1{% extends "basebuildpage.html" %}
2
3{% block pagetitle %}Tasks{% endblock %}
4{% block pagetable %}
5 {% if not tasks %}
6 <p>No tasks were executed in this build!</p>
7 {% else %}
8
9 <tr>
10 <th>Order</th>
11 <th>Task</th>
12 <th>Recipe Version</th>
13 <th>Task Type</th>
14 <th>Checksum</th>
15 <th>Outcome</th>
16 <th>Message</th>
17 <th>Logfile</th>
18 <th>Time</th>
19 <th>CPU usage</th>
20 <th>Disk I/O</th>
21 <th>Script type</th>
22 <th>File path</th>
23 <th>Depends</th>
24 </tr>
25
26 {% for task in tasks %}
27
28 <tr class="data">
29 <td>{{task.order}}</td>
30 <td><a name="{{task.recipe.name}}.{{task.task_name}}">
31 <a href="{% url layer_versions_recipes task.recipe.layer_version_id %}#{{task.recipe.name}}">{{task.recipe.name}}</a>.{{task.task_name}}</a></td>
32 <td>{{task.recipe.version}}</td>
33
34 {% if task.task_executed %}
35 <td>Executed</td>
36 {% else %}
37 <td>Prebuilt</td>
38 {% endif %}
39
40 <td>{{task.sstate_checksum}}</td>
41 <td>{{task.get_outcome_display}}{% if task.provider %}</br>(by <a href="#{{task.provider.recipe.name}}.{{task.provider.task_name}}">{{task.provider.recipe.name}}.{{task.provider.task_name}}</a>){% endif %}</td>
42 <td><p>{{task.message}}</td>
43 <td><a target="_fileview" href="file:///{{task.logfile}}">{{task.logfile}}</a></td>
44 <td>{{task.elapsed_time}}</td>
45 <td>{{task.cpu_usage}}</td>
46 <td>{{task.disk_io}}</td>
47 <td>{{task.get_script_type_display}}</td>
48 <td><a target="_fileview" href="file:///{{task.recipe.file_path}}">{{task.recipe.file_path}}</a></td>
49 <td>
50 <div style="height: 3em; overflow:auto">
51 {% for tt in task.task_dependencies_task.all %}
52 <a href="#{{tt.depends_on.recipe.name}}.{{tt.depends_on.task_name}}">
53 {{tt.depends_on.recipe.name}}.{{tt.depends_on.task_name}}</a><br/>
54 {% endfor %}
55 </div>
56 </td>
57 </tr>
58
59 {% endfor %}
60
61 {% endif %}
62
63{% endblock %}