Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions master/custom/workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(
tags=None,
branches=None,
not_branches=None,
parallel_builders=None,
parallel_builders=1,
parallel_tests=None,
timeout_factor=1,
exclude_test_resources=None,
Expand All @@ -40,7 +40,6 @@ def __init__(
self.tags = tags or set()
self.branches = branches
self.not_branches = not_branches
self.parallel_builders = parallel_builders
self.parallel_tests = parallel_tests
self.timeout_factor = timeout_factor
self.exclude_test_resources = exclude_test_resources or []
Expand All @@ -55,9 +54,13 @@ def __init__(
if settings.use_local_worker:
self.bb_worker = _worker.LocalWorker(name)
else:
self.bb_worker = _worker.Worker(name, str(pw),
notify_on_missing=emails,
keepalive_interval=KEEPALIVE)
self.bb_worker = _worker.Worker(
name,
str(pw),
notify_on_missing=emails,
keepalive_interval=KEEPALIVE,
max_builds=parallel_builders,
)

# Some of Itamar's workers are reprovisioned every Wednesday at 9am PT.
# Builds scheduled between 8am - 10am PT on Wednesdays will be delayed to
Expand Down
9 changes: 0 additions & 9 deletions master/master.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,6 @@ GIT_KWDS = {
c["builders"] = []
c["schedulers"] = []

# The following with the worker owners' agreement
cpulock = locks.WorkerLock(
"cpu",
maxCountForWorker={
w.name: w.parallel_builders for w in WORKERS if w.parallel_builders
},
)


def is_important_file(filename):
unimportant_prefixes = (
Expand Down Expand Up @@ -274,7 +266,6 @@ for branch in BRANCHES:
builddir=f"{branch.builddir_name}.{worker.name}{f.buildersuffix}",
factory=f,
tags=tags,
locks=[cpulock.access("counting")],
)

if worker.downtime:
Expand Down