Skip to contentSkip to conversation

tests/docker: Update Fedora containers

PATCH Superseded John Snow 8 participants 24 messages Nov 3, 2021 – Nov 24, 2021

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

John Snow

author
#0 lore raw

cover tests/docker: Update Fedora containers

Fedora 33 will be EOL before 6.2 ships; Fedora 35 was just released. Update our various containers to test on F34 and F35.

Fix a minor code warning issue that surfaces in a new version of Clang, and fix a small deprecation issue for the latest version of spice.

In testing, I found that oss-fuzz was more likely to time out on GitLab; it's unclear if this is a performance regression or just getting unlucky with when I test.

Summary:
fedora.docker updated to F34 and then F35 fedora34.docker copied from fedora.docker, new build test added cross-compile targets bumped from F33 to F34

John Snow (6):
spice: Update QXLInterface for spice >= 0.15.0 ui/clipboard: Don't use g_autoptr just to free a variable
docker: update fedora container to Fedora 34
docker: update Fedora-based cross-compiler containers to Fedora 34
docker: update 'python' dockerfile to use Fedora registry
docker: Add Fedora 35 container

 include/ui/qemu-spice.h                       |   6 +
 hw/display/qxl.c                              |  14 ++-
 ui/clipboard.c                                |   3 +-
 ui/spice-display.c                            |  11 ++
 .gitlab-ci.d/buildtest.yml                    |  16 +++
 .gitlab-ci.d/container-core.yml               |   5 +
 .../dockerfiles/fedora-cris-cross.docker      |   2 +-
 .../dockerfiles/fedora-win32-cross.docker     |   2 +-
 .../dockerfiles/fedora-win64-cross.docker     |   2 +-
 tests/docker/dockerfiles/fedora.docker        |   2 +-
 tests/docker/dockerfiles/fedora34.docker      | 117 ++++++++++++++++++
 tests/docker/dockerfiles/python.docker        |   2 +-
 12 files changed, 175 insertions(+), 7 deletions(-)
 create mode 100644 tests/docker/dockerfiles/fedora34.docker
Signature · 1 line
2.31.1
author
#1 lore raw

PATCH 1/6 spice: Update QXLInterface for spice >= 0.15.0

spice updated the spelling (and arguments) of "attache_worker" in 0.15.0. Update QEMU to match, preventing -Wdeprecated-declarations compilations from reporting build errors.

See also:
https://gitlab.freedesktop.org/spice/spice/-/commit/974692bda1e77af92b71ed43b022439448492cb9

---
 include/ui/qemu-spice.h |  6 ++++++
 hw/display/qxl.c        | 14 +++++++++++++-
 ui/spice-display.c      | 11 +++++++++++
 3 files changed, 30 insertions(+), 1 deletion(-)
include/ui/qemu-spice.h +6 -0
index 71ecd6cfd1..21fe195e18 100644
@@ -40,6 +40,12 @@ int qemu_spice_migrate_info(const char *hostname, int port, int tls_port,
 #define SPICE_NEEDS_SET_MM_TIME 0
 #endif
 
+#if defined(SPICE_SERVER_VERSION) && (SPICE_SERVER_VERSION >= 0x000f00)
+#define SPICE_HAS_ATTACHED_WORKER 1
+#else
+#define SPICE_HAS_ATTACHED_WORKER 0
+#endif
+
 #else  /* CONFIG_SPICE */
 
 #include "qemu/error-report.h"
hw/display/qxl.c +13 -1
index 29c80b4289..1da6703e44 100644
@@ -517,13 +517,20 @@ static int qxl_track_command(PCIQXLDevice *qxl, struct QXLCommandExt *ext)
 
 /* spice display interface callbacks */
 
-static void interface_attach_worker(QXLInstance *sin, QXLWorker *qxl_worker)
+static void interface_attached_worker(QXLInstance *sin)
 {
     PCIQXLDevice *qxl = container_of(sin, PCIQXLDevice, ssd.qxl);
 
     trace_qxl_interface_attach_worker(qxl->id);
 }
 
+#if !(SPICE_HAS_ATTACHED_WORKER)
+static void interface_attach_worker(QXLInstance *sin, QXLWorker *qxl_worker)
+{
+    interface_attached_worker(sin);
+}
+#endif
+
 static void interface_set_compression_level(QXLInstance *sin, int level)
 {
     PCIQXLDevice *qxl = container_of(sin, PCIQXLDevice, ssd.qxl);
@@ -1131,7 +1138,12 @@ static const QXLInterface qxl_interface = {
     .base.major_version      = SPICE_INTERFACE_QXL_MAJOR,
     .base.minor_version      = SPICE_INTERFACE_QXL_MINOR,
 
+#if SPICE_HAS_ATTACHED_WORKER
+    .attached_worker         = interface_attached_worker,
+#else
     .attache_worker          = interface_attach_worker,
+#endif
+
     .set_compression_level   = interface_set_compression_level,
 #if SPICE_NEEDS_SET_MM_TIME
     .set_mm_time             = interface_set_mm_time,
ui/spice-display.c +11 -0
index f59c69882d..1a60cebb7d 100644
@@ -500,10 +500,17 @@ void qemu_spice_display_refresh(SimpleSpiceDisplay *ssd)
 
 /* spice display interface callbacks */
 
+#if SPICE_HAS_ATTACHED_WORKER
+static void interface_attached_worker(QXLInstance *sin)
+{
+    /* nothing to do */
+}
+#else
 static void interface_attach_worker(QXLInstance *sin, QXLWorker *qxl_worker)
 {
     /* nothing to do */
 }
+#endif
 
 static void interface_set_compression_level(QXLInstance *sin, int level)
 {
@@ -702,7 +709,11 @@ static const QXLInterface dpy_interface = {
     .base.major_version      = SPICE_INTERFACE_QXL_MAJOR,
     .base.minor_version      = SPICE_INTERFACE_QXL_MINOR,
 
+#if SPICE_HAS_ATTACHED_WORKER
+    .attached_worker         = interface_attached_worker,
+#else
     .attache_worker          = interface_attach_worker,
+#endif
     .set_compression_level   = interface_set_compression_level,
 #if SPICE_NEEDS_SET_MM_TIME
     .set_mm_time             = interface_set_mm_time,
Signature · 1 line
2.31.1
Acked-by on v1 1/6
#2 lore raw

Re: [PATCH 1/6] spice: Update QXLInterface for spice >= 0.15.0

Quoted 6 lines · John Snow

spice updated the spelling (and arguments) of "attache_worker" in 0.15.0. Update QEMU to match, preventing -Wdeprecated-declarations compilations from reporting build errors.

See also:
https://gitlab.freedesktop.org/spice/spice/-/commit/974692bda1e77af92b71ed43b022439448492cb9

Hmm, quite alot of #ifdef for a relatively simple change. I don't see a simpler / better way though.

take care,
Gerd

author
#3 lore raw

PATCH 2/6 ui/clipboard: Don't use g_autoptr just to free a variable

In reply to John Snow

Clang doesn't recognize that the variable is being "used" and will emit a warning:

../ui/clipboard.c:47:34: error: variable 'old' set but not used [-Werror,-Wunused-but-set-variable]

      g_autoptr(QemuClipboardInfo) old = NULL;
                                 ^

1 error generated.

OK, fine. Just do things the old way.

---
 ui/clipboard.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
ui/clipboard.c +2 -1
index d7b008d62a..d53576b0f6 100644
@@ -44,13 +44,14 @@ void qemu_clipboard_peer_release(QemuClipboardPeer *peer,
 
 void qemu_clipboard_update(QemuClipboardInfo *info)
 {
-    g_autoptr(QemuClipboardInfo) old = NULL;
+    QemuClipboardInfo *old = NULL;
     assert(info->selection < QEMU_CLIPBOARD_SELECTION__COUNT);
 
     notifier_list_notify(&clipboard_notifiers, info);
 
     old = cbinfo[info->selection];
     cbinfo[info->selection] = qemu_clipboard_info_ref(info);
+    g_free(old);
 }
 
 QemuClipboardInfo *qemu_clipboard_info(QemuClipboardSelection selection)
Signature · 1 line
2.31.1
#4 lore raw

Re: [PATCH 2/6] ui/clipboard: Don't use g_autoptr just to free a variable

Quoted 23 lines · John Snow

Clang doesn't recognize that the variable is being "used" and will emit a warning:

../ui/clipboard.c:47:34: error: variable 'old' set but not used [-Werror,-Wunused-but-set-variable]

      g_autoptr(QemuClipboardInfo) old = NULL;
                                 ^

1 error generated.

OK, fine. Just do things the old way.

---
 ui/clipboard.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
ui/clipboard.c +0 -0
index d7b008d62a..d53576b0f6 100644
@@ -44,13 +44,14 @@ void qemu_clipboard_peer_release(QemuClipboardPeer *peer,
 
 void qemu_clipboard_update(QemuClipboardInfo *info)
 {

ui/clipboard.c void qemu_clipboard_peer_release(QemuClipboardPeer *peer, · line 55

Quoted 10 lines
ui/clipboard.c +2 -1
-    g_autoptr(QemuClipboardInfo) old = NULL;
+    QemuClipboardInfo *old = NULL;
     assert(info->selection < QEMU_CLIPBOARD_SELECTION__COUNT);
 
     notifier_list_notify(&clipboard_notifiers, info);
 
     old = cbinfo[info->selection];
     cbinfo[info->selection] = qemu_clipboard_info_ref(info);
+    g_free(old);
 }

Surely the right answer here is to get rid of the variable entirely as it isn't adding value

   g_free(cbinfo[info->selection]);

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

Re: [PATCH 2/6] ui/clipboard: Don't use g_autoptr just to free a variable

Quoted 37 lines · Daniel P. Berrangé
Quoted 4 lines · John Snow

Clang doesn't recognize that the variable is being "used" and will emit a warning:

../ui/clipboard.c:47:34: error: variable 'old' set but not used

[-Werror,-Wunused-but-set-variable]

ui/clipboard.c void qemu_clipboard_peer_release(QemuClipboardPeer

Quoted 16 lines
      g_autoptr(QemuClipboardInfo) old = NULL;
                                 ^

1 error generated.

OK, fine. Just do things the old way.

---
 ui/clipboard.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
ui/clipboard.c +0 -0
index d7b008d62a..d53576b0f6 100644
@@ -44,13 +44,14 @@ void qemu_clipboard_peer_release(QemuClipboardPeer

*peer,

ui/clipboard.c void qemu_clipboard_peer_release(QemuClipboardPeer *peer, · line 55

Quoted 13 lines
ui/clipboard.c +2 -1
 void qemu_clipboard_update(QemuClipboardInfo *info)
 {
-    g_autoptr(QemuClipboardInfo) old = NULL;
+    QemuClipboardInfo *old = NULL;
     assert(info->selection < QEMU_CLIPBOARD_SELECTION__COUNT);
 
     notifier_list_notify(&clipboard_notifiers, info);
 
     old = cbinfo[info->selection];
     cbinfo[info->selection] = qemu_clipboard_info_ref(info);
+    g_free(old);
 }
Quoted 5 lines

Surely the right answer here is to get rid of the variable entirely as it isn't adding value

   g_free(cbinfo[info->selection]);

Alrighty, I'll clean it up.

Respin pending comments on 1/6 and 6/6.

--js

#6 lore raw

Re: [PATCH 2/6] ui/clipboard: Don't use g_autoptr just to free a variable

In reply to John Snow

Hi

Quoted 25 lines · John Snow

Clang doesn't recognize that the variable is being "used" and will emit a warning:

../ui/clipboard.c:47:34: error: variable 'old' set but not used
[-Werror,-Wunused-but-set-variable]

      g_autoptr(QemuClipboardInfo) old = NULL;
                                 ^

1 error generated.

OK, fine. Just do things the old way.

---
 ui/clipboard.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
ui/clipboard.c +0 -0
index d7b008d62a..d53576b0f6 100644
@@ -44,13 +44,14 @@ void qemu_clipboard_peer_release(QemuClipboardPeer
 *peer,
 
 void qemu_clipboard_update(QemuClipboardInfo *info)
 {

ui/clipboard.c void qemu_clipboard_peer_release(QemuClipboardPeer · line 56

Quoted 10 lines
ui/clipboard.c +2 -1
-    g_autoptr(QemuClipboardInfo) old = NULL;
+    QemuClipboardInfo *old = NULL;
     assert(info->selection < QEMU_CLIPBOARD_SELECTION__COUNT);
 
     notifier_list_notify(&clipboard_notifiers, info);
 
     old = cbinfo[info->selection];
     cbinfo[info->selection] = qemu_clipboard_info_ref(info);
+    g_free(old);
 

qemu_clipboard_info_unref(cbinfo[info->selection]), don't need "old" either then

thanks

}

Quoted 7 lines
ui/clipboard.c +0 -1
 QemuClipboardInfo *qemu_clipboard_info(QemuClipboardSelection selection)
--

2.31.1

Signature · 1 line
Marc-André Lureau
author
#7 lore raw

PATCH 3/6 docker: update fedora container to Fedora 34

In reply to John Snow

Fedora 33 will be EOL 2021-11-23, before QEMU 6.2 will release. Upgrade the version we're testing as our minimum now.

---
 tests/docker/dockerfiles/fedora.docker | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/docker/dockerfiles/fedora.docker +1 -1
index eec1add7f6..44d7f12110 100644
@@ -1,4 +1,4 @@
-FROM registry.fedoraproject.org/fedora:33
+FROM registry.fedoraproject.org/fedora:34
 
 # Please keep this list sorted alphabetically
 ENV PACKAGES \
Signature · 1 line
2.31.1
author
#10 lore raw

PATCH 4/6 docker: update Fedora-based cross-compiler containers to Fedora 34

In reply to John Snow

Similarly to the last patch, Fedora 33 will be EOL by the time QEMU 6.2 releases, so bump the version for all of the other Fedora containers, too.

---
 tests/docker/dockerfiles/fedora-cris-cross.docker  | 2 +-
 tests/docker/dockerfiles/fedora-win32-cross.docker | 2 +-
 tests/docker/dockerfiles/fedora-win64-cross.docker | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
tests/docker/dockerfiles/fedora-cris-cross.docker +1 -1
index 91c373fdd3..b6787dc572 100644
@@ -2,7 +2,7 @@
 # Cross compiler for cris system tests
 #
 
-FROM registry.fedoraproject.org/fedora:33
+FROM registry.fedoraproject.org/fedora:34
 ENV PACKAGES gcc-cris-linux-gnu
 RUN dnf install -y $PACKAGES
 RUN rpm -q $PACKAGES | sort > /packages.txt
tests/docker/dockerfiles/fedora-win32-cross.docker +1 -1
index aad39dd97f..1b800921e8 100644
@@ -1,4 +1,4 @@
-FROM registry.fedoraproject.org/fedora:33
+FROM registry.fedoraproject.org/fedora:34
 
 # Please keep this list sorted alphabetically
 ENV PACKAGES \
tests/docker/dockerfiles/fedora-win64-cross.docker +1 -1
index 9a224a619b..d4e12fbdfc 100644
@@ -1,4 +1,4 @@
-FROM registry.fedoraproject.org/fedora:33
+FROM registry.fedoraproject.org/fedora:34
 
 # Please keep this list sorted alphabetically
 ENV PACKAGES \
Signature · 1 line
2.31.1
Reviewed-by on v1 4/6
#11 lore raw

Re: [PATCH 4/6] docker: update Fedora-based cross-compiler containers to Fedora 34

Quoted 1 line · John Snow

Similarly to the last patch, Fedora 33 will be EOL by the time QEMU 6.2

s/last/previous/ or squash?

Quoted 9 lines

releases, so bump the version for all of the other Fedora containers, too.

---
 tests/docker/dockerfiles/fedora-cris-cross.docker  | 2 +-
 tests/docker/dockerfiles/fedora-win32-cross.docker | 2 +-
 tests/docker/dockerfiles/fedora-win64-cross.docker | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
Reviewed-by on v1 4/6
#12 lore raw

Re: [PATCH 4/6] docker: update Fedora-based cross-compiler containers to Fedora 34

In reply to John Snow
Quoted 5 lines · John Snow

Similarly to the last patch, Fedora 33 will be EOL by the time QEMU 6.2 releases, so bump the version for all of the other Fedora containers, too.

Quoted 7 lines
---
 tests/docker/dockerfiles/fedora-cris-cross.docker  | 2 +-
 tests/docker/dockerfiles/fedora-win32-cross.docker | 2 +-
 tests/docker/dockerfiles/fedora-win64-cross.docker | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
author
#13 lore raw

PATCH 5/6 docker: update 'python' dockerfile to use Fedora registry

In reply to John Snow

Following the lead of 102cd5c294dc, switch from using Docker hub to the Fedora registry itself.

---
 tests/docker/dockerfiles/python.docker | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/docker/dockerfiles/python.docker +1 -1
index 56d88417df..ecefcc54c4 100644
@@ -1,6 +1,6 @@
 # Python library testing environment
 
-FROM fedora:latest
+FROM registry.fedoraproject.org/fedora:latest
 MAINTAINER John Snow <[email protected]>
 
 # Please keep this list sorted alphabetically
Signature · 1 line
2.31.1
author
#16 lore raw

PATCH 6/6 docker: Add Fedora 35 container

In reply to John Snow

Or, more accurately, update our current Fedora container to Fedora 35, and then add a new fedora34 container and build test.

---
 .gitlab-ci.d/buildtest.yml               |  16 ++++
 .gitlab-ci.d/container-core.yml          |   5 +
 tests/docker/dockerfiles/fedora.docker   |   2 +-
 tests/docker/dockerfiles/fedora34.docker | 117 +++++++++++++++++++++++
 4 files changed, 139 insertions(+), 1 deletion(-)
 create mode 100644 tests/docker/dockerfiles/fedora34.docker
.gitlab-ci.d/buildtest.yml +16 -0
index 5c378e35f9..9d9330b646 100644
@@ -100,6 +100,22 @@ acceptance-system-debian:
     IMAGE: debian-amd64
     MAKE_CHECK_ARGS: check-acceptance
 
+build-system-fedora34:
+  extends: .native_build_job_template
+  needs:
+    job: amd64-fedora34-container
+  variables:
+    IMAGE: fedora34
+    CONFIGURE_ARGS: --disable-gcrypt --enable-nettle --enable-docs
+             --enable-fdt=system --enable-slirp=system --enable-capstone=system
+    TARGETS: tricore-softmmu microblaze-softmmu mips-softmmu
+      xtensa-softmmu m68k-softmmu riscv32-softmmu ppc-softmmu sparc64-softmmu
+    MAKE_CHECK_ARGS: check-build
+  artifacts:
+    expire_in: 2 days
+    paths:
+      - build
+
 build-system-fedora:
   extends: .native_build_job_template
   needs:
.gitlab-ci.d/container-core.yml +5 -0
index e8dd1f476a..96a71e88ff 100644
@@ -6,6 +6,11 @@ amd64-centos8-container:
   variables:
     NAME: centos8
 
+amd64-fedora34-container:
+  extends: .container_job_template
+  variables:
+    NAME: fedora34
+
 amd64-fedora-container:
   extends: .container_job_template
   variables:
tests/docker/dockerfiles/fedora.docker +1 -1
index 44d7f12110..24aca97cd7 100644
@@ -1,4 +1,4 @@
-FROM registry.fedoraproject.org/fedora:34
+FROM registry.fedoraproject.org/fedora:35
 
 # Please keep this list sorted alphabetically
 ENV PACKAGES \
tests/docker/dockerfiles/fedora34.docker new file +117 -0

117 lines not on this page · raw message

Signature · 1 line
2.31.1
#17 lore raw

Re: [PATCH 6/6] docker: Add Fedora 35 container

Quoted 9 lines · John Snow

Or, more accurately, update our current Fedora container to Fedora 35, and then add a new fedora34 container and build test.

---
 .gitlab-ci.d/buildtest.yml               |  16 ++++
 .gitlab-ci.d/container-core.yml          |   5 +
 tests/docker/dockerfiles/fedora.docker   |   2 +-
 tests/docker/dockerfiles/fedora34.docker | 117 +++++++++++++++++++++++

We already struggle with having too much work in the CI pipeline and will be in trouble when they start enforcing CI limits.

With that in mind I'm not sure that having both Fedora versions brings large enough benefit to justify the CI CPU time burnt.

If we did want both versions though, we should be consistent with file naming - ie fedora35.dockre, not fedora.docker to match fedora34.docker.

Quoted 182 lines
 4 files changed, 139 insertions(+), 1 deletion(-)
 create mode 100644 tests/docker/dockerfiles/fedora34.docker
.gitlab-ci.d/buildtest.yml +16 -0
index 5c378e35f9..9d9330b646 100644
@@ -100,6 +100,22 @@ acceptance-system-debian:
     IMAGE: debian-amd64
     MAKE_CHECK_ARGS: check-acceptance
 
+build-system-fedora34:
+  extends: .native_build_job_template
+  needs:
+    job: amd64-fedora34-container
+  variables:
+    IMAGE: fedora34
+    CONFIGURE_ARGS: --disable-gcrypt --enable-nettle --enable-docs
+             --enable-fdt=system --enable-slirp=system --enable-capstone=system
+    TARGETS: tricore-softmmu microblaze-softmmu mips-softmmu
+      xtensa-softmmu m68k-softmmu riscv32-softmmu ppc-softmmu sparc64-softmmu
+    MAKE_CHECK_ARGS: check-build
+  artifacts:
+    expire_in: 2 days
+    paths:
+      - build
+
 build-system-fedora:
   extends: .native_build_job_template
   needs:
.gitlab-ci.d/container-core.yml +5 -0
index e8dd1f476a..96a71e88ff 100644
@@ -6,6 +6,11 @@ amd64-centos8-container:
   variables:
     NAME: centos8
 
+amd64-fedora34-container:
+  extends: .container_job_template
+  variables:
+    NAME: fedora34
+
 amd64-fedora-container:
   extends: .container_job_template
   variables:
tests/docker/dockerfiles/fedora.docker +1 -1
index 44d7f12110..24aca97cd7 100644
@@ -1,4 +1,4 @@
-FROM registry.fedoraproject.org/fedora:34
+FROM registry.fedoraproject.org/fedora:35
 
 # Please keep this list sorted alphabetically
 ENV PACKAGES \
tests/docker/dockerfiles/fedora34.docker new file +117 -0
new file mode 100644
index 0000000000..44d7f12110
@@ -0,0 +1,117 @@
+FROM registry.fedoraproject.org/fedora:34
+
+# 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 \
+    libbpf-devel \
+    libcacard-devel \
+    libcap-ng-devel \
+    libcurl-devel \
+    libdrm-devel \
+    libepoxy-devel \
+    libfdt-devel \
+    libffi-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 \
+    openssh-clients \
+    pam-devel \
+    perl-Test-Harness \
+    perl-base \
+    pixman-devel \
+    pkgconfig \
+    pulseaudio-libs-devel \
+    python3 \
+    python3-PyYAML \
+    python3-numpy \
+    python3-opencv \
+    python3-pillow \
+    python3-pip \
+    python3-sphinx \
+    python3-sphinx_rtd_theme \
+    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
+
+RUN dnf install -y $PACKAGES
+RUN rpm -q $PACKAGES | sort > /packages.txt
+ENV PATH $PATH:/usr/libexec/python3-sphinx/
Signature · 1 line
2.31.1

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

Re: [PATCH 6/6] docker: Add Fedora 35 container

Quoted 11 lines · Daniel P. Berrangé
Quoted 9 lines · John Snow

Or, more accurately, update our current Fedora container to Fedora 35, and then add a new fedora34 container and build test.

---
 .gitlab-ci.d/buildtest.yml               |  16 ++++
 .gitlab-ci.d/container-core.yml          |   5 +
 tests/docker/dockerfiles/fedora.docker   |   2 +-
 tests/docker/dockerfiles/fedora34.docker | 117 +++++++++++++++++++++++
Quoted 7 lines

We already struggle with having too much work in the CI pipeline and will be in trouble when they start enforcing CI limits.

With that in mind I'm not sure that having both Fedora versions brings large enough benefit to justify the CI CPU time burnt.

Fair. I'd say having stuff like ubuntu21.10 is more important than having both f34/f35. I have a keen interest on pushing forward into bleeding edge releases to identify potential issues sooner rather than later; and can generally trust that the older releases are well traveled through developer's personal machines.

Quoted 5 lines

If we did want both versions though, we should be consistent with file naming - ie fedora35.dockre, not fedora.docker to match fedora34.docker.

OK. I was originally considering the "unversioned" file to be the "most recent one" that would update on a rolling schedule. On IRC you made a good point that when we fork a stable branch, we actually don't want this behavior. Explicit naming is therefore the best policy.

I am still somewhat interested in having the F34 image, but we don't need it on the CI platform right now. Maybe it could be included later on as a target of lesser value to only be run occasionally, but I can worry about that a little later.

Quoted 199 lines
Quoted 9 lines
 4 files changed, 139 insertions(+), 1 deletion(-)
 create mode 100644 tests/docker/dockerfiles/fedora34.docker
.gitlab-ci.d/buildtest.yml +0 -0
index 5c378e35f9..9d9330b646 100644
@@ -100,6 +100,22 @@ acceptance-system-debian:
     IMAGE: debian-amd64

.gitlab-ci.d/buildtest.yml acceptance-system-debian: · line 110

Quoted 10 lines
.gitlab-ci.d/buildtest.yml +8 -0
     MAKE_CHECK_ARGS: check-acceptance
 
+build-system-fedora34:
+  extends: .native_build_job_template
+  needs:
+    job: amd64-fedora34-container
+  variables:
+    IMAGE: fedora34
+    CONFIGURE_ARGS: --disable-gcrypt --enable-nettle --enable-docs
+             --enable-fdt=system --enable-slirp=system

--enable-capstone=system

.gitlab-ci.d/buildtest.yml acceptance-system-debian: · line 112

Quoted 2 lines
.gitlab-ci.d/buildtest.yml +2 -0
+    TARGETS: tricore-softmmu microblaze-softmmu mips-softmmu
+      xtensa-softmmu m68k-softmmu riscv32-softmmu ppc-softmmu

sparc64-softmmu

Review

Quoted 10 lines
.gitlab-ci.d/buildtest.yml +6 -0
+    MAKE_CHECK_ARGS: check-build
+  artifacts:
+    expire_in: 2 days
+    paths:
+      - build
+
 build-system-fedora:
   extends: .native_build_job_template
   needs:
(quoted diff) +0 -0

b/.gitlab-ci.d/container-core.yml

Review

Quoted 16 lines

index e8dd1f476a..96a71e88ff 100644

.gitlab-ci.d/container-core.yml +5 -0
@@ -6,6 +6,11 @@ amd64-centos8-container:
   variables:
     NAME: centos8
 
+amd64-fedora34-container:
+  extends: .container_job_template
+  variables:
+    NAME: fedora34
+
 amd64-fedora-container:
   extends: .container_job_template
   variables:
(quoted diff) +0 -0

b/tests/docker/dockerfiles/fedora.docker

Review

Quoted 10 lines

index 44d7f12110..24aca97cd7 100644

tests/docker/dockerfiles/fedora.docker +1 -1
@@ -1,4 +1,4 @@
-FROM registry.fedoraproject.org/fedora:34
+FROM registry.fedoraproject.org/fedora:35
 
 # Please keep this list sorted alphabetically
 ENV PACKAGES \
(quoted diff) +0 -0

b/tests/docker/dockerfiles/fedora34.docker

Quoted 123 lines

new file mode 100644
index 0000000000..44d7f12110

tests/docker/dockerfiles/fedora34.docker new file +117 -1
@@ -0,0 +1,117 @@
+FROM registry.fedoraproject.org/fedora:34
+
+# 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 \
+    libbpf-devel \
+    libcacard-devel \
+    libcap-ng-devel \
+    libcurl-devel \
+    libdrm-devel \
+    libepoxy-devel \
+    libfdt-devel \
+    libffi-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 \
+    openssh-clients \
+    pam-devel \
+    perl-Test-Harness \
+    perl-base \
+    pixman-devel \
+    pkgconfig \
+    pulseaudio-libs-devel \
+    python3 \
+    python3-PyYAML \
+    python3-numpy \
+    python3-opencv \
+    python3-pillow \
+    python3-pip \
+    python3-sphinx \
+    python3-sphinx_rtd_theme \
+    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
+
+RUN dnf install -y $PACKAGES
+RUN rpm -q $PACKAGES | sort > /packages.txt
+ENV PATH $PATH:/usr/libexec/python3-sphinx/
--
Quoted 2 lines

2.31.1

Regards,
Daniel
--
|: 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 :|

#19 lore raw

Re: [PATCH 6/6] docker: Add Fedora 35 container

On 11/3/21 18:51, John Snow wrote:> On Wed, Nov 3, 2021 at 1:01 PM Daniel P. Berrangé <[email protected]

Quoted 38 lines

<mailto:[email protected]>> wrote:

On Wed, Nov 03, 2021 at 10:48:44AM -0400, John Snow wrote:
> Or, more accurately, update our current Fedora container to Fedora 35, > and then add a new fedora34 container and build test.
>
> Signed-off-by: John Snow <[email protected] <mailto:[email protected]>> > ---
>  .gitlab-ci.d/buildtest.yml               |  16 ++++
>  .gitlab-ci.d/container-core.yml          |   5 +
>  tests/docker/dockerfiles/fedora.docker   |   2 +-
>  tests/docker/dockerfiles/fedora34.docker | 117
+++++++++++++++++++++++

We already struggle with having too much work in the CI pipeline and will be in trouble when they start enforcing CI limits.

With that in mind I'm not sure that having both Fedora versions brings large enough benefit to justify the CI CPU time burnt.

Fair. I'd say having stuff like ubuntu21.10 is more important than having both f34/f35. I have a keen interest on pushing forward into bleeding edge releases to identify potential issues sooner rather than later; and can generally trust that the older releases are well traveled through developer's personal machines.

If we did want both versions though, we should be consistent with file naming - ie fedora35.dockre, not fedora.docker to match fedora34.docker.

OK. I was originally considering the "unversioned" file to be the "most recent one" that would update on a rolling schedule. On IRC you made a good point that when we fork a stable branch, we actually don't want this behavior. Explicit naming is therefore the best policy.

Quoted 4 lines

I am still somewhat interested in having the F34 image, but we don't need it on the CI platform right now. Maybe it could be included later on as a target of lesser value to only be run occasionally, but I can worry about that a little later.

I agree with Daniel, this is not ideal on mainstream CI.

However you can add it to your fork, see commit 8b185c815ce ("gitlab: Document how forks can use different set of jobs"):

+# To use a different set of jobs than the mainstream QEMU project, +# you need to set the location of your custom yml file at "custom CI/CD +# configuration path", on your GitLab CI namespace:
+#
https://docs.gitlab.com/ee/ci/pipelines/settings.html#custom-cicd-configuration-path

#20 lore raw
In reply to John Snow
Quoted 9 lines · John Snow

Fedora 33 will be EOL before 6.2 ships; Fedora 35 was just released. Update our various containers to test on F34 and F35.

Fix a minor code warning issue that surfaces in a new version of Clang, and fix a small deprecation issue for the latest version of spice.

In testing, I found that oss-fuzz was more likely to time out on GitLab; it's unclear if this is a performance regression or just getting unlucky with when I test.

For me it times out every time on Fedora 35. In fact if I run it locally, it doesnn't even finish after 24 hours ! There's a real bug in there somewhere.

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

Cc'ing Alex.

Quoted 19 lines · Daniel P. Berrangé
Quoted 9 lines · John Snow

Fedora 33 will be EOL before 6.2 ships; Fedora 35 was just released. Update our various containers to test on F34 and F35.

Fix a minor code warning issue that surfaces in a new version of Clang, and fix a small deprecation issue for the latest version of spice.

In testing, I found that oss-fuzz was more likely to time out on GitLab; it's unclear if this is a performance regression or just getting unlucky with when I test.

For me it times out every time on Fedora 35. In fact if I run it locally, it doesnn't even finish after 24 hours ! There's a real bug in there somewhere.

Regards,
Daniel

#22 lore raw
Quoted 17 lines · Philippe Mathieu-Daudé

Cc'ing Alex.

Quoted 14 lines · Daniel P. Berrangé
Quoted 9 lines · John Snow

Fedora 33 will be EOL before 6.2 ships; Fedora 35 was just released. Update our various containers to test on F34 and F35.

Fix a minor code warning issue that surfaces in a new version of Clang, and fix a small deprecation issue for the latest version of spice.

In testing, I found that oss-fuzz was more likely to time out on GitLab; it's unclear if this is a performance regression or just getting unlucky with when I test.

For me it times out every time on Fedora 35. In fact if I run it locally, it doesnn't even finish after 24 hours ! There's a real bug in there somewhere.

Is there an other spin of this series coming? I saw there were some comments to address so I didn't look in detail myself.

Signature · 1 line
Alex Bennée
#23 lore raw
Quoted 16 lines · Alex Bennée
Quoted 14 lines · Philippe Mathieu-Daudé

Cc'ing Alex.

Quoted 11 lines · Daniel P. Berrangé
Quoted 9 lines · John Snow

Fedora 33 will be EOL before 6.2 ships; Fedora 35 was just released. Update our various containers to test on F34 and F35.

Fix a minor code warning issue that surfaces in a new version of Clang, and fix a small deprecation issue for the latest version of spice.

In testing, I found that oss-fuzz was more likely to time out on GitLab; it's unclear if this is a performance regression or just getting unlucky with when I test.

Quoted 6 lines
Quoted 3 lines
Quoted 3 lines

For me it times out every time on Fedora 35. In fact if I run it locally, it doesnn't even finish after 24 hours ! There's a real bug in there somewhere.

Is there an other spin of this series coming? I saw there were some comments to address so I didn't look in detail myself.

I meant Alexander Bulekov for oss-fuzz :)