From ce4ca59c5882bdc1ce0cdedb634b8eca22ab1b36 Mon Sep 17 00:00:00 2001 From: Vladimir Smitka Date: Fri, 11 Sep 2026 19:46:11 +0000 Subject: [PATCH 1/2] EXPERIMENT: two pytest workers in the bsim shards Not for merge as it stands: pytest-xdist is installed in the job rather than in requirements-dev.txt, so that this change touches only a file in IGNORE_BOARD and the run builds no boards. The question is whether the bsim tests stay green when the only thing they compete with is another bsim simulation. Earlier runs parallelised the whole suite, where the asan native tests ran alongside: four workers lost five tests, two workers lost one. --- .github/workflows/run-zephyr-tests.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-zephyr-tests.yml b/.github/workflows/run-zephyr-tests.yml index e99da28fe42..7e8e3aef4d3 100644 --- a/.github/workflows/run-zephyr-tests.yml +++ b/.github/workflows/run-zephyr-tests.yml @@ -22,10 +22,10 @@ jobs: pytest_args: tests/ --ignore=tests/bsim - shard: nrf5340bsim boards: native_nrf5340bsim - pytest_args: tests/bsim -k native_nrf5340bsim + pytest_args: tests/bsim -k native_nrf5340bsim -n 2 --dist loadfile - shard: nrf54lm20bsim boards: native_nrf54lm20bsim - pytest_args: tests/bsim -k native_nrf54lm20bsim + pytest_args: tests/bsim -k native_nrf54lm20bsim -n 2 --dist loadfile env: CP_VERSION: ${{ inputs.cp-version }} steps: @@ -50,6 +50,9 @@ jobs: target: zephyr-cp - name: Set up external uses: ./.github/actions/deps/external + - name: Install pytest-xdist + if: contains(matrix.shard, 'bsim') + run: pip install pytest-xdist - name: Build bsim if: contains(matrix.shard, 'bsim') run: make -j $(nproc) everything From 987710fcf3cceac5c960c90bde3ec7a5fe3b0b75 Mon Sep 17 00:00:00 2001 From: Vladimir Smitka Date: Fri, 11 Sep 2026 20:23:19 +0000 Subject: [PATCH 2/2] EXPERIMENT: second run, same code