{% import "utils.html" as utils %} {% import "reportutils.html" as reportutils %} {% if not only_html_body %} Daily Report: {{ '%04d-%02d-%02d' % (report.year, report.month, report.day) }} {% endif %}

{# #}(prev){# #} {# #}Daily Report {{ '%04d-%02d-%02d' % ( report.prior_days[0].year, report.prior_days[0].month, report.prior_days[0].day) }} {# #}(next){# #}

(day start is considered to be at UTC+{{ "%02d:%02d" % ( report.day_start_offset.seconds // 3600, (report.day_start_offset.seconds // 60) % 60,)}})

{% if report.error is not none %}

An error was encountered while producing the daily report: {{ report.error }}.

{% else %} {# Generate the table showing which run orders we are reporting on, for each machine. #}

Reported Machine Order

{{ utils.regex_filter_box(input_id='filter', selector='.searchable', placeholder="Machine name regex...", selector_part_to_search=".machine-name") }} {%- for i in range(report.num_prior_days_to_include)|reverse %} {%- endfor %} {%- for machine in report.reporting_machines %} {%- for i in range(report.num_prior_days_to_include)|reverse %} {%- set key_run = report.get_key_run(machine, i) -%} {%- if key_run -%} {# FIXME: Don't hard code field name. #} {%- else -%} {%- endif -%} {%- endfor %} {% endfor %}
Machine NameDay - {{i}}
{{machine.name}} {{ key_run.order.llvm_project_revision}}N/A

Number of Tests Seen

{% for i in range(report.num_prior_days_to_include)|reverse %} {% endfor %} {% for machine, nr_tests_for_machine in report.nr_tests_table %} {% set nr_tests_prev = None %} {% for nr_tests in nr_tests_for_machine|reverse %} {% set nr_tests_prev = nr_tests %} {% endfor %} {% endfor %}
Machine NameDay - {{i}}
{{machine.name}}{{nr_tests}}
{# Generate the table showing the raw sample data. #} {# If the report is for mail, we put the table header on each test. This is ugly, however it makes it much easier to inline comments in replies to the email. Given that is the primary purpose of the email, we trade off wasted space for convenience. #} {% macro result_header() %} {%- for i in range(report.num_prior_days_to_include)|reverse %} {%- endfor %} {% endmacro %} {% for field,field_results in report.result_table|reverse %} {%- if field_results -%}

Result Table ({{ field.display_name }})

{{ result_header()+"\n " if not report.for_mail }} {%- for test,visible_results in field_results -%} {{ result_header()+"\n " if report.for_mail }} {%- for machine,day_results in visible_results -%} {%- set key_run = report.get_key_run(machine, 0) %} {%- set first_result_shown = false -%} {%- for day_result in day_results|reverse -%} {%- if day_result is none %} {%- else -%} {%- if first_result_shown -%} {{ reportutils.get_cell_value(day_result, analysis, styles) }} {%- else -%} {%- set first_result_shown = true -%} {{ reportutils.get_initial_cell_value(day_result, field, analysis, styles) }} {%- endif -%} {%- endif -%} {%- endfor %} {%- endfor %} {{ "
Test Name Machine NameDay - {{i}}Sparkline
{{test.name}}  
  {{ machine.name}}-{{ reportutils.spark_plot(day_results) }}

" if report.for_mail }} {%- endfor %} {{ "" if not report.for_mail }} {%- else -%}

No significant {{ field.display_name }} changes found.

{%- endif -%} {%- endfor -%} {% endif %} {% if not only_html_body %} {% endif %}