phase1: treat all branches equally for building
authorThibaut VARÈNE <hacks@slashdirt.org>
Tue, 14 Nov 2023 13:23:50 +0000 (14:23 +0100)
committerPetr Štetiar <ynezz@true.cz>
Thu, 16 Nov 2023 08:57:01 +0000 (09:57 +0100)
Following discussion here:
https://lists.openwrt.org/pipermail/openwrt-devel/2023-November/041769.html

Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
phase1/master.cfg

index 9b749b489d59bd047bb385cd8e67b67fada9602b..2d6f3045d17d5f59d2c12b4ccb04f07aaa159bc2 100644 (file)
@@ -249,7 +249,6 @@ def prioritizeBuilders(master, builders):
     i = 1
     for bname in branchNames:
         bldrNamePrio[bname] = i
-        i += 1
 
     def is_building(bldr):
         return bool(bldr.building) or bool(bldr.old_building)
@@ -270,7 +269,7 @@ def prioritizeBuilders(master, builders):
                 pos = prio + 50 - min(hiprio, 50)    # higher priority (larger positive number) raises position
                 break
 
-        # pos order: janitor/local (0), tag builds per branch order if any [1..50], !tag builds per branch order [51...]
+        # pos order: janitor/local (0), tag builds if any [1..50], !tag builds [51...]
 
         if not complete_at:
             date = datetime.min