Skip to content

Commit 676f2e3

Browse files
authored
Allow setting custom buildfactory with local worker (#604)
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 dd9230c commit 676f2e3

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
@@ -336,7 +336,8 @@
336336
def get_builders(settings):
337337
# Override with a default simple worker if we are using local workers
338338
if settings.use_local_worker:
339-
return [("Test Builder", "local-worker", UnixBuild, STABLE, NO_TIER)]
339+
local_buildfactory = globals().get(settings.local_worker_buildfactory, UnixBuild)
340+
return [("Test Builder", "local-worker", local_buildfactory, STABLE, NO_TIER)]
340341

341342
all_builders = []
342343
for builders, stability, tier in (

0 commit comments

Comments
 (0)