Skip to content

Commit 55940f7

Browse files
aescolarjhedberg
authored andcommitted
tests bsim: Limit parallel build
The compile script had been modified to fully parallelize all images builds in 1de363d And has been kept building everything in parallel since then. Over time we have seen an increase in the number of hangs for this job in CI. This is understood as being the result of the number of images having increased, leading to a too high load on the worker machines which cause them to timeout their connection to the github CI scheduler. In b83a828 these jobs priority was lowered to aleviate this issue, but again we see an increased number of CI runner disconnects. Let's parallelize this compile jobs a bit less. With this change, we do not build anymore the sets of host ll and mesh test images in parallel but sequencially. On a local test this reduces peak load from ~1700 to ~700, and eliminates issues with system unresponsiveness; while there is no statistically measurable increase in overall build time. Note that the single audio image is still built in parallel to the other 3 sets, as this was seen to improve total build time by 2 seconds out of 1m51s. Signed-off-by: Alberto Escolar Piedras <[email protected]>
1 parent ebc8fda commit 55940f7

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

tests/bsim/bluetooth/compile.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,14 @@ mkdir -p ${WORK_DIR}
1818

1919
source ${ZEPHYR_BASE}/tests/bsim/sh_common.source
2020

21+
# Note: We do not parallelize the call into the build of the host, ll and mesh images as those
22+
# are already building many images in parallel in themselves, and otherwise we would be
23+
# launching too many parallel builds which can lead to a too high system load.
24+
# On the other hand the audio compile script, only builds one image. So we parallelize it with
25+
# the rest to save a couple of seconds.
2126
run_in_background ${ZEPHYR_BASE}/tests/bsim/bluetooth/audio/compile.sh
22-
run_in_background ${ZEPHYR_BASE}/tests/bsim/bluetooth/host/compile.sh
23-
run_in_background ${ZEPHYR_BASE}/tests/bsim/bluetooth/ll/compile.sh
24-
run_in_background ${ZEPHYR_BASE}/tests/bsim/bluetooth/mesh/compile.sh
27+
${ZEPHYR_BASE}/tests/bsim/bluetooth/host/compile.sh
28+
${ZEPHYR_BASE}/tests/bsim/bluetooth/ll/compile.sh
29+
${ZEPHYR_BASE}/tests/bsim/bluetooth/mesh/compile.sh
2530

2631
wait_for_background_jobs

0 commit comments

Comments
 (0)