From c527fd1f14c27855a37f2e8ac5346ce8d940ced2 Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Thu, 16 Oct 2014 03:05:19 +0200 Subject: initial commit for Enea Linux 4.0-140929 Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea --- bitbake/lib/toaster/toastergui/templates/task.html | 283 +++++++++++++++++++++ 1 file changed, 283 insertions(+) create mode 100644 bitbake/lib/toaster/toastergui/templates/task.html (limited to 'bitbake/lib/toaster/toastergui/templates/task.html') diff --git a/bitbake/lib/toaster/toastergui/templates/task.html b/bitbake/lib/toaster/toastergui/templates/task.html new file mode 100644 index 0000000000..455599932c --- /dev/null +++ b/bitbake/lib/toaster/toastergui/templates/task.html @@ -0,0 +1,283 @@ +{% extends "basebuilddetailpage.html" %} + +{% load projecttags %} +{% load humanize %} + +{% block localbreadcrumb %} +
  • Tasks
  • +
  • {{task.recipe.name}}_{{task.recipe.version}} {{task.task_name}}
  • +{% endblock %} + +{% block pagedetailinfomain %} + +
    + + +{# Outcome section #} +

    + {{task.get_outcome_display}} + +

    +{%if task.task_executed %} + {# executed tasks outcome #} +
    + {% if task.logfile %} +
    + Log file +
    +
    + {{task.logfile}} +
    + {% endif %} + {# show stack trace for failed task #} + {% if task.outcome == task.OUTCOME_FAILED and log_head %} +

    Python stack trace

    +
    +
    +                    {{log_head}}...
    +                    
    + {{log_body}}
    +
    + {% endif %} +
    +{% else %} +{# not executed tasks outcome #} + {% if task.outcome == task.OUTCOME_PREBUILT %} + {% if not showing_matches %} + Match to tasks in previous builds + {% elif matching_tasks %} +

    Prebuilt task could be based on + +

    + + + + + + + + + + {% for match in matching_tasks %} + + + + + + + + {% endfor %} + +
    + + Recipe + + + Task + + + Executed + + + Outcome + + + Build completed on +
    + {{match.recipe.name}} + + {{match.task_name}} + + {{match.get_executed_display}} + + {{match.get_outcome_display}} + + {{match.build.completed_on|date:"d/m/y H:i"}} +
    + {% else %} +

    + We have found no tasks matching this prebuilt task
    + The task you are looking for could belong to a build for which Toaster has no data. +

    + {% endif %} + {% elif task.outcome == task.OUTCOME_COVERED %} +
    +
    + Task covered by +
    +
    + +
    +
    + {%elif task.outcome == task.OUTCOME_CACHED%} +
    +
    + Log file +
    +
    + {% for t in task.get_related_setscene %} {{t.logfile}} {% endfor %} +
    +
    + {%elif task.outcome == task.OUTCOME_EMPTY%} +
    + This task is empty because it has the noexec flag set to 1, or the task function is empty +
    + {% endif %} +{% endif %} + +{# Execution section #} + {% if task.task_executed %} +

    + Executed + + {% else %} +

    + Not Executed + + {% endif %} +

    +
    +
    + + Task inputs signature +
    +
    + {{task.sstate_checksum}} +
    + {% if task.sstate_result != task.SSTATE_NA %} +
    +
    Attempting to restore output from sstate cache + +
    +
    +
    + + File searched for +
    +
    {{task.path_to_sstate_obj}}
    +
    + + URI(s) searched +
    +
      {% for uri in uri_list %}
    • {{uri}}
    • {% endfor %}
    +
    + {% endif %} + {% if task.sstate_result == task.SSTATE_MISS %} +
    + File not in sstate cache. Running the real task instead. +
    + {% elif task.sstate_result == task.SSTATE_FAILED%} +
    + Failed to restore output from sstate cache. The file was found but could not be unpacked. +
    +
    +
    + + Log file +
    +
    {{task.logfile}}
    +
    + + Time (secs) +
    +
    {{task.elapsed_time|format_none_and_zero}}
    +
    +
    + Running the real task instead. +
    + {% elif task.sstate_result == task.SSTATE_RESTORED %} +
    + Output successfully restored from sstate cache. +
    + {% endif %} +
    +
    + + Task order +
    +
    {{task.order}}
    + {% if task.task_executed %} +
    + + Task script type +
    +
    {{task.get_script_type_display}}
    + {% endif %} + +
    + + Dependencies +
    +
    + +
    +
    + + Reverse dependencies +
    +
    + +
    + +{# Performance section - shown only for executed tasks #} +{%if task.elapsed_time or task.cpu_usage or task.disk_io %} +

    Performance

    +{% endif %} +
    + {% if task.elapsed_time %} +
    + + Time (secs) +
    +
    {{task.elapsed_time|format_none_and_zero|floatformat:2}}
    + {% endif %} + {% if task.cpu_usage > 0 %} +
    + + CPU usage +
    +
    {{task.cpu_usage|format_none_and_zero|floatformat:2}}%
    + {% endif %} + {% if task.disk_io > 0 %} +
    + + Disk I/O (ms) +
    +
    {{task.disk_io|format_none_and_zero}}
    + {% endif %} +
    + +
    +{% endblock %} + -- cgit v1.2.3-54-g00ecf