From 31d4bf8484ee42690386c6b7a6bd6c7a2be54464 Mon Sep 17 00:00:00 2001 From: Ravi Chintakunta Date: Mon, 17 Feb 2014 23:30:41 -0500 Subject: bitbake: toaster: View detailed information about a task Information about a task is displayed depending on it's execution status and outcome status. Edited to iterate through all possible entries for related setscene tasks. [YOCTO #4282] (Bitbake rev: 62f502b1237d4060df6be1ee4f4865db5fa39a6a) Signed-off-by: Ravi Chintakunta Signed-off-by: Paul Eggleton Signed-off-by: Alexandru DAMIAN Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/templates/task.html | 263 +++++++++++++++++++++ 1 file changed, 263 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..c5d6176b62 --- /dev/null +++ b/bitbake/lib/toaster/toastergui/templates/task.html @@ -0,0 +1,263 @@ +{% 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 #} +
    +
    + Log file +
    +
    + {{task.logfile}} +
    + {# 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 not data. +

    + {% endif %} + {% elif task.outcome == task.OUTCOME_COVERED %} +
    +
    + Task covered by +
    +
    +
      +
    • TODO:Covering tasks will be displayed here

    • +
    +
    +
    + {%elif task.outcome == task.OUTCOME_CACHED%} +
    +
    + Log file +
    +
    + {% for t in task.get_related_setscene %} {{t.logfile}}
    {% endfor %} +
    +
    +
    + {% 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 +
    +
    {{task.work_directory}}
    +
    + {% 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 %} + +
    + + Task depends on +
    +
    + +
    +
    + + Task reverse dependencies +
    +
    + +
    + +{# Performance section - shown only for executed tasks #} +{%if task.task_executed %} +

    Performance

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