Skip to contentSkip to conversation

docker: Add test-block

PATCH Superseded Fam Zheng 6 participants 25 messages May 5, 2017 – May 8, 2017

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Fam Zheng

author
#0 lore raw

cover docker: Add test-block

A few tweaks to the docker images and running commands allow us to run qemu-iotests in the fedora container. This will be added to the patchew test cases later.

Fam Zheng (5):
docker: Run tests with current user
docker: Add bzip2 and hostname to fedora image
docker: Use unconfined security profile
docker: Add libaio to fedora image
docker: Add test-block

 tests/docker/Makefile.include          |  3 ++-
 tests/docker/dockerfiles/fedora.docker |  4 ++--
 tests/docker/test-block                | 21 +++++++++++++++++++++
 3 files changed, 25 insertions(+), 3 deletions(-)
 create mode 100755 tests/docker/test-block
Signature · 1 line
2.9.3
author
#1 lore raw

PATCH 1/5 docker: Run tests with current user

We've used --add-current-user to create a user in the image, use it to run tests, because root has too much priviledge, and can surprise test cases.

---
 tests/docker/Makefile.include | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/docker/Makefile.include +1 -1
index 03eda37..0ed8c3d 100644
@@ -126,7 +126,7 @@ docker-run: docker-qemu-src
 			"  COPYING $(EXECUTABLE) to $(IMAGE)"))
 	$(call quiet-command,						\
 		$(SRC_PATH)/tests/docker/docker.py run 			\
-			-t 						\
+			$(if $(NOUSER),,-u $(shell id -u)) -t 		\
 			$(if $V,,--rm) 					\
 			$(if $(DEBUG),-i,--net=none) 			\
 			-e TARGET_LIST=$(TARGET_LIST) 			\
Signature · 1 line
2.9.3
Reviewed-by on v1 1/5
#2 lore raw

Re: [Qemu-devel] [PATCH 1/5] docker: Run tests with current user

Quoted 5 lines · Fam Zheng

We've used --add-current-user to create a user in the image, use it to run tests, because root has too much priviledge, and can surprise test cases.

Quoted 9 lines
---
 tests/docker/Makefile.include | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/docker/Makefile.include +0 -0
index 03eda37..0ed8c3d 100644

tests/docker/Makefile.include docker-run: docker-qemu-src · line 132

Quoted 8 lines
tests/docker/Makefile.include +1 -1
@@ -126,7 +126,7 @@ docker-run: docker-qemu-src
 			"  COPYING $(EXECUTABLE) to $(IMAGE)"))
 	$(call quiet-command,						\
 		$(SRC_PATH)/tests/docker/docker.py run 			\
-			-t 						\
+			$(if $(NOUSER),,-u $(shell id -u)) -t 		\
 			$(if $V,,--rm) 					\
 			$(if $(DEBUG),-i,--net=none) 			\
 			-e TARGET_LIST=$(TARGET_LIST) 			\

--
Alex Bennée

Reviewed-by on v1 1/5
#3 lore raw

Re: [Qemu-devel] [PATCH 1/5] docker: Run tests with current user

In reply to Fam Zheng
Quoted 5 lines · Fam Zheng

We've used --add-current-user to create a user in the image, use it to run tests, because root has too much priviledge, and can surprise test cases.

Quoted 18 lines
---
 tests/docker/Makefile.include | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/docker/Makefile.include +1 -1
index 03eda37..0ed8c3d 100644
@@ -126,7 +126,7 @@ docker-run: docker-qemu-src
 			"  COPYING $(EXECUTABLE) to $(IMAGE)"))
 	$(call quiet-command,						\
 		$(SRC_PATH)/tests/docker/docker.py run 			\
-			-t 						\
+			$(if $(NOUSER),,-u $(shell id -u)) -t 		\
 			$(if $V,,--rm) 					\
 			$(if $(DEBUG),-i,--net=none) 			\
 			-e TARGET_LIST=$(TARGET_LIST) 			\
author
#4 lore raw

PATCH 2/5 docker: Add bzip2 and hostname to fedora image

In reply to Fam Zheng

It is used by qemu-iotests.

---
 tests/docker/dockerfiles/fedora.docker | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/docker/dockerfiles/fedora.docker +1 -1
index c4f80ad..39f6b58 100644
@@ -1,6 +1,6 @@
 FROM fedora:latest
 ENV PACKAGES \
-    ccache git tar PyYAML sparse flex bison python2 \
+    ccache git tar PyYAML sparse flex bison python2 bzip2 hostname \
     glib2-devel pixman-devel zlib-devel SDL-devel libfdt-devel \
     gcc gcc-c++ clang make perl which bc findutils \
     mingw32-pixman mingw32-glib2 mingw32-gmp mingw32-SDL mingw32-pkg-config \
Signature · 1 line
2.9.3
Reviewed-by on v1 2/5
#5 lore raw

Re: [Qemu-devel] [PATCH 2/5] docker: Add bzip2 and hostname to fedora image

Quoted 3 lines · Fam Zheng

It is used by qemu-iotests.

Quoted 9 lines
---
 tests/docker/dockerfiles/fedora.docker | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/docker/dockerfiles/fedora.docker +0 -0
index c4f80ad..39f6b58 100644

tests/docker/dockerfiles/fedora.docker line 6

Quoted 7 lines
tests/docker/dockerfiles/fedora.docker +1 -1
@@ -1,6 +1,6 @@
 FROM fedora:latest
 ENV PACKAGES \
-    ccache git tar PyYAML sparse flex bison python2 \
+    ccache git tar PyYAML sparse flex bison python2 bzip2 hostname \
     glib2-devel pixman-devel zlib-devel SDL-devel libfdt-devel \
     gcc gcc-c++ clang make perl which bc findutils \
     mingw32-pixman mingw32-glib2 mingw32-gmp mingw32-SDL mingw32-pkg-config \

--
Alex Bennée

Reviewed-by on v1 2/5
#6 lore raw

Re: [Qemu-devel] [PATCH 2/5] docker: Add bzip2 and hostname to fedora image

In reply to Fam Zheng
Quoted 3 lines · Fam Zheng

It is used by qemu-iotests.

Quoted 17 lines
---
 tests/docker/dockerfiles/fedora.docker | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/docker/dockerfiles/fedora.docker +1 -1
index c4f80ad..39f6b58 100644
@@ -1,6 +1,6 @@
 FROM fedora:latest
 ENV PACKAGES \
-    ccache git tar PyYAML sparse flex bison python2 \
+    ccache git tar PyYAML sparse flex bison python2 bzip2 hostname \
     glib2-devel pixman-devel zlib-devel SDL-devel libfdt-devel \
     gcc gcc-c++ clang make perl which bc findutils \
     mingw32-pixman mingw32-glib2 mingw32-gmp mingw32-SDL mingw32-pkg-config \
author
#7 lore raw

PATCH 3/5 docker: Use unconfined security profile

In reply to Fam Zheng

Some by default blocked syscalls are required to run tests for example userfaultfd.

---
 tests/docker/Makefile.include | 1 +
 1 file changed, 1 insertion(+)
tests/docker/Makefile.include +1 -0
index 0ed8c3d..09d157c 100644
@@ -127,6 +127,7 @@ docker-run: docker-qemu-src
 	$(call quiet-command,						\
 		$(SRC_PATH)/tests/docker/docker.py run 			\
 			$(if $(NOUSER),,-u $(shell id -u)) -t 		\
+			--security-opt seccomp=unconfined		\
 			$(if $V,,--rm) 					\
 			$(if $(DEBUG),-i,--net=none) 			\
 			-e TARGET_LIST=$(TARGET_LIST) 			\
Signature · 1 line
2.9.3
#8 lore raw

Re: [Qemu-devel] [PATCH 3/5] docker: Use unconfined security profile

Quoted 2 lines · Fam Zheng

Some by default blocked syscalls are required to run tests for example userfaultfd.

Is there any way the tests could DoS the host? I guess you could achieve the same running the iotests directly from make but it does seem we should confine the docker guest as much as possible.

Quoted 11 lines
---
 tests/docker/Makefile.include | 1 +
 1 file changed, 1 insertion(+)
tests/docker/Makefile.include +0 -0
index 0ed8c3d..09d157c 100644

tests/docker/Makefile.include docker-run: docker-qemu-src · line 133

Quoted 7 lines
tests/docker/Makefile.include +1 -0
@@ -127,6 +127,7 @@ docker-run: docker-qemu-src
 	$(call quiet-command,						\
 		$(SRC_PATH)/tests/docker/docker.py run 			\
 			$(if $(NOUSER),,-u $(shell id -u)) -t 		\
+			--security-opt seccomp=unconfined		\
 			$(if $V,,--rm) 					\
 			$(if $(DEBUG),-i,--net=none) 			\
 			-e TARGET_LIST=$(TARGET_LIST) 			\

--
Alex Bennée

author
#9 lore raw

Re: [Qemu-devel] [PATCH 3/5] docker: Use unconfined security profile

Quoted 9 lines · Alex Bennée
Quoted 2 lines · Fam Zheng

Some by default blocked syscalls are required to run tests for example userfaultfd.

Is there any way the tests could DoS the host? I guess you could achieve the same running the iotests directly from make but it does seem we should confine the docker guest as much as possible.

I don't know the answer to the security question, but if a confined docker environment is full of pitfalls and unpleasant to work with, it won't grow that much.

Patchew runs this in a VM, so it's not a big problem to me.

Quoted 23 lines
Quoted 12 lines
---
 tests/docker/Makefile.include | 1 +
 1 file changed, 1 insertion(+)
tests/docker/Makefile.include +0 -0
index 0ed8c3d..09d157c 100644

tests/docker/Makefile.include docker-run: docker-qemu-src · line 133

Quoted 7 lines
tests/docker/Makefile.include +1 -0
@@ -127,6 +127,7 @@ docker-run: docker-qemu-src
 	$(call quiet-command,						\
 		$(SRC_PATH)/tests/docker/docker.py run 			\
 			$(if $(NOUSER),,-u $(shell id -u)) -t 		\
+			--security-opt seccomp=unconfined		\
 			$(if $V,,--rm) 					\
 			$(if $(DEBUG),-i,--net=none) 			\
 			-e TARGET_LIST=$(TARGET_LIST) 			\

--
Alex Bennée

#10 lore raw

Re: [Qemu-devel] [PATCH 3/5] docker: Use unconfined security profile

In reply to Fam Zheng

Hi Fam, Alex, Paolo,

Quoted 13 lines · Fam Zheng

Some by default blocked syscalls are required to run tests for example userfaultfd.

---
 tests/docker/Makefile.include | 1 +
 1 file changed, 1 insertion(+)
tests/docker/Makefile.include +0 -0
index 0ed8c3d..09d157c 100644

tests/docker/Makefile.include docker-run: docker-qemu-src · line 130

Quoted 4 lines
tests/docker/Makefile.include +1 -0
@@ -127,6 +127,7 @@ docker-run: docker-qemu-src
 	$(call quiet-command,						\
 		$(SRC_PATH)/tests/docker/docker.py run 			\
 			$(if $(NOUSER),,-u $(shell id -u)) -t 		\
+			--security-opt seccomp=unconfined		\

I think this should be an option in the matrix, and eventually run tests using userfaultfd() apart.

                $(if $(UNCONFINED),,--security-opt seccomp=unconfined)

I'm having the same problem with getcontext() using x32 ABI.

tests/docker/Makefile.include docker-run: docker-qemu-src · line 133

Quoted 4 lines
tests/docker/Makefile.include +0 -0
 			$(if $V,,--rm) 					\
 			$(if $(DEBUG),-i,--net=none) 			\
 			-e TARGET_LIST=$(TARGET_LIST) 			\

Regards,

Phil.

author
#11 lore raw

PATCH 4/5 docker: Add libaio to fedora image

In reply to Fam Zheng
---
 tests/docker/dockerfiles/fedora.docker | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/docker/dockerfiles/fedora.docker +1 -1
index 39f6b58..4eaa8ed 100644
@@ -2,7 +2,7 @@ FROM fedora:latest
 ENV PACKAGES \
     ccache git tar PyYAML sparse flex bison python2 bzip2 hostname \
     glib2-devel pixman-devel zlib-devel SDL-devel libfdt-devel \
-    gcc gcc-c++ clang make perl which bc findutils \
+    gcc gcc-c++ clang make perl which bc findutils libaio-devel \
     mingw32-pixman mingw32-glib2 mingw32-gmp mingw32-SDL mingw32-pkg-config \
     mingw32-gtk2 mingw32-gtk3 mingw32-gnutls mingw32-nettle mingw32-libtasn1 \
     mingw32-libjpeg-turbo mingw32-libpng mingw32-curl mingw32-libssh2 \
Signature · 1 line
2.9.3
Reviewed-by on v1 4/5
#12 lore raw

Re: [Qemu-devel] [PATCH 4/5] docker: Add libaio to fedora image

Quoted 1 line · Fam Zheng
Quoted 9 lines
---
 tests/docker/dockerfiles/fedora.docker | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/docker/dockerfiles/fedora.docker +0 -0
index 39f6b58..4eaa8ed 100644

tests/docker/dockerfiles/fedora.docker FROM fedora:latest · line 8

Quoted 8 lines
tests/docker/dockerfiles/fedora.docker +1 -1
@@ -2,7 +2,7 @@ FROM fedora:latest
 ENV PACKAGES \
     ccache git tar PyYAML sparse flex bison python2 bzip2 hostname \
     glib2-devel pixman-devel zlib-devel SDL-devel libfdt-devel \
-    gcc gcc-c++ clang make perl which bc findutils \
+    gcc gcc-c++ clang make perl which bc findutils libaio-devel \
     mingw32-pixman mingw32-glib2 mingw32-gmp mingw32-SDL mingw32-pkg-config \
     mingw32-gtk2 mingw32-gtk3 mingw32-gnutls mingw32-nettle mingw32-libtasn1 \
     mingw32-libjpeg-turbo mingw32-libpng mingw32-curl mingw32-libssh2 \

--
Alex Bennée

Reviewed-by on v1 4/5
#13 lore raw

Re: [Qemu-devel] [PATCH 4/5] docker: Add libaio to fedora image

In reply to Fam Zheng
Quoted 1 line · Fam Zheng
Quoted 18 lines
---
 tests/docker/dockerfiles/fedora.docker | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/docker/dockerfiles/fedora.docker +1 -1
index 39f6b58..4eaa8ed 100644
@@ -2,7 +2,7 @@ FROM fedora:latest
 ENV PACKAGES \
     ccache git tar PyYAML sparse flex bison python2 bzip2 hostname \
     glib2-devel pixman-devel zlib-devel SDL-devel libfdt-devel \
-    gcc gcc-c++ clang make perl which bc findutils \
+    gcc gcc-c++ clang make perl which bc findutils libaio-devel \
     mingw32-pixman mingw32-glib2 mingw32-gmp mingw32-SDL mingw32-pkg-config \
     mingw32-gtk2 mingw32-gtk3 mingw32-gnutls mingw32-nettle mingw32-libtasn1 \
     mingw32-libjpeg-turbo mingw32-libpng mingw32-curl mingw32-libssh2 \
author
#14 lore raw

PATCH 5/5 docker: Add test-block

In reply to Fam Zheng
---
 tests/docker/test-block | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100755 tests/docker/test-block
tests/docker/test-block new file +21 -0
new file mode 100755
index 0000000..20ef705
@@ -0,0 +1,21 @@
+#!/bin/bash -e
+#
+# Run block test cases
+#
+# Copyright (c) 2017 Red Hat Inc.
+#
+# Authors:
+#  Fam Zheng <[email protected]>
+#
+# This work is licensed under the terms of the GNU GPL, version 2
+# or (at your option) any later version. See the COPYING file in
+# the top-level directory.
+
+. common.rc
+
+cd "$BUILD_DIR"
+
+build_qemu --target-list=x86_64-softmmu
+cd tests/qemu-iotests
+./check -raw
+./check -qcow2
Signature · 1 line
2.9.3
#15 lore raw
Quoted 20 lines · Fam Zheng
---
 tests/docker/test-block | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100755 tests/docker/test-block
tests/docker/test-block new file +8 -0
new file mode 100755
index 0000000..20ef705
@@ -0,0 +1,21 @@
+#!/bin/bash -e
+#
+# Run block test cases
+#
+# Copyright (c) 2017 Red Hat Inc.
+#
+# Authors:
+#  Fam Zheng <[email protected]>

tests/docker/test-block line 18

Quoted 10 lines
tests/docker/test-block new file +10 -0
+#
+# This work is licensed under the terms of the GNU GPL, version 2
+# or (at your option) any later version. See the COPYING file in
+# the top-level directory.
+
+. common.rc
+
+cd "$BUILD_DIR"
+
+build_qemu --target-list=x86_64-softmmu

Shouldn't we allow for non-default targets like the other tests?

tests/docker/test-block line 21

Quoted 3 lines
tests/docker/test-block new file +3 -0
+cd tests/qemu-iotests
+./check -raw
+./check -qcow2

--
Alex Bennée

author
#16 lore raw
Quoted 27 lines · Alex Bennée
Quoted 24 lines · Fam Zheng
---
 tests/docker/test-block | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100755 tests/docker/test-block
tests/docker/test-block new file +12 -0
new file mode 100755
index 0000000..20ef705
@@ -0,0 +1,21 @@
+#!/bin/bash -e
+#
+# Run block test cases
+#
+# Copyright (c) 2017 Red Hat Inc.
+#
+# Authors:
+#  Fam Zheng <[email protected]>
+#
+# This work is licensed under the terms of the GNU GPL, version 2
+# or (at your option) any later version. See the COPYING file in
+# the top-level directory.
Quoted 8 lines

tests/docker/test-block line 18

Quoted 6 lines
tests/docker/test-block new file +6 -0
+
+. common.rc
+
+cd "$BUILD_DIR"
+
+build_qemu --target-list=x86_64-softmmu

Shouldn't we allow for non-default targets like the other tests?

Sure, I'll add it.

Quoted 8 lines

tests/docker/test-block line 21

Quoted 4 lines
tests/docker/test-block new file +3 -0
+cd tests/qemu-iotests
+./check -raw
+./check -qcow2

--
Alex Bennée

#17 lore raw
In reply to Fam Zheng
Quoted 23 lines · Fam Zheng
---
  tests/docker/test-block | 21 +++++++++++++++++++++
  1 file changed, 21 insertions(+)

create mode 100755 tests/docker/test-block

tests/docker/test-block new file +11 -0
new file mode 100755
index 0000000..20ef705
@@ -0,0 +1,21 @@
+#!/bin/bash -e
+#
+# Run block test cases
+#
+# Copyright (c) 2017 Red Hat Inc.
+#
+# Authors:
+#  Fam Zheng <[email protected]>
+#
+# This work is licensed under the terms of the GNU GPL, version 2
+# or (at your option) any later version. See the COPYING file in

tests/docker/test-block line 21

Quoted 10 lines
tests/docker/test-block new file +10 -0
+# the top-level directory.
+
+. common.rc
+
+cd "$BUILD_DIR"
+
+build_qemu --target-list=x86_64-softmmu
+cd tests/qemu-iotests
+./check -raw
+./check -qcow2

Could you also consider running -nbd tests ?

Yash

#18 lore raw
In reply to Fam Zheng
Quoted 23 lines · Fam Zheng
---
 tests/docker/test-block | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100755 tests/docker/test-block
tests/docker/test-block new file +11 -0
new file mode 100755
index 0000000..20ef705
@@ -0,0 +1,21 @@
+#!/bin/bash -e
+#
+# Run block test cases
+#
+# Copyright (c) 2017 Red Hat Inc.
+#
+# Authors:
+#  Fam Zheng <[email protected]>
+#
+# This work is licensed under the terms of the GNU GPL, version 2
+# or (at your option) any later version. See the COPYING file in

tests/docker/test-block line 21

Quoted 10 lines
tests/docker/test-block new file +10 -0
+# the top-level directory.
+
+. common.rc
+
+cd "$BUILD_DIR"
+
+build_qemu --target-list=x86_64-softmmu
+cd tests/qemu-iotests
+./check -raw
+./check -qcow2

qcow v1 should be passing all tests now too, so pleae include that.

I also want to have LUKS support included, though that is pending a couple of patches to fix some current failures

https://lists.gnu.org/archive/html/qemu-devel/2017-05/msg00277.html

If we add more tests though, this single 'test-block' job is going to get pretty slow. qcow v1 is massively slower to complete tests than qcow v2, and luks is quite alot slower too - particularly if you enable the cryptsetup interoperability test case (it takes about 5 minutes to run now)

Should we have separate jobs to parallelize this across different I/O backends.

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 :|
Reviewed-by on the v1 series
#19 lore raw
In reply to Fam Zheng
Quoted 11 lines · Fam Zheng

A few tweaks to the docker images and running commands allow us to run qemu-iotests in the fedora container. This will be added to the patchew test cases later.

Fam Zheng (5):
docker: Run tests with current user
docker: Add bzip2 and hostname to fedora image
docker: Use unconfined security profile
docker: Add libaio to fedora image
docker: Add test-block

Quoted 6 lines
 tests/docker/Makefile.include          |  3 ++-
 tests/docker/dockerfiles/fedora.docker |  4 ++--
 tests/docker/test-block                | 21 +++++++++++++++++++++
 3 files changed, 25 insertions(+), 3 deletions(-)
 create mode 100755 tests/docker/test-block

Patches 1-4:

For patch 5, I think we should revive the "quick" qemu-iotests group (maybe we can have support for skipping groups, and have a "slow" group with the very few tests that take >30 seconds?) and add the quick tests to "make check".

Paolo

author
#20 lore raw
Quoted 21 lines · Paolo Bonzini
Quoted 11 lines · Fam Zheng

A few tweaks to the docker images and running commands allow us to run qemu-iotests in the fedora container. This will be added to the patchew test cases later.

Fam Zheng (5):
docker: Run tests with current user
docker: Add bzip2 and hostname to fedora image
docker: Use unconfined security profile
docker: Add libaio to fedora image
docker: Add test-block

Quoted 6 lines
 tests/docker/Makefile.include          |  3 ++-
 tests/docker/dockerfiles/fedora.docker |  4 ++--
 tests/docker/test-block                | 21 +++++++++++++++++++++
 3 files changed, 25 insertions(+), 3 deletions(-)
 create mode 100755 tests/docker/test-block
Quoted 8 lines

Patches 1-4:

For patch 5, I think we should revive the "quick" qemu-iotests group (maybe we can have support for skipping groups, and have a "slow" group with the very few tests that take >30 seconds?) and add the quick tests to "make check".

Sounds like a good idea, but for a separate series, IMO.

The idea of the new test-block is to include all qemu-iotests tests. I only added raw and qcow2 because vmdk etc. fails case 181. I could use "-x" but that's a bit ugly - they can wait for the fix.

Fam

#21 lore raw
Quoted 11 lines · Fam Zheng
Quoted 6 lines

For patch 5, I think we should revive the "quick" qemu-iotests group (maybe we can have support for skipping groups, and have a "slow" group with the very few tests that take >30 seconds?) and add the quick tests to "make check".

Sounds like a good idea, but for a separate series, IMO.

The idea of the new test-block is to include all qemu-iotests tests. I only added raw and qcow2 because vmdk etc. fails case 181. I could use "-x" but that's a bit ugly - they can wait for the fix.

I think that would still be a bit too slow for patchew?

Paolo

author
#22 lore raw
Quoted 9 lines · Paolo Bonzini
Quoted 6 lines · Fam Zheng
Quoted 6 lines

For patch 5, I think we should revive the "quick" qemu-iotests group (maybe we can have support for skipping groups, and have a "slow" group with the very few tests that take >30 seconds?) and add the quick tests to "make check".

Quoted 7 lines
Quoted 5 lines

Sounds like a good idea, but for a separate series, IMO.

The idea of the new test-block is to include all qemu-iotests tests. I only added raw and qcow2 because vmdk etc. fails case 181. I could use "-x" but that's a bit ugly - they can wait for the fix.

I think that would still be a bit too slow for patchew?

We have ~1 hour between each series, this one is not slower than the current docker build tests, so I think it's fine - we can make it run in parallel, like in the case of the s390x build.

Fam

#23 lore raw
In reply to Paolo Bonzini
Quoted 21 lines · Paolo Bonzini
Quoted 11 lines · Fam Zheng

A few tweaks to the docker images and running commands allow us to run qemu-iotests in the fedora container. This will be added to the patchew test cases later.

Fam Zheng (5):
docker: Run tests with current user
docker: Add bzip2 and hostname to fedora image
docker: Use unconfined security profile
docker: Add libaio to fedora image
docker: Add test-block

Quoted 6 lines
 tests/docker/Makefile.include          |  3 ++-
 tests/docker/dockerfiles/fedora.docker |  4 ++--
 tests/docker/test-block                | 21 +++++++++++++++++++++
 3 files changed, 25 insertions(+), 3 deletions(-)
 create mode 100755 tests/docker/test-block
Quoted 8 lines

Patches 1-4:

For patch 5, I think we should revive the "quick" qemu-iotests group (maybe we can have support for skipping groups, and have a "slow" group with the very few tests that take >30 seconds?) and add the quick tests to "make check".

'quick' not only depends on the test case, but also the backend. Most of the so called 'quick' tests are very slow with qcow v1 (over your 30 sec mark), and can also be fairly slow with LUKS too.

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 :|
#24 lore raw
Quoted 8 lines · Daniel P. Berrange
Quoted 5 lines

For patch 5, I think we should revive the "quick" qemu-iotests group (maybe we can have support for skipping groups, and have a "slow" group with the very few tests that take >30 seconds?) and add the quick tests to "make check".

'quick' not only depends on the test case, but also the backend. Most of the so called 'quick' tests are very slow with qcow v1 (over your 30 sec mark), and can also be fairly slow with LUKS too.

You could define two groups: "quick" for those that are pretty much guaranteed to be fast with all backends, "slow" for those that are guaranteed to be slow with all backends.

Then CI can use "!slow" when running with selected backends (raw, qcow2, raw-over-NBD) and "quick" for other backends.

Paolo