[PATCH 05/35] tests/lcitool: generate a yaml file for the ppc64le runner

Alex Bennée posted 35 patches 2 weeks, 4 days ago
Maintainers: "Alex Bennée" <alex.bennee@linaro.org>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, Thomas Huth <thuth@redhat.com>, Alexandre Iooss <erdnaxe@crans.org>, Mahmoud Mandour <ma.mandourr@gmail.com>, Pierrick Bouvier <pierrick.bouvier@linaro.org>, Richard Henderson <richard.henderson@linaro.org>, Peter Maydell <peter.maydell@linaro.org>, Michael Rolnik <mrolnik@gmail.com>, Helge Deller <deller@gmx.de>, Paolo Bonzini <pbonzini@redhat.com>, Eduardo Habkost <eduardo@habkost.net>, Song Gao <gaosong@loongson.cn>, Laurent Vivier <laurent@vivier.eu>, "Edgar E. Iglesias" <edgar.iglesias@gmail.com>, Aurelien Jarno <aurelien@aurel32.net>, Jiaxun Yang <jiaxun.yang@flygoat.com>, Aleksandar Rikalo <arikalo@gmail.com>, Stafford Horne <shorne@gmail.com>, Nicholas Piggin <npiggin@gmail.com>, Chinmay Rath <rathc@linux.ibm.com>, Palmer Dabbelt <palmer@dabbelt.com>, Alistair Francis <alistair.francis@wdc.com>, Weiwei Li <liwei1518@gmail.com>, Daniel Henrique Barboza <dbarboza@ventanamicro.com>, Liu Zhiwei <zhiwei_liu@linux.alibaba.com>, Yoshinori Sato <yoshinori.sato@nifty.com>, David Hildenbrand <david@redhat.com>, Ilya Leoshkevich <iii@linux.ibm.com>, Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>, Artyom Tarasenko <atar4qemu@gmail.com>, Bastian Koppelmann <kbastian@mail.uni-paderborn.de>, Max Filippov <jcmvbkbc@gmail.com>
[PATCH 05/35] tests/lcitool: generate a yaml file for the ppc64le runner
Posted by Alex Bennée 2 weeks, 4 days ago
Unlike the Aarch64 runners this comes with pure Debian out of the box.
We need a minor tweak to build-environment to deal with the
differences in naming convention.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
 scripts/ci/setup/build-environment.yml        |  10 +-
 .../ci/setup/debian/debian-13-ppc64le.yaml    | 134 ++++++++++++++++++
 tests/lcitool/refresh                         |   1 +
 3 files changed, 143 insertions(+), 2 deletions(-)
 create mode 100644 scripts/ci/setup/debian/debian-13-ppc64le.yaml

diff --git a/scripts/ci/setup/build-environment.yml b/scripts/ci/setup/build-environment.yml
index 253d0b759bc..528150dce78 100644
--- a/scripts/ci/setup/build-environment.yml
+++ b/scripts/ci/setup/build-environment.yml
@@ -27,20 +27,26 @@
         - ansible_facts['distribution'] in ['Ubuntu', 'Debian']
 
     # the package lists are updated by "make lcitool-refresh"
-    - name: Define package list file path
+    - name: Define package list file path for Ubuntu
       set_fact:
         package_file: "ubuntu/ubuntu-2404-{{ ansible_facts['architecture'] }}.yaml"
       when:
         - ansible_facts['distribution'] == 'Ubuntu'
         - ansible_facts['distribution_version'] == '24.04'
 
+    - name: Define package list file path for Debian
+      set_fact:
+        package_file: "debian/debian-{{ ansible_facts['distribution_major_version'] }}-{{ ansible_facts['architecture'] }}.yaml"
+      when:
+        - ansible_facts['distribution'] == 'Debian'
+
     - name: Include package lists based on OS and architecture
       include_vars:
         file: "{{ package_file }}"
       when:
         - package_file is exists
 
-    - name: Install packages for QEMU on Ubuntu 24.04
+    - name: Install packages for QEMU on Ubuntu/Debian
       package:
         name: "{{ packages }}"
       when:
diff --git a/scripts/ci/setup/debian/debian-13-ppc64le.yaml b/scripts/ci/setup/debian/debian-13-ppc64le.yaml
new file mode 100644
index 00000000000..e29c9c18403
--- /dev/null
+++ b/scripts/ci/setup/debian/debian-13-ppc64le.yaml
@@ -0,0 +1,134 @@
+# THIS FILE WAS AUTO-GENERATED
+#
+#  $ lcitool variables --host-arch ppc64le debian-13 qemu
+#
+# https://gitlab.com/libvirt/libvirt-ci
+
+packages:
+  - bash
+  - bc
+  - bindgen
+  - bison
+  - bsdextrautils
+  - bzip2
+  - ca-certificates
+  - ccache
+  - clang
+  - dbus
+  - debianutils
+  - diffutils
+  - exuberant-ctags
+  - findutils
+  - flex
+  - gcc
+  - gcovr
+  - gettext
+  - git
+  - hostname
+  - libaio-dev
+  - libasan8
+  - libasound2-dev
+  - libattr1-dev
+  - libbpf-dev
+  - libbrlapi-dev
+  - libbz2-dev
+  - libc6-dev
+  - libcacard-dev
+  - libcap-ng-dev
+  - libcapstone-dev
+  - libcbor-dev
+  - libclang-rt-dev
+  - libcmocka-dev
+  - libcurl4-gnutls-dev
+  - libdaxctl-dev
+  - libdrm-dev
+  - libepoxy-dev
+  - libfdt-dev
+  - libffi-dev
+  - libfuse3-dev
+  - libgbm-dev
+  - libgcrypt20-dev
+  - libglib2.0-dev
+  - libglusterfs-dev
+  - libgnutls28-dev
+  - libgtk-3-dev
+  - libgtk-vnc-2.0-dev
+  - libibverbs-dev
+  - libiscsi-dev
+  - libjemalloc-dev
+  - libjpeg62-turbo-dev
+  - libjson-c-dev
+  - liblttng-ust-dev
+  - liblzo2-dev
+  - libncursesw5-dev
+  - libnfs-dev
+  - libnuma-dev
+  - libpam0g-dev
+  - libpcre2-dev
+  - libpipewire-0.3-dev
+  - libpixman-1-dev
+  - libpng-dev
+  - libpulse-dev
+  - librbd-dev
+  - librdmacm-dev
+  - libsasl2-dev
+  - libsdl2-dev
+  - libsdl2-image-dev
+  - libseccomp-dev
+  - libselinux1-dev
+  - libslirp-dev
+  - libsnappy-dev
+  - libsndio-dev
+  - libspice-protocol-dev
+  - libspice-server-dev
+  - libssh-dev
+  - libstd-rust-dev
+  - libsystemd-dev
+  - libtasn1-6-dev
+  - libubsan1
+  - libudev-dev
+  - liburing-dev
+  - libusb-1.0-0-dev
+  - libusbredirhost-dev
+  - libvdeplug-dev
+  - libvirglrenderer-dev
+  - libvte-2.91-dev
+  - libxdp-dev
+  - libzstd-dev
+  - llvm
+  - locales
+  - make
+  - mtools
+  - multipath-tools
+  - ncat
+  - nettle-dev
+  - ninja-build
+  - openssh-client
+  - pkgconf
+  - python3
+  - python3-numpy
+  - python3-opencv
+  - python3-pillow
+  - python3-pip
+  - python3-setuptools
+  - python3-sphinx
+  - python3-sphinx-rtd-theme
+  - python3-tomli
+  - python3-venv
+  - python3-wheel
+  - python3-yaml
+  - rpm2cpio
+  - rustc
+  - sed
+  - socat
+  - sparse
+  - swtpm
+  - systemtap-sdt-dev
+  - tar
+  - tesseract-ocr
+  - tesseract-ocr-eng
+  - vulkan-tools
+  - xorriso
+  - zlib1g-dev
+  - zstd
+
diff --git a/tests/lcitool/refresh b/tests/lcitool/refresh
index 056cfb6e9d7..7fbdf6f340b 100755
--- a/tests/lcitool/refresh
+++ b/tests/lcitool/refresh
@@ -272,6 +272,7 @@ try:
     #
     generate_yaml("ubuntu", "ubuntu-2404", "aarch64")
     generate_yaml("ubuntu", "ubuntu-2404", "s390x")
+    generate_yaml("debian", "debian-13", "ppc64le")
 
 
     sys.exit(0)
-- 
2.47.3


Re: [PATCH 05/35] tests/lcitool: generate a yaml file for the ppc64le runner
Posted by Manos Pitsidianakis 2 weeks, 2 days ago
On Mon, 27 Oct 2025 13:03, Alex Bennée <alex.bennee@linaro.org> wrote:
>Unlike the Aarch64 runners this comes with pure Debian out of the box.
>We need a minor tweak to build-environment to deal with the
>differences in naming convention.
>
>Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
>---

Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>

> scripts/ci/setup/build-environment.yml        |  10 +-
> .../ci/setup/debian/debian-13-ppc64le.yaml    | 134 ++++++++++++++++++
> tests/lcitool/refresh                         |   1 +
> 3 files changed, 143 insertions(+), 2 deletions(-)
> create mode 100644 scripts/ci/setup/debian/debian-13-ppc64le.yaml
>
>diff --git a/scripts/ci/setup/build-environment.yml b/scripts/ci/setup/build-environment.yml
>index 253d0b759bc..528150dce78 100644
>--- a/scripts/ci/setup/build-environment.yml
>+++ b/scripts/ci/setup/build-environment.yml
>@@ -27,20 +27,26 @@
>         - ansible_facts['distribution'] in ['Ubuntu', 'Debian']
> 
>     # the package lists are updated by "make lcitool-refresh"
>-    - name: Define package list file path
>+    - name: Define package list file path for Ubuntu
>       set_fact:
>         package_file: "ubuntu/ubuntu-2404-{{ ansible_facts['architecture'] }}.yaml"
>       when:
>         - ansible_facts['distribution'] == 'Ubuntu'
>         - ansible_facts['distribution_version'] == '24.04'
> 
>+    - name: Define package list file path for Debian
>+      set_fact:
>+        package_file: "debian/debian-{{ ansible_facts['distribution_major_version'] }}-{{ ansible_facts['architecture'] }}.yaml"
>+      when:
>+        - ansible_facts['distribution'] == 'Debian'
>+
>     - name: Include package lists based on OS and architecture
>       include_vars:
>         file: "{{ package_file }}"
>       when:
>         - package_file is exists
> 
>-    - name: Install packages for QEMU on Ubuntu 24.04
>+    - name: Install packages for QEMU on Ubuntu/Debian
>       package:
>         name: "{{ packages }}"
>       when:
>diff --git a/scripts/ci/setup/debian/debian-13-ppc64le.yaml b/scripts/ci/setup/debian/debian-13-ppc64le.yaml
>new file mode 100644
>index 00000000000..e29c9c18403
>--- /dev/null
>+++ b/scripts/ci/setup/debian/debian-13-ppc64le.yaml
>@@ -0,0 +1,134 @@
>+# THIS FILE WAS AUTO-GENERATED
>+#
>+#  $ lcitool variables --host-arch ppc64le debian-13 qemu
>+#
>+# https://gitlab.com/libvirt/libvirt-ci
>+
>+packages:
>+  - bash
>+  - bc
>+  - bindgen
>+  - bison
>+  - bsdextrautils
>+  - bzip2
>+  - ca-certificates
>+  - ccache
>+  - clang
>+  - dbus
>+  - debianutils
>+  - diffutils
>+  - exuberant-ctags
>+  - findutils
>+  - flex
>+  - gcc
>+  - gcovr
>+  - gettext
>+  - git
>+  - hostname
>+  - libaio-dev
>+  - libasan8
>+  - libasound2-dev
>+  - libattr1-dev
>+  - libbpf-dev
>+  - libbrlapi-dev
>+  - libbz2-dev
>+  - libc6-dev
>+  - libcacard-dev
>+  - libcap-ng-dev
>+  - libcapstone-dev
>+  - libcbor-dev
>+  - libclang-rt-dev
>+  - libcmocka-dev
>+  - libcurl4-gnutls-dev
>+  - libdaxctl-dev
>+  - libdrm-dev
>+  - libepoxy-dev
>+  - libfdt-dev
>+  - libffi-dev
>+  - libfuse3-dev
>+  - libgbm-dev
>+  - libgcrypt20-dev
>+  - libglib2.0-dev
>+  - libglusterfs-dev
>+  - libgnutls28-dev
>+  - libgtk-3-dev
>+  - libgtk-vnc-2.0-dev
>+  - libibverbs-dev
>+  - libiscsi-dev
>+  - libjemalloc-dev
>+  - libjpeg62-turbo-dev
>+  - libjson-c-dev
>+  - liblttng-ust-dev
>+  - liblzo2-dev
>+  - libncursesw5-dev
>+  - libnfs-dev
>+  - libnuma-dev
>+  - libpam0g-dev
>+  - libpcre2-dev
>+  - libpipewire-0.3-dev
>+  - libpixman-1-dev
>+  - libpng-dev
>+  - libpulse-dev
>+  - librbd-dev
>+  - librdmacm-dev
>+  - libsasl2-dev
>+  - libsdl2-dev
>+  - libsdl2-image-dev
>+  - libseccomp-dev
>+  - libselinux1-dev
>+  - libslirp-dev
>+  - libsnappy-dev
>+  - libsndio-dev
>+  - libspice-protocol-dev
>+  - libspice-server-dev
>+  - libssh-dev
>+  - libstd-rust-dev
>+  - libsystemd-dev
>+  - libtasn1-6-dev
>+  - libubsan1
>+  - libudev-dev
>+  - liburing-dev
>+  - libusb-1.0-0-dev
>+  - libusbredirhost-dev
>+  - libvdeplug-dev
>+  - libvirglrenderer-dev
>+  - libvte-2.91-dev
>+  - libxdp-dev
>+  - libzstd-dev
>+  - llvm
>+  - locales
>+  - make
>+  - mtools
>+  - multipath-tools
>+  - ncat
>+  - nettle-dev
>+  - ninja-build
>+  - openssh-client
>+  - pkgconf
>+  - python3
>+  - python3-numpy
>+  - python3-opencv
>+  - python3-pillow
>+  - python3-pip
>+  - python3-setuptools
>+  - python3-sphinx
>+  - python3-sphinx-rtd-theme
>+  - python3-tomli
>+  - python3-venv
>+  - python3-wheel
>+  - python3-yaml
>+  - rpm2cpio
>+  - rustc
>+  - sed
>+  - socat
>+  - sparse
>+  - swtpm
>+  - systemtap-sdt-dev
>+  - tar
>+  - tesseract-ocr
>+  - tesseract-ocr-eng
>+  - vulkan-tools
>+  - xorriso
>+  - zlib1g-dev
>+  - zstd
>+
>diff --git a/tests/lcitool/refresh b/tests/lcitool/refresh
>index 056cfb6e9d7..7fbdf6f340b 100755
>--- a/tests/lcitool/refresh
>+++ b/tests/lcitool/refresh
>@@ -272,6 +272,7 @@ try:
>     #
>     generate_yaml("ubuntu", "ubuntu-2404", "aarch64")
>     generate_yaml("ubuntu", "ubuntu-2404", "s390x")
>+    generate_yaml("debian", "debian-13", "ppc64le")
> 
> 
>     sys.exit(0)
>-- 
>2.47.3
>
>