Skip to contentSkip to conversation

testing/next updates (gitlab, docker, check-tcg)

PATCH Superseded Alex Bennée 5 participants 32 messages Jan 19, 2023 – Jan 20, 2023 Arm/Amlogic Meson SoC support

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover testing/next updates (gitlab, docker, check-tcg)

Hi,

My plans to post an omnibus release where stymied by a bunch of regressions caused by the update to the Fedora image. I may have to drop it if I can't figure out why the win64 stuff is hanging.

The following patches need review:

gitlab: wrap up test results for custom runners tests/tcg: skip the vma-pthread test on CI tests/docker: drop debian-tricore-cross's partial status
gitlab: add lsan suppression file to workaround tcmalloc issues scripts/ci: update gitlab-runner playbook to use latest runner

Alex Bennée (7):
scripts/ci: update gitlab-runner playbook to use latest runner
gitlab: just use plain --cc=clang for custom runner build tests/unit: drop hacky race avoidance in test-io-channel-command
gitlab: add lsan suppression file to workaround tcmalloc issues tests/docker: drop debian-tricore-cross's partial status tests/tcg: skip the vma-pthread test on CI
gitlab: wrap up test results for custom runners

Marc-André Lureau (7):
build-sys: fix crlf-ending C code .gitlab-ci.d/windows: do not disable opengl
meson: replace Perl usage with Python
docs: drop texinfo options
Update lcitool and fedora to 37
lcitool: drop perl from QEMU project/dependencies
lcitool: drop texinfo from QEMU project/dependencies

Mark Cave-Ayland (1):
gitlab: add FF_SCRIPT_SECTIONS for timings

Philippe Mathieu-Daudé (1):
tests/docker: Install flex in debian-tricore-cross

Richard Henderson (1):
tests/tcg: Use SIGKILL for timeout

Thomas Huth (1):
MAINTAINERS: Fix the entry for tests/tcg/nios2

 MAINTAINERS                                   |  2 +-
 docs/conf.py                                  | 13 -----
 meson.build                                   |  2 +-
 tests/unit/test-io-channel-command.c          | 14 +++--
 .gitlab-ci.d/base.yml                         |  5 ++
 .gitlab-ci.d/buildtest.yml                    |  1 +
 .gitlab-ci.d/cirrus/freebsd-12.vars           |  2 +-
 .gitlab-ci.d/cirrus/freebsd-13.vars           |  2 +-
 .gitlab-ci.d/cirrus/macos-12.vars             |  2 +-
 .gitlab-ci.d/custom-runners.yml               | 11 ++++
 .../custom-runners/ubuntu-20.04-s390x.yml     | 13 ++---
 .../custom-runners/ubuntu-22.04-aarch32.yml   |  2 +-
 .../custom-runners/ubuntu-22.04-aarch64.yml   | 15 +++--
 .gitlab-ci.d/windows.yml                      |  5 +-
 scripts/ci/setup/build-environment.yml        |  1 -
 scripts/ci/setup/gitlab-runner.yml            | 56 +++++--------------
 scripts/ci/setup/vars.yml.template            |  2 -
 scripts/oss-fuzz/lsan_suppressions.txt        |  2 +
 scripts/shaderinclude.pl                      | 16 ------
 scripts/shaderinclude.py                      | 26 +++++++++
 tests/docker/Makefile.include                 |  1 -
 tests/docker/dockerfiles/alpine.docker        |  2 -
 tests/docker/dockerfiles/centos8.docker       |  2 -
 .../dockerfiles/debian-amd64-cross.docker     |  4 +-
 tests/docker/dockerfiles/debian-amd64.docker  |  2 -
 .../dockerfiles/debian-arm64-cross.docker     |  4 +-
 .../dockerfiles/debian-armel-cross.docker     |  4 +-
 .../dockerfiles/debian-armhf-cross.docker     |  4 +-
 .../dockerfiles/debian-mips64el-cross.docker  |  4 +-
 .../dockerfiles/debian-mipsel-cross.docker    |  4 +-
 .../dockerfiles/debian-ppc64el-cross.docker   |  4 +-
 .../dockerfiles/debian-s390x-cross.docker     |  4 +-
 .../dockerfiles/debian-toolchain.docker       |  1 -
 .../dockerfiles/debian-tricore-cross.docker   |  2 +-
 .../dockerfiles/fedora-win32-cross.docker     |  6 +-
 .../dockerfiles/fedora-win64-cross.docker     |  6 +-
 tests/docker/dockerfiles/fedora.docker        |  6 +-
 tests/docker/dockerfiles/opensuse-leap.docker |  2 -
 tests/docker/dockerfiles/ubuntu2004.docker    |  2 -
 tests/lcitool/libvirt-ci                      |  2 +-
 tests/lcitool/projects/qemu.yml               |  2 -
 tests/lcitool/refresh                         |  6 +-
 tests/qapi-schema/meson.build                 |  7 ++-
 tests/tcg/Makefile.target                     |  4 +-
 tests/tcg/multiarch/Makefile.target           |  9 +++
 tests/vm/centos.aarch64                       |  2 +-
 46 files changed, 124 insertions(+), 164 deletions(-)
 create mode 100644 scripts/oss-fuzz/lsan_suppressions.txt
 delete mode 100644 scripts/shaderinclude.pl
 create mode 100644 scripts/shaderinclude.py
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/18 scripts/ci: update gitlab-runner playbook to use latest runner

We were using quite and old runner on our machines and running into issues with stalling jobs. Gitlab in the meantime now reliably provide the latest packaged versions of the runner under a stable URL. This update:

- creates a per-arch subdir for builds
- switches from binary tarballs to deb packages
- re-uses the same binary for the secondary runner
- updates distro check for second to 22.04

Note this script isn't fully idempotent as we end up accumulating runners especially during testing. However we also want to be able to run twice with different GitLab keys (e.g. project and personal) so I think we just have to be mindful of that during testing.

---
v2
- only register aarch32 runner, move service start post both registers
- tested on s390x

---
 scripts/ci/setup/gitlab-runner.yml | 56 +++++++-----------------------
 scripts/ci/setup/vars.yml.template |  2 --
 2 files changed, 13 insertions(+), 45 deletions(-)
scripts/ci/setup/gitlab-runner.yml +13 -43
index 33128be85d..95d4199c03 100644
@@ -50,60 +50,30 @@
 
     - name: Download the matching gitlab-runner
       get_url:
-        dest: /usr/local/bin/gitlab-runner
-        url: "https://s3.amazonaws.com/gitlab-runner-downloads/v{{ gitlab_runner_version  }}/binaries/gitlab-runner-{{ gitlab_runner_os }}-{{ gitlab_runner_arch }}"
-        owner: gitlab-runner
-        group: gitlab-runner
-        mode: u=rwx,g=rwx,o=rx
-
-    - name: Register the gitlab-runner
-      command: "/usr/local/bin/gitlab-runner register --non-interactive --url {{ gitlab_runner_server_url }} --registration-token {{ gitlab_runner_registration_token }} --executor shell --tag-list {{ ansible_facts[\"architecture\"] }},{{ ansible_facts[\"distribution\"]|lower }}_{{ ansible_facts[\"distribution_version\"] }} --description '{{ ansible_facts[\"distribution\"] }} {{ ansible_facts[\"distribution_version\"] }} {{ ansible_facts[\"architecture\"] }} ({{ ansible_facts[\"os_family\"] }})'"
-
-    - name: Install the gitlab-runner service using its own functionality
-      command: /usr/local/bin/gitlab-runner install --user gitlab-runner --working-directory /home/gitlab-runner
-      register: gitlab_runner_install_service_result
-      failed_when: "gitlab_runner_install_service_result.rc != 0 and \"already exists\" not in gitlab_runner_install_service_result.stderr"
+        dest: "/root/"
+        url: "https://gitlab-runner-downloads.s3.amazonaws.com/latest/deb/gitlab-runner_{{ gitlab_runner_arch }}.deb"
 
-    - name: Enable the gitlab-runner service
-      service:
-        name: gitlab-runner
-        state: started
-        enabled: yes
+    - name: Install gitlab-runner via package manager
+      apt: deb="/root/gitlab-runner_{{ gitlab_runner_arch }}.deb"
 
-    - name: Download secondary gitlab-runner
-      get_url:
-        dest: /usr/local/bin/gitlab-runner-arm
-        url: "https://s3.amazonaws.com/gitlab-runner-downloads/v{{ gitlab_runner_version  }}/binaries/gitlab-runner-{{ gitlab_runner_os }}-arm"
-        owner: gitlab-runner
-        group: gitlab-runner
-        mode: u=rwx,g=rwx,o=rx
-      when:
-        - ansible_facts['distribution'] == 'Ubuntu'
-        - ansible_facts['architecture'] == 'aarch64'
-        - ansible_facts['distribution_version'] == '20.04'
+    - name: Register the gitlab-runner
+      command: "/usr/bin/gitlab-runner register --non-interactive --url {{ gitlab_runner_server_url }} --registration-token {{ gitlab_runner_registration_token }} --executor shell --tag-list {{ ansible_facts[\"architecture\"] }},{{ ansible_facts[\"distribution\"]|lower }}_{{ ansible_facts[\"distribution_version\"] }} --description '{{ ansible_facts[\"distribution\"] }} {{ ansible_facts[\"distribution_version\"] }} {{ ansible_facts[\"architecture\"] }} ({{ ansible_facts[\"os_family\"] }})'"
 
+    # The secondary runner will still run under the single gitlab-runner service
     - name: Register secondary gitlab-runner
-      command: "/usr/local/bin/gitlab-runner-arm register --non-interactive --url {{ gitlab_runner_server_url }} --registration-token {{ gitlab_runner_registration_token }} --executor shell --tag-list aarch32,{{ ansible_facts[\"distribution\"]|lower }}_{{ ansible_facts[\"distribution_version\"] }} --description '{{ ansible_facts[\"distribution\"] }} {{ ansible_facts[\"distribution_version\"] }} {{ ansible_facts[\"architecture\"] }} ({{ ansible_facts[\"os_family\"] }})'"
+      command: "/usr/bin/gitlab-runner register --non-interactive --url {{ gitlab_runner_server_url }} --registration-token {{ gitlab_runner_registration_token }} --executor shell --tag-list aarch32,{{ ansible_facts[\"distribution\"]|lower }}_{{ ansible_facts[\"distribution_version\"] }} --description '{{ ansible_facts[\"distribution\"] }} {{ ansible_facts[\"distribution_version\"] }} {{ ansible_facts[\"architecture\"] }} ({{ ansible_facts[\"os_family\"] }})'"
       when:
         - ansible_facts['distribution'] == 'Ubuntu'
         - ansible_facts['architecture'] == 'aarch64'
-        - ansible_facts['distribution_version'] == '20.04'
+        - ansible_facts['distribution_version'] == '22.04'
 
-    - name: Install the secondary gitlab-runner service using its own functionality
-      command: /usr/local/bin/gitlab-runner-arm install --user gitlab-runner --working-directory /home/gitlab-runner/arm -n gitlab-runner-arm
+    - name: Install the gitlab-runner service using its own functionality
+      command: "/usr/bin/gitlab-runner install --user gitlab-runner --working-directory /home/gitlab-runner"
       register: gitlab_runner_install_service_result
       failed_when: "gitlab_runner_install_service_result.rc != 0 and \"already exists\" not in gitlab_runner_install_service_result.stderr"
-      when:
-        - ansible_facts['distribution'] == 'Ubuntu'
-        - ansible_facts['architecture'] == 'aarch64'
-        - ansible_facts['distribution_version'] == '20.04'
 
-    - name: Enable the secondary gitlab-runner service
+    - name: Enable the gitlab-runner service
       service:
-        name: gitlab-runner-arm
+        name: gitlab-runner
         state: started
         enabled: yes
-      when:
-        - ansible_facts['distribution'] == 'Ubuntu'
-        - ansible_facts['architecture'] == 'aarch64'
-        - ansible_facts['distribution_version'] == '20.04'
scripts/ci/setup/vars.yml.template +0 -2
index e48089761f..4b355fb80f 100644
@@ -1,5 +1,3 @@
-# The version of the gitlab-runner to use
-gitlab_runner_version: 13.12.0
 # The URL of the gitlab server to use, usually https://gitlab.com unless you're
 # using a private GitLab instance
 gitlab_runner_server_url: https://gitlab.com
Signature · 1 line
2.34.1
#2 lore raw

PATCH 2/18 gitlab: add FF_SCRIPT_SECTIONS for timings

In reply to Alex Bennée

From: Mark Cave-Ayland <[email protected]>

---
 .gitlab-ci.d/base.yml | 5 +++++
 1 file changed, 5 insertions(+)
.gitlab-ci.d/base.yml +5 -0
index 69b36c148a..50fb59e147 100644
@@ -6,6 +6,11 @@
 # most restrictive to least restrictive
 #
 .base_job_template:
+  variables:
+    # Each script line from will be in a collapsible section in the job output
+    # and show the duration of each line.
+    FF_SCRIPT_SECTIONS: 1
+
   rules:
     #############################################################
     # Stage 1: exclude scenarios where we definitely don't
Signature · 1 line
2.34.1
#3 lore raw

PATCH 3/18 gitlab: just use plain --cc=clang for custom runner build

In reply to Alex Bennée

I think this was because older Ubuntu's didn't alias clang to whatever the latest version was. They do now so lets use that and not break.

---
 .gitlab-ci.d/custom-runners/ubuntu-22.04-aarch64.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
.gitlab-ci.d/custom-runners/ubuntu-22.04-aarch64.yml +1 -1
index abeb33eaff..725ca8ffea 100644
@@ -81,7 +81,7 @@ ubuntu-22.04-aarch64-clang:
  script:
  - mkdir build
  - cd build
- - ../configure --disable-libssh --cc=clang-10 --cxx=clang++-10 --enable-sanitizers
+ - ../configure --disable-libssh --cc=clang --cxx=clang++ --enable-sanitizers
    || { cat config.log meson-logs/meson-log.txt; exit 1; }
  - make --output-sync -j`nproc --ignore=40`
  - make --output-sync -j`nproc --ignore=40` check
Signature · 1 line
2.34.1
Reviewed-by on v1 3/18
#4 lore raw

Re: [PATCH 03/18] gitlab: just use plain --cc=clang for custom runner build

Quoted 8 lines · Alex Bennée

I think this was because older Ubuntu's didn't alias clang to whatever the latest version was. They do now so lets use that and not break.

---
  .gitlab-ci.d/custom-runners/ubuntu-22.04-aarch64.yml | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
#5 lore raw

PATCH 4/18 tests/unit: drop hacky race avoidance in test-io-channel-command

In reply to Alex Bennée

We don't need to play timing games to ensure one socat wins over the other, just create the fifo they both can use before spawning the processes. However in the process we need to disable two tests for Windows platforms as we don't have an abstraction for mkfifo().

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1403

---
 tests/unit/test-io-channel-command.c | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)
tests/unit/test-io-channel-command.c +10 -4
index 19f72eab96..425e2f5594 100644
@@ -20,6 +20,8 @@
 
 #include "qemu/osdep.h"
 #include <glib/gstdio.h>
+#include <sys/types.h>
+#include <sys/stat.h>
 #include "io/channel-command.h"
 #include "io-channel-helpers.h"
 #include "qapi/error.h"
@@ -29,6 +31,7 @@
 
 static char *socat = NULL;
 
+#ifndef _WIN32
 static void test_io_channel_command_fifo(bool async)
 {
     g_autofree gchar *tmpdir = g_dir_make_tmp("qemu-test-io-channel.XXXXXX", NULL);
@@ -40,12 +43,13 @@ static void test_io_channel_command_fifo(bool async)
     QIOChannel *src, *dst;
     QIOChannelTest *test;
 
+    if (mkfifo(fifo, 0600)) {
+        g_error("mkfifo: %s", strerror(errno));
+    }
+
     src = QIO_CHANNEL(qio_channel_command_new_spawn((const char **) srcargv,
                                                     O_WRONLY,
                                                     &error_abort));
-    /* try to avoid a race to create the socket */
-    g_usleep(1000);
-
     dst = QIO_CHANNEL(qio_channel_command_new_spawn((const char **) dstargv,
                                                     O_RDONLY,
                                                     &error_abort));
@@ -60,7 +64,6 @@ static void test_io_channel_command_fifo(bool async)
     g_rmdir(tmpdir);
 }
 
-
 static void test_io_channel_command_fifo_async(void)
 {
     if (!socat) {
@@ -80,6 +83,7 @@ static void test_io_channel_command_fifo_sync(void)
 
     test_io_channel_command_fifo(false);
 }
+#endif
 
 
 static void test_io_channel_command_echo(bool async)
@@ -124,10 +128,12 @@ int main(int argc, char **argv)
 
     socat = g_find_program_in_path("socat");
 
+#ifndef _WIN32
     g_test_add_func("/io/channel/command/fifo/sync",
                     test_io_channel_command_fifo_sync);
     g_test_add_func("/io/channel/command/fifo/async",
                     test_io_channel_command_fifo_async);
+#endif
     g_test_add_func("/io/channel/command/echo/sync",
                     test_io_channel_command_echo_sync);
     g_test_add_func("/io/channel/command/echo/async",
Signature · 1 line
2.34.1
#6 lore raw

PATCH 5/18 build-sys: fix crlf-ending C code

In reply to Alex Bennée

From: Marc-André Lureau <[email protected]>

On msys2, the shader-to-C script produces bad C:
./ui/shader/texture-blit-vert.h:2:5: error: missing terminating " character [-Werror]

Fix it by changing the line ending from crlf to lf, and convert the script to Python (qemu build seems perl-free after that).

Message-Id: <[email protected]>

---
 meson.build              |  2 +-
 scripts/shaderinclude.pl | 16 ----------------
 scripts/shaderinclude.py | 26 ++++++++++++++++++++++++++
 3 files changed, 27 insertions(+), 17 deletions(-)
 delete mode 100644 scripts/shaderinclude.pl
 create mode 100644 scripts/shaderinclude.py
meson.build +1 -1
index 58d8cd68a6..ac8c8f2cc9 100644
@@ -2779,7 +2779,7 @@ config_host_data.set('CONFIG_SLIRP', slirp.found())
 genh += configure_file(output: 'config-host.h', configuration: config_host_data)
 
 hxtool = find_program('scripts/hxtool')
-shaderinclude = find_program('scripts/shaderinclude.pl')
+shaderinclude = find_program('scripts/shaderinclude.py')
 qapi_gen = find_program('scripts/qapi-gen.py')
 qapi_gen_depends = [ meson.current_source_dir() / 'scripts/qapi/__init__.py',
                      meson.current_source_dir() / 'scripts/qapi/commands.py',
scripts/shaderinclude.pl deleted +0 -16
deleted file mode 100644
index cd3bb40b12..0000000000
@@ -1,16 +0,0 @@
-#!/usr/bin/env perl
-use strict;
-use warnings;
-
-my $file = shift;
-open FILE, "<", $file or die "open $file: $!";
-my $name = $file;
-$name =~ s|.*/||;
-$name =~ s/[-.]/_/g;
-print "static GLchar ${name}_src[] =\n";
-while (<FILE>) {
-    chomp;
-    printf "    \"%s\\n\"\n", $_;
-}
-print "    \"\\n\";\n";
-close FILE;
scripts/shaderinclude.py new file +26 -0
new file mode 100644
index 0000000000..ab2aade2cd
@@ -0,0 +1,26 @@
+#!/usr/bin/env python3
+#
+# Copyright (C) 2023 Red Hat, Inc.
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+import sys
+import os
+
+
+def main(args):
+    file_path = args[1]
+    basename = os.path.basename(file_path)
+    varname = basename.replace('-', '_').replace('.', '_')
+
+    with os.fdopen(sys.stdout.fileno(), "wt", closefd=False, newline='\n') as stdout:
+        with open(file_path, "r", encoding='utf-8') as file:
+            print(f'static GLchar {varname}_src[] =', file=stdout)
+            for line in file:
+                line = line.rstrip()
+                print(f'    "{line}\\n"', file=stdout)
+            print('    "\\n";', file=stdout)
+
+
+if __name__ == '__main__':
+    sys.exit(main(sys.argv))
Signature · 1 line
2.34.1
#7 lore raw

PATCH 6/18 .gitlab-ci.d/windows: do not disable opengl

In reply to Alex Bennée

From: Marc-André Lureau <[email protected]>

The previous patch should fix shader compilation.

Message-Id: <[email protected]>

---
 .gitlab-ci.d/windows.yml | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
.gitlab-ci.d/windows.yml +2 -3
index a1d5790580..cf445b77f6 100644
@@ -71,7 +71,7 @@ msys2-64bit:
   # for the msys2 64-bit job, due to the build could not complete within
   # the project timeout.
   - ..\msys64\usr\bin\bash -lc '../configure --target-list=x86_64-softmmu
-      --without-default-devices --disable-opengl'
+      --without-default-devices'
   - ..\msys64\usr\bin\bash -lc 'make'
   # qTests don't run successfully with "--without-default-devices",
   # so let's exclude the qtests from CI for now.
@@ -113,8 +113,7 @@ msys2-32bit:
   - $env:MSYS = 'winsymlinks:native' # Enable native Windows symlink
   - mkdir output
   - cd output
-  - ..\msys64\usr\bin\bash -lc '../configure --target-list=ppc64-softmmu
-        --disable-opengl'
+  - ..\msys64\usr\bin\bash -lc '../configure --target-list=ppc64-softmmu'
   - ..\msys64\usr\bin\bash -lc 'make'
   - ..\msys64\usr\bin\bash -lc 'make check MTESTARGS=\"--no-suite qtest\" ||
                                 { cat meson-logs/testlog.txt; exit 1; }'
Signature · 1 line
2.34.1
Reviewed-by on v1 6/18
#8 lore raw

Re: [PATCH 06/18] .gitlab-ci.d/windows: do not disable opengl

Quoted 3 lines · Alex Bennée

From: Marc-André Lureau <[email protected]>

The previous patch should fix shader compilation.

s/should fix/fixed/

Quoted 7 lines

Message-Id: <[email protected]>

---
  .gitlab-ci.d/windows.yml | 5 ++---
  1 file changed, 2 insertions(+), 3 deletions(-)
#9 lore raw

PATCH 7/18 meson: replace Perl usage with Python

In reply to Alex Bennée

From: Marc-André Lureau <[email protected]>

Let's try to remove Perl usage during build time.

Message-Id: <[email protected]>

---
 tests/qapi-schema/meson.build | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
tests/qapi-schema/meson.build +4 -3
index 9dfe98bc9a..d85b14f28c 100644
@@ -259,22 +259,23 @@ if build_docs
   # Fix possible inconsistency in line endings in generated output and
   # in the golden reference (which could otherwise cause test failures
   # on Windows hosts). Unfortunately diff --strip-trailing-cr
-  # is GNU-diff only. The odd-looking perl is because we must avoid
+  # is GNU-diff only. The odd-looking python is because we must avoid
   # using an explicit '\' character in the command arguments to
   # a custom_target(), as Meson will unhelpfully replace it with a '/'
   # (https://github.com/mesonbuild/meson/issues/1564)
+  remove_cr = [python, '-c', 'import sys;[sys.stdout.write(line.replace(chr(13), "")) for line in sys.stdin]']
   qapi_doc_out_nocr = custom_target('QAPI rST doc newline-sanitized',
                                     output: ['doc-good.txt.nocr'],
                                     input: qapi_doc_out[0],
                                     build_by_default: true,
-                                    command: ['perl', '-pe', '$x = chr 13; s/$x$//', '@INPUT@'],
+                                    command: [remove_cr, '@INPUT@'],
                                     capture: true)
 
   qapi_doc_ref_nocr = custom_target('QAPI rST doc reference newline-sanitized',
                                     output: ['doc-good.ref.nocr'],
                                     input: files('doc-good.txt'),
                                     build_by_default: true,
-                                    command: ['perl', '-pe', '$x = chr 13; s/$x$//', '@INPUT@'],
+                                    command: [remove_cr, '@INPUT@'],
                                     capture: true)
 
   test('QAPI rST doc', diff, args: ['-u', qapi_doc_ref_nocr[0], qapi_doc_out_nocr[0]],
Signature · 1 line
2.34.1
#10 lore raw

PATCH 8/18 docs: drop texinfo options

In reply to Alex Bennée

From: Marc-André Lureau <[email protected]>

It looks like this is no longer wanted, we only build the html output.

Message-Id: <[email protected]>

---
 docs/conf.py | 13 -------------
 1 file changed, 13 deletions(-)
docs/conf.py +0 -13
index e33cf3d381..73a287a4f2 100644
@@ -297,19 +297,6 @@
 ]
 man_make_section_directory = False
 
-# -- Options for Texinfo output -------------------------------------------
-
-# Grouping the document tree into Texinfo files. List of tuples
-# (source start file, target name, title, author,
-#  dir menu entry, description, category)
-texinfo_documents = [
-    (master_doc, 'QEMU', u'QEMU Documentation',
-     author, 'QEMU', 'One line description of project.',
-     'Miscellaneous'),
-]
-
-
-
 # We use paths starting from qemu_docdir here so that you can run
 # sphinx-build from anywhere and the kerneldoc extension can still
 # find everything.
Signature · 1 line
2.34.1
#11 lore raw

PATCH 9/18 gitlab: add lsan suppression file to workaround tcmalloc issues

In reply to Alex Bennée

The up-coming upgrade to Fedora 37 will bring in libtcmalloc as a dependency of libglusterfs which confuses our fuzz run. Rather than disable the build lets use LSAN's suppression mechanism to prevent the job from failing.

Cc Daniel P. Berrangé <[email protected]>
---
 .gitlab-ci.d/buildtest.yml             | 1 +
 scripts/oss-fuzz/lsan_suppressions.txt | 2 ++
 2 files changed, 3 insertions(+)
 create mode 100644 scripts/oss-fuzz/lsan_suppressions.txt
.gitlab-ci.d/buildtest.yml +1 -0
index f09a898c3e..9a6ba1fe3b 100644
@@ -511,6 +511,7 @@ build-oss-fuzz:
     IMAGE: fedora
   script:
     - mkdir build-oss-fuzz
+    - export LSAN_OPTIONS=suppressions=scripts/oss-fuzz/lsan_suppressions.txt
     - CC="clang" CXX="clang++" CFLAGS="-fsanitize=address"
       ./scripts/oss-fuzz/build.sh
     - export ASAN_OPTIONS="fast_unwind_on_malloc=0"
scripts/oss-fuzz/lsan_suppressions.txt new file +2 -0
new file mode 100644
index 0000000000..02ec0a6ed5
@@ -0,0 +1,2 @@
+# The tcmalloc on Fedora37 confuses things
+leak:/lib64/libtcmalloc_minimal.so.4
Signature · 1 line
2.34.1
#12 lore raw

PATCH 10/18 Update lcitool and fedora to 37

In reply to Alex Bennée

From: Marc-André Lureau <[email protected]>

Fedora 35 is EOL.

Update to upstream lcitool, that dropped f35 and added f37.

Message-Id: <[email protected]>

---
 tests/docker/dockerfiles/fedora-win32-cross.docker | 4 ++--
 tests/docker/dockerfiles/fedora-win64-cross.docker | 4 ++--
 tests/docker/dockerfiles/fedora.docker             | 4 ++--
 tests/lcitool/libvirt-ci                           | 2 +-
 tests/lcitool/refresh                              | 6 +++---
 5 files changed, 10 insertions(+), 10 deletions(-)
tests/docker/dockerfiles/fedora-win32-cross.docker +2 -2
index 75383ba185..cc5d1ac4be 100644
@@ -1,10 +1,10 @@
 # THIS FILE WAS AUTO-GENERATED
 #
-#  $ lcitool dockerfile --layers all --cross mingw32 fedora-35 qemu
+#  $ lcitool dockerfile --layers all --cross mingw32 fedora-37 qemu
 #
 # https://gitlab.com/libvirt/libvirt-ci
 
-FROM registry.fedoraproject.org/fedora:35
+FROM registry.fedoraproject.org/fedora:37
 
 RUN dnf install -y nosync && \
     echo -e '#!/bin/sh\n\
tests/docker/dockerfiles/fedora-win64-cross.docker +2 -2
index 98c03dc13b..cabbf4edfc 100644
@@ -1,10 +1,10 @@
 # THIS FILE WAS AUTO-GENERATED
 #
-#  $ lcitool dockerfile --layers all --cross mingw64 fedora-35 qemu
+#  $ lcitool dockerfile --layers all --cross mingw64 fedora-37 qemu
 #
 # https://gitlab.com/libvirt/libvirt-ci
 
-FROM registry.fedoraproject.org/fedora:35
+FROM registry.fedoraproject.org/fedora:37
 
 RUN dnf install -y nosync && \
     echo -e '#!/bin/sh\n\
tests/docker/dockerfiles/fedora.docker +2 -2
index d200c7fc10..f44b005000 100644
@@ -1,10 +1,10 @@
 # THIS FILE WAS AUTO-GENERATED
 #
-#  $ lcitool dockerfile --layers all fedora-35 qemu
+#  $ lcitool dockerfile --layers all fedora-37 qemu
 #
 # https://gitlab.com/libvirt/libvirt-ci
 
-FROM registry.fedoraproject.org/fedora:35
+FROM registry.fedoraproject.org/fedora:37
 
 RUN dnf install -y nosync && \
     echo -e '#!/bin/sh\n\
tests/lcitool/libvirt-ci +1 -1
index e3eb28cf2e..319a534c22 160000
@@ -1 +1 @@
-Subproject commit e3eb28cf2e17fbcf7fe7e19505ee432b8ec5bbb5
+Subproject commit 319a534c220f53fc8670254cac25d6f662c82112
tests/lcitool/refresh +3 -3
index fa966e4009..a5ea0efc3b 100755
@@ -111,7 +111,7 @@ try:
     generate_dockerfile("centos8", "centos-stream-8")
     generate_dockerfile("debian-amd64", "debian-11",
                         trailer="".join(debian11_extras))
-    generate_dockerfile("fedora", "fedora-35")
+    generate_dockerfile("fedora", "fedora-37")
     generate_dockerfile("opensuse-leap", "opensuse-leap-153")
     generate_dockerfile("ubuntu2004", "ubuntu-2004",
                         trailer="".join(ubuntu2004_tsanhack))
@@ -161,12 +161,12 @@ try:
                         trailer=cross_build("s390x-linux-gnu-",
                                             "s390x-softmmu,s390x-linux-user"))
 
-    generate_dockerfile("fedora-win32-cross", "fedora-35",
+    generate_dockerfile("fedora-win32-cross", "fedora-37",
                         cross="mingw32",
                         trailer=cross_build("i686-w64-mingw32-",
                                             "i386-softmmu"))
 
-    generate_dockerfile("fedora-win64-cross", "fedora-35",
+    generate_dockerfile("fedora-win64-cross", "fedora-37",
                         cross="mingw64",
                         trailer=cross_build("x86_64-w64-mingw32-",
                                             "x86_64-softmmu"))
Signature · 1 line
2.34.1
Reviewed-by on v1 10/18
#13 lore raw

Re: [PATCH 10/18] Update lcitool and fedora to 37

Quoted 9 lines · Alex Bennée

From: Marc-André Lureau <[email protected]>

Fedora 35 is EOL.

Update to upstream lcitool, that dropped f35 and added f37.

Message-Id: <[email protected]>

Quoted 8 lines
---
  tests/docker/dockerfiles/fedora-win32-cross.docker | 4 ++--
  tests/docker/dockerfiles/fedora-win64-cross.docker | 4 ++--
  tests/docker/dockerfiles/fedora.docker             | 4 ++--
  tests/lcitool/libvirt-ci                           | 2 +-
  tests/lcitool/refresh                              | 6 +++---
  5 files changed, 10 insertions(+), 10 deletions(-)
#14 lore raw

Re: [PATCH 10/18] Update lcitool and fedora to 37

Quoted 6 lines · Philippe Mathieu-Daudé
Quoted 5 lines · Alex Bennée

From: Marc-André Lureau <[email protected]>

Fedora 35 is EOL.

Update to upstream lcitool, that dropped f35 and added f37.

If you also have time to update to commit 40589eed1c56f040d0f07fc354c242a0e0d83185 that would be nice (see https://patchew.org/QEMU/[email protected]/ for more information). Otherwise, no hurry.

Paolo

Quoted 16 lines
Quoted 4 lines

Message-Id: <[email protected]>

Quoted 8 lines

---
  tests/docker/dockerfiles/fedora-win32-cross.docker | 4 ++-- tests/docker/dockerfiles/fedora-win64-cross.docker | 4 ++-- tests/docker/dockerfiles/fedora.docker             | 4 ++-- tests/lcitool/libvirt-ci                           | 2 +- tests/lcitool/refresh                              | 6 +++---

  5 files changed, 10 insertions(+), 10 deletions(-)
#15 lore raw

Re: [PATCH 10/18] Update lcitool and fedora to 37

Quoted 4 lines · Paolo Bonzini
Quoted 3 lines · Philippe Mathieu-Daudé
Quoted 2 lines · Alex Bennée

From: Marc-André Lureau <[email protected]>

Quoted 8 lines
Quoted 3 lines
Quoted 3 lines

Fedora 35 is EOL.

Update to upstream lcitool, that dropped f35 and added f37.

If you also have time to update to commit 40589eed1c56f040d0f07fc354c242a0e0d83185 that would be nice (see
https://patchew.org/QEMU/[email protected]/
for more information). Otherwise, no hurry.

This round of testing/next has been painful enough, I'd like to get the PR out of the way before starting again.

Quoted 17 lines

Paolo

Quoted 14 lines
Quoted 4 lines

Message-Id: <[email protected]>

Quoted 8 lines

---
  tests/docker/dockerfiles/fedora-win32-cross.docker | 4 ++-- tests/docker/dockerfiles/fedora-win64-cross.docker | 4 ++-- tests/docker/dockerfiles/fedora.docker             | 4 ++-- tests/lcitool/libvirt-ci                           | 2 +- tests/lcitool/refresh                              | 6 +++---

  5 files changed, 10 insertions(+), 10 deletions(-)
Signature · 2 lines
Alex Bennée
Virtualisation Tech Lead @ Linaro
#16 lore raw

PATCH 11/18 lcitool: drop perl from QEMU project/dependencies

In reply to Alex Bennée

From: Marc-André Lureau <[email protected]>

Message-Id: <[email protected]>

---
 .gitlab-ci.d/cirrus/freebsd-12.vars                   | 2 +-
 .gitlab-ci.d/cirrus/freebsd-13.vars                   | 2 +-
 .gitlab-ci.d/cirrus/macos-12.vars                     | 2 +-
 scripts/ci/setup/build-environment.yml                | 1 -
 tests/docker/dockerfiles/alpine.docker                | 1 -
 tests/docker/dockerfiles/centos8.docker               | 1 -
 tests/docker/dockerfiles/debian-amd64-cross.docker    | 1 -
 tests/docker/dockerfiles/debian-amd64.docker          | 1 -
 tests/docker/dockerfiles/debian-arm64-cross.docker    | 1 -
 tests/docker/dockerfiles/debian-armel-cross.docker    | 1 -
 tests/docker/dockerfiles/debian-armhf-cross.docker    | 1 -
 tests/docker/dockerfiles/debian-mips64el-cross.docker | 1 -
 tests/docker/dockerfiles/debian-mipsel-cross.docker   | 1 -
 tests/docker/dockerfiles/debian-ppc64el-cross.docker  | 1 -
 tests/docker/dockerfiles/debian-s390x-cross.docker    | 1 -
 tests/docker/dockerfiles/debian-tricore-cross.docker  | 1 -
 tests/docker/dockerfiles/fedora-win32-cross.docker    | 1 -
 tests/docker/dockerfiles/fedora-win64-cross.docker    | 1 -
 tests/docker/dockerfiles/fedora.docker                | 1 -
 tests/docker/dockerfiles/opensuse-leap.docker         | 1 -
 tests/docker/dockerfiles/ubuntu2004.docker            | 1 -
 tests/lcitool/projects/qemu.yml                       | 1 -
 tests/vm/centos.aarch64                               | 2 +-
 23 files changed, 4 insertions(+), 23 deletions(-)
.gitlab-ci.d/cirrus/freebsd-12.vars +1 -1
index e3fc3235b9..f32f01a954 100644
@@ -11,6 +11,6 @@ MAKE='/usr/local/bin/gmake'
 NINJA='/usr/local/bin/ninja'
 PACKAGING_COMMAND='pkg'
 PIP3='/usr/local/bin/pip-3.8'
-PKGS='alsa-lib bash bison bzip2 ca_root_nss capstone4 ccache cdrkit-genisoimage cmocka ctags curl cyrus-sasl dbus diffutils dtc flex fusefs-libs3 gettext git glib gmake gnutls gsed gtk3 json-c libepoxy libffi libgcrypt libjpeg-turbo libnfs libslirp libspice-server libssh libtasn1 llvm lzo2 meson ncurses nettle ninja opencv perl5 pixman pkgconf png py39-numpy py39-pillow py39-pip py39-sphinx py39-sphinx_rtd_theme py39-yaml python3 rpm2cpio sdl2 sdl2_image snappy sndio spice-protocol tesseract texinfo usbredir virglrenderer vte3 zstd'
+PKGS='alsa-lib bash bison bzip2 ca_root_nss capstone4 ccache cdrkit-genisoimage cmocka ctags curl cyrus-sasl dbus diffutils dtc flex fusefs-libs3 gettext git glib gmake gnutls gsed gtk3 json-c libepoxy libffi libgcrypt libjpeg-turbo libnfs libslirp libspice-server libssh libtasn1 llvm lzo2 meson ncurses nettle ninja opencv pixman pkgconf png py39-numpy py39-pillow py39-pip py39-sphinx py39-sphinx_rtd_theme py39-yaml python3 rpm2cpio sdl2 sdl2_image snappy sndio spice-protocol tesseract texinfo usbredir virglrenderer vte3 zstd'
 PYPI_PKGS=''
 PYTHON='/usr/local/bin/python3'
.gitlab-ci.d/cirrus/freebsd-13.vars +1 -1
index 9f56babd9c..813c051616 100644
@@ -11,6 +11,6 @@ MAKE='/usr/local/bin/gmake'
 NINJA='/usr/local/bin/ninja'
 PACKAGING_COMMAND='pkg'
 PIP3='/usr/local/bin/pip-3.8'
-PKGS='alsa-lib bash bison bzip2 ca_root_nss capstone4 ccache cdrkit-genisoimage cmocka ctags curl cyrus-sasl dbus diffutils dtc flex fusefs-libs3 gettext git glib gmake gnutls gsed gtk3 json-c libepoxy libffi libgcrypt libjpeg-turbo libnfs libslirp libspice-server libssh libtasn1 llvm lzo2 meson ncurses nettle ninja opencv perl5 pixman pkgconf png py39-numpy py39-pillow py39-pip py39-sphinx py39-sphinx_rtd_theme py39-yaml python3 rpm2cpio sdl2 sdl2_image snappy sndio spice-protocol tesseract texinfo usbredir virglrenderer vte3 zstd'
+PKGS='alsa-lib bash bison bzip2 ca_root_nss capstone4 ccache cdrkit-genisoimage cmocka ctags curl cyrus-sasl dbus diffutils dtc flex fusefs-libs3 gettext git glib gmake gnutls gsed gtk3 json-c libepoxy libffi libgcrypt libjpeg-turbo libnfs libslirp libspice-server libssh libtasn1 llvm lzo2 meson ncurses nettle ninja opencv pixman pkgconf png py39-numpy py39-pillow py39-pip py39-sphinx py39-sphinx_rtd_theme py39-yaml python3 rpm2cpio sdl2 sdl2_image snappy sndio spice-protocol tesseract texinfo usbredir virglrenderer vte3 zstd'
 PYPI_PKGS=''
 PYTHON='/usr/local/bin/python3'
.gitlab-ci.d/cirrus/macos-12.vars +1 -1
index ef9e14b373..33bb4e1040 100644
@@ -11,6 +11,6 @@ MAKE='/opt/homebrew/bin/gmake'
 NINJA='/opt/homebrew/bin/ninja'
 PACKAGING_COMMAND='brew'
 PIP3='/opt/homebrew/bin/pip3'
-PKGS='bash bc bison bzip2 capstone ccache cmocka ctags curl dbus diffutils dtc flex gcovr gettext git glib gnu-sed gnutls gtk+3 jemalloc jpeg-turbo json-c libepoxy libffi libgcrypt libiscsi libnfs libpng libslirp libssh libtasn1 libusb llvm lzo make meson ncurses nettle ninja perl pixman pkg-config python3 rpm2cpio sdl2 sdl2_image snappy sparse spice-protocol tesseract texinfo usbredir vde vte3 zlib zstd'
+PKGS='bash bc bison bzip2 capstone ccache cmocka ctags curl dbus diffutils dtc flex gcovr gettext git glib gnu-sed gnutls gtk+3 jemalloc jpeg-turbo json-c libepoxy libffi libgcrypt libiscsi libnfs libpng libslirp libssh libtasn1 libusb llvm lzo make meson ncurses nettle ninja pixman pkg-config python3 rpm2cpio sdl2 sdl2_image snappy sparse spice-protocol tesseract texinfo usbredir vde vte3 zlib zstd'
 PYPI_PKGS='PyYAML numpy pillow sphinx sphinx-rtd-theme'
 PYTHON='/opt/homebrew/bin/python3'
scripts/ci/setup/build-environment.yml +0 -1
index b04c2b7cee..58438008ee 100644
@@ -155,7 +155,6 @@
           - nettle-devel
           - ninja-build
           - nmap-ncat
-          - perl-Test-Harness
           - pixman-devel
           - python36
           - rdma-core-devel
tests/docker/dockerfiles/alpine.docker +0 -1
index 094f66f4eb..3293c790c9 100644
@@ -77,7 +77,6 @@ RUN apk update && \
         numactl-dev \
         openssh-client \
         pcre-dev \
-        perl \
         pixman-dev \
         pkgconf \
         pulseaudio-dev \
tests/docker/dockerfiles/centos8.docker +0 -1
index 1f70d41aeb..f13745e6cc 100644
@@ -91,7 +91,6 @@ RUN dnf distro-sync -y && \
         openssh-clients \
         pam-devel \
         pcre-static \
-        perl \
         pixman-devel \
         pkgconfig \
         pulseaudio-libs-devel \
tests/docker/dockerfiles/debian-amd64-cross.docker +0 -1
index 5e57309361..d0ace6d0f7 100644
@@ -40,7 +40,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       ncat \
                       ninja-build \
                       openssh-client \
-                      perl-base \
                       pkgconf \
                       python3 \
                       python3-numpy \
tests/docker/dockerfiles/debian-amd64.docker +0 -1
index bfeab01ee3..0517c4c315 100644
@@ -108,7 +108,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       nettle-dev \
                       ninja-build \
                       openssh-client \
-                      perl-base \
                       pkgconf \
                       python3 \
                       python3-numpy \
tests/docker/dockerfiles/debian-arm64-cross.docker +0 -1
index 98885bd0ee..9ac1c1ba3f 100644
@@ -40,7 +40,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       ncat \
                       ninja-build \
                       openssh-client \
-                      perl-base \
                       pkgconf \
                       python3 \
                       python3-numpy \
tests/docker/dockerfiles/debian-armel-cross.docker +0 -1
index d5c08714e4..8be492f4ad 100644
@@ -40,7 +40,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       ncat \
                       ninja-build \
                       openssh-client \
-                      perl-base \
                       pkgconf \
                       python3 \
                       python3-numpy \
tests/docker/dockerfiles/debian-armhf-cross.docker +0 -1
index 471444fcf4..da789e04af 100644
@@ -40,7 +40,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       ncat \
                       ninja-build \
                       openssh-client \
-                      perl-base \
                       pkgconf \
                       python3 \
                       python3-numpy \
tests/docker/dockerfiles/debian-mips64el-cross.docker +0 -1
index 15b0224b76..8b7c59c4f9 100644
@@ -40,7 +40,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       ncat \
                       ninja-build \
                       openssh-client \
-                      perl-base \
                       pkgconf \
                       python3 \
                       python3-numpy \
tests/docker/dockerfiles/debian-mipsel-cross.docker +0 -1
index a5d3ca6e2f..f9f1ed5fd2 100644
@@ -40,7 +40,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       ncat \
                       ninja-build \
                       openssh-client \
-                      perl-base \
                       pkgconf \
                       python3 \
                       python3-numpy \
tests/docker/dockerfiles/debian-ppc64el-cross.docker +0 -1
index d2954e61f6..e423d88c2d 100644
@@ -40,7 +40,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       ncat \
                       ninja-build \
                       openssh-client \
-                      perl-base \
                       pkgconf \
                       python3 \
                       python3-numpy \
tests/docker/dockerfiles/debian-s390x-cross.docker +0 -1
index d43ce16317..c1134f4cec 100644
@@ -40,7 +40,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       ncat \
                       ninja-build \
                       openssh-client \
-                      perl-base \
                       pkgconf \
                       python3 \
                       python3-numpy \
tests/docker/dockerfiles/debian-tricore-cross.docker +0 -1
index b573b9ded2..34b2cea4e3 100644
@@ -28,7 +28,6 @@ RUN apt update && \
        locales \
        make \
        ninja-build \
-       perl-base \
        pkgconf \
        python3-pip \
        python3-setuptools \
tests/docker/dockerfiles/fedora-win32-cross.docker +0 -1
index cc5d1ac4be..de811b332b 100644
@@ -42,7 +42,6 @@ exec "$@"' > /usr/bin/nosync && \
                nmap-ncat \
                openssh-clients \
                pcre-static \
-               perl-base \
                python3 \
                python3-PyYAML \
                python3-numpy \
tests/docker/dockerfiles/fedora-win64-cross.docker +0 -1
index cabbf4edfc..71681d6f92 100644
@@ -42,7 +42,6 @@ exec "$@"' > /usr/bin/nosync && \
                nmap-ncat \
                openssh-clients \
                pcre-static \
-               perl-base \
                python3 \
                python3-PyYAML \
                python3-numpy \
tests/docker/dockerfiles/fedora.docker +0 -1
index f44b005000..ca3793b04b 100644
@@ -98,7 +98,6 @@ exec "$@"' > /usr/bin/nosync && \
                openssh-clients \
                pam-devel \
                pcre-static \
-               perl-base \
                pixman-devel \
                pkgconfig \
                pulseaudio-libs-devel \
tests/docker/dockerfiles/opensuse-leap.docker +0 -1
index 4361b01464..680f49e7dc 100644
@@ -88,7 +88,6 @@ RUN zypper update -y && \
            openssh \
            pam-devel \
            pcre-devel-static \
-           perl-base \
            pkgconfig \
            python3-Pillow \
            python3-PyYAML \
tests/docker/dockerfiles/ubuntu2004.docker +0 -1
index 9417bca2fa..6594bba338 100644
@@ -105,7 +105,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       nettle-dev \
                       ninja-build \
                       openssh-client \
-                      perl-base \
                       pkgconf \
                       python3 \
                       python3-numpy \
tests/lcitool/projects/qemu.yml +0 -1
index c62dbc00f9..c2af92348a 100644
@@ -83,7 +83,6 @@ packages:
  - ncursesw
  - pam
  - pcre-static
- - perl
  - pixman
  - pkg-config
  - pulseaudio
tests/vm/centos.aarch64 +1 -1
index 2de7ef6992..3f58de1e64 100755
@@ -28,7 +28,7 @@ DEFAULT_CONFIG = {
         "dnf config-manager --set-enabled powertools, "
         "dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo, "
         "dnf install -y make ninja-build git python38 gcc gcc-c++ flex bison "\
-            "glib2-devel perl pixman-devel zlib-devel docker-ce.aarch64, "
+            "glib2-devel pixman-devel zlib-devel docker-ce.aarch64, "
         "systemctl enable docker, "
     ),
     # We increase beyond the default time since during boot
Signature · 1 line
2.34.1
Reviewed-by on v1 11/18
#17 lore raw

Re: [PATCH 11/18] lcitool: drop perl from QEMU project/dependencies

Quoted 23 lines · Alex Bennée

From: Marc-André Lureau <[email protected]>

Message-Id: <[email protected]>

---
  .gitlab-ci.d/cirrus/freebsd-12.vars                   | 2 +-
  .gitlab-ci.d/cirrus/freebsd-13.vars                   | 2 +-
  .gitlab-ci.d/cirrus/macos-12.vars                     | 2 +-
  scripts/ci/setup/build-environment.yml                | 1 -
  tests/docker/dockerfiles/alpine.docker                | 1 -
  tests/docker/dockerfiles/centos8.docker               | 1 -
  tests/docker/dockerfiles/debian-amd64-cross.docker    | 1 -
  tests/docker/dockerfiles/debian-amd64.docker          | 1 -
  tests/docker/dockerfiles/debian-arm64-cross.docker    | 1 -
  tests/docker/dockerfiles/debian-armel-cross.docker    | 1 -
  tests/docker/dockerfiles/debian-armhf-cross.docker    | 1 -
  tests/docker/dockerfiles/debian-mips64el-cross.docker | 1 -
  tests/docker/dockerfiles/debian-mipsel-cross.docker   | 1 -
  tests/docker/dockerfiles/debian-ppc64el-cross.docker  | 1 -
  tests/docker/dockerfiles/debian-s390x-cross.docker    | 1 -
  tests/docker/dockerfiles/debian-tricore-cross.docker  | 1 -
Quoted 8 lines
  tests/docker/dockerfiles/fedora-win32-cross.docker    | 1 -
  tests/docker/dockerfiles/fedora-win64-cross.docker    | 1 -
  tests/docker/dockerfiles/fedora.docker                | 1 -
  tests/docker/dockerfiles/opensuse-leap.docker         | 1 -
  tests/docker/dockerfiles/ubuntu2004.docker            | 1 -
  tests/lcitool/projects/qemu.yml                       | 1 -
  tests/vm/centos.aarch64                               | 2 +-
  23 files changed, 4 insertions(+), 23 deletions(-)
#18 lore raw

PATCH 12/18 lcitool: drop texinfo from QEMU project/dependencies

In reply to Alex Bennée

From: Marc-André Lureau <[email protected]>

Message-Id: <[email protected]>

---
 .gitlab-ci.d/cirrus/freebsd-12.vars                   | 2 +-
 .gitlab-ci.d/cirrus/freebsd-13.vars                   | 2 +-
 .gitlab-ci.d/cirrus/macos-12.vars                     | 2 +-
 tests/docker/dockerfiles/alpine.docker                | 1 -
 tests/docker/dockerfiles/centos8.docker               | 1 -
 tests/docker/dockerfiles/debian-amd64-cross.docker    | 3 +--
 tests/docker/dockerfiles/debian-amd64.docker          | 1 -
 tests/docker/dockerfiles/debian-arm64-cross.docker    | 3 +--
 tests/docker/dockerfiles/debian-armel-cross.docker    | 3 +--
 tests/docker/dockerfiles/debian-armhf-cross.docker    | 3 +--
 tests/docker/dockerfiles/debian-mips64el-cross.docker | 3 +--
 tests/docker/dockerfiles/debian-mipsel-cross.docker   | 3 +--
 tests/docker/dockerfiles/debian-ppc64el-cross.docker  | 3 +--
 tests/docker/dockerfiles/debian-s390x-cross.docker    | 3 +--
 tests/docker/dockerfiles/debian-toolchain.docker      | 1 -
 tests/docker/dockerfiles/fedora-win32-cross.docker    | 1 -
 tests/docker/dockerfiles/fedora-win64-cross.docker    | 1 -
 tests/docker/dockerfiles/fedora.docker                | 1 -
 tests/docker/dockerfiles/opensuse-leap.docker         | 1 -
 tests/docker/dockerfiles/ubuntu2004.docker            | 1 -
 tests/lcitool/projects/qemu.yml                       | 1 -
 21 files changed, 11 insertions(+), 29 deletions(-)
.gitlab-ci.d/cirrus/freebsd-12.vars +1 -1
index f32f01a954..8934e5d57f 100644
@@ -11,6 +11,6 @@ MAKE='/usr/local/bin/gmake'
 NINJA='/usr/local/bin/ninja'
 PACKAGING_COMMAND='pkg'
 PIP3='/usr/local/bin/pip-3.8'
-PKGS='alsa-lib bash bison bzip2 ca_root_nss capstone4 ccache cdrkit-genisoimage cmocka ctags curl cyrus-sasl dbus diffutils dtc flex fusefs-libs3 gettext git glib gmake gnutls gsed gtk3 json-c libepoxy libffi libgcrypt libjpeg-turbo libnfs libslirp libspice-server libssh libtasn1 llvm lzo2 meson ncurses nettle ninja opencv pixman pkgconf png py39-numpy py39-pillow py39-pip py39-sphinx py39-sphinx_rtd_theme py39-yaml python3 rpm2cpio sdl2 sdl2_image snappy sndio spice-protocol tesseract texinfo usbredir virglrenderer vte3 zstd'
+PKGS='alsa-lib bash bison bzip2 ca_root_nss capstone4 ccache cdrkit-genisoimage cmocka ctags curl cyrus-sasl dbus diffutils dtc flex fusefs-libs3 gettext git glib gmake gnutls gsed gtk3 json-c libepoxy libffi libgcrypt libjpeg-turbo libnfs libslirp libspice-server libssh libtasn1 llvm lzo2 meson ncurses nettle ninja opencv pixman pkgconf png py39-numpy py39-pillow py39-pip py39-sphinx py39-sphinx_rtd_theme py39-yaml python3 rpm2cpio sdl2 sdl2_image snappy sndio spice-protocol tesseract usbredir virglrenderer vte3 zstd'
 PYPI_PKGS=''
 PYTHON='/usr/local/bin/python3'
.gitlab-ci.d/cirrus/freebsd-13.vars +1 -1
index 813c051616..65ce456c48 100644
@@ -11,6 +11,6 @@ MAKE='/usr/local/bin/gmake'
 NINJA='/usr/local/bin/ninja'
 PACKAGING_COMMAND='pkg'
 PIP3='/usr/local/bin/pip-3.8'
-PKGS='alsa-lib bash bison bzip2 ca_root_nss capstone4 ccache cdrkit-genisoimage cmocka ctags curl cyrus-sasl dbus diffutils dtc flex fusefs-libs3 gettext git glib gmake gnutls gsed gtk3 json-c libepoxy libffi libgcrypt libjpeg-turbo libnfs libslirp libspice-server libssh libtasn1 llvm lzo2 meson ncurses nettle ninja opencv pixman pkgconf png py39-numpy py39-pillow py39-pip py39-sphinx py39-sphinx_rtd_theme py39-yaml python3 rpm2cpio sdl2 sdl2_image snappy sndio spice-protocol tesseract texinfo usbredir virglrenderer vte3 zstd'
+PKGS='alsa-lib bash bison bzip2 ca_root_nss capstone4 ccache cdrkit-genisoimage cmocka ctags curl cyrus-sasl dbus diffutils dtc flex fusefs-libs3 gettext git glib gmake gnutls gsed gtk3 json-c libepoxy libffi libgcrypt libjpeg-turbo libnfs libslirp libspice-server libssh libtasn1 llvm lzo2 meson ncurses nettle ninja opencv pixman pkgconf png py39-numpy py39-pillow py39-pip py39-sphinx py39-sphinx_rtd_theme py39-yaml python3 rpm2cpio sdl2 sdl2_image snappy sndio spice-protocol tesseract usbredir virglrenderer vte3 zstd'
 PYPI_PKGS=''
 PYTHON='/usr/local/bin/python3'
.gitlab-ci.d/cirrus/macos-12.vars +1 -1
index 33bb4e1040..65b78fa08f 100644
@@ -11,6 +11,6 @@ MAKE='/opt/homebrew/bin/gmake'
 NINJA='/opt/homebrew/bin/ninja'
 PACKAGING_COMMAND='brew'
 PIP3='/opt/homebrew/bin/pip3'
-PKGS='bash bc bison bzip2 capstone ccache cmocka ctags curl dbus diffutils dtc flex gcovr gettext git glib gnu-sed gnutls gtk+3 jemalloc jpeg-turbo json-c libepoxy libffi libgcrypt libiscsi libnfs libpng libslirp libssh libtasn1 libusb llvm lzo make meson ncurses nettle ninja pixman pkg-config python3 rpm2cpio sdl2 sdl2_image snappy sparse spice-protocol tesseract texinfo usbredir vde vte3 zlib zstd'
+PKGS='bash bc bison bzip2 capstone ccache cmocka ctags curl dbus diffutils dtc flex gcovr gettext git glib gnu-sed gnutls gtk+3 jemalloc jpeg-turbo json-c libepoxy libffi libgcrypt libiscsi libnfs libpng libslirp libssh libtasn1 libusb llvm lzo make meson ncurses nettle ninja pixman pkg-config python3 rpm2cpio sdl2 sdl2_image snappy sparse spice-protocol tesseract usbredir vde vte3 zlib zstd'
 PYPI_PKGS='PyYAML numpy pillow sphinx sphinx-rtd-theme'
 PYTHON='/opt/homebrew/bin/python3'
tests/docker/dockerfiles/alpine.docker +0 -1
index 3293c790c9..4a569d82f6 100644
@@ -99,7 +99,6 @@ RUN apk update && \
         spice-protocol \
         tar \
         tesseract-ocr \
-        texinfo \
         usbredir-dev \
         util-linux \
         vde2-dev \
tests/docker/dockerfiles/centos8.docker +0 -1
index f13745e6cc..fbc953c6dc 100644
@@ -110,7 +110,6 @@ RUN dnf distro-sync -y && \
         systemd-devel \
         systemtap-sdt-devel \
         tar \
-        texinfo \
         usbredir-devel \
         util-linux \
         virglrenderer-devel \
tests/docker/dockerfiles/debian-amd64-cross.docker +1 -2
index d0ace6d0f7..5175095a85 100644
@@ -55,8 +55,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       sparse \
                       tar \
                       tesseract-ocr \
-                      tesseract-ocr-eng \
-                      texinfo && \
+                      tesseract-ocr-eng && \
     eatmydata apt-get autoremove -y && \
     eatmydata apt-get autoclean -y && \
     sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
tests/docker/dockerfiles/debian-amd64.docker +0 -1
index 0517c4c315..b61f664ea2 100644
@@ -125,7 +125,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       tar \
                       tesseract-ocr \
                       tesseract-ocr-eng \
-                      texinfo \
                       xfslibs-dev \
                       zlib1g-dev && \
     eatmydata apt-get autoremove -y && \
tests/docker/dockerfiles/debian-arm64-cross.docker +1 -2
index 9ac1c1ba3f..b69958c69f 100644
@@ -55,8 +55,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       sparse \
                       tar \
                       tesseract-ocr \
-                      tesseract-ocr-eng \
-                      texinfo && \
+                      tesseract-ocr-eng && \
     eatmydata apt-get autoremove -y && \
     eatmydata apt-get autoclean -y && \
     sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
tests/docker/dockerfiles/debian-armel-cross.docker +1 -2
index 8be492f4ad..96b524fab6 100644
@@ -55,8 +55,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       sparse \
                       tar \
                       tesseract-ocr \
-                      tesseract-ocr-eng \
-                      texinfo && \
+                      tesseract-ocr-eng && \
     eatmydata apt-get autoremove -y && \
     eatmydata apt-get autoclean -y && \
     sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
tests/docker/dockerfiles/debian-armhf-cross.docker +1 -2
index da789e04af..08a75cebdb 100644
@@ -55,8 +55,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       sparse \
                       tar \
                       tesseract-ocr \
-                      tesseract-ocr-eng \
-                      texinfo && \
+                      tesseract-ocr-eng && \
     eatmydata apt-get autoremove -y && \
     eatmydata apt-get autoclean -y && \
     sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
tests/docker/dockerfiles/debian-mips64el-cross.docker +1 -2
index 8b7c59c4f9..5930e6fa5d 100644
@@ -55,8 +55,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       sparse \
                       tar \
                       tesseract-ocr \
-                      tesseract-ocr-eng \
-                      texinfo && \
+                      tesseract-ocr-eng && \
     eatmydata apt-get autoremove -y && \
     eatmydata apt-get autoclean -y && \
     sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
tests/docker/dockerfiles/debian-mipsel-cross.docker +1 -2
index f9f1ed5fd2..c65d9830e7 100644
@@ -55,8 +55,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       sparse \
                       tar \
                       tesseract-ocr \
-                      tesseract-ocr-eng \
-                      texinfo && \
+                      tesseract-ocr-eng && \
     eatmydata apt-get autoremove -y && \
     eatmydata apt-get autoclean -y && \
     sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
tests/docker/dockerfiles/debian-ppc64el-cross.docker +1 -2
index e423d88c2d..2ae56c978e 100644
@@ -55,8 +55,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       sparse \
                       tar \
                       tesseract-ocr \
-                      tesseract-ocr-eng \
-                      texinfo && \
+                      tesseract-ocr-eng && \
     eatmydata apt-get autoremove -y && \
     eatmydata apt-get autoclean -y && \
     sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
tests/docker/dockerfiles/debian-s390x-cross.docker +1 -2
index c1134f4cec..0db86a0fcd 100644
@@ -55,8 +55,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       sparse \
                       tar \
                       tesseract-ocr \
-                      tesseract-ocr-eng \
-                      texinfo && \
+                      tesseract-ocr-eng && \
     eatmydata apt-get autoremove -y && \
     eatmydata apt-get autoclean -y && \
     sed -Ei 's,^# (en_US\.UTF-8 .*)$,\1,' /etc/locale.gen && \
tests/docker/dockerfiles/debian-toolchain.docker +0 -1
index d3d4d3344e..6c73408b34 100644
@@ -21,7 +21,6 @@ RUN apt update && \
         libmpc-dev \
         libmpfr-dev \
         rsync \
-        texinfo \
         wget && \
     DEBIAN_FRONTEND=noninteractive eatmydata \
     apt build-dep -yy --arch-only gcc glibc
tests/docker/dockerfiles/fedora-win32-cross.docker +0 -1
index de811b332b..b659c0b8a8 100644
@@ -57,7 +57,6 @@ exec "$@"' > /usr/bin/nosync && \
                tar \
                tesseract \
                tesseract-langpack-eng \
-               texinfo \
                util-linux \
                which && \
     nosync dnf autoremove -y && \
tests/docker/dockerfiles/fedora-win64-cross.docker +0 -1
index 71681d6f92..0a404c15bf 100644
@@ -57,7 +57,6 @@ exec "$@"' > /usr/bin/nosync && \
                tar \
                tesseract \
                tesseract-langpack-eng \
-               texinfo \
                util-linux \
                which && \
     nosync dnf autoremove -y && \
tests/docker/dockerfiles/fedora.docker +0 -1
index ca3793b04b..5d60a96141 100644
@@ -121,7 +121,6 @@ exec "$@"' > /usr/bin/nosync && \
                tar \
                tesseract \
                tesseract-langpack-eng \
-               texinfo \
                usbredir-devel \
                util-linux \
                virglrenderer-devel \
tests/docker/dockerfiles/opensuse-leap.docker +0 -1
index 680f49e7dc..4b2c02d6ab 100644
@@ -111,7 +111,6 @@ RUN zypper update -y && \
            tar \
            tesseract-ocr \
            tesseract-ocr-traineddata-english \
-           texinfo \
            usbredir-devel \
            util-linux \
            virglrenderer-devel \
tests/docker/dockerfiles/ubuntu2004.docker +0 -1
index 6594bba338..13ab0b6887 100644
@@ -124,7 +124,6 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
                       tar \
                       tesseract-ocr \
                       tesseract-ocr-eng \
-                      texinfo \
                       xfslibs-dev \
                       zlib1g-dev && \
     eatmydata apt-get autoremove -y && \
tests/lcitool/projects/qemu.yml +0 -1
index c2af92348a..6467bcf08a 100644
@@ -109,7 +109,6 @@ packages:
  - tar
  - tesseract
  - tesseract-eng
- - texinfo
  - usbredir
  - virglrenderer
  - vte
Signature · 1 line
2.34.1
#19 lore raw

PATCH 13/18 tests/docker: Install flex in debian-tricore-cross

In reply to Alex Bennée

From: Philippe Mathieu-Daudé <[email protected]>

When flex is not available, binutils sources default to the 'missing' script, but the current script available is not in the format expected by the 'configure' script:

  $ ./configure
  ...
  /usr/src/binutils/missing: Unknown `--run' option
  Try `/usr/src/binutils/missing --help' for more information
  configure: WARNING: `missing' script is too old or missing
  ...
  checking for bison... bison -y
  checking for flex... no
  checking for lex... no
  checking for flex... /usr/src/binutils/missing flex
  $ make
  ...
  updating ldgram.h
  gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -I. -I. -I../bfd -I./../bfd -I./../include -I./../intl -I../intl  -w -DLOCALEDIR="\"/usr/local/share/locale\""   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -w -c `test -f 'ldgram.c' || echo './'`ldgram.c
  `test -f ldlex.l || echo './'`ldlex.l
  /bin/sh: 1: ldlex.l: not found
  make[3]: *** [Makefile:662: ldlex.c] Error 127
  make[3]: Leaving directory '/usr/src/binutils/ld'
  make[2]: *** [Makefile:799: all-recursive] Error 1

By pass the 'missing' script use by directly installing 'flex' in the container.

Message-Id: <[email protected]>

---
 tests/docker/dockerfiles/debian-tricore-cross.docker | 1 +
 1 file changed, 1 insertion(+)
tests/docker/dockerfiles/debian-tricore-cross.docker +1 -0
index 34b2cea4e3..5ae58efa09 100644
@@ -20,6 +20,7 @@ RUN apt update && \
        bzip2 \
        ca-certificates \
        ccache \
+       flex \
        g++ \
        gcc \
        git \
Signature · 1 line
2.34.1
#20 lore raw

PATCH 14/18 tests/docker: drop debian-tricore-cross's partial status

In reply to Alex Bennée

This image is perfectly capable of building QEMU, and indeed we do that on gitlab. Drop the DOCKER_PARTIAL_IMAGES setting so we can also test the gitlab build locally.

---
 tests/docker/Makefile.include | 1 -
 1 file changed, 1 deletion(-)
tests/docker/Makefile.include +0 -1
index 665ddde518..bfb0dcac21 100644
@@ -128,7 +128,6 @@ DOCKER_PARTIAL_IMAGES += debian-mips-cross
 DOCKER_PARTIAL_IMAGES += debian-nios2-cross
 DOCKER_PARTIAL_IMAGES += debian-riscv64-test-cross
 DOCKER_PARTIAL_IMAGES += debian-sh4-cross debian-sparc64-cross
-DOCKER_PARTIAL_IMAGES += debian-tricore-cross
 DOCKER_PARTIAL_IMAGES += debian-xtensa-cross
 DOCKER_PARTIAL_IMAGES += fedora-cris-cross
 
Signature · 1 line
2.34.1
Reviewed-by on v1 14/18
#21 lore raw

Re: [PATCH 14/18] tests/docker: drop debian-tricore-cross's partial status

Quoted 8 lines · Alex Bennée

This image is perfectly capable of building QEMU, and indeed we do that on gitlab. Drop the DOCKER_PARTIAL_IMAGES setting so we can also test the gitlab build locally.

---
  tests/docker/Makefile.include | 1 -
  1 file changed, 1 deletion(-)
#22 lore raw

Re: [PATCH 14/18] tests/docker: drop debian-tricore-cross's partial status

In reply to Alex Bennée
Quoted 8 lines · Alex Bennée

This image is perfectly capable of building QEMU, and indeed we do that on gitlab. Drop the DOCKER_PARTIAL_IMAGES setting so we can also test the gitlab build locally.

---
  tests/docker/Makefile.include | 1 -
  1 file changed, 1 deletion(-)

Why are we doing so, though?

Unlike the other container-cross.yml jobs, we are not cross-compiling. We are building for an x86_64 host, not a tricore host.

We appear to be using this container simply to provide a cross-compiler for compiling tricore tests. Which is fine, I suppose, but I think the job should be modeled more like build-some-softmmu, instead of modeled like a cross-build.

r~

#23 lore raw

Re: [PATCH 14/18] tests/docker: drop debian-tricore-cross's partial status

Quoted 10 lines · Richard Henderson
Quoted 7 lines · Alex Bennée

This image is perfectly capable of building QEMU, and indeed we do that on gitlab. Drop the DOCKER_PARTIAL_IMAGES setting so we can also test the gitlab build locally.

---
  tests/docker/Makefile.include | 1 -
  1 file changed, 1 deletion(-)

Why are we doing so, though?

Only so I could debug what was failing upstream.

Quoted 7 lines

Unlike the other container-cross.yml jobs, we are not cross-compiling. We are building for an x86_64 host, not a tricore host.

We appear to be using this container simply to provide a cross-compiler for compiling tricore tests. Which is fine, I suppose, but I think the job should be modeled more like build-some-softmmu, instead of modeled like a cross-build.

It's just to work around the fact we don't have QEMU test coverage for our debian-all-test-cross because of the custom binutils bits. That's why it gained the ability to build QEMU (albeit just one target).

Signature · 2 lines
Alex Bennée
Virtualisation Tech Lead @ Linaro
#24 lore raw

PATCH 15/18 tests/tcg: skip the vma-pthread test on CI

In reply to Alex Bennée

We are getting a lot of failures that are not related to changes so this could be a flaky test.

Cc Richard Henderson <[email protected]>
---
 tests/tcg/multiarch/Makefile.target | 9 +++++++++
 1 file changed, 9 insertions(+)
tests/tcg/multiarch/Makefile.target +9 -0
index e7213af492..ae8b3d7268 100644
@@ -42,6 +42,15 @@ munmap-pthread: LDFLAGS+=-pthread
 vma-pthread: CFLAGS+=-pthread
 vma-pthread: LDFLAGS+=-pthread
 
+# The vma-pthread seems very sensitive on gitlab and we currently
+# don't know if its exposing a real bug or the test is flaky.
+ifneq ($(GITLAB_CI),)
+run-vma-pthread: vma-pthread
+	$(call skip-test, $<, "flaky on CI?")
+run-plugin-vma-pthread-with-%: vma-pthread
+	$(call skip-test, $<, "flaky on CI?")
+endif
+
 # We define the runner for test-mmap after the individual
 # architectures have defined their supported pages sizes. If no
 # additional page sizes are defined we only run the default test.
Signature · 1 line
2.34.1
#26 lore raw

PATCH 16/18 tests/tcg: Use SIGKILL for timeout

In reply to Alex Bennée

From: Richard Henderson <[email protected]>

linux-user blocks all signals while attempting to handle guest signals (e.g. ABRT), which means that the default TERM sent by timeout has no effect -- KILL instead.

When a guest aborts (possible nios2 guest bug), sending SIGABRT to itself, I have caught one thread waiting in start_exclusive, and all of the others blocked in exclusive_idle. I look at that and think there's a bug in our start_exclusive locking, but I can't prove it.

Message-Id: <[email protected]>

[AJB: expanded commit message from cover letter]
---
 tests/tcg/Makefile.target | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tests/tcg/Makefile.target +2 -2
index 14bc013181..a3b0aaf8af 100644
@@ -54,10 +54,10 @@ cc-option = if $(call cc-test, $1); then \
 
 # $1 = test name, $2 = cmd, $3 = desc
 ifeq ($(filter %-softmmu, $(TARGET)),)
-run-test = $(call quiet-command, timeout --foreground $(TIMEOUT) $2 > $1.out, \
+run-test = $(call quiet-command, timeout -s KILL --foreground $(TIMEOUT) $2 > $1.out, \
 	TEST,$(or $3, $*, $<) on $(TARGET_NAME))
 else
-run-test = $(call quiet-command, timeout --foreground $(TIMEOUT) $2, \
+run-test = $(call quiet-command, timeout -s KILL --foreground $(TIMEOUT) $2, \
         TEST,$(or $3, $*, $<) on $(TARGET_NAME))
 endif
 
Signature · 1 line
2.34.1
#27 lore raw

Re: [PATCH 16/18] tests/tcg: Use SIGKILL for timeout

Quoted 10 lines · Alex Bennée

From: Richard Henderson <[email protected]>

linux-user blocks all signals while attempting to handle guest signals (e.g. ABRT), which means that the default TERM sent by timeout has no effect -- KILL instead.

When a guest aborts (possible nios2 guest bug), sending SIGABRT to itself, I have caught one thread waiting in start_exclusive, and all of the others blocked in exclusive_idle. I look at that and think there's a bug in our start_exclusive locking, but I can't prove it.

I don't think this bit of the cover letter is helpful here. It was just the sigprocmask in process_pending_signals that was relevant.

Anyway...

Quoted 5 lines

Message-Id: <[email protected]>

[AJB: expanded commit message from cover letter]
#28 lore raw

PATCH 17/18 gitlab: wrap up test results for custom runners

In reply to Alex Bennée

Instead of spewing the whole log to stdout lets just define them as build artefacts so we can examine them later. Where we are running check-tcg run it first as those tests are yet to be integrated into meson.

---
 .gitlab-ci.d/custom-runners.yml                     | 11 +++++++++++
 .gitlab-ci.d/custom-runners/ubuntu-20.04-s390x.yml  | 13 ++++++-------
 .../custom-runners/ubuntu-22.04-aarch32.yml         |  2 +-
 .../custom-runners/ubuntu-22.04-aarch64.yml         | 13 ++++++-------
 4 files changed, 24 insertions(+), 15 deletions(-)
.gitlab-ci.d/custom-runners.yml +11 -0
index 97f99e29c2..9fdc476c48 100644
@@ -13,6 +13,17 @@
 variables:
   GIT_STRATEGY: clone
 
+# All custom runners can extend this template to upload the testlog
+# data as an artifact and also feed the junit report
+.custom_artifacts_template:
+  artifacts:
+    name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
+    expire_in: 7 days
+    paths:
+      - build/meson-logs/testlog.txt
+    reports:
+      junit: build/meson-logs/testlog.junit.xml
+
 include:
   - local: '/.gitlab-ci.d/custom-runners/ubuntu-20.04-s390x.yml'
   - local: '/.gitlab-ci.d/custom-runners/ubuntu-22.04-aarch64.yml'
.gitlab-ci.d/custom-runners/ubuntu-20.04-s390x.yml +6 -7
index fcaef9e5ef..f512eaeaa3 100644
@@ -3,6 +3,7 @@
 # "Install basic packages to build QEMU on Ubuntu 20.04/20.04"
 
 ubuntu-20.04-s390x-all-linux-static:
+ extends: .custom_artifacts_template
  needs: []
  stage: build
  tags:
@@ -19,12 +20,11 @@ ubuntu-20.04-s390x-all-linux-static:
  - ../configure --enable-debug --static --disable-system --disable-glusterfs --disable-libssh
    || { cat config.log meson-logs/meson-log.txt; exit 1; }
  - make --output-sync -j`nproc`
+ - make --output-sync check-tcg
  - make --output-sync -j`nproc` check
-   || { cat meson-logs/testlog.txt; exit 1; } ;
- - make --output-sync -j`nproc` check-tcg
-   || { cat meson-logs/testlog.txt; exit 1; } ;
 
 ubuntu-20.04-s390x-all:
+ extends: .custom_artifacts_template
  needs: []
  stage: build
  tags:
@@ -41,9 +41,9 @@ ubuntu-20.04-s390x-all:
    || { cat config.log meson-logs/meson-log.txt; exit 1; }
  - make --output-sync -j`nproc`
  - make --output-sync -j`nproc` check
-   || { cat meson-logs/testlog.txt; exit 1; } ;
 
 ubuntu-20.04-s390x-alldbg:
+ extends: .custom_artifacts_template
  needs: []
  stage: build
  tags:
@@ -64,9 +64,9 @@ ubuntu-20.04-s390x-alldbg:
  - make clean
  - make --output-sync -j`nproc`
  - make --output-sync -j`nproc` check
-   || { cat meson-logs/testlog.txt; exit 1; } ;
 
 ubuntu-20.04-s390x-clang:
+ extends: .custom_artifacts_template
  needs: []
  stage: build
  tags:
@@ -86,7 +86,6 @@ ubuntu-20.04-s390x-clang:
    || { cat config.log meson-logs/meson-log.txt; exit 1; }
  - make --output-sync -j`nproc`
  - make --output-sync -j`nproc` check
-   || { cat meson-logs/testlog.txt; exit 1; } ;
 
 ubuntu-20.04-s390x-tci:
  needs: []
@@ -109,6 +108,7 @@ ubuntu-20.04-s390x-tci:
  - make --output-sync -j`nproc`
 
 ubuntu-20.04-s390x-notcg:
+ extends: .custom_artifacts_template
  needs: []
  stage: build
  tags:
@@ -128,4 +128,3 @@ ubuntu-20.04-s390x-notcg:
    || { cat config.log meson-logs/meson-log.txt; exit 1; }
  - make --output-sync -j`nproc`
  - make --output-sync -j`nproc` check
-   || { cat meson-logs/testlog.txt; exit 1; } ;
.gitlab-ci.d/custom-runners/ubuntu-22.04-aarch32.yml +1 -1
index 2c386fa3e9..42137aaf2a 100644
@@ -3,6 +3,7 @@
 # "Install basic packages to build QEMU on Ubuntu 20.04"
 
 ubuntu-22.04-aarch32-all:
+ extends: .custom_artifacts_template
  needs: []
  stage: build
  tags:
@@ -22,4 +23,3 @@ ubuntu-22.04-aarch32-all:
    || { cat config.log meson-logs/meson-log.txt; exit 1; }
  - make --output-sync -j`nproc --ignore=40`
  - make --output-sync -j`nproc --ignore=40` check
-   || { cat meson-logs/testlog.txt; exit 1; } ;
.gitlab-ci.d/custom-runners/ubuntu-22.04-aarch64.yml +6 -7
index 725ca8ffea..8ba85be440 100644
@@ -3,6 +3,7 @@
 # "Install basic packages to build QEMU on Ubuntu 20.04"
 
 ubuntu-22.04-aarch64-all-linux-static:
+ extends: .custom_artifacts_template
  needs: []
  stage: build
  tags:
@@ -19,12 +20,11 @@ ubuntu-22.04-aarch64-all-linux-static:
  - ../configure --enable-debug --static --disable-system --disable-pie
    || { cat config.log meson-logs/meson-log.txt; exit 1; }
  - make --output-sync -j`nproc --ignore=40`
+ - make check-tcg
  - make --output-sync -j`nproc --ignore=40` check
-   || { cat meson-logs/testlog.txt; exit 1; } ;
- - make --output-sync -j`nproc --ignore=40` check-tcg
-   || { cat meson-logs/testlog.txt; exit 1; } ;
 
 ubuntu-22.04-aarch64-all:
+ extends: .custom_artifacts_template
  needs: []
  stage: build
  tags:
@@ -44,9 +44,9 @@ ubuntu-22.04-aarch64-all:
    || { cat config.log meson-logs/meson-log.txt; exit 1; }
  - make --output-sync -j`nproc --ignore=40`
  - make --output-sync -j`nproc --ignore=40` check
-   || { cat meson-logs/testlog.txt; exit 1; } ;
 
 ubuntu-22.04-aarch64-alldbg:
+ extends: .custom_artifacts_template
  needs: []
  stage: build
  tags:
@@ -63,9 +63,9 @@ ubuntu-22.04-aarch64-alldbg:
  - make clean
  - make --output-sync -j`nproc --ignore=40`
  - make --output-sync -j`nproc --ignore=40` check
-   || { cat meson-logs/testlog.txt; exit 1; } ;
 
 ubuntu-22.04-aarch64-clang:
+ extends: .custom_artifacts_template
  needs: []
  stage: build
  tags:
@@ -85,7 +85,6 @@ ubuntu-22.04-aarch64-clang:
    || { cat config.log meson-logs/meson-log.txt; exit 1; }
  - make --output-sync -j`nproc --ignore=40`
  - make --output-sync -j`nproc --ignore=40` check
-   || { cat meson-logs/testlog.txt; exit 1; } ;
 
 ubuntu-22.04-aarch64-tci:
  needs: []
@@ -108,6 +107,7 @@ ubuntu-22.04-aarch64-tci:
  - make --output-sync -j`nproc --ignore=40`
 
 ubuntu-22.04-aarch64-notcg:
+ extends: .custom_artifacts_template
  needs: []
  stage: build
  tags:
@@ -127,4 +127,3 @@ ubuntu-22.04-aarch64-notcg:
    || { cat config.log meson-logs/meson-log.txt; exit 1; }
  - make --output-sync -j`nproc --ignore=40`
  - make --output-sync -j`nproc --ignore=40` check
-   || { cat meson-logs/testlog.txt; exit 1; } ;
Signature · 1 line
2.34.1
Reviewed-by on v1 17/18
#29 lore raw

Re: [PATCH 17/18] gitlab: wrap up test results for custom runners

Quoted 48 lines · Alex Bennée

Instead of spewing the whole log to stdout lets just define them as build artefacts so we can examine them later. Where we are running check-tcg run it first as those tests are yet to be integrated into meson.

---
  .gitlab-ci.d/custom-runners.yml                     | 11 +++++++++++
  .gitlab-ci.d/custom-runners/ubuntu-20.04-s390x.yml  | 13 ++++++-------
  .../custom-runners/ubuntu-22.04-aarch32.yml         |  2 +-
  .../custom-runners/ubuntu-22.04-aarch64.yml         | 13 ++++++-------
  4 files changed, 24 insertions(+), 15 deletions(-)
.gitlab-ci.d/custom-runners.yml +11 -0
index 97f99e29c2..9fdc476c48 100644
@@ -13,6 +13,17 @@
  variables:
    GIT_STRATEGY: clone
 
+# All custom runners can extend this template to upload the testlog
+# data as an artifact and also feed the junit report
+.custom_artifacts_template:
+  artifacts:
+    name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
+    expire_in: 7 days
+    paths:
+      - build/meson-logs/testlog.txt
+    reports:
+      junit: build/meson-logs/testlog.junit.xml
+
  include:
    - local: '/.gitlab-ci.d/custom-runners/ubuntu-20.04-s390x.yml'
    - local: '/.gitlab-ci.d/custom-runners/ubuntu-22.04-aarch64.yml'
.gitlab-ci.d/custom-runners/ubuntu-20.04-s390x.yml +1 -0
index fcaef9e5ef..f512eaeaa3 100644
@@ -3,6 +3,7 @@
  # "Install basic packages to build QEMU on Ubuntu 20.04/20.04"
 
  ubuntu-20.04-s390x-all-linux-static:
+ extends: .custom_artifacts_template
   needs: []
   stage: build
   tags:

.gitlab-ci.d/custom-runners/ubuntu-20.04-s390x.yml ubuntu-20.04-s390x-all-linux-static: · line 25

Quoted 8 lines
.gitlab-ci.d/custom-runners/ubuntu-20.04-s390x.yml +1 -3
@@ -19,12 +20,11 @@ ubuntu-20.04-s390x-all-linux-static:
   - ../configure --enable-debug --static --disable-system --disable-glusterfs --disable-libssh
     || { cat config.log meson-logs/meson-log.txt; exit 1; }
   - make --output-sync -j`nproc`
+ - make --output-sync check-tcg
   - make --output-sync -j`nproc` check
-   || { cat meson-logs/testlog.txt; exit 1; } ;
- - make --output-sync -j`nproc` check-tcg
-   || { cat meson-logs/testlog.txt; exit 1; } ;

No more -jnproc for check-tcg? Maybe mention the reason in the commit message?

Anyway,

#30 lore raw

Re: [PATCH 17/18] gitlab: wrap up test results for custom runners

Quoted 50 lines · Thomas Huth
Quoted 49 lines · Alex Bennée

Instead of spewing the whole log to stdout lets just define them as build artefacts so we can examine them later. Where we are running check-tcg run it first as those tests are yet to be integrated into meson.

---
  .gitlab-ci.d/custom-runners.yml                     | 11 +++++++++++
  .gitlab-ci.d/custom-runners/ubuntu-20.04-s390x.yml  | 13 ++++++-------
  .../custom-runners/ubuntu-22.04-aarch32.yml         |  2 +-
  .../custom-runners/ubuntu-22.04-aarch64.yml         | 13 ++++++-------
  4 files changed, 24 insertions(+), 15 deletions(-)
.gitlab-ci.d/custom-runners.yml +0 -0
index 97f99e29c2..9fdc476c48 100644
@@ -13,6 +13,17 @@
  variables:
    GIT_STRATEGY: clone
  +# All custom runners can extend this template to upload the

testlog

.gitlab-ci.d/custom-runners.yml +10 -0
+# data as an artifact and also feed the junit report
+.custom_artifacts_template:
+  artifacts:
+    name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
+    expire_in: 7 days
+    paths:
+      - build/meson-logs/testlog.txt
+    reports:
+      junit: build/meson-logs/testlog.junit.xml
+
  include:
    - local: '/.gitlab-ci.d/custom-runners/ubuntu-20.04-s390x.yml'
    - local: '/.gitlab-ci.d/custom-runners/ubuntu-22.04-aarch64.yml'
.gitlab-ci.d/custom-runners/ubuntu-20.04-s390x.yml +1 -0
index fcaef9e5ef..f512eaeaa3 100644
@@ -3,6 +3,7 @@
  # "Install basic packages to build QEMU on Ubuntu 20.04/20.04"
    ubuntu-20.04-s390x-all-linux-static:
+ extends: .custom_artifacts_template
   needs: []
   stage: build
   tags:
@@ -19,12 +20,11 @@ ubuntu-20.04-s390x-all-linux-static:
   - ../configure --enable-debug --static --disable-system --disable-glusterfs --disable-libssh
     || { cat config.log meson-logs/meson-log.txt; exit 1; }
   - make --output-sync -j`nproc`
Quoted 8 lines

.gitlab-ci.d/custom-runners/ubuntu-20.04-s390x.yml ubuntu-20.04-s390x-all-linux-static: · line 25

Quoted 5 lines
.gitlab-ci.d/custom-runners/ubuntu-20.04-s390x.yml +1 -3
+ - make --output-sync check-tcg
   - make --output-sync -j`nproc` check
-   || { cat meson-logs/testlog.txt; exit 1; } ;
- - make --output-sync -j`nproc` check-tcg
-   || { cat meson-logs/testlog.txt; exit 1; } ;

No more -jnproc for check-tcg? Maybe mention the reason in the commit message?

check-tcg is run sequentially to prevent confusion in the output as unlike the rest of the tests the results are not aggregated in the testlog.

I'll update the commit message when I roll.

Quoted 3 lines

Anyway,

Signature · 2 lines
Alex Bennée
Virtualisation Tech Lead @ Linaro
#31 lore raw

PATCH 18/18 MAINTAINERS: Fix the entry for tests/tcg/nios2

In reply to Alex Bennée

From: Thomas Huth <[email protected]>

tests/tcg/nios2/Makefile.target has accidentally been added to the Microblaze section. Move it into the correct nios2 section instead - and while we're at it, it should also cover the whole folder, and not only the Makefile.

Fixes 67f80eb4d0 ("tests/tcg: enable debian-nios2-cross for test building")

Message-Id: <[email protected]>

---
 MAINTAINERS | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
MAINTAINERS +1 -1
index 08ad1e5341..e73b04194a 100644
@@ -240,7 +240,6 @@ F: target/microblaze/
 F: hw/microblaze/
 F: disas/microblaze.c
 F: tests/docker/dockerfiles/debian-microblaze-cross.d/build-toolchain.sh
-F: tests/tcg/nios2/Makefile.target
 
 MIPS TCG CPUs
 M: Philippe Mathieu-Daudé <[email protected]>
@@ -262,6 +261,7 @@ F: hw/nios2/
 F: disas/nios2.c
 F: configs/devices/nios2-softmmu/default.mak
 F: tests/docker/dockerfiles/debian-nios2-cross.d/build-toolchain.sh
+F: tests/tcg/nios2/
 
 OpenRISC TCG CPUs
 M: Stafford Horne <[email protected]>
Signature · 1 line
2.34.1