[projects/pld-builder.new] binary builders: send the build log of a batch when its status goes out

arekm arekm at pld-linux.org
Thu Nov 12 00:30:16 CET 2026


commit 2cf988b75f72cba070da99d03d3c3e709f5166bc
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Nov 12 00:10:46 2026 +0100

    binary builders: send the build log of a batch when its status goes out
    
    A binary builder reports a failed batch at once, and queue.html links
    a final status to the build log, but the logs were queued for sending
    only when the whole request was done: in a request of many packages
    the link of an early failure led nowhere for as long as the rest took
    to build. The log of a batch is now queued right after its status.

 PLD_Builder/build.py | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/PLD_Builder/build.py b/PLD_Builder/build.py
index df71d30..d50cc5d 100644
--- a/PLD_Builder/build.py
+++ b/PLD_Builder/build.py
@@ -122,6 +122,9 @@ def build_all(r, build_fnc, notify_now=False):
             batch.build_time = stopwatch.stop()
             report.add_pld_builder_info(batch)
             buildlogs.add(batch.logfile, failed = batch.build_failed, id=r.id)
+            if notify_now:
+                # the status is out already and queue.html links it to this log
+                buildlogs.flush()
         else:
             batch.build_failed = 1
             batch.skip_reason = f"SKIPPED [{failed_dep} failed]"
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list