From: Paolo Bonzini <pbonzini@redhat.com>
To: qemu-devel@nongnu.org
Cc: alex.bennee@linaro.org
Subject: [PATCH 3/3] ci: add -j to all "make" jobs
Date: Tue, 18 May 2021 10:41:39 +0200 [thread overview]
Message-ID: <20210518084139.97957-4-pbonzini@redhat.com> (raw)
In-Reply-To: <20210518084139.97957-1-pbonzini@redhat.com>
Run the tests in parallel, as that can greatly speed up the jobs.
"meson test" is able to report failures to the terminal in a way
that is readable enough even when tests are run in parallel.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
.cirrus.yml | 18 +++++++++---------
.gitlab-ci.yml | 8 ++++----
.travis.yml | 10 +++++-----
3 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/.cirrus.yml b/.cirrus.yml
index 340fd395c0..fcf0f34a4c 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -32,11 +32,11 @@ macos_task:
--extra-cflags='-Wno-error=deprecated-declarations'
|| { cat config.log meson-logs/meson-log.txt; exit 1; }
- gmake -j$(sysctl -n hw.ncpu)
- - gmake check-unit V=1
+ - gmake -j$(sysctl -n hw.ncpu) check-unit V=1
- gmake check-block V=1
- - gmake check-qapi-schema V=1
- - gmake check-softfloat V=1
- - gmake check-qtest-x86_64 V=1
+ - gmake -j$(sysctl -n hw.ncpu) check-qapi-schema V=1
+ - gmake -j$(sysctl -n hw.ncpu) check-softfloat V=1
+ - gmake -j$(sysctl -n hw.ncpu) check-qtest-x86_64 V=1
- gmake install DESTDIR=$PWD/destdir
macos_xcode_task:
@@ -51,11 +51,11 @@ macos_xcode_task:
- ../configure --extra-cflags='-Wno-error=deprecated-declarations' --enable-modules --disable-strip
--enable-werror --cc=clang || { cat config.log meson-logs/meson-log.txt; exit 1; }
- gmake -j$(sysctl -n hw.ncpu)
- - gmake check-unit V=1
+ - gmake -j$(sysctl -n hw.ncpu) check-unit V=1
- gmake check-block V=1
- - gmake check-qapi-schema V=1
- - gmake check-softfloat V=1
- - gmake check-qtest-x86_64 V=1
+ - gmake -j$(sysctl -n hw.ncpu) check-qapi-schema V=1
+ - gmake -j$(sysctl -n hw.ncpu) check-softfloat V=1
+ - gmake -j$(sysctl -n hw.ncpu) check-qtest-x86_64 V=1
- gmake install DESTDIR=$PWD/destdir
windows_msys2_task:
@@ -163,5 +163,5 @@ windows_msys2_task:
- C:\tools\msys64\usr\bin\bash.exe -lc "cd build && make -j8"
- exit $LastExitCode
test_script:
- - C:\tools\msys64\usr\bin\bash.exe -lc "cd build && make V=1 check"
+ - C:\tools\msys64\usr\bin\bash.exe -lc "cd build && make -j4 V=1 check"
- exit $LastExitCode
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3f0d86cf0a..4c0cc47c25 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -50,7 +50,7 @@ include:
- cd build
- find . -type f -exec touch {} +
# Avoid recompiling by hiding ninja with NINJA=":"
- - make NINJA=":" $MAKE_CHECK_ARGS
+ - make -j"$JOBS" NINJA=":" $MAKE_CHECK_ARGS
.meson_test_template: &meson_test_definition
artifacts:
@@ -402,8 +402,8 @@ build-tcg-disabled:
- ../configure --disable-tcg --audio-drv-list="" --with-coroutine=ucontext
|| { cat config.log meson-logs/meson-log.txt && exit 1; }
- make -j"$JOBS"
- - make check-unit
- - make check-qapi-schema
+ - make check-unit -j"$JOBS"
+ - make check-qapi-schema -j"$JOBS"
- cd tests/qemu-iotests/
- ./check -raw 001 002 003 004 005 008 009 010 011 012 021 025 032 033 048
052 063 077 086 101 104 106 113 148 150 151 152 157 159 160 163
@@ -689,7 +689,7 @@ build-oss-fuzz:
"${fuzzer}" -runs=1 -seed=1 || exit 1 ;
done
# Unrelated to fuzzer: run some tests with -fsanitize=address
- - cd build-oss-fuzz && make check-qtest-i386 check-unit MTESTARGS="-t 2"
+ - cd build-oss-fuzz && make check-qtest-i386 check-unit -j"$JOBS" MTESTARGS="-t 2"
build-tci:
extends: .native_build_job_template
diff --git a/.travis.yml b/.travis.yml
index 4609240b5a..42e8f0b348 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -73,7 +73,7 @@ env:
- BUILD_DIR="build"
- BASE_CONFIG="--disable-docs --disable-tools"
- TEST_BUILD_CMD=""
- - TEST_CMD="make check V=1"
+ - TEST_CMD="make check -j${JOBS} V=1"
# This is broadly a list of "mainline" softmmu targets which have support across the major distros
- MAIN_SOFTMMU_TARGETS="aarch64-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu"
- CCACHE_SLOPPINESS="include_file_ctime,include_file_mtime"
@@ -151,7 +151,7 @@ jobs:
# Tests dependencies
- genisoimage
env:
- - TEST_CMD="make check check-tcg V=1"
+ - TEST_CMD="make check check-tcg -j${JOBS} V=1"
- CONFIG="--disable-containers --target-list=${MAIN_SOFTMMU_TARGETS} --cxx=/bin/false"
- UNRELIABLE=true
@@ -185,7 +185,7 @@ jobs:
# Tests dependencies
- genisoimage
env:
- - TEST_CMD="make check check-tcg V=1"
+ - TEST_CMD="make check check-tcg -j${JOBS} V=1"
- CONFIG="--disable-containers --target-list=ppc64-softmmu,ppc64le-linux-user"
- name: "[s390x] GCC check-tcg"
@@ -218,7 +218,7 @@ jobs:
# Tests dependencies
- genisoimage
env:
- - TEST_CMD="make check check-tcg V=1"
+ - TEST_CMD="make check check-tcg -j${JOBS} V=1"
- CONFIG="--disable-containers --target-list=${MAIN_SOFTMMU_TARGETS},s390x-linux-user"
- UNRELIABLE=true
script:
@@ -301,7 +301,7 @@ jobs:
- libvte-2.91-dev
- ninja-build
env:
- - TEST_CMD="make check-unit"
+ - TEST_CMD="make check-unit -j${JOBS}"
- CONFIG="--disable-containers --disable-tcg --enable-kvm
--disable-tools --host-cc=clang --cxx=clang++"
- UNRELIABLE=true
--
2.31.1
next prev parent reply other threads:[~2021-05-18 8:49 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-18 8:41 [PATCH 0/3] Small CI improvements Paolo Bonzini
2021-05-18 8:41 ` [PATCH 1/3] cirrus-ci: test installation Paolo Bonzini
2021-05-18 13:50 ` Alex Bennée
2021-05-19 14:44 ` Paolo Bonzini
2021-05-18 8:41 ` [PATCH 2/3] ci: do not use #processors+1 jobs, #processors is enough Paolo Bonzini
2021-05-18 8:56 ` Philippe Mathieu-Daudé
2021-05-18 10:49 ` Thomas Huth
2021-05-18 12:30 ` Paolo Bonzini
2021-05-18 12:43 ` Daniel P. Berrangé
2021-05-18 12:48 ` Paolo Bonzini
2021-05-18 8:41 ` Paolo Bonzini [this message]
2021-05-18 8:58 ` [PATCH 3/3] ci: add -j to all "make" jobs Philippe Mathieu-Daudé
2021-05-19 15:28 ` [PATCH 0/3] Small CI improvements Alex Bennée
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210518084139.97957-4-pbonzini@redhat.com \
--to=pbonzini@redhat.com \
--cc=alex.bennee@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).