[Piuparts-commits] [SCM] piuparts git repository branch, develop, updated. 0.45-56-gf60418b

Andreas Beckmann debian at abeckmann.de
Wed Jul 18 19:28:46 UTC 2012


The following commit has been merged in the develop branch:
commit 5c562605a172e9f06775b5dbc30a262e40bb2f77
Author: Andreas Beckmann <debian at abeckmann.de>
Date:   Thu Jun 21 11:01:31 2012 +0200

    p-s: always try to submit finished logfiles
    
    even if the precedence value of a section is too high for
    processing logs in that section, flush any pending logs
    
    Signed-off-by: Andreas Beckmann <debian at abeckmann.de>

diff --git a/debian/changelog b/debian/changelog
index a286f30..4396a05 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -19,6 +19,8 @@ piuparts (0.46) UNRELEASED; urgency=low
     - Fix stopping the currently running test (Ctrl-C Ctrl-C).
     - Handle master communication exceptions while sending logs or reserving
       packages: skip the section but keep the slave running.
+    - Flush finished logs from sections that have processing postponed due to
+      precedence settings.
   * piuparts-report.py:
   * Simplify running piuparts from GIT.
   * Reorganize layout in the GIT repository to reduce path nesting and length.
diff --git a/piuparts-slave.py b/piuparts-slave.py
index 8dc18c9..c96887a 100644
--- a/piuparts-slave.py
+++ b/piuparts-slave.py
@@ -340,11 +340,15 @@ class Section:
             return 0
 
         do_processing = precedence is None or self.precedence() <= precedence
-        if not do_processing:
+        if not do_processing and self._count_submittable_logs() == 0:
             return 0
 
         logging.info("-------------------------------------------")
-        logging.info("Running section %s (precedence=%d)" % (self._config.section, self.precedence()))
+        action = "Running"
+        if not do_processing:
+            action = "Flushing"
+        logging.info("%s section %s (precedence=%d)" \
+                     % (action, self._config.section, self.precedence()))
         self._config = Config(section=self._config.section, defaults_section="global")
         self._config.read(CONFIG_FILE)
 

-- 
piuparts git repository



More information about the Piuparts-commits mailing list