[buildbot] phase1: run ForceBuilder on local worker
LEDE Commits
lede-commits at lists.infradead.org
Mon May 15 08:39:40 PDT 2023
ynezz pushed a commit to buildbot.git, branch master:
https://git.openwrt.org/d69e0a7fa12353cbdc51a827ee13f94d41f3cec6
commit d69e0a7fa12353cbdc51a827ee13f94d41f3cec6
Author: Thibaut VARÈNE <hacks at slashdirt.org>
AuthorDate: Wed Oct 26 22:53:12 2022 +0200
phase1: run ForceBuilder on local worker
There is no reason to send this over the network to some remote worker,
incurring latency for a purely housekeeping task that should be done on
the buildmaster host.
Signed-off-by: Thibaut VARÈNE <hacks at slashdirt.org>
---
phase1/master.cfg | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/phase1/master.cfg b/phase1/master.cfg
index 46a9f70..2b1b72a 100644
--- a/phase1/master.cfg
+++ b/phase1/master.cfg
@@ -38,6 +38,7 @@ from buildbot.steps.transfer import FileDownload
from buildbot.steps.transfer import FileUpload
from buildbot.steps.transfer import StringDownload
from buildbot.worker import Worker
+from buildbot.worker.local import LocalWorker
if not os.path.exists("twistd.pid"):
@@ -550,11 +551,14 @@ workerNames = [ ]
for worker in c['workers']:
workerNames.append(worker.workername)
+# add a single LocalWorker to handle the forcebuild builder
+c['workers'].append(LocalWorker("__local_force_build", max_builds=1))
+
force_factory = BuildFactory()
c['builders'].append(BuilderConfig(
name = "00_force_build",
- workernames = workerNames,
+ workername = "__local_force_build",
factory = force_factory))
for target in targets:
More information about the lede-commits
mailing list