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

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


The following commit(s) were added to refs/heads/main by this push:
     new c3a453e  Better messages for distributions
c3a453e is described below

commit c3a453eeedea700ebd36a89a77ffa92c75f9e594
Author: Alastair McFarlane <[email protected]>
AuthorDate: Wed Jan 14 15:19:29 2026 +0000

    Better messages for distributions
---
 atr/get/finish.py | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/atr/get/finish.py b/atr/get/finish.py
index 7e90595..7e9e1b0 100644
--- a/atr/get/finish.py
+++ b/atr/get/finish.py
@@ -548,19 +548,18 @@ def _render_release_card(release: sql.Release) -> 
htm.Element:
 def _render_task(task: sql.Task) -> htm.Element:
     """Render a distribution task's details."""
     args: gha.DistributionWorkflow = 
gha.DistributionWorkflow.model_validate(task.task_args)
+    task_date = task.added.strftime("%Y-%m-%d %H:%M:%S")
     task_status = task.status.value
-    workflow_message = task.workflow.message if task.workflow else None
     workflow_status = task.workflow.status if task.workflow else ""
+    workflow_message = task.workflow.message if task.workflow else 
workflow_status.capitalize()
     if task_status != sql.TaskStatus.COMPLETED:
         return htm.p[
-            f"{args.platform} ({args.package} {args.version}): {task.error if 
task.error else task_status.capitalize()}"
-        ]
-    else:
-        return htm.p[
-            f"{args.platform} ({args.package} {args.version}): {
-                workflow_message if workflow_message else 
workflow_status.capitalize()
+            f"{task_date} {args.platform} ({args.package} {args.version}): {
+                task.error if task.error else task_status.capitalize()
             }"
         ]
+    else:
+        return htm.p[f"{task_date} {args.platform} ({args.package} 
{args.version}): {workflow_message}"]
 
 
 async def _sources_and_targets(latest_revision_dir: pathlib.Path) -> 
tuple[list[pathlib.Path], set[pathlib.Path]]:


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to