[projects/pld-builder.new] queue.html: the last good build before one with no start known

arekm arekm at pld-linux.org
Fri Nov 13 11:33:43 CET 2026


commit 795169625b60b00b40428e7a08f3ad4e22e09ea2
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Nov 13 11:28:52 2026 +0100

    queue.html: the last good build before one with no start known
    
    A build done before builders sent their times showed as its last good
    build one that ran later. It now looks before the time of its status.

 PLD_Builder/queue_html.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/PLD_Builder/queue_html.py b/PLD_Builder/queue_html.py
index b671681..b1425c7 100644
--- a/PLD_Builder/queue_html.py
+++ b/PLD_Builder/queue_html.py
@@ -228,8 +228,9 @@ def builder_html(batch, name, request_id, history):
         span = clock(batch.builders_status_time[name])
         about = f"{status} since {exact(batch.builders_status_time[name])}"
 
-    # the build of the spec on this builder that last went well before this one: how long this may take
-    before = start or time.time()
+    # the build of the spec on this builder that last went well before this one: how long this may take.
+    # One done with no start known (an older builder did not say) is before the time of its status
+    before = start or (time.time() if status == "?" else batch.builders_status_time[name])
     last = next(((s, e) for batch_id, s, e in history.get((batch.spec, name), [])
                  if batch_id != batch.b_id and e <= before), None)
     if last:
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list