{# Partial: CI failure catalog table body, swapped via HTMX #}

Showing {{ rows|length }} of {{ total_count }} signature{{ "s" if total_count != 1 else "" }}

{% if not filter_project %}{% endif %} {% macro sort_header(label, field, tooltip="") %} {% set default_desc = field in ["fail_rate", "occurrence_count", "last_seen_at"] %} {% set is_active = (sort_by == field) or (sort_by == ("-" ~ field)) %} {% set is_asc = (sort_by == ("-" ~ field)) if default_desc else (sort_by == field) %} {% set is_desc = (sort_by == field) if default_desc else (sort_by == ("-" ~ field)) %} {% set next_sort = ("-" ~ field) if sort_by == field else field %} {% endmacro %} {{ sort_header("Signature", "signature") }} {% if not filter_project %}{% endif %} {{ sort_header("Occurrences", "occurrence_count", "Failures observed in the last 60 days") }} {{ sort_header("Fail rate", "fail_rate", "Occurrences / total runs of this job, over the last 60 days") }} {{ sort_header("Last seen", "last_seen_at") }} {% macro ci_row(row) %} {% if not filter_project %}{% endif %} {% endmacro %} {% for row in rows %} {{ ci_row(row) }} {% else %} {% endfor %}
{{ label }} {% if is_asc %} ↑{% elif is_desc %} ↓{% endif %} ProjectWorkflow / Job Branch
{{ row.signature|truncate(100) }} {% if row.is_environmental %} environmental {% endif %} {{ row.project_name }} {{ row.workflow_name }}
{{ row.job_name }}{% if row.job_variant %} ({{ row.job_variant }}){% endif %}
{{ row.branch_class }} {{ row.occurrence_count }} / {{ row.total_count }} {% if row.fail_rate is not none %} {{ (row.fail_rate * 100)|round(0, "floor")|int }}% {% else %} insufficient data {% endif %} {{ row.last_seen_at | local_datetime("-") }}
No recurring CI failures found matching the current filters. Clear all filters to see all signatures.
{% set base_url = "/stats/ci/table?project=" ~ (filter_project or "") ~ "&workflow=" ~ (filter_workflow or "") ~ "&branch=" ~ (filter_branch or "") ~ "&type=" ~ (filter_type or "") ~ "&search=" ~ (filter_search or "") ~ "&sort=" ~ (sort_by or "fail_rate") %} {% if total_pages > 1 %} {% endif %}