{% import "v4_utils.html" as v4_utils %} {% import "utils.html" as utils %} {% set run = request_info.run %} {% set compare_to = request_info.compare_to %} {% set baseline = request_info.baseline %} {% set ts = request_info.ts %} {% set machine = run.machine %} {% extends "layout.html" %} {% set components = [(ts.name, v4_url_for("v4_overview")), ('machine', v4_url_for("v4_machine", id=machine.id))] %} {% block head %} {% endblock %} {% block title %}Run Results{% endblock %} {% block body %} {% macro get_cell_value(cr) %} {% set test_status = cr.get_test_status() %} {% set value_status = cr.get_value_status() %} {% set run_cell_value = "-" if cr.current is none else "%.4f" % cr.current %} {% if options.show_previous %} {% set prev_cell_value = "-" if cr.previous is none else "%.4f" % cr.previous %} {{prev_cell_value}} {% endif %} {% set cell_color = none %} {% if test_status == runinfo.REGRESSED %} {% set cell_color = (233,128,128) %} {% elif test_status == runinfo.IMPROVED %} {% set cell_color = (143,223,95) %} {% elif test_status == runinfo.UNCHANGED_FAIL %} {% set cell_color = (255,195,67) %} {% endif %} {% if cell_color %} {{ run_cell_value}} {% else %} {{run_cell_value}} {% endif %} {% if (options.show_all or value_status == runinfo.REGRESSED or value_status == runinfo.IMPROVED) %} {{ cr.pct_delta|aspctcell|safe }} {% else %} - {% endif %} {% if options.show_delta %} {{ "-" if cr.delta is none else "%.4f" % cr.delta }} {% endif %} {% if options.show_stddev %} {{ "-" if cr.stddev is none else "%.4f" % cr.stddev }} {% endif %} {% if options.show_mad %} {{ "-" if cr.MAD is none else "%.4f" % cr.MAD }} {% endif %} {% if options.show_all_samples %} [ {%- for v in cr.get_samples() -%} {{ ", " if not loop.first else "" }} {{ "%.4f" % v }} {%- endfor -%}] {% endif %} {% if options.show_sample_counts %} {{cr.get_samples()|length}} {% endif %} {% endmacro %} {% call v4_utils.v4_run_page(ts, machine, run, compare_to, request_info.neighboring_runs, request_info.comparison_neighboring_runs) %} {{ utils.render_popup_begin('view_options', 'View Options', true) }}
Show Delta:
Show Previous Value:
Show Standard Deviation:
Show Median Absolute Deviation:
Show All Values:
Show All Samples:
Show Sample Counts:
Number of Comparison Runs:
Show Report Graphs:
Show Data Table:
Hide Report By Default:
Test Filter (regexp):
Test Min. Value Filter:
{% if compare_to %} {% endif %} {% if baseline %} {% endif %}
{{ utils.render_popup_end() }} {{ utils.render_popup_begin('html_report', 'Report', options.hide_report_by_default) }} {{request_info.html_report|safe}} {{ utils.render_popup_end() }}

Tests

{% set graph_base=v4_url_for('v4_graph', id=run.id) %}
{# Report one table for each primary field. #} {% for field in primary_fields %} {{ utils.render_popup_begin('test_data.' + field.name, field.name, false) }}

{{field.name}}

{% if options.show_previous %} {% endif %} {% if options.show_delta %} {% endif %} {% if options.show_stddev %} {% endif %} {% if options.show_mad %} {% endif %} {% if options.show_all_samples %} {% endif %} {% if options.show_sample_counts %} {% endif %} {% for test_name,test_id in test_info %} {% set cr = request_info.sri.get_run_comparison_result( run, compare_to, test_id, field, request_info.comparison_window) %} {% if cr.previous is not none or cr.current is not none %} {% if cr.current is none or cr.current >= test_min_value_filter %} {{ get_cell_value(cr) }} {% endif %} {% endif %} {% endfor %}
NamePrevCurrent %ΔσMADSamplesN
{{ test_name}}
{{ utils.render_popup_end() }} {% endfor %}

{% if options.show_data_table %}

Test Data

Name{% for field in primary_fields
%}	{{field.name}}	{%
 endfor %}
-{% for field in primary_fields
%}	Prev	Value	%{% endfor %}
{% for test_name,test_id in test_info
%}{{
test_name
}}{%
  for field in primary_fields
%}{%
  set cr = request_info.sri.get_run_comparison_result(
            run, compare_to, test_id, field, request_info.comparison_window)
%}	{{cr.previous}}	{{cr.current}}	{{cr.pct_delta}}{%
   endfor %}
{%
endfor %}
{% endif %} {% endcall %} {% endblock %}