Skip to content

Commit

Permalink
ci: run tests in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
pbo-linaro committed Dec 4, 2024
1 parent d3dac40 commit 847ac81
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 V=1"
bash -cx "env ASAN_OPTIONS=detect_leaks=0 make -k -j $(nproc) check-tcg V=1"
# 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:
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -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"

0 comments on commit 847ac81

Please sign in to comment.