Travis Build Speed-ups
cover Travis Build Speed-ups
Hi,
As QEMU has grown it has started to hit the Travis timeouts a lot more. These patches try and address that by selectively adding --disable-user and --disable-system to the place (and adding a new matrix entry).
: patch 0001/.travis.yml drop setting default log output.patch needs review : patch 0002/.travis.yml split default config into system and .patch needs review : patch 0003/.travis.yml add disable user with the rest of the.patch needs review : patch 0004/.travis.yml add disable tools to the modules buil.patch needs review
Alex Bennée (4):
.travis.yml: drop setting default log output .travis.yml: split default config into system and user .travis.yml: add --disable-user with the rest of the disables .travis.yml: add --disable-tools to the modules build
.travis.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
Signature · 1 line
2.16.2
PATCH 1/4 .travis.yml: drop setting default log output
The log backend is the default one, we don't need to explicitly set it.
--- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
.travis.yml +1 -1
@@ -50,7 +50,7 @@ env: - MAKEFLAGS="-j3" matrix: - CONFIG="" - - CONFIG="--enable-debug --enable-debug-tcg --enable-trace-backends=log" + - CONFIG="--enable-debug --enable-debug-tcg" - CONFIG="--disable-linux-aio --disable-cap-ng --disable-attr --disable-brlapi --disable-uuid --disable-libusb" - CONFIG="--enable-modules --disable-linux-user" - CONFIG="--with-coroutine=ucontext --disable-linux-user"
Signature · 1 line
2.16.2
Re: [Qemu-devel] [PATCH v1 1/4] .travis.yml: drop setting default log output
Quoted 12 lines · Alex Bennée
The log backend is the default one, we don't need to explicitly set it.
Signed-off-by Alex Bennée <[email protected]>--- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-).travis.yml +0
-0
.travis.yml env: · line 56
Quoted 8 lines
.travis.yml +1
-1@@ -50,7 +50,7 @@ env: - MAKEFLAGS="-j3" matrix: - CONFIG="" - - CONFIG="--enable-debug --enable-debug-tcg --enable-trace-backends=log" + - CONFIG="--enable-debug --enable-debug-tcg" - CONFIG="--disable-linux-aio --disable-cap-ng --disable-attr --disable-brlapi --disable-uuid --disable-libusb" - CONFIG="--enable-modules --disable-linux-user" - CONFIG="--with-coroutine=ucontext --disable-linux-user"
Regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
PATCH 2/4 .travis.yml: split default config into system and user
In reply to Alex BennéeAs the build times have risen we keep timing out. Split the default config into system and user builds.
--- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
.travis.yml +2 -1
@@ -49,7 +49,8 @@ env: - TEST_CMD="make check" - MAKEFLAGS="-j3" matrix: - - CONFIG="" + - CONFIG="--disable-system" + - CONFIG="--disable-user" - CONFIG="--enable-debug --enable-debug-tcg" - CONFIG="--disable-linux-aio --disable-cap-ng --disable-attr --disable-brlapi --disable-uuid --disable-libusb" - CONFIG="--enable-modules --disable-linux-user"
Signature · 1 line
2.16.2
Re: [Qemu-devel] [PATCH v1 2/4] .travis.yml: split default config into system and user
Quoted 13 lines · Alex Bennée
As the build times have risen we keep timing out. Split the default config into system and user builds.
Signed-off-by Alex Bennée <[email protected]>--- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-).travis.yml +0
-0
.travis.yml env: · line 53
Quoted 6 lines
.travis.yml +2
-1@@ -49,7 +49,8 @@ env: - TEST_CMD="make check" - MAKEFLAGS="-j3" matrix: - - CONFIG="" + - CONFIG="--disable-system" + - CONFIG="--disable-user"
Could add --disable-tools here too, just to avoid duplication between the two entries but that's minor.
.travis.yml env: · line 56
Quoted 3 lines
.travis.yml +0
-0- CONFIG="--enable-debug --enable-debug-tcg" - CONFIG="--disable-linux-aio --disable-cap-ng --disable-attr --disable-brlapi --disable-uuid --disable-libusb" - CONFIG="--enable-modules --disable-linux-user"
Regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
PATCH 3/4 .travis.yml: add --disable-user with the rest of the disables
In reply to Alex BennéeAs all the disabled features only affect system emulation we might as well disable user mode to save compile time.
--- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
.travis.yml +1 -1
@@ -52,7 +52,7 @@ env: - CONFIG="--disable-system" - CONFIG="--disable-user" - CONFIG="--enable-debug --enable-debug-tcg" - - CONFIG="--disable-linux-aio --disable-cap-ng --disable-attr --disable-brlapi --disable-uuid --disable-libusb" + - CONFIG="--disable-linux-aio --disable-cap-ng --disable-attr --disable-brlapi --disable-uuid --disable-libusb --disable-user" - CONFIG="--enable-modules --disable-linux-user" - CONFIG="--with-coroutine=ucontext --disable-linux-user" - CONFIG="--with-coroutine=sigaltstack --disable-linux-user"
Signature · 1 line
2.16.2
Re: [Qemu-devel] [PATCH v1 3/4] .travis.yml: add --disable-user with the rest of the disables
Quoted 13 lines · Alex Bennée
As all the disabled features only affect system emulation we might as well disable user mode to save compile time.
Signed-off-by Alex Bennée <[email protected]>--- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-).travis.yml +0
-0
.travis.yml env: · line 58
Quoted 8 lines
.travis.yml +1
-1@@ -52,7 +52,7 @@ env: - CONFIG="--disable-system" - CONFIG="--disable-user" - CONFIG="--enable-debug --enable-debug-tcg" - - CONFIG="--disable-linux-aio --disable-cap-ng --disable-attr --disable-brlapi --disable-uuid --disable-libusb" + - CONFIG="--disable-linux-aio --disable-cap-ng --disable-attr --disable-brlapi --disable-uuid --disable-libusb --disable-user" - CONFIG="--enable-modules --disable-linux-user" - CONFIG="--with-coroutine=ucontext --disable-linux-user" - CONFIG="--with-coroutine=sigaltstack --disable-linux-user"
Regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
PATCH 4/4 .travis.yml: add --disable-tools to the modules build
In reply to Alex BennéeThe tools are already built elsewhere so we might as well not build it here as we just need to test the modules build of QEMU itself.
--- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
.travis.yml +1 -1
@@ -53,7 +53,7 @@ env: - CONFIG="--disable-user" - CONFIG="--enable-debug --enable-debug-tcg" - CONFIG="--disable-linux-aio --disable-cap-ng --disable-attr --disable-brlapi --disable-uuid --disable-libusb --disable-user" - - CONFIG="--enable-modules --disable-linux-user" + - CONFIG="--enable-modules --disable-tools --disable-linux-user" - CONFIG="--with-coroutine=ucontext --disable-linux-user" - CONFIG="--with-coroutine=sigaltstack --disable-linux-user" git:
Signature · 1 line
2.16.2
Re: [Qemu-devel] [PATCH v1 4/4] .travis.yml: add --disable-tools to the modules build
Quoted 13 lines · Alex Bennée
The tools are already built elsewhere so we might as well not build it here as we just need to test the modules build of QEMU itself.
Signed-off-by Alex Bennée <[email protected]>--- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-).travis.yml +0
-0
.travis.yml env: · line 59
Quoted 8 lines
.travis.yml +1
-1@@ -53,7 +53,7 @@ env: - CONFIG="--disable-user" - CONFIG="--enable-debug --enable-debug-tcg" - CONFIG="--disable-linux-aio --disable-cap-ng --disable-attr --disable-brlapi --disable-uuid --disable-libusb --disable-user" - - CONFIG="--enable-modules --disable-linux-user" + - CONFIG="--enable-modules --disable-tools --disable-linux-user" - CONFIG="--with-coroutine=ucontext --disable-linux-user" - CONFIG="--with-coroutine=sigaltstack --disable-linux-user" git:
Modules affects the block drivers in particular, which could in theory affect the qemu-img, qemu-io and qemu-nbd tools, so possibly worth keeping that enabled.... but only if we actually run those tools during the job otherwise we're not likely to catch any problems ?
Regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Re: [Qemu-devel] [PATCH v1 4/4] .travis.yml: add --disable-tools to the modules build
Quoted 19 lines · Daniel P. Berrangé
Quoted 18 lines · Alex Bennée
The tools are already built elsewhere so we might as well not build it here as we just need to test the modules build of QEMU itself.
Signed-off-by Alex Bennée <[email protected]>--- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-).travis.yml +1
-1@@ -53,7 +53,7 @@ env: - CONFIG="--disable-user" - CONFIG="--enable-debug --enable-debug-tcg" - CONFIG="--disable-linux-aio --disable-cap-ng --disable-attr --disable-brlapi --disable-uuid --disable-libusb --disable-user" - - CONFIG="--enable-modules --disable-linux-user" + - CONFIG="--enable-modules --disable-tools --disable-linux-user"
Quoted 8 lines
.travis.yml env: · line 59
Quoted 3 lines
.travis.yml +0
-0- CONFIG="--with-coroutine=ucontext --disable-linux-user" - CONFIG="--with-coroutine=sigaltstack --disable-linux-user" git:Modules affects the block drivers in particular, which could in theory affect the qemu-img, qemu-io and qemu-nbd tools, so possibly worth keeping that enabled.... but only if we actually run those tools during the job otherwise we're not likely to catch any problems ?
OK, I've dropped this for the pull-req as it shouldn't affect our timeouts anyway.
Quoted 4 lines
Regards,
Daniel
--
Alex Bennée