[buildbot] phase2: do not exceed nproc build concurrency

LEDE Commits lede-commits at lists.infradead.org
Thu Nov 16 03:48:33 PST 2023


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

commit b0504ebd44183b5e7df5f7df021ab5baa0adbdb9
Author: Thibaut VARÈNE <hacks at slashdirt.org>
AuthorDate: Sat Nov 11 16:12:37 2023 +0100

    phase2: do not exceed nproc build concurrency
    
    Align with phase1 (2ad0478)
    
    Signed-off-by: Thibaut VARÈNE <hacks at slashdirt.org>
---
 phase2/master.cfg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/phase2/master.cfg b/phase2/master.cfg
index 5e8b71c..7342363 100644
--- a/phase2/master.cfg
+++ b/phase2/master.cfg
@@ -289,7 +289,7 @@ def GetDirectorySuffix(props):
 
 def GetNumJobs(props):
 	if props.hasProperty("workername") and props.hasProperty("nproc"):
-		return ((int(props["nproc"]) / max_builds[props["workername"]]) + 1)
+		return (int(props["nproc"]) / max_builds[props["workername"]])
 	else:
 		return 1
 




More information about the lede-commits mailing list