Skip to content

Commit 20ab40f

Browse files
committed
Allow setting custom buildfactory with local worker
Currently, the local worker unconditionally uses a UnixBuild. However, when working on changes to other factories, it is useful to be able to customize this in settings.yaml to run the builder locally. This PR adds a setting to allow modifying the factory used, while falling back to UnixBuild if nothing is set.
1 parent 18e6b53 commit 20ab40f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

master/custom/builders.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,8 @@
334334
def get_builders(settings):
335335
# Override with a default simple worker if we are using local workers
336336
if settings.use_local_worker:
337-
return [("Test Builder", "local-worker", UnixBuild, STABLE, NO_TIER)]
337+
local_buildfactory = globals().get(settings.local_worker_buildfactory, UnixBuild)
338+
return [("Test Builder", "local-worker", local_buildfactory, STABLE, NO_TIER)]
338339

339340
all_builders = []
340341
for builders, stability, tier in (

0 commit comments

Comments
 (0)