From e74c85cdec5981d086e43f77e37b5f2a3ce798e1 Mon Sep 17 00:00:00 2001 From: Pierrick Bouvier Date: Wed, 4 Dec 2024 13:17:55 -0800 Subject: [PATCH] ci: run tests in parallel Signed-off-by: Pierrick Bouvier --- .github/workflows/build.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bbe82bae54cee..876daa83dfecd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -272,9 +272,9 @@ jobs: - run: > podman run --init --privileged --rm -it -v $(pwd):$(pwd) -w $(pwd) docker.io/pbolinaro/qemu-ci:debian-all-test-cross - bash -cx "env ASAN_OPTIONS=detect_leaks=0 make -k check-tcg" + bash -cx "env ASAN_OPTIONS=detect_leaks=0 make -k -j $(nproc) check-tcg" - # run all meson tests, including functional. Run -j1 to avoid sporadic issues. + # run all meson tests, including functional. # block tests are not ran because they don't support sanitizers: # https://gitlab.com/qemu-project/qemu/-/blob/master/tests/qemu-iotests/meson.build check: @@ -291,7 +291,7 @@ jobs: - run: > podman run --init --privileged --rm -it -v /dev/kvm:/dev/kvm -v $(pwd):$(pwd) -w $(pwd) docker.io/pbolinaro/qemu-ci:debian-precache-tests - bash -cx "env ASAN_OPTIONS=detect_leaks=0 make -k check SPEED=thorough TIMEOUT_MULTIPLIER=5 V=1" + bash -cx "env ASAN_OPTIONS=detect_leaks=0 make -k -j $(nproc) check SPEED=thorough TIMEOUT_MULTIPLIER=5 V=1" # iotests do not support sanitizers, so we run them in their own job check-block: @@ -308,7 +308,7 @@ jobs: - run: > podman run --init --privileged --rm -it -v /dev/kvm:/dev/kvm -v $(pwd):$(pwd) -w $(pwd) docker.io/pbolinaro/qemu-ci:debian-precache-tests - bash -cx "./build/pyvenv/bin/meson test -C build --suite block --suite block-slow --suite block-thorough -j 1 --timeout-multiplier 5 --verbose" + bash -cx "./build/pyvenv/bin/meson test -C build --suite block --suite block-slow --suite block-thorough -j $(nproc) --timeout-multiplier 5 --verbose" check-avocado: needs: checkapply @@ -326,4 +326,4 @@ jobs: - run: > podman run --init --privileged --rm -it -v /dev/kvm:/dev/kvm -v $(pwd):$(pwd) -w $(pwd) docker.io/pbolinaro/qemu-ci:debian-precache-tests - bash -cx "env ASAN_OPTIONS=detect_leaks=0 make -k check-avocado V=1" + bash -cx "env ASAN_OPTIONS=detect_leaks=0 make -k -j $(nproc) check-avocado V=1"