[projects/pld-builder.new] queue.html: say what the build times cover

arekm arekm at pld-linux.org
Thu Nov 12 09:32:29 CET 2026


commit 6d7bd3a9ce5ee26cbacf3eb912f6a5cc441d4bf4
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Nov 12 09:31:52 2026 +0100

    queue.html: say what the build times cover
    
    A build runs from the builder taking the package (fetching the src.rpm,
    installing BuildRequires, rpmbuild) to its result; sending the rpms to
    ftp is not counted. The legend says so, and a tooltip on each builder
    gives its times to the second.

 PLD_Builder/queue_html.py | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/PLD_Builder/queue_html.py b/PLD_Builder/queue_html.py
index bd80f4a..3e10321 100644
--- a/PLD_Builder/queue_html.py
+++ b/PLD_Builder/queue_html.py
@@ -81,6 +81,11 @@ def clock(t):
     return time.strftime("%H:%M", time.localtime(t))
 
 
+def exact(t):
+    """For a tooltip, to the second"""
+    return time.strftime("%b %-d %H:%M:%S %Z", time.localtime(t))
+
+
 def clock_zone(t):
     """The zone goes with the time a request was queued; the times under it are of the same clock"""
     return time.strftime("%H:%M %Z", time.localtime(t))
@@ -217,19 +222,23 @@ def builder_html(batch, name, request_id):
     start = batch.builders_build_start.get(name)
     end = batch.builders_build_end.get(name)
 
-    span = took = log = ""
+    span = took = log = about = ""
     if start and end:
         span, took = f'{clock(start)} → {clock(end)}', duration(end - start)
+        about = f"build {exact(start)} → {exact(end)}, sending to ftp not counted"
     elif start:
         span, took = f'{clock(start)} → …', running_since(start)
+        about = f"building since {exact(start)}"
     elif status != "?":
         # nothing was built, or an older builder did not say when: the time of the status alone
         span = clock(batch.builders_status_time[name])
+        about = f"{status} since {exact(batch.builders_status_time[name])}"
 
     # a skipped batch was not built, so it has no log
     if is_final(status) and not status.startswith("SKIP"):
         log = f'<a href="{escape(build_log(batch, name, status, request_id))}">log</a>'
-    return (f'<div class=builder><span class=who>{escape(name)}</span>{plaque(status)}'
+    title = f' title="{escape(about)}"' if about else ""
+    return (f'<div class=builder{title}><span class=who>{escape(name)}</span>{plaque(status)}'
             f'<span class=span>{span}</span><span class=took>{took}</span><span class=log>{log}</span></div>\n')
 
 
@@ -274,7 +283,9 @@ LEGEND = """<h2>How to read a request</h2>
 <p>Built; its rpms are on the way to ftp. The times are of the build.</p></div>
 </div>
 </div>
-<p class=note>The stripe on the left is red when anything failed, yellow while something waits or builds, green when
+<p class=note>Start and end: from the builder taking the package (fetching the src.rpm, installing
+BuildRequires, rpmbuild) to its result; sending the rpms to ftp is not counted. A tooltip gives them to the second.
+The stripe on the left is red when anything failed, yellow while something waits or builds, green when
 all is done. Times are in {zone}.</p>
 </section>
 """
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/6d7bd3a9ce5ee26cbacf3eb912f6a5cc441d4bf4



More information about the pld-cvs-commit mailing list