You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by sb...@apache.org on 2026/05/13 18:57:27 UTC

(tooling-trusted-releases) branch sbp updated (6c20bea3 -> 44dc7a22)

This is an automated email from the ASF dual-hosted git repository.

sbp pushed a change to branch sbp
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git


    from 6c20bea3 Reclassify some comparison check results
     add c58bf39f Only allow proceeding to vote from the most recent revision
     add 8ad2cca7 Only automatically resolve successful votes, and include second rounds
     new 44dc7a22 Make compose and vote file tables consistent with one another

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 atr/api/__init__.py                            |   2 +-
 atr/db/interaction.py                          |  12 +-
 atr/docs/input-validation.md                   |   4 +-
 atr/get/checks.py                              | 212 ++++++++++++++++---------
 atr/get/compose.py                             |   7 +
 atr/get/manual.py                              |  20 ++-
 atr/get/resolve.py                             |  42 +++++
 atr/get/vote.py                                |  17 +-
 atr/get/voting.py                              |  15 +-
 atr/models/api.py                              |   2 +-
 atr/models/args.py                             |   2 +-
 atr/post/manual.py                             |  22 ++-
 atr/post/resolve.py                            |  17 ++
 atr/post/voting.py                             |  29 ++--
 atr/render.py                                  |  79 ++++++++-
 atr/shared/manual.py                           |   5 +
 atr/shared/resolve.py                          |  10 ++
 atr/shared/voting.py                           |   2 +
 atr/static/css/atr.css                         |  24 +++
 atr/static/js/src/vote-body-duration.js        |   6 +
 atr/storage/writers/release.py                 |  31 ++--
 atr/storage/writers/vote.py                    |  40 +++--
 atr/tasks/vote.py                              | 146 ++++++++++++++---
 atr/templates/about.html                       |   4 +-
 atr/templates/check-selected-path-table.html   |  68 ++++++--
 atr/templates/check-selected-release-info.html |  18 +--
 tests/e2e/compose/test_get.py                  |  28 ++--
 tests/e2e/voting/conftest.py                   |   2 +-
 tests/unit/test_checks_table.py                |  95 +++++++++++
 tests/unit/test_vote_auto_resolve.py           | 167 +++++++++++++++++++
 tests/unit/test_vote_end_notify.py             |   6 +-
 tests/unit/test_vote_recipients.py             |   5 +-
 tests/unit/test_vote_serials.py                |   3 +-
 33 files changed, 904 insertions(+), 238 deletions(-)
 create mode 100644 tests/unit/test_checks_table.py
 create mode 100644 tests/unit/test_vote_auto_resolve.py


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org


(tooling-trusted-releases) 01/01: Make compose and vote file tables consistent with one another

Posted by sb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

sbp pushed a commit to branch sbp
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git

commit 44dc7a22452986d46143d1338f408096ffd111ff
Author: Sean B. Palmer <se...@miscoranda.com>
AuthorDate: Wed May 13 19:56:59 2026 +0100

    Make compose and vote file tables consistent with one another
---
 atr/get/checks.py                            | 212 +++++++++++++++++----------
 atr/get/compose.py                           |   7 +
 atr/get/vote.py                              |  17 ++-
 atr/render.py                                |  79 +++++++++-
 atr/static/css/atr.css                       |  24 +++
 atr/templates/check-selected-path-table.html |  68 +++++++--
 tests/unit/test_checks_table.py              |  95 ++++++++++++
 7 files changed, 402 insertions(+), 100 deletions(-)

diff --git a/atr/get/checks.py b/atr/get/checks.py
index 55dc09e8..fb5511f9 100644
--- a/atr/get/checks.py
+++ b/atr/get/checks.py
@@ -24,6 +24,7 @@ import htpy
 import quart
 
 import atr.blueprints.get as get
+import atr.classify as classify
 import atr.db as db
 import atr.db.interaction as interaction
 import atr.form as form
@@ -41,6 +42,7 @@ import atr.render as render
 import atr.shared as shared
 import atr.shared.draft as draft
 import atr.storage as storage
+import atr.storage.types as types
 import atr.template as template
 import atr.util as util
 import atr.web as web
@@ -86,6 +88,7 @@ async def selected(
             version=str(version_key),
             phase=sql.ReleasePhase.RELEASE_CANDIDATE,
             _committee=True,
+            _project_release_policy=True,
         ).demand(base.ASFQuartException("Release does not exist", errorcode=404))
 
     if release.committee is None:
@@ -98,13 +101,17 @@ async def selected(
     async with storage.read(session) as read:
         ragp = read.as_general_public()
         match_ignore = await ragp.checks.ignores_matcher(release.safe_project_key)
+        info = await ragp.releases.path_info(release, all_paths)
 
     per_file_stats, totals = await _compute_stats(release, all_paths, match_ignore)
 
     page = htm.Block()
     _render_header(page, release)
     _render_summary(page, totals, all_paths, per_file_stats)
-    _render_checks_table(page, release, all_paths, per_file_stats)
+    if info is not None:
+        if banner := render.render_exception_banner(info):
+            page.append(banner)
+    _render_checks_table(page, release, all_paths, per_file_stats, info)
     _render_ignores_section(page, release)
     _render_debug_table(page, all_paths, per_file_stats)
 
@@ -148,6 +155,12 @@ async def selected_revision(
     checks_summary_elem = shared.web.render_checks_summary(info, project_key, version_key)
     checks_summary_html = str(checks_summary_elem) if checks_summary_elem else ""
 
+    exception_banner_html = ""
+    if info is not None:
+        banner_elem = render.render_exception_banner(info)
+        if banner_elem is not None:
+            exception_banner_html = str(banner_elem)
+
     delete_file_forms: dict[str, str] = {}
     if release.phase == sql.ReleasePhase.RELEASE_CANDIDATE_DRAFT:
         for path in all_paths:
@@ -180,6 +193,7 @@ async def selected_revision(
         phase=release.phase.value,
         delete_file_forms=delete_file_forms,
         csrf_input=str(form.csrf_input()),
+        exception_banner_html=exception_banner_html,
     )
 
     return quart.jsonify(
@@ -191,6 +205,28 @@ async def selected_revision(
     )
 
 
+def _classification_badge_cell(
+    info: types.PathInfo | None, path: safe.RelPath, severity: sql.CheckResultStatus | None
+) -> htm.Element:
+    file_type = info.file_types.get(path) if (info is not None) else None
+    match file_type:
+        case classify.FileType.DISALLOWED:
+            label, title = "bad", "Disallowed file"
+        case classify.FileType.SOURCE:
+            label, title = "src", "Source artifact"
+        case classify.FileType.METADATA:
+            label, title = "meta", "Metadata file"
+        case classify.FileType.DOCS | classify.FileType.BINARY | None:
+            label, title = "bin", "Binary artifact"
+    if severity is not None:
+        icon_class = render.PATH_STYLE_CLASS.get(severity, "text-success")
+    else:
+        icon_class = "text-success"
+    return htpy.td(f".text-center.px-0.py-0.atr-sans.{icon_class}")[
+        htpy.span(".atr-classification-badge", title=title)[label]
+    ]
+
+
 async def _compute_stats(
     release: sql.Release,
     paths: list[safe.RelPath],
@@ -225,6 +261,15 @@ async def _compute_stats(
     return per_file, totals
 
 
+def _count_cell(count: int, status: sql.CheckResultStatus, has_checks_before: bool, num_style: str) -> htm.Element:
+    if count > 0:
+        cell_class = render.CELL_TEXT_CLASS[status]
+        return htpy.td(".py-2.text-center")[htpy.span(f".{cell_class}.fw-bold", style=num_style)[str(count)]]
+    if not has_checks_before:
+        return htpy.td(".py-2.text-center")[htpy.span(".text-muted", style=num_style)["-"]]
+    return htpy.td(".py-2.text-center")[htpy.span(".text-muted", style=num_style)["0"]]
+
+
 def _error_count(counts: collections.Counter[sql.CheckResultStatus]) -> int:
     return (
         counts[sql.CheckResultStatus.CONCERN]
@@ -255,11 +300,24 @@ def _file_stats_result_add(stats: FileStats, check_result: sql.CheckResult, is_i
         after[check_result.status] += 1
 
 
+def _issue_count_after(stats: FileStats) -> int:
+    return stats.total_after(sql.CheckResultStatus.CONCERN) + stats.total_after(sql.CheckResultStatus.BLOCKER)
+
+
+def _path_display(path_str: str, severity: sql.CheckResultStatus | None, has_checks_before: bool) -> htm.Element:
+    if (severity is not None) and (severity_class := render.PATH_STYLE_CLASS.get(severity)):
+        return htpy.strong[htpy.code(f".{severity_class}")[path_str]]
+    if not has_checks_before:
+        return htpy.code(".text-muted")[path_str]
+    return htpy.code[path_str]
+
+
 def _render_checks_table(
     page: htm.Block,
     release: sql.Release,
     paths: list[safe.RelPath],
     per_file_stats: dict[safe.RelPath, FileStats],
+    info: types.PathInfo | None,
 ) -> None:
     if not paths:
         page.div(".alert.alert-info")["This release candidate does not have any files."]
@@ -268,22 +326,20 @@ def _render_checks_table(
     table = htm.Block(htpy.table, classes=".table.table-striped.align-middle.table-sm.mb-0.border")
 
     thead = htm.Block(htpy.thead, classes=".table-light")
-    # TODO: We forbid inline styles in Jinja2 through linting
-    # But we use it here
-    # It is convenient, and we should consider whether or not to allow it
-    thead.tr[
-        htpy.th(".py-2.ps-3")["Path"],
-        htpy.th(".py-2.text-center", style="width: 5em")["Notes"],
-        htpy.th(".py-2.text-center", style="width: 5em")["Suggestions"],
-        htpy.th(".py-2.text-center", style="width: 5em")["Issues"],
-        htpy.th(".py-2.text-end.pe-3")[""],
+    header_cells: list[htm.Element] = [
+        htpy.th(".py-2.text-center.px-0.atr-w-4em")[""],
+        htpy.th(".py-2")["Path"],
     ]
+    for status in render.TABLE_STATUSES:
+        header_cells.append(htpy.th(".py-2.text-center.atr-w-6em")[render.COLUMN_HEADERS[status]])
+    header_cells.append(htpy.th(".py-2.text-end.pe-3")[""])
+    thead.tr[*header_cells]
     table.append(thead.collect())
 
     empty_stats = _file_stats_empty()
     tbody = htm.Block(htpy.tbody)
     for path in paths:
-        _render_file_row(tbody, release, path, per_file_stats.get(path, empty_stats))
+        _render_file_row(tbody, release, path, per_file_stats.get(path, empty_stats), info)
     table.append(tbody.collect())
 
     page.div(".table-responsive.card.mb-4")[table.collect()]
@@ -373,20 +429,15 @@ def _render_file_row(
     release: sql.Release,
     path: safe.RelPath,
     stats: FileStats,
+    info: types.PathInfo | None,
 ) -> None:
     path_str = str(path)
     num_style = "font-size: 1.1rem;"
 
-    note_count = stats.file_after[sql.CheckResultStatus.NOTE]
-    suggestion_count = stats.file_after[sql.CheckResultStatus.SUGGESTION]
-    issue_count = _error_count(stats.file_after)
-    before_total = (
-        stats.file_before[sql.CheckResultStatus.NOTE]
-        + stats.file_before[sql.CheckResultStatus.SUGGESTION]
-        + _error_count(stats.file_before)
-    )
-    has_checks_before = before_total > 0
-    has_checks_after = (note_count + suggestion_count + issue_count) > 0
+    counts_after = {status: stats.total_after(status) for status in sql.CheckResultStatus}
+    counts_before = {status: stats.total_before(status) for status in sql.CheckResultStatus}
+    has_checks_before = sum(counts_before.values()) > 0
+    severity = render.highest_severity(counts_after)
 
     report_url = util.as_url(
         report.selected_path,
@@ -404,61 +455,23 @@ def _render_file_row(
         sbom.report, project_key=release.project.key, version_key=release.version, file_path=path_str
     )
 
-    if not has_checks_before:
-        path_display = htpy.code(".text-muted")[path_str]
-        note_cell = htpy.span(".text-muted", style=num_style)["-"]
-        suggestion_cell = htpy.span(".text-muted", style=num_style)["-"]
-        issue_cell = htpy.span(".text-muted", style=num_style)["-"]
-        report_btn = htpy.span(".btn.btn-sm.btn-outline-secondary.disabled")["No checks"]
-    elif not has_checks_after:
-        path_display = htpy.code[path_str]
-        note_cell = htpy.span(".text-muted", style=num_style)["0"]
-        suggestion_cell = htpy.span(".text-muted", style=num_style)["0"]
-        issue_cell = htpy.span(".text-muted", style=num_style)["0"]
-        report_btn = htpy.a(".btn.btn-sm.btn-outline-secondary", href=report_url)["Show details"]
-    elif issue_count > 0:
-        path_display = htpy.strong[htpy.code(".text-danger")[path_str]]
-        note_cell = (
-            htpy.span(".text-success", style=num_style)[str(note_count)]
-            if (note_count > 0)
-            else htpy.span(".text-muted", style=num_style)["0"]
-        )
-        suggestion_cell = (
-            htpy.span(".text-warning", style=num_style)[str(suggestion_count)]
-            if (suggestion_count > 0)
-            else htpy.span(".text-muted", style=num_style)["0"]
-        )
-        issue_cell = htpy.span(".text-danger.fw-bold", style=num_style)[str(issue_count)]
-        report_btn = htpy.a(".btn.btn-sm.btn-outline-danger", href=report_url)["Show details"]
-    elif suggestion_count > 0:
-        path_display = htpy.strong[htpy.code(".text-warning")[path_str]]
-        note_cell = (
-            htpy.span(".text-success", style=num_style)[str(note_count)]
-            if (note_count > 0)
-            else htpy.span(".text-muted", style=num_style)["0"]
-        )
-        suggestion_cell = htpy.span(".text-warning.fw-bold", style=num_style)[str(suggestion_count)]
-        issue_cell = htpy.span(".text-muted", style=num_style)["0"]
-        report_btn = htpy.a(".btn.btn-sm.btn-outline-warning", href=report_url)["Show details"]
-    else:
-        path_display = htpy.code[path_str]
-        note_cell = htpy.span(".text-success", style=num_style)[str(note_count)]
-        suggestion_cell = htpy.span(".text-muted", style=num_style)["0"]
-        issue_cell = htpy.span(".text-muted", style=num_style)["0"]
-        report_btn = htpy.a(".btn.btn-sm.btn-outline-success", href=report_url)["Show details"]
-
-    # <a href="{{ as_url(get.sbom.report, project=project_key, version=version_key, file_path=path) }}"
-    # class="btn btn-sm btn-outline-secondary">Show SBOM</a>
+    path_display = _path_display(path_str, severity, has_checks_before)
+    report_btn = _report_button(severity, counts_after, has_checks_before, report_url)
+    badge_cell = _classification_badge_cell(info, path, severity)
+
+    count_cells: list[htm.Element] = []
+    for status in render.TABLE_STATUSES:
+        count_cells.append(_count_cell(counts_after[status], status, has_checks_before, num_style))
+
     sbom_btn = None
     if path.as_path().suffixes[-2:] == [".cdx", ".json"]:
         sbom_btn = htpy.a(".btn.btn-sm.btn-outline-secondary", href=sbom_url)["SBOM report"]
     download_btn = htpy.a(".btn.btn-sm.btn-outline-secondary", href=download_url)["Download"]
 
     tbody.tr[
-        htpy.td(".py-2.ps-3")[path_display],
-        htpy.td(".py-2.text-center")[note_cell],
-        htpy.td(".py-2.text-center")[suggestion_cell],
-        htpy.td(".py-2.text-center")[issue_cell],
+        badge_cell,
+        htpy.td(".py-2")[path_display],
+        *count_cells,
         htpy.td(".text-end.text-nowrap.py-2.pe-3")[
             htpy.div(".d-flex.justify-content-end.align-items-center.gap-2")[
                 report_btn,
@@ -502,25 +515,35 @@ def _render_summary(
     paths: list[safe.RelPath],
     per_file_stats: dict[safe.RelPath, FileStats],
 ) -> None:
-    files_with_issues = sum(1 for s in per_file_stats.values() if _error_count(s.file_after) > 0)
+    files_with_issues = sum(1 for s in per_file_stats.values() if _issue_count_after(s) > 0)
     files_with_suggestions = sum(
         1
         for s in per_file_stats.values()
-        if (s.file_after[sql.CheckResultStatus.SUGGESTION] > 0) and (_error_count(s.file_after) == 0)
+        if (s.total_after(sql.CheckResultStatus.SUGGESTION) > 0)
+        and (s.total_after(sql.CheckResultStatus.EXCEPTION) == 0)
+        and (_issue_count_after(s) == 0)
     )
     files_with_notes = sum(
         1
         for s in per_file_stats.values()
-        if (s.file_after[sql.CheckResultStatus.NOTE] > 0)
-        and (s.file_after[sql.CheckResultStatus.SUGGESTION] == 0)
-        and (_error_count(s.file_after) == 0)
+        if (s.total_after(sql.CheckResultStatus.NOTE) > 0)
+        and (s.total_after(sql.CheckResultStatus.SUGGESTION) == 0)
+        and (s.total_after(sql.CheckResultStatus.EXCEPTION) == 0)
+        and (_issue_count_after(s) == 0)
+    )
+    files_with_exceptions = sum(
+        1 for s in per_file_stats.values() if s.total_after(sql.CheckResultStatus.EXCEPTION) > 0
+    )
+    files_with_any_status = sum(
+        1 for s in per_file_stats.values() if sum(s.total_after(status) for status in sql.CheckResultStatus) > 0
     )
-    files_skipped = len(paths) - files_with_notes - files_with_suggestions - files_with_issues
+    files_skipped = len(paths) - files_with_any_status
 
     file_word = "file" if (len(paths) == 1) else "files"
     note_file_word = "file has" if (files_with_notes == 1) else "files have"
     suggestion_file_word = "file has" if (files_with_suggestions == 1) else "files have"
     issue_file_word = "file has" if (files_with_issues == 1) else "files have"
+    exception_file_word = "file has" if (files_with_exceptions == 1) else "files have"
     skipped_word = "file did not require checking" if (files_skipped == 1) else "files did not require checking"
     no_issues_word = "no" if ((files_with_notes > 0) or (files_with_suggestions > 0)) else "No"
 
@@ -531,15 +554,18 @@ def _render_summary(
         f"{files_with_issues} {issue_file_word} issues."
         if (files_with_issues > 0)
         else f"{no_issues_word} files have issues.",
+        f" {files_with_exceptions} {exception_file_word} tooling exceptions." if (files_with_exceptions > 0) else "",
         f" {files_skipped} {skipped_word}." if (files_skipped > 0) else "",
     ]
 
-    note_count = totals.file_after[sql.CheckResultStatus.NOTE]
-    suggestion_count = totals.file_after[sql.CheckResultStatus.SUGGESTION]
-    issue_count = _error_count(totals.file_after)
+    note_count = totals.total_after(sql.CheckResultStatus.NOTE)
+    suggestion_count = totals.total_after(sql.CheckResultStatus.SUGGESTION)
+    issue_count = _issue_count_after(totals)
+    exception_count = totals.total_after(sql.CheckResultStatus.EXCEPTION)
     note_word = util.plural(note_count, "note", include_count=False)
     suggestion_word = util.plural(suggestion_count, "suggestion", include_count=False)
     issue_word = util.plural(issue_count, "issue", include_count=False)
+    exception_word = util.plural(exception_count, "exception", include_count=False)
 
     summary_div = htm.Block(htm.div, classes=".d-flex.flex-wrap.gap-4.mb-3")
     summary_div.span(".text-success")[
@@ -566,9 +592,37 @@ def _render_summary(
             htpy.i(".bi.bi-x-circle.me-2"),
             "0 issues",
         ]
+    if exception_count > 0:
+        summary_div.span(".atr-text-exception")[
+            htpy.i(".bi.bi-cone-striped.me-2"),
+            f"{exception_count} {exception_word}",
+        ]
     page.append(summary_div.collect())
 
 
+def _report_button(
+    severity: sql.CheckResultStatus | None,
+    counts_after: dict[sql.CheckResultStatus, int],
+    has_checks_before: bool,
+    report_url: str,
+) -> htm.Element:
+    match severity:
+        case sql.CheckResultStatus.BLOCKER:
+            return htpy.a(".btn.btn-sm.atr-btn-outline-blocker", href=report_url)["Show details"]
+        case sql.CheckResultStatus.EXCEPTION:
+            return htpy.a(".btn.btn-sm.btn-outline-danger", href=report_url)["Show details"]
+        case sql.CheckResultStatus.CONCERN:
+            return htpy.a(".btn.btn-sm.atr-btn-outline-concern", href=report_url)["Show details"]
+        case sql.CheckResultStatus.SUGGESTION:
+            return htpy.a(".btn.btn-sm.atr-btn-outline-suggestion", href=report_url)["Show details"]
+        case sql.CheckResultStatus.NOTE | None:
+            if counts_after[sql.CheckResultStatus.NOTE] > 0:
+                return htpy.a(".btn.btn-sm.btn-outline-secondary", href=report_url)["Notes"]
+            if has_checks_before:
+                return htpy.a(".btn.btn-sm.btn-outline-secondary", href=report_url)["Show details"]
+            return htpy.span(".btn.btn-sm.btn-outline-secondary.disabled")["No checks"]
+
+
 def _total_error_after(stats: FileStats) -> int:
     return _error_count(stats.file_after) + _error_count(stats.member_after)
 
diff --git a/atr/get/compose.py b/atr/get/compose.py
index 987edb4f..e44af522 100644
--- a/atr/get/compose.py
+++ b/atr/get/compose.py
@@ -33,6 +33,7 @@ import atr.models.safe as safe
 import atr.models.sql as sql
 import atr.paths as paths
 import atr.post as post
+import atr.render as render
 import atr.shared as shared
 import atr.shared.draft as draft
 import atr.storage as storage
@@ -181,6 +182,11 @@ async def selected(
         blocker_errors = await interaction.has_blocker_checks(release, revision_number)
 
     checks_summary_html = shared.web.render_checks_summary(info, release.safe_project_key, release.safe_version_key)
+    exception_banner_html: str = ""
+    if info is not None:
+        banner = render.render_exception_banner(info)
+        if banner is not None:
+            exception_banner_html = str(banner)
     move_file_html = _render_move_section(10)
 
     csrf_token = utils.generate_csrf()
@@ -228,6 +234,7 @@ async def selected(
         has_files=has_files,
         blocker_errors=blocker_errors,
         checks_summary_html=checks_summary_html,
+        exception_banner_html=exception_banner_html,
         move_file_html=move_file_html,
         scripts=str(scripts),
     )
diff --git a/atr/get/vote.py b/atr/get/vote.py
index a7113aae..813bedcc 100644
--- a/atr/get/vote.py
+++ b/atr/get/vote.py
@@ -456,17 +456,17 @@ def _render_section_checks(page: htm.Block, release: sql.Release, file_totals: c
 
     body = htm.Block(htm.div, classes=".card-body")
 
-    note_count = file_totals.file_after[sql.CheckResultStatus.NOTE]
-    suggestion_count = file_totals.file_after[sql.CheckResultStatus.SUGGESTION]
-    issue_count = (
-        file_totals.file_after[sql.CheckResultStatus.CONCERN]
-        + file_totals.file_after[sql.CheckResultStatus.BLOCKER]
-        + file_totals.file_after[sql.CheckResultStatus.EXCEPTION]
+    note_count = file_totals.total_after(sql.CheckResultStatus.NOTE)
+    suggestion_count = file_totals.total_after(sql.CheckResultStatus.SUGGESTION)
+    issue_count = file_totals.total_after(sql.CheckResultStatus.CONCERN) + file_totals.total_after(
+        sql.CheckResultStatus.BLOCKER
     )
+    exception_count = file_totals.total_after(sql.CheckResultStatus.EXCEPTION)
 
     note_word = util.plural(note_count, "note", include_count=False)
     suggestion_word = util.plural(suggestion_count, "suggestion", include_count=False)
     issue_word = util.plural(issue_count, "issue", include_count=False)
+    exception_word = util.plural(exception_count, "exception", include_count=False)
 
     checks_list = htm.Block(htm.div, classes=".d-flex.flex-wrap.gap-4.mb-3")
     checks_list.span(".text-success")[
@@ -493,6 +493,11 @@ def _render_section_checks(page: htm.Block, release: sql.Release, file_totals: c
             htpy.i(".bi.bi-x-circle.me-2"),
             "0 issues",
         ]
+    if exception_count > 0:
+        checks_list.span(".atr-text-exception")[
+            htpy.i(".bi.bi-cone-striped.me-2"),
+            f"{exception_count} {exception_word}",
+        ]
     body.append(checks_list.collect())
 
     body.div[
diff --git a/atr/render.py b/atr/render.py
index b8d6d2c4..11046031 100644
--- a/atr/render.py
+++ b/atr/render.py
@@ -15,16 +15,65 @@
 # specific language governing permissions and limitations
 # under the License.
 
-from typing import Literal
+from collections.abc import Mapping
+from typing import Final, Literal
 
 import htpy
 
 import atr.get as get
 import atr.htm as htm
+import atr.models.sql as sql
+import atr.storage.types as types
 import atr.util as util
 
 type Phase = Literal["COMPOSE", "VOTE", "FINISH"]
 
+BANNER_STATUS: Final[sql.CheckResultStatus] = sql.CheckResultStatus.EXCEPTION
+
+CELL_TEXT_CLASS: Final[dict[sql.CheckResultStatus, str]] = {
+    sql.CheckResultStatus.SUGGESTION: "atr-text-suggestion",
+    sql.CheckResultStatus.CONCERN: "atr-text-concern",
+    sql.CheckResultStatus.BLOCKER: "atr-text-blocker",
+}
+
+COLUMN_HEADERS: Final[dict[sql.CheckResultStatus, str]] = {
+    sql.CheckResultStatus.SUGGESTION: "Suggestions",
+    sql.CheckResultStatus.CONCERN: "Concerns",
+    sql.CheckResultStatus.BLOCKER: "Blockers",
+}
+
+HIDDEN_STATUSES: Final[tuple[sql.CheckResultStatus, ...]] = (sql.CheckResultStatus.NOTE,)
+
+PATH_STYLE_CLASS: Final[dict[sql.CheckResultStatus, str]] = {
+    sql.CheckResultStatus.BLOCKER: "atr-text-blocker",
+    sql.CheckResultStatus.EXCEPTION: "text-danger",
+    sql.CheckResultStatus.CONCERN: "atr-text-concern",
+    sql.CheckResultStatus.SUGGESTION: "atr-text-suggestion",
+}
+
+TABLE_STATUSES: Final[tuple[sql.CheckResultStatus, ...]] = (
+    sql.CheckResultStatus.SUGGESTION,
+    sql.CheckResultStatus.CONCERN,
+    sql.CheckResultStatus.BLOCKER,
+)
+
+_SEVERITY_ORDER: Final[tuple[sql.CheckResultStatus, ...]] = (
+    sql.CheckResultStatus.BLOCKER,
+    sql.CheckResultStatus.EXCEPTION,
+    sql.CheckResultStatus.CONCERN,
+    sql.CheckResultStatus.SUGGESTION,
+    sql.CheckResultStatus.NOTE,
+)
+
+
+def highest_severity(
+    counts: Mapping[sql.CheckResultStatus, int],
+) -> sql.CheckResultStatus | None:
+    for status in _SEVERITY_ORDER:
+        if counts.get(status, 0) > 0:
+            return status
+    return None
+
 
 def html_nav(container: htm.Block, back_url: str, back_anchor: str, phase: Phase) -> None:
     classes = ".d-flex.justify-content-between.align-items-center"
@@ -125,3 +174,31 @@ def html_recipients_to_radios(
     if documentation is None:
         return container
     return htm.div[container, htm.div(".text-muted.mt-1.form-text")[documentation]]
+
+
+def render_exception_banner(info: types.PathInfo) -> htm.Element | None:
+    path_count = sum(len(results) for results in info.exceptions.values())
+    release_count = len(info.release_level_exceptions)
+    total = path_count + release_count
+    if total == 0:
+        return None
+
+    affected_paths = sorted(str(p) for p in info.exceptions)
+    check_word = "check" if (total == 1) else "checks"
+
+    children: list[htm.Element | str] = [
+        htpy.i(".bi.bi-cone-striped.me-2"),
+        htpy.strong[f"ATR could not complete {total} automated {check_word}."],
+        " These results indicate a tooling failure, not a confirmed release-candidate issue. ",
+    ]
+    if affected_paths:
+        children.append("Affected files: ")
+        for index, path_str in enumerate(affected_paths):
+            if index > 0:
+                children.append(", ")
+            children.append(htpy.code[path_str])
+        children.append(". ")
+    if release_count > 0:
+        word = "exception" if (release_count == 1) else "exceptions"
+        children.append(f"{release_count} release-level {word}.")
+    return htm.div(".alert.atr-bg-exception.mb-3", role="alert")[*children]
diff --git a/atr/static/css/atr.css b/atr/static/css/atr.css
index 0b4cbb3b..00367c79 100644
--- a/atr/static/css/atr.css
+++ b/atr/static/css/atr.css
@@ -1236,3 +1236,27 @@ td.atr-checkbox-col {
 .text-danger .atr-classification-badge {
     background-color: #fdf6f6;
 }
+
+.atr-text-exception {
+    color: rgb(180 83 9) !important;
+}
+
+.atr-cbm-deuteranopia .atr-text-exception {
+    color: rgb(107 44 0) !important;
+}
+
+.atr-cbm-protanopia .atr-text-exception {
+    color: rgb(94 36 0) !important;
+}
+
+.atr-cbm-tritanopia .atr-text-exception {
+    color: rgb(180 83 9) !important;
+}
+
+.atr-w-4em {
+    width: 4em;
+}
+
+.atr-w-6em {
+    width: 6em;
+}
diff --git a/atr/templates/check-selected-path-table.html b/atr/templates/check-selected-path-table.html
index b70fa905..20d96b28 100644
--- a/atr/templates/check-selected-path-table.html
+++ b/atr/templates/check-selected-path-table.html
@@ -1,12 +1,31 @@
+{% if exception_banner_html %}{{ exception_banner_html|safe }}{% endif %}
 <div class="table-responsive">
   {# This table uses pairs of rows, so it must be manually striped #}
   <table class="table align-middle table-sm mb-0 border">
+    <thead class="table-light">
+      <tr>
+        <th class="py-2 text-center px-0 atr-w-4em"></th>
+        <th class="py-2">Path</th>
+        <th class="py-2 text-center atr-w-6em">Suggestions</th>
+        <th class="py-2 text-center atr-w-6em">Concerns</th>
+        <th class="py-2 text-center atr-w-6em">Blockers</th>
+        <th class="py-2 text-end pe-3"></th>
+      </tr>
+    </thead>
     <tbody>
       {% for path in paths %}
-        {% set has_concerns = info and (info.concerns[path]|length > 0) %}
-        {% set has_blockers = info and (info.blockers[path]|length > 0) %}
-        {% set has_suggestions = info and (info.suggestions[path]|length > 0) %}
-        {% set has_exceptions = info and (info.exceptions[path]|length > 0) %}
+        {% set notes_count = info.notes[path]|length if info else 0 %}
+        {% set suggestions_count = info.suggestions[path]|length if info else 0 %}
+        {% set concerns_count = info.concerns[path]|length if info else 0 %}
+        {% set blockers_count = info.blockers[path]|length if info else 0 %}
+        {% set exceptions_count = info.exceptions[path]|length if info else 0 %}
+        {% set has_concerns = concerns_count > 0 %}
+        {% set has_blockers = blockers_count > 0 %}
+        {% set has_suggestions = suggestions_count > 0 %}
+        {% set has_exceptions = exceptions_count > 0 %}
+        {% set has_notes = notes_count > 0 %}
+        {% set has_any = has_concerns or has_blockers or has_suggestions or has_exceptions or has_notes %}
+        {% set empty_count = "0" if has_any else "-" %}
         {% set row_id = path|string|slugify %}
 
         {# Manual striping for pairs of rows #}
@@ -47,7 +66,7 @@
               <span class="atr-classification-badge" title="Source artifact">src</span>
             {% elif file_type == "metadata" %}
               <span class="atr-classification-badge" title="Metadata file">meta</span>
-            {# elif file_type == "binary" #}
+              {# elif file_type == "binary" #}
             {% else %}
               <span class="atr-classification-badge" title="Binary artifact">bin</span>
             {% endif %}
@@ -56,13 +75,34 @@
             <a href="{{ as_url(get.file.selected_path, project_key=project_key|string, version_key=version_key|string, file_path=path) }}"
                title="View file {{ path }}"
                class="text-decoration-none text-reset">
-              {% if has_blockers or has_concerns or has_suggestions or has_exceptions %}
+              {% if path_style_class %}
                 <strong><code class="{{ path_style_class }}">{{ path }}</code></strong>
               {% else %}
                 <code>{{ path }}</code>
               {% endif %}
             </a>
           </td>
+          <td class="py-2 text-center">
+            {% if has_suggestions %}
+              <span class="atr-text-suggestion fw-bold">{{ suggestions_count }}</span>
+            {% else %}
+              <span class="text-muted">{{ empty_count }}</span>
+            {% endif %}
+          </td>
+          <td class="py-2 text-center">
+            {% if has_concerns %}
+              <span class="atr-text-concern fw-bold">{{ concerns_count }}</span>
+            {% else %}
+              <span class="text-muted">{{ empty_count }}</span>
+            {% endif %}
+          </td>
+          <td class="py-2 text-center">
+            {% if has_blockers %}
+              <span class="atr-text-blocker fw-bold">{{ blockers_count }}</span>
+            {% else %}
+              <span class="text-muted">{{ empty_count }}</span>
+            {% endif %}
+          </td>
           <td class="text-end text-nowrap py-2">
             <div class="d-flex justify-content-end align-items-center gap-2">
               {% if path|string == "KEYS" %}
@@ -80,20 +120,20 @@
               {% endif %}
               {% if has_blockers %}
                 <a href="{{ as_url(get.report.selected_path, project_key=project_key|string, version_key=version_key|string, rel_path=path) }}"
-                   class="btn btn-sm atr-btn-outline-blocker"><i class="bi bi-exclamation-triangle me-1"></i> Show {{ info.blockers[path]|length }} {{ "blocker" if info.blockers[path]|length == 1 else "blockers" }}</a>
+                   class="btn btn-sm atr-btn-outline-blocker">Show details</a>
               {% elif has_exceptions %}
                 <a href="{{ as_url(get.report.selected_path, project_key=project_key|string, version_key=version_key|string, rel_path=path) }}"
-                   class="btn btn-sm btn-outline-danger">Show {{ info.exceptions[path]|length }} {{ "exception" if info.exceptions[path]|length == 1 else "exceptions" }}</a>
+                   class="btn btn-sm btn-outline-danger">Show details</a>
               {% elif has_concerns %}
                 <a href="{{ as_url(get.report.selected_path, project_key=project_key|string, version_key=version_key|string, rel_path=path) }}"
-                   class="btn btn-sm atr-btn-outline-concern"><i class="bi bi-exclamation-triangle me-1"></i> Show {{ info.concerns[path]|length }} {{ "concern" if info.concerns[path]|length == 1 else "concerns" }}</a>
+                   class="btn btn-sm atr-btn-outline-concern">Show details</a>
               {% elif has_suggestions %}
                 <a href="{{ as_url(get.report.selected_path, project_key=project_key|string, version_key=version_key|string, rel_path=path) }}"
-                   class="btn btn-sm atr-btn-outline-suggestion">Show {{ info.suggestions[path]|length }} {{ "suggestion" if info.suggestions[path]|length == 1 else "suggestions" }}</a>
-              {% elif info and (path in info.notes) %}
+                   class="btn btn-sm atr-btn-outline-suggestion">Show details</a>
+              {% elif has_notes %}
                 <a href="{{ as_url(get.report.selected_path, project_key=project_key|string, version_key=version_key|string, rel_path=path) }}"
-                   class="btn btn-sm btn-outline-success"
-                   title="Show report for {{ path }}">Show report</a>
+                   class="btn btn-sm btn-outline-secondary"
+                   title="Show report for {{ path }}">Notes</a>
               {% else %}
                 <span class="btn btn-sm btn-outline-secondary disabled">No checks</span>
               {% endif %}
@@ -117,7 +157,7 @@
 
         {% if phase == "release_candidate_draft" %}
           <tr class="{{ row_bg_class }}">
-            <td colspan="3" class="p-0 border-0">
+            <td colspan="6" class="p-0 border-0">
               <div class="collapse px-3 py-2" id="actions-{{ row_id }}">
                 <div class="d-flex justify-content-end align-items-center gap-2"
                      role="group"
diff --git a/tests/unit/test_checks_table.py b/tests/unit/test_checks_table.py
new file mode 100644
index 00000000..bdfee1f5
--- /dev/null
+++ b/tests/unit/test_checks_table.py
@@ -0,0 +1,95 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+import datetime
+import unittest.mock as mock
+
+import atr.models.safe as safe
+import atr.models.sql as sql
+import atr.render as render
+import atr.storage.types as types
+
+
+def test_highest_severity_precedence() -> None:
+    assert render.highest_severity({}) is None
+    assert render.highest_severity({sql.CheckResultStatus.NOTE: 1}) == sql.CheckResultStatus.NOTE
+    assert (
+        render.highest_severity({sql.CheckResultStatus.SUGGESTION: 1, sql.CheckResultStatus.NOTE: 1})
+        == sql.CheckResultStatus.SUGGESTION
+    )
+    assert (
+        render.highest_severity({sql.CheckResultStatus.CONCERN: 1, sql.CheckResultStatus.SUGGESTION: 1})
+        == sql.CheckResultStatus.CONCERN
+    )
+    assert (
+        render.highest_severity({sql.CheckResultStatus.EXCEPTION: 1, sql.CheckResultStatus.CONCERN: 1})
+        == sql.CheckResultStatus.EXCEPTION
+    )
+    assert (
+        render.highest_severity({sql.CheckResultStatus.BLOCKER: 1, sql.CheckResultStatus.EXCEPTION: 1})
+        == sql.CheckResultStatus.BLOCKER
+    )
+
+
+def test_render_exception_banner_empty_returns_none() -> None:
+    info = types.PathInfo()
+    assert render.render_exception_banner(info) is None
+
+
+def test_render_exception_banner_path_level() -> None:
+    path = safe.RelPath("apache-test-1.0-source.tar.gz")
+    info = types.PathInfo()
+    info.exceptions[path] = [_fake_check_result()]
+    banner = render.render_exception_banner(info)
+    assert banner is not None
+    html = str(banner)
+    assert "atr-bg-exception" in html
+    assert "could not complete 1 automated check" in html
+    assert str(path) in html
+
+
+def test_render_exception_banner_release_level_only() -> None:
+    info = types.PathInfo()
+    info.release_level_exceptions.append(_fake_check_result())
+    banner = render.render_exception_banner(info)
+    assert banner is not None
+    html = str(banner)
+    assert "release-level exception" in html
+
+
+def test_table_constants_are_consistent() -> None:
+    assert sql.CheckResultStatus.NOTE in render.HIDDEN_STATUSES
+    assert sql.CheckResultStatus.EXCEPTION == render.BANNER_STATUS
+    assert set(render.TABLE_STATUSES) == {
+        sql.CheckResultStatus.SUGGESTION,
+        sql.CheckResultStatus.CONCERN,
+        sql.CheckResultStatus.BLOCKER,
+    }
+    for status in render.TABLE_STATUSES:
+        assert status in render.COLUMN_HEADERS
+        assert status in render.CELL_TEXT_CLASS
+    assert render.PATH_STYLE_CLASS[sql.CheckResultStatus.BLOCKER] == "atr-text-blocker"
+    assert render.PATH_STYLE_CLASS[sql.CheckResultStatus.EXCEPTION] == "text-danger"
+
+
+def _fake_check_result() -> sql.CheckResult:
+    result = mock.MagicMock(spec=sql.CheckResult)
+    result.status = sql.CheckResultStatus.EXCEPTION
+    result.message = "tool crashed"
+    result.created = datetime.datetime(2026, 5, 13, tzinfo=datetime.UTC)
+    result.checker = "atr.tasks.checks.foo"
+    return result


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org