{% extends "base.html" %} {% from "_ui.html" import icon, when, run_status, crumbs %} {% block title %}Update {{ run.id }}{% endblock %} {% block content %} {{ crumbs([('Builds & changes', '/builds'), ('Update runs', '/builds#runs'), ('#' ~ run.id, none)]) }}

Update #{{ run.id }} {{ run_status(run) }}

{{ run.started_at.strftime('%Y-%m-%d %H:%M:%S') }} UTC ({{ when(run.started_at) }}){% if run.report_path %} · report {{ run.report_path.split('/')[-1] }}{% endif %}

{% if run.status != 'passed' and not run.accepted %}
suriharvest runs accept {{ run.id }}
{% endif %}
{% if run.error %}
{{ icon('alert') }}

{{ run.error }}

{% endif %}

Gates

checks that stop a bad update from becoming the baseline
{% for gt in run.gates %}{% else %}{% endfor %}
{{ gt.status }}{{ gt.name }}{{ gt.detail }}
No gates ran.
{% if run.changes %}

What changed

{{ run.changes.new_logic|num }} new · {{ run.changes.gone_logic|num }} gone
{% if run.changes.per_source %}
{% for src, d in run.changes.per_source.items() %}{% endfor %}
SourceAddedRemoved
{{ src }}+{{ d.added|num }}−{{ d.removed|num }}
{% endif %}
{% for title, key, kind in [('New rules (sample)', 'new_sample', 'new'), ('Gone (sample)', 'gone_sample', 'removed')] %}{% if run.changes[key] %}

{{ title }}

    {% for r in run.changes[key][:25] %}
  • {{ kind }}{% if kind == 'new' %}{{ r.msg }}{% else %}{{ r.msg }}{% endif %}sid {{ r.sid }} rev {{ r.rev }}
  • {% endfor %}
{% endif %}{% endfor %}
{% endif %}

Steps

{% for k, v in run.steps.items() %}
{{ k }}
{{ v }}
{% endfor %}

Corpus

{% for k, v in run.counts.items() %}
{{ k|replace('_', ' ') }}
{{ v|num if v is number else v }}
{% endfor %}
{% endblock %}