[buildbot] phase1: always front-run the 00_force_build builder

LEDE Commits lede-commits at lists.infradead.org
Mon May 15 08:39:36 PDT 2023


ynezz pushed a commit to buildbot.git, branch master:
https://git.openwrt.org/846aa0238b82a3d1cea71b4e893d2cdd3d6c3802

commit 846aa0238b82a3d1cea71b4e893d2cdd3d6c3802
Author: Thibaut VARÈNE <hacks at slashdirt.org>
AuthorDate: Wed Oct 26 19:30:25 2022 +0200

    phase1: always front-run the 00_force_build builder
    
    Signed-off-by: Thibaut VARÈNE <hacks at slashdirt.org>
---
 phase1/master.cfg | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/phase1/master.cfg b/phase1/master.cfg
index b65d3af..0562fcf 100644
--- a/phase1/master.cfg
+++ b/phase1/master.cfg
@@ -220,6 +220,11 @@ def prioritizeBuilders(master, builders):
 	def bldr_sort(item):
 		(complete_at, bldr) = item
 
+		if bldr.name == "00_force_build":
+			date = datetime.min
+			complete_at = date.replace(tzinfo=tzutc())
+			return (complete_at, bldr.name)
+
 		if not complete_at:
 			date = datetime.min
 			complete_at = date.replace(tzinfo=tzutc())




More information about the lede-commits mailing list