Skip to contentSkip to conversation

tests/docker: start using libvirt-ci's "lcitool" for dockerfiles

PATCH Superseded Daniel P. Berrangé 4 participants 29 messages May 13, 2021

v3 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

v3 cover tests/docker: start using libvirt-ci's "lcitool" for dockerfiles

Currently the tests/docker/dockerfiles/*Dockerfile recipes are all hand written by contributors. There is a common design pattern, but the set of packages listed for installation leaves alot to be desired

- There is no consistency at all across distros
- Many potential build deps are not listed in the containers
- Some packages are not used by QEMU at all
- Adding new distros is an error prone task

The same applies to package lists for VMs, Cirrus CI / Travis CI, and probably more.

This problem is not unique to QEMU, libvirt faced the exact same issues and developed a program called "lcitool" which is part of the libvirt-ci git repository to reduce the burden in this area.

Despite its name, this repository is not tied to libvirt, and so as well as the 40+ libvirt git repos, it is also used by the libosinfo and virt-viewer projects for their CI needs.

lcitool is capable of automating the installation and updating of VM images, creation of dockerfiles and creation of standalone package lists.

In this series I'm taking the easy step which is the generation of dockerfiles, since that is also where the most immediate value lies for QEMU.

The key concept in lcitool that brings a huge win in maintainability is that there is a single file which defines a mapping between a build pre-requisite and the native package on each targetted distro.

https://gitlab.com/libvirt/libvirt-ci/-/blob/master/guests/lcitool/lcitool/ansible/vars/mappings.yml

A project merely has to have its list of pre-requisites enumerated

https://gitlab.com/libvirt/libvirt-ci/-/blob/master/guests/lcitool/lcitool/ansible/vars/projects/qemu.yml

The combination of these two files is enough to generate accurate package lists for any supported distro. Currently supported distros are Debian (10, sid), Ubuntu (18.04, 20.04), CentOS (8, 8 Stream), Fedora (32, 33, rawhide), OpenSUSE Leap (15.2) macOS (HomeBrew), FreeBSD w/ Ports (11, 12, current).

At the end of this series, I have dockerfiles auto-generated for QEMU covering Ubuntu 18.04 & 20.04, CentOS 8, Fedora 32 and OpenSUSE 15.2.

lcitool is also capable of generating dockerfiles for cross-compiled non-x86 architectures for Debian, and for mingw32/64 for Fedora. This is driven from the very same mapping.yml file listed above, which has attributes to indicate whether a given dependancy should be pulled from the native or cross build target. Again this means that we have strong guarantee of consistent deps being used between cross containers.

I have not converted cross containers in this series though, because the way we generated cross dockerfiles is different from how QEMU does it. lcitool will always generate fully self-contained dockerfiles, but QEMU currently uses layered dockerfiles for cross-builds, so all cross builds share a common intermediate container.

I could enhance lcitool to support layered containers for cross-builds, but before doing that I wondered how strongly people are attached to them ? If self-contained dockerfiles are acceptable I can do that more easily.

There is also scope for auto-generating the package lists for tests/vm and .cirrus.yml files, but I've not attempted that here. The same general idea appies - we just call lcitool to spit out a list of native packages for each case.

If converting tests/vm, we would need to add more distros to lcitool mappings.yml to convert openbsd, netbsd, haiku since libvirt does not target those distros itself.

I have provided a tests/docker/dockerfiles/refresh script that needs to be invoked periodically to re-generate them. eg when adding a new distro, or when the package lists change. I have added libvirt-ci.git as a sub-module to provide more seemless integration, but this is possibly overkill. In libvirt*.git repos we don't bother with git submodules for libvirt-ci.git since whomever runs it to refresh containers just has a local checkout regardless.

Changed in v3:

- Drop changes for CentOS 7
- Catch up with newly added build deps
- Add git submodule and make target for refresh

Changed in v2:

- Remove more travis stuff from tests/docker/Makefile.include
- Convert opensuse image to be auto-generated
- Add SDL2_image package
- QEMU package manifest is now officially merged in libvirt-ci.git

Daniel P. Berrangé (22):
hw/usb/ccid: remove references to NSS tests/docker: don't use BUILDKIT in GitLab either tests/docker: use project specific container registries tests/docker: use explicit docker.io registry tests/docker: remove FEATURES env var from templates tests/docker: fix sorting in package lists tests/docker: fix mistakes in centos package lists tests/docker: fix mistakes in fedora package list tests/docker: fix mistakes in ubuntu package lists tests/docker: remove mingw packages from Fedora tests/docker: expand centos8 package list tests/docker: expand fedora package list tests/docker: expand ubuntu1804 package list tests/docker: expand ubuntu2004 package list tests/docker: expand opensuse-leap package list tests/docker: add script for automating container refresh tests/docker: auto-generate centos8 with lcitool tests/docker: auto-generate fedora with lcitool tests/docker: auto-generate ubuntu1804 with lcitool tests/docker: auto-generate ubuntu2004 with lcitool tests/docker: auto-generate opensuse-leap with lcitool tests/docker: remove ubuntu container

 .gitlab-ci.d/containers.yml                   |   5 -
 .gitmodules                                   |   3 +
 .travis.yml                                   |  12 +-
 docs/ccid.txt                                 |  15 +-
 docs/devel/testing.rst                        |  15 +-
 scripts/coverity-scan/coverity-scan.docker    |   1 -
 tests/docker/Makefile.include                 |  10 +
 tests/docker/common.rc                        |  19 +-
 tests/docker/docker.py                        |   4 +-
 tests/docker/dockerfiles-refresh.py           |  70 +++++
 tests/docker/dockerfiles/centos8.docker       | 165 +++++++++---
 .../dockerfiles/debian-xtensa-cross.docker    |   2 +-
 tests/docker/dockerfiles/debian10.docker      |   4 +-
 tests/docker/dockerfiles/debian11.docker      |   2 +-
 .../dockerfiles/fedora-cris-cross.docker      |   2 +-
 .../dockerfiles/fedora-i386-cross.docker      |   2 +-
 .../dockerfiles/fedora-win32-cross.docker     |   3 +-
 .../dockerfiles/fedora-win64-cross.docker     |   3 +-
 tests/docker/dockerfiles/fedora.docker        | 253 ++++++++++--------
 tests/docker/dockerfiles/opensuse-leap.docker | 180 +++++++++----
 tests/docker/dockerfiles/ubuntu.docker        |  71 -----
 tests/docker/dockerfiles/ubuntu1804.docker    | 195 ++++++++++----
 tests/docker/dockerfiles/ubuntu2004.docker    | 211 ++++++++++-----
 tests/docker/libvirt-ci                       |   1 +
 tests/docker/run                              |   3 -
 tests/docker/test-clang                       |   2 +-
 tests/docker/test-debug                       |   2 +-
 tests/docker/test-mingw                       |   3 +-
 tests/docker/test-misc                        |   2 +-
 tests/docker/test-tsan                        |   2 +-
 30 files changed, 810 insertions(+), 452 deletions(-)
 create mode 100755 tests/docker/dockerfiles-refresh.py
 delete mode 100644 tests/docker/dockerfiles/ubuntu.docker
 create mode 160000 tests/docker/libvirt-ci
Signature · 1 line
2.31.1
#1 lore raw

PATCH v3 1/22 hw/usb/ccid: remove references to NSS

The NSS package was previously pre-requisite for building CCID related features, however, this became obsolete when the libcacard library was spun off to a separate project:

commit 7b02f5447c64d1854468f758398c9f6fe9e5721f
Author: Marc-André Lureau <[email protected]>
Date: Sun Aug 30 11:48:40 2015 +0200

libcacard: use the standalone project

---
 .travis.yml                                | 12 ++++++------
 docs/ccid.txt                              | 15 +++++++--------
 scripts/coverity-scan/coverity-scan.docker |  1 -
 tests/docker/dockerfiles/centos8.docker    |  1 +
 tests/docker/dockerfiles/fedora.docker     |  2 +-
 tests/docker/dockerfiles/ubuntu.docker     |  1 -
 tests/docker/dockerfiles/ubuntu1804.docker |  1 -
 tests/docker/dockerfiles/ubuntu2004.docker |  1 -
 8 files changed, 15 insertions(+), 19 deletions(-)
.travis.yml +6 -6
index 4609240b5a..0faddf7b4e 100644
@@ -27,6 +27,7 @@ addons:
       - libattr1-dev
       - libbrlapi-dev
       - libcap-ng-dev
+      - libcacard-dev
       - libgcc-7-dev
       - libgnutls28-dev
       - libgtk-3-dev
@@ -34,7 +35,6 @@ addons:
       - liblttng-ust-dev
       - libncurses5-dev
       - libnfs-dev
-      - libnss3-dev
       - libpixman-1-dev
       - libpng-dev
       - librados-dev
@@ -129,6 +129,7 @@ jobs:
           - libaio-dev
           - libattr1-dev
           - libbrlapi-dev
+          - libcacard-dev
           - libcap-ng-dev
           - libgcrypt20-dev
           - libgnutls28-dev
@@ -137,7 +138,6 @@ jobs:
           - liblttng-ust-dev
           - libncurses5-dev
           - libnfs-dev
-          - libnss3-dev
           - libpixman-1-dev
           - libpng-dev
           - librados-dev
@@ -163,6 +163,7 @@ jobs:
           - libaio-dev
           - libattr1-dev
           - libbrlapi-dev
+          - libcacard-dev
           - libcap-ng-dev
           - libgcrypt20-dev
           - libgnutls28-dev
@@ -171,7 +172,6 @@ jobs:
           - liblttng-ust-dev
           - libncurses5-dev
           - libnfs-dev
-          - libnss3-dev
           - libpixman-1-dev
           - libpng-dev
           - librados-dev
@@ -196,6 +196,7 @@ jobs:
           - libaio-dev
           - libattr1-dev
           - libbrlapi-dev
+          - libcacard-dev
           - libcap-ng-dev
           - libgcrypt20-dev
           - libgnutls28-dev
@@ -204,7 +205,6 @@ jobs:
           - liblttng-ust-dev
           - libncurses5-dev
           - libnfs-dev
-          - libnss3-dev
           - libpixman-1-dev
           - libpng-dev
           - librados-dev
@@ -238,6 +238,7 @@ jobs:
         apt_packages:
           - libaio-dev
           - libattr1-dev
+          - libcacard-dev
           - libcap-ng-dev
           - libgnutls28-dev
           - libiscsi-dev
@@ -245,7 +246,6 @@ jobs:
           - liblzo2-dev
           - libncurses-dev
           - libnfs-dev
-          - libnss3-dev
           - libpixman-1-dev
           - libsdl2-dev
           - libsdl2-image-dev
@@ -281,6 +281,7 @@ jobs:
           - libaio-dev
           - libattr1-dev
           - libbrlapi-dev
+          - libcacard-dev
           - libcap-ng-dev
           - libgcrypt20-dev
           - libgnutls28-dev
@@ -289,7 +290,6 @@ jobs:
           - liblttng-ust-dev
           - libncurses5-dev
           - libnfs-dev
-          - libnss3-dev
           - libpixman-1-dev
           - libpng-dev
           - librados-dev
docs/ccid.txt +7 -8
index c97fbd2de0..2b85b1bd42 100644
@@ -34,15 +34,14 @@ reader and smart card (i.e. not backed by a physical device) using this device.
 
 2. Building
 
-The cryptographic functions and access to the physical card is done via NSS.
-
-Installing NSS:
+The cryptographic functions and access to the physical card is done via the
+libcacard library, whose development package must be installed prior to
+building QEMU:
 
 In redhat/fedora:
-    yum install nss-devel
-In ubuntu/debian:
-    apt-get install libnss3-dev
-    (not tested on ubuntu)
+    yum install libcacard-devel
+In ubuntu:
+    apt-get install libcacard-dev
 
 Configuring and building:
     ./configure --enable-smartcard && make
@@ -51,7 +50,7 @@ Configuring and building:
 3. Using ccid-card-emulated with hardware
 
 Assuming you have a working smartcard on the host with the current
-user, using NSS, qemu acts as another NSS client using ccid-card-emulated:
+user, using libcacard, QEMU acts as another client using ccid-card-emulated:
 
     qemu -usb -device usb-ccid -device ccid-card-emulated
 
scripts/coverity-scan/coverity-scan.docker +0 -1
index 501ac67233..ecff6ac5b4 100644
@@ -93,7 +93,6 @@ ENV PACKAGES \
     mingw64-SDL2 \
     ncurses-devel \
     nettle-devel \
-    nss-devel \
     numactl-devel \
     perl \
     perl-Test-Harness \
tests/docker/dockerfiles/centos8.docker +1 -0
index a8c6c528b0..92c0ed34b8 100644
@@ -14,6 +14,7 @@ ENV PACKAGES \
     git \
     glib2-devel \
     libaio-devel \
+    libcacard-devel \
     libepoxy-devel \
     libfdt-devel \
     libgcrypt-devel \
tests/docker/dockerfiles/fedora.docker +1 -1
index 915fdc1845..ab4bd94e14 100644
@@ -28,6 +28,7 @@ ENV PACKAGES \
     libasan \
     libattr-devel \
     libblockdev-mpath-devel \
+    libcacard-devel \
     libcap-ng-devel \
     libcurl-devel \
     libepoxy-devel \
@@ -80,7 +81,6 @@ ENV PACKAGES \
     ncurses-devel \
     nettle-devel \
     ninja-build \
-    nss-devel \
     numactl-devel \
     perl \
     perl-Test-Harness \
tests/docker/dockerfiles/ubuntu.docker +0 -1
index b5ef7a8198..9dec1c4bc6 100644
@@ -39,7 +39,6 @@ ENV PACKAGES \
     libncurses5-dev \
     libncursesw5-dev \
     libnfs-dev \
-    libnss3-dev \
     libnuma-dev \
     libpixman-1-dev \
     libpng-dev \
tests/docker/dockerfiles/ubuntu1804.docker +0 -1
index 9b0a19ba5e..aacea8627a 100644
@@ -26,7 +26,6 @@ ENV PACKAGES \
     libncurses5-dev \
     libncursesw5-dev \
     libnfs-dev \
-    libnss3-dev \
     libnuma-dev \
     libpixman-1-dev \
     librados-dev \
tests/docker/dockerfiles/ubuntu2004.docker +0 -1
index 9750016e51..7f32990bcd 100644
@@ -30,7 +30,6 @@ ENV PACKAGES flex bison \
     libncurses5-dev \
     libncursesw5-dev \
     libnfs-dev \
-    libnss3-dev \
     libnuma-dev \
     libpixman-1-dev \
     librados-dev \
Signature · 1 line
2.31.1
#2 lore raw

PATCH v3 2/22 tests/docker: don't use BUILDKIT in GitLab either

In reply to Daniel P. Berrangé

Using BUILDKIT breaks with certain container registries such as CentOS, with docker build reporting an error such as

failed to solve with frontend dockerfile.v0:
failed to build LLB: failed to load cache key:
unexpected status code
https://registry.centos.org/v2/centos/manifests/7:
403 Forbidden

---
 tests/docker/docker.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
tests/docker/docker.py +3 -1
index d28df4c140..e9b3af8bfe 100755
@@ -228,7 +228,9 @@ class Docker(object):
     def __init__(self):
         self._command = _guess_engine_command()
 
-        if "docker" in self._command and "TRAVIS" not in os.environ:
+        if ("docker" in self._command and
+            "TRAVIS" not in os.environ and
+            "GITLAB_CI" not in os.environ):
             os.environ["DOCKER_BUILDKIT"] = "1"
             self._buildkit = True
         else:
Signature · 1 line
2.31.1
#3 lore raw

PATCH v3 3/22 tests/docker: use project specific container registries

In reply to Daniel P. Berrangé

Since Docker Hub has started to enforce pull rate limits on clients, it is preferrable to use project specific container registries where they are available. Fedora and OpenSUSE projects provide registries.

The images in these registries are also refreshed on a more regular basis than the ones in docker hub, so the package update should generally be faster.

While CentOS also has a registry it is considerably outdated compared to docker.io, and also only provides x86 images, while docker.io images are multi-arch.

---
 tests/docker/dockerfiles/fedora-cris-cross.docker  | 2 +-
 tests/docker/dockerfiles/fedora-i386-cross.docker  | 2 +-
 tests/docker/dockerfiles/fedora-win32-cross.docker | 2 +-
 tests/docker/dockerfiles/fedora-win64-cross.docker | 2 +-
 tests/docker/dockerfiles/fedora.docker             | 2 +-
 tests/docker/dockerfiles/opensuse-leap.docker      | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)
tests/docker/dockerfiles/fedora-cris-cross.docker +1 -1
index 1dfff6e0b9..91c373fdd3 100644
@@ -2,7 +2,7 @@
 # Cross compiler for cris system tests
 #
 
-FROM fedora:33
+FROM registry.fedoraproject.org/fedora:33
 ENV PACKAGES gcc-cris-linux-gnu
 RUN dnf install -y $PACKAGES
 RUN rpm -q $PACKAGES | sort > /packages.txt
tests/docker/dockerfiles/fedora-i386-cross.docker +1 -1
index 966072c08e..a03a70f5bf 100644
@@ -1,4 +1,4 @@
-FROM fedora:33
+FROM registry.fedoraproject.org/fedora:33
 ENV PACKAGES \
     bzip2 \
     diffutils \
tests/docker/dockerfiles/fedora-win32-cross.docker +1 -1
index 81b5659e9c..4901f9be17 100644
@@ -1,4 +1,4 @@
-FROM fedora:33
+FROM registry.fedoraproject.org/fedora:33
 
 # Please keep this list sorted alphabetically
 ENV PACKAGES \
tests/docker/dockerfiles/fedora-win64-cross.docker +1 -1
index bcb428e724..f178f593b8 100644
@@ -1,4 +1,4 @@
-FROM fedora:33
+FROM registry.fedoraproject.org/fedora:33
 
 # Please keep this list sorted alphabetically
 ENV PACKAGES \
tests/docker/dockerfiles/fedora.docker +1 -1
index ab4bd94e14..501cd72daf 100644
@@ -1,4 +1,4 @@
-FROM fedora:33
+FROM registry.fedoraproject.org/fedora:33
 
 # Please keep this list sorted alphabetically
 ENV PACKAGES \
tests/docker/dockerfiles/opensuse-leap.docker +1 -1
index 0e64893e4a..e7dc14bf99 100644
@@ -1,4 +1,4 @@
-FROM opensuse/leap:15.2
+FROM registry.opensuse.org/opensuse/leap:15.2
 
 # Please keep this list sorted alphabetically
 ENV PACKAGES \
Signature · 1 line
2.31.1
#4 lore raw

PATCH v3 4/22 tests/docker: use explicit docker.io registry

In reply to Daniel P. Berrangé

It is good practice to use an explicit registry for referencing the base image. This is because some distros will inject their own registries into the search path. For example registry.fedoraproject.org comes ahead of docker.io. Using an explicit registry avoids wasting time querying multiple registries for images that they won't have.

---
 tests/docker/dockerfiles/centos8.docker             | 2 +-
 tests/docker/dockerfiles/debian-xtensa-cross.docker | 2 +-
 tests/docker/dockerfiles/debian10.docker            | 2 +-
 tests/docker/dockerfiles/debian11.docker            | 2 +-
 tests/docker/dockerfiles/ubuntu.docker              | 2 +-
 tests/docker/dockerfiles/ubuntu1804.docker          | 2 +-
 tests/docker/dockerfiles/ubuntu2004.docker          | 2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)
tests/docker/dockerfiles/centos8.docker +1 -1
index 92c0ed34b8..4f77c754e2 100644
@@ -1,4 +1,4 @@
-FROM centos:8.3.2011
+FROM docker.io/centos:8
 
 RUN dnf -y update
 ENV PACKAGES \
tests/docker/dockerfiles/debian-xtensa-cross.docker +1 -1
index ba4148299c..2f11b3b7bc 100644
@@ -5,7 +5,7 @@
 # using a prebuilt toolchains for Xtensa cores from:
 # https://github.com/foss-xtensa/toolchain/releases
 #
-FROM debian:stretch-slim
+FROM docker.io/library/debian:stretch-slim
 
 RUN apt-get update && \
     DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \
tests/docker/dockerfiles/debian10.docker +1 -1
index d034acbd25..ad9c128370 100644
@@ -7,7 +7,7 @@
 # On its own you can't build much but the docker-foo-cross targets
 # build on top of the base debian image.
 #
-FROM debian:buster-slim
+FROM docker.io/library/debian:buster-slim
 
 # Duplicate deb line as deb-src
 RUN cat /etc/apt/sources.list | sed "s/^deb\ /deb-src /" >> /etc/apt/sources.list
tests/docker/dockerfiles/debian11.docker +1 -1
index 5adfd62d55..febf884f8f 100644
@@ -8,7 +8,7 @@
 # On its own you can't build much but the docker-foo-cross targets
 # build on top of the base debian image.
 #
-FROM debian:bullseye-slim
+FROM docker.io/library/debian:bullseye-slim
 
 # Duplicate deb line as deb-src
 RUN cat /etc/apt/sources.list | sed "s/^deb\ /deb-src /" >> /etc/apt/sources.list
tests/docker/dockerfiles/ubuntu.docker +1 -1
index 9dec1c4bc6..ef44b0e360 100644
@@ -9,7 +9,7 @@
 # system won't pick up that it has changed.
 #
 
-FROM ubuntu:20.04
+FROM docker.io/library/ubuntu:20.04
 ENV PACKAGES \
     ccache \
     clang \
tests/docker/dockerfiles/ubuntu1804.docker +1 -1
index aacea8627a..751e6503f8 100644
@@ -1,4 +1,4 @@
-FROM ubuntu:18.04
+FROM docker.io/library/ubuntu:18.04
 ENV PACKAGES \
     ccache \
     clang \
tests/docker/dockerfiles/ubuntu2004.docker +1 -1
index 7f32990bcd..0e761f4553 100644
@@ -1,4 +1,4 @@
-FROM ubuntu:20.04
+FROM docker.io/library/ubuntu:20.04
 ENV PACKAGES flex bison \
     bsdmainutils \
     ccache \
Signature · 1 line
2.31.1
#5 lore raw

PATCH v3 5/22 tests/docker: remove FEATURES env var from templates

In reply to Daniel P. Berrangé

In preparation for switching to auto-generated dockerfiles, remove the FEATURES env variable. The equivalent functionality can be achieved in most cases by just looking for existance of a binary.

The cases which don't correspond to binaries are simply dropped because configure/meson will probe for any requested feature anyway.

---
 tests/docker/common.rc                        | 19 ++++++++++++++-----
 tests/docker/dockerfiles/debian10.docker      |  2 --
 .../dockerfiles/fedora-win32-cross.docker     |  1 -
 .../dockerfiles/fedora-win64-cross.docker     |  1 -
 tests/docker/dockerfiles/fedora.docker        |  1 -
 tests/docker/dockerfiles/ubuntu.docker        |  1 -
 tests/docker/dockerfiles/ubuntu1804.docker    |  1 -
 tests/docker/dockerfiles/ubuntu2004.docker    |  1 -
 tests/docker/run                              |  3 ---
 tests/docker/test-clang                       |  2 +-
 tests/docker/test-debug                       |  2 +-
 tests/docker/test-mingw                       |  3 ++-
 tests/docker/test-misc                        |  2 +-
 tests/docker/test-tsan                        |  2 +-
 14 files changed, 20 insertions(+), 21 deletions(-)
tests/docker/common.rc +14 -5
index ebc5b97ecf..c5cc33d366 100755
@@ -15,14 +15,23 @@
 # overriden by TARGET_LIST if the user sets it.
 DEF_TARGET_LIST=${DEF_TARGET_LIST:-"x86_64-softmmu,aarch64-softmmu"}
 
-requires()
+requires_binary()
 {
+    found=0
     for c in $@; do
-        if ! echo "$FEATURES" | grep -wq -e "$c"; then
-            echo "Prerequisite '$c' not present, skip"
-            exit 0
-        fi
+        for d in /bin /usr/bin /usr/local/bin
+        do
+            if test -f "$d/$c"
+            then
+                found=1
+            fi
+        done
     done
+    if test "$found" != "1"
+    then
+        echo "Prerequisite '$c' not present, skip"
+        exit 0
+    fi
 }
 
 configure_qemu()
tests/docker/dockerfiles/debian10.docker +0 -2
index ad9c128370..b0a13002ad 100644
@@ -33,5 +33,3 @@ RUN apt update && \
         python3 \
         python3-sphinx \
         $(apt-get -s build-dep --arch-only qemu | egrep ^Inst | fgrep '[all]' | cut -d\  -f2)
-
-ENV FEATURES docs
tests/docker/dockerfiles/fedora-win32-cross.docker +0 -1
index 4901f9be17..0f5c11e0e1 100644
@@ -35,7 +35,6 @@ ENV PACKAGES \
 
 RUN dnf install -y $PACKAGES
 RUN rpm -q $PACKAGES | sort > /packages.txt
-ENV FEATURES mingw
 
 # Specify the cross prefix for this image (see tests/docker/common.rc)
 ENV QEMU_CONFIGURE_OPTS --cross-prefix=i686-w64-mingw32-
tests/docker/dockerfiles/fedora-win64-cross.docker +0 -1
index f178f593b8..b507b70cc7 100644
@@ -31,7 +31,6 @@ ENV PACKAGES \
 
 RUN dnf install -y $PACKAGES
 RUN rpm -q $PACKAGES | sort > /packages.txt
-ENV FEATURES mingw
 
 # Specify the cross prefix for this image (see tests/docker/common.rc)
 ENV QEMU_CONFIGURE_OPTS --cross-prefix=x86_64-w64-mingw32- --disable-capstone
tests/docker/dockerfiles/fedora.docker +0 -1
index 501cd72daf..fee33a84d1 100644
@@ -114,4 +114,3 @@ ENV QEMU_CONFIGURE_OPTS --python=/usr/bin/python3
 RUN dnf install -y $PACKAGES
 RUN rpm -q $PACKAGES | sort > /packages.txt
 ENV PATH $PATH:/usr/libexec/python3-sphinx/
-ENV FEATURES mingw clang pyyaml asan docs
tests/docker/dockerfiles/ubuntu.docker +0 -1
index ef44b0e360..752e1aa105 100644
@@ -67,4 +67,3 @@ ENV PACKAGES \
 RUN apt-get update && \
     DEBIAN_FRONTEND=noninteractive apt-get -y install $PACKAGES
 RUN dpkg -l $PACKAGES | sort > /packages.txt
-ENV FEATURES clang pyyaml sdl2 docs
tests/docker/dockerfiles/ubuntu1804.docker +0 -1
index 751e6503f8..3534111637 100644
@@ -53,7 +53,6 @@ ENV PACKAGES \
 RUN apt-get update && \
     DEBIAN_FRONTEND=noninteractive apt-get -y install $PACKAGES
 RUN dpkg -l $PACKAGES | sort > /packages.txt
-ENV FEATURES clang pyyaml sdl2 docs
 
 # https://bugs.launchpad.net/qemu/+bug/1838763
 ENV QEMU_CONFIGURE_OPTS --disable-libssh
tests/docker/dockerfiles/ubuntu2004.docker +0 -1
index 0e761f4553..1f3dbd3b91 100644
@@ -68,7 +68,6 @@ ENV PACKAGES flex bison \
 RUN apt-get update && \
     DEBIAN_FRONTEND=noninteractive apt-get -y install $PACKAGES
 RUN dpkg -l $PACKAGES | sort > /packages.txt
-ENV FEATURES clang tsan pyyaml sdl2
 
 # Apply patch https://reviews.llvm.org/D75820
 # This is required for TSan in clang-10 to compile with QEMU.
tests/docker/run +0 -3
index 8edc7026ee..421393046b 100755
@@ -30,9 +30,6 @@ mkdir -p $TEST_DIR/{src,build,install}
 
 # Extract the source tarballs
 tar -C $TEST_DIR/src -xf $BASE/qemu.tar || { echo "Failed to untar source"; exit 2; }
-if test -f $TEST_DIR/src/Makefile; then
-    export FEATURES="$FEATURES dtc"
-fi
 
 if test -n "$SHOW_ENV"; then
     if test -f /packages.txt; then
tests/docker/test-clang +1 -1
index 8c51ead518..b57e0119d9 100755
@@ -13,7 +13,7 @@
 
 . common.rc
 
-requires clang
+requires_binary clang
 
 cd "$BUILD_DIR"
 
tests/docker/test-debug +1 -1
index c050fa0d93..f52f16328c 100755
@@ -14,7 +14,7 @@
 
 . common.rc
 
-requires clang asan
+requires_binary clang
 
 cd "$BUILD_DIR"
 
tests/docker/test-mingw +2 -1
index c30eb654eb..0bc6d78872 100755
@@ -13,7 +13,8 @@
 
 . common.rc
 
-requires mingw dtc
+requires_binary x86_64-w64-mingw32-gcc
+requires_binary i686-w64-mingw32-gcc
 
 cd "$BUILD_DIR"
 
tests/docker/test-misc +1 -1
index cc94a738dd..2a3c2c2e1c 100755
@@ -14,7 +14,7 @@
 
 . common.rc
 
-requires docs
+requires_binary sphinx-build-3 sphinx-build
 
 cd "$BUILD_DIR"
 
tests/docker/test-tsan +1 -1
index eb40ac45b7..53d90d2f79 100755
@@ -17,7 +17,7 @@
 
 setup_tsan()
 {
-    requires clang tsan
+    requires_binary clang
     tsan_log_dir="/tmp/qemu-test/build/tsan"
     mkdir -p $tsan_log_dir > /dev/null || true
     EXTRA_CONFIGURE_OPTS="${EXTRA_CONFIGURE_OPTS} --enable-tsan \
Signature · 1 line
2.31.1
#6 lore raw

PATCH v3 6/22 tests/docker: fix sorting in package lists

In reply to Daniel P. Berrangé

This will make diffs in later patches clearer.

---
 tests/docker/dockerfiles/centos8.docker       |  2 +-
 tests/docker/dockerfiles/fedora.docker        |  4 ++--
 tests/docker/dockerfiles/opensuse-leap.docker | 16 ++++++++--------
 tests/docker/dockerfiles/ubuntu1804.docker    |  4 ++--
 tests/docker/dockerfiles/ubuntu2004.docker    |  8 +++++---
 5 files changed, 18 insertions(+), 16 deletions(-)
tests/docker/dockerfiles/centos8.docker +1 -1
index 4f77c754e2..f1023d1cec 100644
@@ -21,9 +21,9 @@ ENV PACKAGES \
     lzo-devel \
     make \
     mesa-libEGL-devel \
-    nmap-ncat \
     nettle-devel \
     ninja-build \
+    nmap-ncat \
     perl-Test-Harness \
     pixman-devel \
     python36 \
tests/docker/dockerfiles/fedora.docker +2 -2
index fee33a84d1..6528b57a2f 100644
@@ -2,6 +2,7 @@ FROM registry.fedoraproject.org/fedora:33
 
 # Please keep this list sorted alphabetically
 ENV PACKAGES \
+    SDL2-devel \
     bc \
     brlapi-devel \
     bzip2 \
@@ -77,10 +78,10 @@ ENV PACKAGES \
     mingw64-pixman \
     mingw64-pkg-config \
     mingw64-SDL2 \
-    nmap-ncat \
     ncurses-devel \
     nettle-devel \
     ninja-build \
+    nmap-ncat \
     numactl-devel \
     perl \
     perl-Test-Harness \
@@ -94,7 +95,6 @@ ENV PACKAGES \
     python3-sphinx \
     python3-virtualenv \
     rdma-core-devel \
-    SDL2-devel \
     snappy-devel \
     sparse \
     spice-server-devel \
tests/docker/dockerfiles/opensuse-leap.docker +8 -8
index e7dc14bf99..ed194125a7 100644
@@ -8,46 +8,46 @@ ENV PACKAGES \
     cyrus-sasl-devel \
     gcc \
     gcc-c++ \
-    mkisofs \
     gettext-runtime \
     git \
     glib2-devel \
     glusterfs-devel \
-    libgnutls-devel \
     gtk3-devel \
+    libSDL2-devel \
+    libSDL2_image-devel \
     libaio-devel \
     libattr-devel \
     libcap-ng-devel \
     libepoxy-devel \
     libfdt-devel \
+    libgnutls-devel \
     libiscsi-devel \
     libjpeg8-devel \
+    libnuma-devel \
+    libpixman-1-0-devel \
     libpmem-devel \
     libpng16-devel \
     librbd-devel \
     libseccomp-devel \
+    libspice-server-devel \
     libssh-devel \
     lzo-devel \
     make \
-    libSDL2_image-devel \
+    mkisofs \
     ncurses-devel \
     ninja \
-    libnuma-devel \
     perl \
-    libpixman-1-0-devel \
     python3-base \
     python3-virtualenv \
     rdma-core-devel \
-    libSDL2-devel \
     snappy-devel \
-    libspice-server-devel \
     systemd-devel \
     systemtap-sdt-devel \
     tar \
     usbredir-devel \
     virglrenderer-devel \
-    xen-devel \
     vte-devel \
+    xen-devel \
     zlib-devel
 ENV QEMU_CONFIGURE_OPTS --python=/usr/bin/python3.6
 
tests/docker/dockerfiles/ubuntu1804.docker +2 -2
index 3534111637..58a373e205 100644
@@ -45,9 +45,9 @@ ENV PACKAGES \
     libxen-dev \
     libzstd-dev \
     make \
-    python3-yaml \
-    python3-sphinx \
     ninja-build \
+    python3-sphinx \
+    python3-yaml \
     sparse \
     xfslibs-dev
 RUN apt-get update && \
tests/docker/dockerfiles/ubuntu2004.docker +5 -3
index 1f3dbd3b91..5044f4d9b7 100644
@@ -1,8 +1,10 @@
 FROM docker.io/library/ubuntu:20.04
-ENV PACKAGES flex bison \
+ENV PACKAGES \
+    bison \
     bsdmainutils \
     ccache \
     clang-10\
+    flex \
     gcc \
     gcovr \
     genisoimage \
@@ -63,8 +65,8 @@ ENV PACKAGES flex bison \
     sparse \
     tesseract-ocr \
     tesseract-ocr-eng \
-    xfslibs-dev\
-    vim
+    vim \
+    xfslibs-dev
 RUN apt-get update && \
     DEBIAN_FRONTEND=noninteractive apt-get -y install $PACKAGES
 RUN dpkg -l $PACKAGES | sort > /packages.txt
Signature · 1 line
2.31.1
#7 lore raw

PATCH v3 7/22 tests/docker: fix mistakes in centos package lists

In reply to Daniel P. Berrangé

mesa-libEGL-devel is not used in QEMU at all, but mesa-libgbm-devel is.

spice-glib-devel is not use in QEMU at all, but spice-protocol is. We also need the -devel package for spice-server, not the runtime.

There is no need to specifically refer to python36, we can just use python3 as in other distros.

---
 tests/docker/dockerfiles/centos8.docker | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
tests/docker/dockerfiles/centos8.docker +4 -4
index f1023d1cec..06df2db5f0 100644
@@ -20,16 +20,16 @@ ENV PACKAGES \
     libgcrypt-devel \
     lzo-devel \
     make \
-    mesa-libEGL-devel \
+    mesa-libgbm-devel \
     nettle-devel \
     ninja-build \
     nmap-ncat \
     perl-Test-Harness \
     pixman-devel \
-    python36 \
+    python3 \
     rdma-core-devel \
-    spice-glib-devel \
-    spice-server \
+    spice-protocol \
+    spice-server-devel \
     systemtap-sdt-devel \
     tar \
     zlib-devel
Signature · 1 line
2.31.1
Reviewed-by on v3 7/22
#8 lore raw

Re: [PATCH v3 07/22] tests/docker: fix mistakes in centos package lists

Quoted 5 lines · Daniel P. Berrangé

mesa-libEGL-devel is not used in QEMU at all, but mesa-libgbm-devel is.

spice-glib-devel is not use in QEMU at all, but spice-protocol is. We also need the -devel package for spice-server, not the runtime.

Quoted 8 lines

There is no need to specifically refer to python36, we can just use python3 as in other distros.

---
 tests/docker/dockerfiles/centos8.docker | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
#9 lore raw

PATCH v3 8/22 tests/docker: fix mistakes in fedora package list

In reply to Daniel P. Berrangé

libblockdev-mpath-devel is not used by QEMU, rather it wants device-mapper-multipath-devel.

---
 tests/docker/dockerfiles/fedora.docker | 1 -
 1 file changed, 1 deletion(-)
tests/docker/dockerfiles/fedora.docker +0 -1
index 6528b57a2f..1a0830eedf 100644
@@ -28,7 +28,6 @@ ENV PACKAGES \
     libaio-devel \
     libasan \
     libattr-devel \
-    libblockdev-mpath-devel \
     libcacard-devel \
     libcap-ng-devel \
     libcurl-devel \
Signature · 1 line
2.31.1
#10 lore raw

PATCH v3 9/22 tests/docker: fix mistakes in ubuntu package lists

In reply to Daniel P. Berrangé

librados-dev is not required by QEMU directly, only librbd-dev.

glusterfs-common is not directly needed by QEMU.

QEMU uses ncursesw only on non-Windows hosts.

The clang package is clang 10.

flex and bison are not required by QEMU.

Standardize on nmap ncat implementation to match Fedora/CentOS.

Remove vim since it is not a build pre-requisite and no other containers include it.

---
 tests/docker/dockerfiles/ubuntu1804.docker |  3 ---
 tests/docker/dockerfiles/ubuntu2004.docker | 10 ++--------
 2 files changed, 2 insertions(+), 11 deletions(-)
tests/docker/dockerfiles/ubuntu1804.docker +0 -3
index 58a373e205..f063cfe921 100644
@@ -5,7 +5,6 @@ ENV PACKAGES \
     gcc \
     gettext \
     git \
-    glusterfs-common \
     libaio-dev \
     libattr1-dev \
     libbrlapi-dev \
@@ -23,12 +22,10 @@ ENV PACKAGES \
     libjemalloc-dev \
     libjpeg-turbo8-dev \
     liblzo2-dev \
-    libncurses5-dev \
     libncursesw5-dev \
     libnfs-dev \
     libnuma-dev \
     libpixman-1-dev \
-    librados-dev \
     librbd-dev \
     librdmacm-dev \
     libsasl2-dev \
tests/docker/dockerfiles/ubuntu2004.docker +2 -8
index 5044f4d9b7..d655d020fb 100644
@@ -1,16 +1,13 @@
 FROM docker.io/library/ubuntu:20.04
 ENV PACKAGES \
-    bison \
     bsdmainutils \
     ccache \
-    clang-10\
-    flex \
+    clang \
     gcc \
     gcovr \
     genisoimage \
     gettext \
     git \
-    glusterfs-common \
     libaio-dev \
     libattr1-dev \
     libbrlapi-dev \
@@ -29,12 +26,10 @@ ENV PACKAGES \
     libjpeg-turbo8-dev \
     liblttng-ust-dev \
     liblzo2-dev \
-    libncurses5-dev \
     libncursesw5-dev \
     libnfs-dev \
     libnuma-dev \
     libpixman-1-dev \
-    librados-dev \
     librbd-dev \
     librdmacm-dev \
     libsasl2-dev \
@@ -52,7 +47,7 @@ ENV PACKAGES \
     libxen-dev \
     libzstd-dev \
     make \
-    netcat-openbsd \
+    ncat \
     ninja-build \
     python3-numpy \
     python3-opencv \
@@ -65,7 +60,6 @@ ENV PACKAGES \
     sparse \
     tesseract-ocr \
     tesseract-ocr-eng \
-    vim \
     xfslibs-dev
 RUN apt-get update && \
     DEBIAN_FRONTEND=noninteractive apt-get -y install $PACKAGES
Signature · 1 line
2.31.1
Reviewed-by on v3 9/22
#11 lore raw

Re: [PATCH v3 09/22] tests/docker: fix mistakes in ubuntu package lists

Quoted 9 lines · Daniel P. Berrangé

librados-dev is not required by QEMU directly, only librbd-dev.

glusterfs-common is not directly needed by QEMU.

QEMU uses ncursesw only on non-Windows hosts.

The clang package is clang 10.

flex and bison are not required by QEMU.

I included them to use the same Docker file to build Linux kernel we test. Not a blocker, this is the QEMU project, and I'd rather get the vmlinux images prebuilt from elsewhere, so:

Quoted 11 lines

Standardize on nmap ncat implementation to match Fedora/CentOS.

Remove vim since it is not a build pre-requisite and no other containers include it.

---
 tests/docker/dockerfiles/ubuntu1804.docker |  3 ---
 tests/docker/dockerfiles/ubuntu2004.docker | 10 ++--------
 2 files changed, 2 insertions(+), 11 deletions(-)
#12 lore raw

Re: [PATCH v3 09/22] tests/docker: fix mistakes in ubuntu package lists

Quoted 7 lines · Philippe Mathieu-Daudé
Quoted 6 lines · Daniel P. Berrangé

librados-dev is not required by QEMU directly, only librbd-dev.

glusterfs-common is not directly needed by QEMU.

QEMU uses ncursesw only on non-Windows hosts.

Quoted 7 lines
Quoted 3 lines

The clang package is clang 10.

flex and bison are not required by QEMU.

I included them to use the same Docker file to build Linux kernel we test. Not a blocker, this is the QEMU project, and I'd rather get the vmlinux images prebuilt from elsewhere, so:

If we want containers in which we can build the kernel, we can also create a dedicated set of dockerfiles containing only the deps that Linux kernel builds needs, separate from QEMU.

Quoted 15 lines
Quoted 11 lines

Standardize on nmap ncat implementation to match Fedora/CentOS.

Remove vim since it is not a build pre-requisite and no other containers include it.

---
 tests/docker/dockerfiles/ubuntu1804.docker |  3 ---
 tests/docker/dockerfiles/ubuntu2004.docker | 10 ++--------
 2 files changed, 2 insertions(+), 11 deletions(-)

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 :|
#13 lore raw

Re: [PATCH v3 09/22] tests/docker: fix mistakes in ubuntu package lists

Quoted 12 lines · Daniel P. Berrangé
Quoted 11 lines · Philippe Mathieu-Daudé
Quoted 9 lines · Daniel P. Berrangé

librados-dev is not required by QEMU directly, only librbd-dev.

glusterfs-common is not directly needed by QEMU.

QEMU uses ncursesw only on non-Windows hosts.

The clang package is clang 10.

flex and bison are not required by QEMU.

Quoted 7 lines
Quoted 3 lines

I included them to use the same Docker file to build Linux kernel we test. Not a blocker, this is the QEMU project, and I'd rather get the vmlinux images prebuilt from elsewhere, so:

If we want containers in which we can build the kernel, we can also create a dedicated set of dockerfiles containing only the deps that Linux kernel builds needs, separate from QEMU.

Yes, this is how I understand lci-tool can help.

#14 lore raw

PATCH v3 10/22 tests/docker: remove mingw packages from Fedora

In reply to Daniel P. Berrangé

There are dedicated containers providing mingw packages for Fedora.

---
 tests/docker/dockerfiles/fedora.docker | 27 --------------------------
 1 file changed, 27 deletions(-)
tests/docker/dockerfiles/fedora.docker +0 -27
index 1a0830eedf..7104812c5d 100644
@@ -50,33 +50,6 @@ ENV PACKAGES \
     lzo-devel \
     make \
     meson \
-    mingw32-bzip2 \
-    mingw32-curl \
-    mingw32-glib2 \
-    mingw32-gmp \
-    mingw32-gnutls \
-    mingw32-gtk3 \
-    mingw32-libjpeg-turbo \
-    mingw32-libpng \
-    mingw32-libtasn1 \
-    mingw32-nettle \
-    mingw32-nsis \
-    mingw32-pixman \
-    mingw32-pkg-config \
-    mingw32-SDL2 \
-    mingw64-bzip2 \
-    mingw64-curl \
-    mingw64-glib2 \
-    mingw64-gmp \
-    mingw64-gnutls \
-    mingw64-gtk3 \
-    mingw64-libjpeg-turbo \
-    mingw64-libpng \
-    mingw64-libtasn1 \
-    mingw64-nettle \
-    mingw64-pixman \
-    mingw64-pkg-config \
-    mingw64-SDL2 \
     ncurses-devel \
     nettle-devel \
     ninja-build \
Signature · 1 line
2.31.1
#15 lore raw

PATCH v3 11/22 tests/docker: expand centos8 package list

In reply to Daniel P. Berrangé

This is the fully expanded list of build pre-requisites QEMU can conceivably use in any scenario.

---
 tests/docker/dockerfiles/centos8.docker | 66 +++++++++++++++++++++++++
 1 file changed, 66 insertions(+)
tests/docker/dockerfiles/centos8.docker +66 -0
index 06df2db5f0..c95664c65a 100644
@@ -3,35 +3,101 @@ FROM docker.io/centos:8
 RUN dnf -y update
 ENV PACKAGES \
     SDL2-devel \
+    alsa-lib-devel \
+    bc \
+    brlapi-devel \
     bzip2 \
     bzip2-devel \
+    ca-certificates \
+    capstone-devel \
+    ccache \
+    clang \
+    ctags \
+    cyrus-sasl-devel \
+    daxctl-devel \
     dbus-daemon \
+    device-mapper-multipath-devel \
     diffutils \
+    findutils \
     gcc \
     gcc-c++ \
     genisoimage \
     gettext \
     git \
     glib2-devel \
+    glibc-langpack-en \
+    glibc-static \
+    glusterfs-api-devel \
+    gnutls-devel \
+    gtk3-devel \
+    hostname \
+    jemalloc-devel \
     libaio-devel \
+    libasan \
+    libattr-devel \
     libcacard-devel \
+    libcap-ng-devel \
+    libcurl-devel \
+    libdrm-devel \
     libepoxy-devel \
     libfdt-devel \
     libgcrypt-devel \
+    libiscsi-devel \
+    libjpeg-devel \
+    libnfs-devel \
+    libpmem-devel \
+    libpng-devel \
+    librbd-devel \
+    libseccomp-devel \
+    libslirp-devel \
+    libssh-devel \
+    libtasn1-devel \
+    libubsan \
+    libudev-devel \
+    libusbx-devel \
+    libxml2-devel \
+    libzstd-devel \
+    llvm \
     lzo-devel \
     make \
     mesa-libgbm-devel \
+    ncurses-devel \
     nettle-devel \
     ninja-build \
     nmap-ncat \
+    numactl-devel \
+    openssh-clients \
+    pam-devel \
+    perl \
     perl-Test-Harness \
     pixman-devel \
+    pkgconfig \
+    pulseaudio-libs-devel \
     python3 \
+    python3-PyYAML \
+    python3-numpy \
+    python3-pillow \
+    python3-pip \
+    python3-setuptools \
+    python3-sphinx \
+    python3-virtualenv \
+    python3-wheel \
     rdma-core-devel \
+    rpm \
+    sed \
+    snappy-devel \
     spice-protocol \
     spice-server-devel \
+    systemd-devel \
     systemtap-sdt-devel \
     tar \
+    texinfo \
+    usbredir-devel \
+    util-linux \
+    virglrenderer-devel \
+    vte291-devel \
+    which \
+    xfsprogs-devel \
     zlib-devel
 
 RUN dnf install -y dnf-plugins-core && \
Signature · 1 line
2.31.1
#16 lore raw

PATCH v3 12/22 tests/docker: expand fedora package list

In reply to Daniel P. Berrangé

This is the fully expanded list of build pre-requisites QEMU can conceivably use in any scenario.

---
 tests/docker/dockerfiles/fedora.docker | 28 +++++++++++++++++++++++++-
 1 file changed, 27 insertions(+), 1 deletion(-)
tests/docker/dockerfiles/fedora.docker +27 -1
index 7104812c5d..7f18e9968d 100644
@@ -3,61 +3,81 @@ FROM registry.fedoraproject.org/fedora:33
 # Please keep this list sorted alphabetically
 ENV PACKAGES \
     SDL2-devel \
+    SDL2_image-devel \
+    alsa-lib-devel \
     bc \
     brlapi-devel \
     bzip2 \
     bzip2-devel \
+    ca-certificates \
     capstone-devel \
     ccache \
     clang \
+    ctags \
     cyrus-sasl-devel \
+    daxctl-devel \
     dbus-daemon \
     device-mapper-multipath-devel \
     diffutils \
     findutils \
     gcc \
     gcc-c++ \
+    gcovr \
     genisoimage \
     gettext \
     git \
     glib2-devel \
+    glibc-langpack-en \
+    glibc-static \
     glusterfs-api-devel \
     gnutls-devel \
     gtk3-devel \
     hostname \
+    jemalloc-devel \
     libaio-devel \
     libasan \
     libattr-devel \
     libcacard-devel \
     libcap-ng-devel \
     libcurl-devel \
+    libdrm-devel \
     libepoxy-devel \
     libfdt-devel \
+    libgcrypt-devel \
     libiscsi-devel \
     libjpeg-devel \
+    libnfs-devel \
     libpmem-devel \
     libpng-devel \
     librbd-devel \
     libseccomp-devel \
     libslirp-devel \
     libssh-devel \
+    libtasn1-devel \
     libubsan \
     libudev-devel \
+    liburing-devel \
     libusbx-devel \
     libxml2-devel \
     libzstd-devel \
     llvm \
+    lttng-ust-devel \
     lzo-devel \
     make \
+    mesa-libgbm-devel \
     meson \
     ncurses-devel \
     nettle-devel \
     ninja-build \
     nmap-ncat \
     numactl-devel \
-    perl \
+    openssh-clients \
+    pam-devel \
     perl-Test-Harness \
+    perl-base \
     pixman-devel \
+    pkgconfig \
+    pulseaudio-libs-devel \
     python3 \
     python3-PyYAML \
     python3-numpy \
@@ -67,19 +87,25 @@ ENV PACKAGES \
     python3-sphinx \
     python3-virtualenv \
     rdma-core-devel \
+    rpm \
+    sed \
     snappy-devel \
     sparse \
+    spice-protocol \
     spice-server-devel \
     systemd-devel \
     systemtap-sdt-devel \
     tar \
     tesseract \
     tesseract-langpack-eng \
+    texinfo \
     usbredir-devel \
+    util-linux \
     virglrenderer-devel \
     vte291-devel \
     which \
     xen-devel \
+    xfsprogs-devel \
     zlib-devel
 ENV QEMU_CONFIGURE_OPTS --python=/usr/bin/python3
 
Signature · 1 line
2.31.1
#17 lore raw

PATCH v3 13/22 tests/docker: expand ubuntu1804 package list

In reply to Daniel P. Berrangé

This is the fully expanded list of build pre-requisites QEMU can conceivably use in any scenario.

---
 tests/docker/dockerfiles/ubuntu1804.docker | 61 +++++++++++++++++++++-
 1 file changed, 60 insertions(+), 1 deletion(-)
tests/docker/dockerfiles/ubuntu1804.docker +60 -1
index f063cfe921..c2cd5a9e9a 100644
@@ -1,52 +1,111 @@
 FROM docker.io/library/ubuntu:18.04
 ENV PACKAGES \
+    bc \
+    bsdmainutils \
+    bzip2 \
+    ca-certificates \
     ccache \
     clang \
+    dbus \
+    debianutils \
+    diffutils \
+    exuberant-ctags \
+    findutils \
+    g++ \
     gcc \
+    gcovr \
+    genisoimage \
     gettext \
     git \
+    glusterfs-common \
+    hostname \
     libaio-dev \
+    libasan5 \
+    libasound2-dev \
     libattr1-dev \
     libbrlapi-dev \
     libbz2-dev \
+    libc6-dev \
     libcacard-dev \
     libcap-ng-dev \
+    libcapstone-dev \
     libcurl4-gnutls-dev \
+    libdaxctl-dev \
     libdrm-dev \
     libepoxy-dev \
     libfdt-dev \
     libgbm-dev \
+    libgcrypt20-dev \
+    libglib2.0-dev \
+    libgnutls28-dev \
     libgtk-3-dev \
     libibverbs-dev \
     libiscsi-dev \
     libjemalloc-dev \
     libjpeg-turbo8-dev \
+    liblttng-ust-dev \
     liblzo2-dev \
     libncursesw5-dev \
     libnfs-dev \
     libnuma-dev \
+    libpam0g-dev \
     libpixman-1-dev \
+    libpmem-dev \
+    libpng-dev \
+    libpulse-dev \
     librbd-dev \
     librdmacm-dev \
     libsasl2-dev \
     libsdl2-dev \
+    libsdl2-image-dev \
     libseccomp-dev \
     libsnappy-dev \
     libspice-protocol-dev \
     libspice-server-dev \
     libssh-dev \
+    libsystemd-dev \
+    libtasn1-6-dev \
+    libtest-harness-perl \
+    libubsan1 \
+    libudev-dev \
     libusb-1.0-0-dev \
     libusbredirhost-dev \
     libvdeplug-dev \
+    libvirglrenderer-dev \
     libvte-2.91-dev \
     libxen-dev \
+    libxml2-dev \
     libzstd-dev \
+    llvm \
+    locales \
     make \
+    multipath-tools \
+    netcat-openbsd \
+    nettle-dev \
     ninja-build \
+    openssh-client \
+    perl-base \
+    pkgconf \
+    python3 \
+    python3-numpy \
+    python3-opencv \
+    python3-pillow \
+    python3-pip \
+    python3-setuptools \
     python3-sphinx \
+    python3-venv \
+    python3-wheel \
     python3-yaml \
+    rpm2cpio \
+    sed \
     sparse \
-    xfslibs-dev
+    systemtap-sdt-dev \
+    tar \
+    tesseract-ocr \
+    tesseract-ocr-eng \
+    texinfo \
+    xfslibs-dev \
+    zlib1g-dev
 RUN apt-get update && \
     DEBIAN_FRONTEND=noninteractive apt-get -y install $PACKAGES
 RUN dpkg -l $PACKAGES | sort > /packages.txt
Signature · 1 line
2.31.1
#18 lore raw

PATCH v3 14/22 tests/docker: expand ubuntu2004 package list

In reply to Daniel P. Berrangé

This is the fully expanded list of build pre-requisites QEMU can conceivably use in any scenario.

---
 tests/docker/dockerfiles/ubuntu2004.docker | 50 +++++++++++++++++++++-
 1 file changed, 48 insertions(+), 2 deletions(-)
tests/docker/dockerfiles/ubuntu2004.docker +48 -2
index d655d020fb..8be4c40c9e 100644
@@ -1,24 +1,43 @@
 FROM docker.io/library/ubuntu:20.04
 ENV PACKAGES \
+    bc \
     bsdmainutils \
+    bzip2 \
+    ca-certificates \
     ccache \
     clang \
+    dbus \
+    debianutils \
+    diffutils \
+    exuberant-ctags \
+    findutils \
+    g++ \
     gcc \
     gcovr \
     genisoimage \
     gettext \
     git \
+    hostname \
     libaio-dev \
+    libasan5 \
+    libasound2-dev \
     libattr1-dev \
     libbrlapi-dev \
     libbz2-dev \
+    libc6-dev \
     libcacard-dev \
     libcap-ng-dev \
+    libcapstone-dev \
     libcurl4-gnutls-dev \
+    libdaxctl-dev \
     libdrm-dev \
     libepoxy-dev \
     libfdt-dev \
     libgbm-dev \
+    libgcrypt20-dev \
+    libglib2.0-dev \
+    libglusterfs-dev \
+    libgnutls28-dev \
     libgtk-3-dev \
     libibverbs-dev \
     libiscsi-dev \
@@ -29,38 +48,65 @@ ENV PACKAGES \
     libncursesw5-dev \
     libnfs-dev \
     libnuma-dev \
+    libpam0g-dev \
     libpixman-1-dev \
+    libpmem-dev \
+    libpng-dev \
+    libpulse-dev \
     librbd-dev \
     librdmacm-dev \
     libsasl2-dev \
     libsdl2-dev \
+    libsdl2-image-dev \
     libseccomp-dev \
     libslirp-dev \
     libsnappy-dev \
     libspice-protocol-dev \
     libspice-server-dev \
     libssh-dev \
+    libsystemd-dev \
+    libtasn1-6-dev \
+    libtest-harness-perl \
+    libubsan1 \
+    libudev-dev \
     libusb-1.0-0-dev \
     libusbredirhost-dev \
     libvdeplug-dev \
+    libvirglrenderer-dev \
     libvte-2.91-dev \
     libxen-dev \
+    libxml2-dev \
     libzstd-dev \
+    llvm \
+    locales \
     make \
+    multipath-tools \
     ncat \
+    nettle-dev \
     ninja-build \
+    openssh-client \
+    perl-base \
+    pkgconf \
+    python3 \
     python3-numpy \
     python3-opencv \
-    python3-pil \
+    python3-pillow \
     python3-pip \
+    python3-setuptools \
     python3-sphinx \
     python3-venv \
+    python3-wheel \
     python3-yaml \
     rpm2cpio \
+    sed \
     sparse \
+    systemtap-sdt-dev \
+    tar \
     tesseract-ocr \
     tesseract-ocr-eng \
-    xfslibs-dev
+    texinfo \
+    xfslibs-dev \
+    zlib1g-dev
 RUN apt-get update && \
     DEBIAN_FRONTEND=noninteractive apt-get -y install $PACKAGES
 RUN dpkg -l $PACKAGES | sort > /packages.txt
Signature · 1 line
2.31.1
#19 lore raw

PATCH v3 15/22 tests/docker: expand opensuse-leap package list

In reply to Daniel P. Berrangé

This is the fully expanded list of build pre-requisites QEMU can conceivably use in any scenario.

---
 tests/docker/dockerfiles/opensuse-leap.docker | 57 ++++++++++++++++++-
 1 file changed, 56 insertions(+), 1 deletion(-)
tests/docker/dockerfiles/opensuse-leap.docker +56 -1
index ed194125a7..0f67296a8f 100644
@@ -2,52 +2,107 @@ FROM registry.opensuse.org/opensuse/leap:15.2
 
 # Please keep this list sorted alphabetically
 ENV PACKAGES \
+    Mesa-devel \
+    alsa-lib-devel \
     bc \
     brlapi-devel \
     bzip2 \
+    ca-certificates \
+    ccache \
+    clang \
+    ctags \
     cyrus-sasl-devel \
+    dbus-1 \
+    diffutils \
+    findutils \
     gcc \
     gcc-c++ \
+    gcovr \
     gettext-runtime \
     git \
     glib2-devel \
+    glibc-locale \
+    glibc-static \
     glusterfs-devel \
     gtk3-devel \
+    hostname \
+    jemalloc-devel \
     libSDL2-devel \
     libSDL2_image-devel \
     libaio-devel \
+    libasan6 \
     libattr-devel \
+    libbz2-devel \
+    libcacard-devel \
     libcap-ng-devel \
+    libcurl-devel \
+    libdrm-devel \
     libepoxy-devel \
     libfdt-devel \
+    libgcrypt-devel \
     libgnutls-devel \
     libiscsi-devel \
     libjpeg8-devel \
+    libndctl-devel \
+    libnettle-devel \
+    libnfs-devel \
     libnuma-devel \
     libpixman-1-0-devel \
     libpmem-devel \
     libpng16-devel \
+    libpulse-devel \
     librbd-devel \
     libseccomp-devel \
     libspice-server-devel \
     libssh-devel \
+    libtasn1-devel \
+    libubsan1 \
+    libudev-devel \
+    libusb-1_0-devel \
+    libxml2-devel \
+    libzstd-devel \
+    llvm \
+    lttng-ust-devel \
     lzo-devel \
     make \
     mkisofs \
+    ncat \
     ncurses-devel \
     ninja \
-    perl \
+    openssh \
+    pam-devel \
+    perl-Test-Harness \
+    perl-base \
+    pkgconfig \
+    python3-Pillow \
+    python3-PyYAML \
+    python3-Sphinx \
     python3-base \
+    python3-numpy \
+    python3-opencv \
+    python3-pip \
+    python3-setuptools \
     python3-virtualenv \
+    python3-wheel \
     rdma-core-devel \
+    rpm \
+    sed \
     snappy-devel \
+    sparse \
+    spice-protocol-devel \
     systemd-devel \
     systemtap-sdt-devel \
     tar \
+    tesseract-ocr \
+    tesseract-ocr-traineddata-english \
+    texinfo \
     usbredir-devel \
+    util-linux \
     virglrenderer-devel \
     vte-devel \
+    which \
     xen-devel \
+    xfsprogs-devel \
     zlib-devel
 ENV QEMU_CONFIGURE_OPTS --python=/usr/bin/python3.6
 
Signature · 1 line
2.31.1
#20 lore raw

PATCH v3 16/22 tests/docker: add script for automating container refresh

In reply to Daniel P. Berrangé

This introduces

https://gitlab.com/libvirt/libvirt-ci

as a git submodule at tests/docker/libvirt-ci

This submodule only needs to be checked out when needing to re-generate the files in tests/docker/dockerfiles.

When a new build pre-requisite is needed for QEMU, it should be added to the libvirt-ci project 'qemu.yml' file, and the submodule updated to the new commit. The 'make docker-refresh' target will then re-create all the dockerfiles with updated package lists. This ensures that all the containers get exactly the same build pre-requisite packages installed.

It also facilitates the addition of containers targetting new distros or updating existing containers to new versions of the same distro, where packages might have been renamed.

---
 .gitmodules                         |  3 ++
 docs/devel/testing.rst              | 15 ++++++--
 tests/docker/Makefile.include       | 10 ++++++
 tests/docker/dockerfiles-refresh.py | 56 +++++++++++++++++++++++++++++
 tests/docker/libvirt-ci             |  1 +
 5 files changed, 83 insertions(+), 2 deletions(-)
 create mode 100755 tests/docker/dockerfiles-refresh.py
 create mode 160000 tests/docker/libvirt-ci
.gitmodules +3 -0
index 08b1b48a09..f78c63219b 100644
@@ -64,3 +64,6 @@
 [submodule "roms/vbootrom"]
 	path = roms/vbootrom
 	url = https://gitlab.com/qemu-project/vbootrom.git
+[submodule "tests/docker/libvirt-ci"]
+	path = tests/docker/libvirt-ci
+	url = https://gitlab.com/libvirt/libvirt-ci
docs/devel/testing.rst +13 -2
index 1da4c4e4c4..c159032e04 100644
@@ -372,8 +372,19 @@ Along with many other images, the ``centos8`` image is defined in a Dockerfile
 in ``tests/docker/dockerfiles/``, called ``centos8.docker``. ``make docker-help``
 command will list all the available images.
 
-To add a new image, simply create a new ``.docker`` file under the
-``tests/docker/dockerfiles/`` directory.
+Most of the existing Dockerfiles were written by hand, simply by creating a
+a new ``.docker`` file under the ``tests/docker/dockerfiles/`` directory.
+This has led to an inconsistent set of packages being present across the
+different containers. Thus going forward, QEMU is aiming to automatically
+generate the Dockerfiles using the tools provided by the libvirt-ci project
+
+  https://gitlab.com/libvirt/libvirt-ci
+
+In that project, there is a master ``qemu.yml`` file defining the list of
+build pre-requisites, that is processed together with the ``mappings.yml``
+file to produce the distro specific list of package names. The automatically
+generated Dockerfiles are produced by ``tests/docker/dockerfiles-refresh.py``
+which is wired up to the ``make docker-refresh`` target.
 
 A ``.pre`` script can be added beside the ``.docker`` file, which will be
 executed before building the image under the build context directory. This is
tests/docker/Makefile.include +10 -0
index 9f464cb92c..03e722b838 100644
@@ -27,6 +27,8 @@ DOCKER_TESTS := $(notdir $(shell \
 ENGINE := auto
 
 DOCKER_SCRIPT=$(SRC_PATH)/tests/docker/docker.py --engine $(ENGINE)
+REFRESH_SCRIPT=$(SRC_PATH)/tests/docker/dockerfiles-refresh.py
+LCITOOL=$(SRC_PATH)/tests/docker/libvirt-ci/lcitool
 
 TESTS ?= %
 IMAGES ?= %
@@ -199,6 +201,7 @@ docker:
 	@echo '    docker-image:        Build all images.'
 	@echo '    docker-image-IMAGE:  Build image "IMAGE".'
 	@echo '    docker-run:          For manually running a "TEST" with "IMAGE".'
+	@echo '    docker-refresh:      Re-generate dockerfiles after updating libvirt-ci'
 	@echo
 	@echo 'Available container images:'
 	@echo '    $(DOCKER_IMAGES)'
@@ -281,3 +284,10 @@ docker-run-%:
 
 docker-clean:
 	$(call quiet-command, $(DOCKER_SCRIPT) clean)
+
+docker-refresh:
+	@if [ ! -f $(LCITOOL) ] ; \
+	then \
+	    cd $(SRC_PATH) && git submodule update --init tests/docker/libvirt-ci ; \
+	fi
+	$(call quiet-command, $(REFRESH_SCRIPT) $(LCITOOL) $(SRC_PATH))
tests/docker/dockerfiles-refresh.py new file +56 -0

56 lines not on this page · raw message

tests/docker/libvirt-ci new file +1 -0
new file mode 160000
index 0000000000..1c5d87ecd2
@@ -0,0 +1 @@
+Subproject commit 1c5d87ecd2283614a8b0c31cead0b6d7883afd28
Signature · 1 line
2.31.1
Reviewed-by on v3 16/22
#21 lore raw

Re: [PATCH v3 16/22] tests/docker: add script for automating container refresh

Quoted 20 lines · Daniel P. Berrangé

This introduces

https://gitlab.com/libvirt/libvirt-ci

as a git submodule at tests/docker/libvirt-ci

This submodule only needs to be checked out when needing to re-generate the files in tests/docker/dockerfiles.

When a new build pre-requisite is needed for QEMU, it should be added to the libvirt-ci project 'qemu.yml' file, and the submodule updated to the new commit. The 'make docker-refresh' target will then re-create all the dockerfiles with updated package lists. This ensures that all the containers get exactly the same build pre-requisite packages installed.

It also facilitates the addition of containers targetting new distros or updating existing containers to new versions of the same distro, where packages might have been renamed.

Quoted 9 lines
---
 .gitmodules                         |  3 ++
 docs/devel/testing.rst              | 15 ++++++--
 tests/docker/Makefile.include       | 10 ++++++
 tests/docker/dockerfiles-refresh.py | 56 +++++++++++++++++++++++++++++
 tests/docker/libvirt-ci             |  1 +
 5 files changed, 83 insertions(+), 2 deletions(-)
 create mode 100755 tests/docker/dockerfiles-refresh.py
 create mode 160000 tests/docker/libvirt-ci
#22 lore raw

PATCH v3 17/22 tests/docker: auto-generate centos8 with lcitool

In reply to Daniel P. Berrangé

This commit is best examined using the "-b" option to diff.

---
 tests/docker/dockerfiles-refresh.py     |   2 +-
 tests/docker/dockerfiles/centos8.docker | 232 +++++++++++++-----------
 2 files changed, 129 insertions(+), 105 deletions(-)
tests/docker/dockerfiles-refresh.py +1 -1
index 7f59ffbc59..309ec4f5f4 100755
@@ -51,6 +51,6 @@ def generate_image(filename, host, cross=None, trailer=None):
    atomic_write(filename, content)
 
 try:
-   pass
+   generate_image("centos8.docker", "centos-8")
 except Exception as ex:
    print(str(ex), file=sys.stderr)
tests/docker/dockerfiles/centos8.docker +128 -104

234 lines not on this page · raw message

Signature · 1 line
2.31.1
#23 lore raw

PATCH v3 18/22 tests/docker: auto-generate fedora with lcitool

In reply to Daniel P. Berrangé

This commit is best examined using the "-b" option to diff.

---
 tests/docker/dockerfiles-refresh.py    |   1 +
 tests/docker/dockerfiles/fedora.docker | 248 ++++++++++++++-----------
 2 files changed, 138 insertions(+), 111 deletions(-)
tests/docker/dockerfiles-refresh.py +1 -0
index 309ec4f5f4..8f6047f9b0 100755
@@ -52,5 +52,6 @@ def generate_image(filename, host, cross=None, trailer=None):
 
 try:
    generate_image("centos8.docker", "centos-8")
+   generate_image("fedora.docker", "fedora-33")
 except Exception as ex:
    print(str(ex), file=sys.stderr)
tests/docker/dockerfiles/fedora.docker +137 -111

251 lines not on this page · raw message

Signature · 1 line
2.31.1
#24 lore raw

PATCH v3 19/22 tests/docker: auto-generate ubuntu1804 with lcitool

In reply to Daniel P. Berrangé

This commit is best examined using the "-b" option to diff.

---
 tests/docker/dockerfiles-refresh.py        |   6 +
 tests/docker/dockerfiles/ubuntu1804.docker | 247 ++++++++++++---------
 2 files changed, 143 insertions(+), 110 deletions(-)
tests/docker/dockerfiles-refresh.py +6 -0
index 8f6047f9b0..e39a6c1192 100755
@@ -53,5 +53,11 @@ def generate_image(filename, host, cross=None, trailer=None):
 try:
    generate_image("centos8.docker", "centos-8")
    generate_image("fedora.docker", "fedora-33")
+
+   skipssh = ["# https://bugs.launchpad.net/qemu/+bug/1838763\n",
+              "ENV QEMU_CONFIGURE_OPTS --disable-libssh\n"]
+
+   generate_image("ubuntu1804.docker", "ubuntu-1804",
+                  trailer="".join(skipssh))
 except Exception as ex:
    print(str(ex), file=sys.stderr)
tests/docker/dockerfiles/ubuntu1804.docker +137 -110

251 lines not on this page · raw message

Signature · 1 line
2.31.1
#25 lore raw

PATCH v3 20/22 tests/docker: auto-generate ubuntu2004 with lcitool

In reply to Daniel P. Berrangé

This commit is best examined using the "-b" option to diff.

---
 tests/docker/dockerfiles-refresh.py        |   6 +
 tests/docker/dockerfiles/ubuntu2004.docker | 249 ++++++++++++---------
 2 files changed, 144 insertions(+), 111 deletions(-)
tests/docker/dockerfiles-refresh.py +6 -0
index e39a6c1192..df2dfc60e8 100755
@@ -59,5 +59,11 @@ def generate_image(filename, host, cross=None, trailer=None):
 
    generate_image("ubuntu1804.docker", "ubuntu-1804",
                   trailer="".join(skipssh))
+
+   tsanhack = ["# Apply patch https://reviews.llvm.org/D75820\n",
+               "# This is required for TSan in clang-10 to compile with QEMU.\n",
+               "RUN sed -i 's/^const/static const/g' /usr/lib/llvm-10/lib/clang/10.0.0/include/sanitizer/tsan_interface.h\n"]
+   generate_image("ubuntu2004.docker", "ubuntu-2004",
+                  trailer="".join(tsanhack))
 except Exception as ex:
    print(str(ex), file=sys.stderr)
tests/docker/dockerfiles/ubuntu2004.docker +138 -111

254 lines not on this page · raw message

Signature · 1 line
2.31.1
#26 lore raw

PATCH v3 21/22 tests/docker: auto-generate opensuse-leap with lcitool

In reply to Daniel P. Berrangé

This commit is best examined using the "-b" option to diff.

---
 tests/docker/dockerfiles-refresh.py           |   1 +
 tests/docker/dockerfiles/opensuse-leap.docker | 233 ++++++++++--------
 2 files changed, 127 insertions(+), 107 deletions(-)
tests/docker/dockerfiles-refresh.py +1 -0
index df2dfc60e8..ba37f38383 100755
@@ -65,5 +65,6 @@ def generate_image(filename, host, cross=None, trailer=None):
                "RUN sed -i 's/^const/static const/g' /usr/lib/llvm-10/lib/clang/10.0.0/include/sanitizer/tsan_interface.h\n"]
    generate_image("ubuntu2004.docker", "ubuntu-2004",
                   trailer="".join(tsanhack))
+   generate_image("opensuse-leap.docker", "opensuse-leap-152")
 except Exception as ex:
    print(str(ex), file=sys.stderr)
tests/docker/dockerfiles/opensuse-leap.docker +126 -107

236 lines not on this page · raw message

Signature · 1 line
2.31.1
#27 lore raw

PATCH v3 22/22 tests/docker: remove ubuntu container

In reply to Daniel P. Berrangé

This duplicates the ubuntu2004 container but with an inconsistent set of packages.

---
 .gitlab-ci.d/containers.yml            |  5 --
 tests/docker/dockerfiles/ubuntu.docker | 69 --------------------------
 2 files changed, 74 deletions(-)
 delete mode 100644 tests/docker/dockerfiles/ubuntu.docker
.gitlab-ci.d/containers.yml +0 -5
index 33e4046e23..ed31ba2e2c 100644
@@ -240,11 +240,6 @@ amd64-ubuntu2004-container:
   variables:
     NAME: ubuntu2004
 
-amd64-ubuntu-container:
-  <<: *container_job_definition
-  variables:
-    NAME: ubuntu
-
 amd64-opensuse-leap-container:
   <<: *container_job_definition
   variables:
tests/docker/dockerfiles/ubuntu.docker deleted +0 -69

69 lines not on this page · raw message

Signature · 1 line
2.31.1
#28 lore raw
In reply to Daniel P. Berrangé
Patchew URL: https://patchew.org/QEMU/[email protected]/

Patchew URL: https://patchew.org/QEMU/[email protected]/

Hi,

This series seems to have some coding style problems. See output below for more information:

Type: series
Message-id: [email protected]
Subject: [PATCH v3 00/22] tests/docker: start using libvirt-ci's "lcitool" for dockerfiles

=== TEST SCRIPT BEGIN ===
#!/bin/bash
git rev-parse base > /dev/null || exit 0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram
./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===

Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
From https://github.com/patchew-project/qemu
- [tag update] patchew/[email protected] -> patchew/[email protected]
* [new tag] patchew/[email protected] -> patchew/[email protected]
Switched to a new branch 'test'
73a0045 tests/docker: remove ubuntu container
d6b42f9 tests/docker: auto-generate opensuse-leap with lcitool 8a2b437 tests/docker: auto-generate ubuntu2004 with lcitool dd19e03 tests/docker: auto-generate ubuntu1804 with lcitool 931d434 tests/docker: auto-generate fedora with lcitool 8402c0d tests/docker: auto-generate centos8 with lcitool f581c7c tests/docker: add script for automating container refresh 95ad785 tests/docker: expand opensuse-leap package list 790f77d tests/docker: expand ubuntu2004 package list 0c357e1 tests/docker: expand ubuntu1804 package list a29a532 tests/docker: expand fedora package list f1df3d0 tests/docker: expand centos8 package list a7c131e tests/docker: remove mingw packages from Fedora 37ce608 tests/docker: fix mistakes in ubuntu package lists 977b03d tests/docker: fix mistakes in fedora package list b3580ed tests/docker: fix mistakes in centos package lists 5757744 tests/docker: fix sorting in package lists 826c380 tests/docker: remove FEATURES env var from templates fad3849 tests/docker: use explicit docker.io registry 5098f17 tests/docker: use project specific container registries 2dc7c73 tests/docker: don't use BUILDKIT in GitLab either f10a2d6 hw/usb/ccid: remove references to NSS

=== OUTPUT BEGIN ===
1/22 Checking commit f10a2d6c78d1 (hw/usb/ccid: remove references to NSS)
2/22 Checking commit 2dc7c735b228 (tests/docker: don't use BUILDKIT in GitLab either) 3/22 Checking commit 5098f173e564 (tests/docker: use project specific container registries) 4/22 Checking commit fad3849eb138 (tests/docker: use explicit docker.io registry) 5/22 Checking commit 826c380cbbc9 (tests/docker: remove FEATURES env var from templates) 6/22 Checking commit 57577442850f (tests/docker: fix sorting in package lists) 7/22 Checking commit b3580edfbd81 (tests/docker: fix mistakes in centos package lists) 8/22 Checking commit 977b03d43f95 (tests/docker: fix mistakes in fedora package list) 9/22 Checking commit 37ce60848186 (tests/docker: fix mistakes in ubuntu package lists) 10/22 Checking commit a7c131edc9b6 (tests/docker: remove mingw packages from Fedora) 11/22 Checking commit f1df3d0229f6 (tests/docker: expand centos8 package list) 12/22 Checking commit a29a53287642 (tests/docker: expand fedora package list) 13/22 Checking commit 0c357e188a91 (tests/docker: expand ubuntu1804 package list) 14/22 Checking commit 790f77db86dc (tests/docker: expand ubuntu2004 package list) 15/22 Checking commit 95ad7854e308 (tests/docker: expand opensuse-leap package list) 16/22 Checking commit f581c7c94392 (tests/docker: add script for automating container refresh) Use of uninitialized value $acpi_testexpected in string eq at ./scripts/checkpatch.pl line 1529.
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#106:
new file mode 100755

total: 0 errors, 1 warnings, 109 lines checked

Patch 16/22 has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
17/22 Checking commit 8402c0d0f253 (tests/docker: auto-generate centos8 with lcitool) 18/22 Checking commit 931d434d8aef (tests/docker: auto-generate fedora with lcitool) 19/22 Checking commit dd19e0388006 (tests/docker: auto-generate ubuntu1804 with lcitool) 20/22 Checking commit 8a2b437a4498 (tests/docker: auto-generate ubuntu2004 with lcitool)
ERROR: line over 90 characters
#28: FILE: tests/docker/dockerfiles-refresh.py:65:
+ "RUN sed -i 's/^const/static const/g' /usr/lib/llvm-10/lib/clang/10.0.0/include/sanitizer/tsan_interface.h\n"]

total: 1 errors, 0 warnings, 266 lines checked

Patch 20/22 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS.

21/22 Checking commit d6b42f932077 (tests/docker: auto-generate opensuse-leap with lcitool) 22/22 Checking commit 73a00450ba05 (tests/docker: remove ubuntu container)
Use of uninitialized value $acpi_testexpected in string eq at ./scripts/checkpatch.pl line 1529.
WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
#35:
deleted file mode 100644

total: 0 errors, 1 warnings, 11 lines checked

Patch 22/22 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS.
=== OUTPUT END ===

Test command exited with code: 1

The full log is available at
http://patchew.org/logs/[email protected]/testing.checkpatch/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to [email protected]