{% extends "base.html" %} {% from "_macros.html" import pass_rate_badge, submission_badge, submission_badge_dual, score_view_toggle, status_badge, download_icon %} {% block title %}{{ sub.round_label }} · {{ run.run_id }} · SForge{% endblock %} {% block content %}
← runs / {{ run.run_id }} / {{ sub.round_label }}

{{ sub.round_label }}

{{ sub.kind }} {{ submission_badge_dual(sub, run) }} {% if sub.round_label == run.best_round %}best{% endif %} {% if sub.timed_out %}timed-out{% endif %} {% if run.has_rescaled %}{{ score_view_toggle() }}{% endif %} {{ download_icon("/run/" ~ run.run_id ~ "/" ~ run.task ~ "/submission/" ~ sub.round_label ~ "/archive", "code .tar.gz", "Download this submission's code patch (submission.tar.gz, the archive sent to the judge)") }} {{ download_icon("/run/" ~ run.run_id ~ "/" ~ run.task ~ "/submission/" ~ sub.round_label ~ "/raw", "test output", "Download the raw test_output.txt produced by running this submission") }}
{% if sub.kind == "game" %}
Score
{{ "%.4g"|format(sub.score or 0) }}
Max
{{ "%.4g"|format(sub.max_score or 0) }}
Peak
{{ "%.4g"|format(sub.peak_score or sub.score or 0) }}
% of max
{{ "%.1f"|format(sub.pass_rate * 100) }}%
Moves
{{ sub.runtime_seconds|int }}
{% else %}
Total
{{ sub.total_tests }}
Passed
{{ sub.passed }}
Failed
{{ sub.failed }}
Errors
{{ sub.errors }}
{% if sub.score is not none %}
Score
{%- if run.has_rescaled and sub.score_0_100 is not none -%} {{ "%.1f"|format(sub.score_0_100) }} {%- else -%}{{ "%.4g"|format(sub.score) }}{%- endif -%}
{% endif %}
Runtime
{{ format_duration(sub.runtime_seconds) }}
{% endif %}
{# Code diff #}
Code diff vs previous submission
Loading diff...
{# Tests #}

{% if sub.kind == "game" %}Session{% else %}Tests{% endif %}

{% set base = "/run/" ~ run.run_id ~ "/" ~ run.task ~ "/submission/" ~ sub.round_label %} all {% for key, count in status_counts.items()|sort %} {{ key }} ({{ count }}) {% endfor %} raw log ↗
{% if sub.kind == "game" %}
Game session details are in the raw log.
{% elif tests %} {% for t in tests %} {% set slug = loop.index %} {% if t.status in ("FAILED", "ERROR") %} {% endif %} {% endfor %}
Status Test Detail
{{ status_badge(t.status) }} {{ t.name }} {% if t.status in ("FAILED", "ERROR") %} {% endif %}
{% else %}
No tests to show{% if active_status %} for {{ active_status }}{% endif %}.
{% endif %}
{% endblock %}