Skip to contentSkip to conversation

CI: Add Debian Trixie

PATCH In review Andrew Cooper 5 participants 17 messages Sep 12, 2025 – Sep 14, 2025

lore
Share & tools
lore
#0 lore raw

v4 cover CI: Add Debian Trixie

Refresh the Trixie series. A few more bugfixes found by randconfig and log inspection.

These containers are already built and deployed for people to test with.

https://gitlab.com/xen-project/hardware/xen-staging/-/pipelines/2036687955

Andrew Cooper (8):
CI: Use the Debian Trixie container for RISC-V test jobs
CI: Update ppc64 to use Debian Trixie
CI: Merge categories in debian/12-x86_64.dockerfile
CI: Make qemu-smoke-x86-64-gcc-efi compatible with Debian Trixie x86/emul: Make condition coverage warning non-fatal
CI: Use pipefail in scripts/build
CI: Update x86 to use Debian Trixie
CHANGELOG: Notes about distro changes in CI

 CHANGELOG.md                                  |  3 +
 automation/build/archlinux/current.dockerfile |  1 +
 automation/build/debian/12-x86_32.dockerfile  |  1 +
 automation/build/debian/12-x86_64.dockerfile  | 12 ++--
 ...c64le.dockerfile => 13-ppc64le.dockerfile} |  2 +-
 ...x86_32.dockerfile => 13-x86_32.dockerfile} |  3 +-
 ...x86_64.dockerfile => 13-x86_64.dockerfile} | 14 ++--
 automation/build/fedora/41-x86_64.dockerfile  |  1 +
 .../opensuse/leap-15.6-x86_64.dockerfile      |  1 +
 .../opensuse/tumbleweed-x86_64.dockerfile     |  1 +
 .../build/ubuntu/16.04-x86_64.dockerfile      |  1 +
 .../build/ubuntu/18.04-x86_64.dockerfile      |  1 +
 .../build/ubuntu/20.04-x86_64.dockerfile      |  1 +
 .../build/ubuntu/22.04-x86_64.dockerfile      |  1 +
 .../build/ubuntu/24.04-x86_64.dockerfile      |  1 +
 automation/gitlab-ci/build.yaml               | 72 +++++++++++++++----
 automation/gitlab-ci/test.yaml                | 18 ++---
 automation/scripts/build                      |  2 +
 automation/scripts/containerize               |  4 +-
 automation/scripts/include/xtf-x86-64-efi     | 12 +++-
 xen/arch/x86/Makefile                         |  3 +
 21 files changed, 109 insertions(+), 46 deletions(-)
 copy automation/build/debian/{12-ppc64le.dockerfile => 13-ppc64le.dockerfile} (93%)
 copy automation/build/debian/{12-x86_32.dockerfile => 13-x86_32.dockerfile} (93%)
 copy automation/build/debian/{12-x86_64.dockerfile => 13-x86_64.dockerfile} (89%)
Signature · 1 line
2.39.5
#1 lore raw

PATCH v4 1/8 CI: Use the Debian Trixie container for RISC-V test jobs

This was missed when introducing Trixie.

Fixes aad6ebf0596f ("CI: Update riscv64 to use Debian Trixie")

---
CC: Anthony PERARD <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Julien Grall <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Shawn Anastasio <[email protected]>
CC: Oleksii Kurochko <[email protected]>
CC: Doug Goldstein <[email protected]>
CC: Marek Marczykowski-Górecki <[email protected]>
CC: Victor Lira <[email protected]>

v3:
* New

---
 automation/gitlab-ci/test.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
automation/gitlab-ci/test.yaml +1 -1
index 95b883b32bb6..1de68a0fe450 100644
@@ -77,7 +77,7 @@
 .qemu-riscv64:
   extends: .test-jobs-common
   variables:
-    CONTAINER: debian:12-riscv64
+    CONTAINER: debian:13-riscv64
     LOGFILE: qemu-smoke-riscv64.log
   artifacts:
     paths:
Signature · 1 line
2.39.5
Reviewed-by on v4 1/8
#2 lore raw

Re: [PATCH v4 1/8] CI: Use the Debian Trixie container for RISC-V test jobs

Quoted 5 lines · Andrew Cooper

This was missed when introducing Trixie.

Fixes aad6ebf0596f ("CI: Update riscv64 to use Debian Trixie")

~ Oleksii

Quoted 32 lines

---
CC: Anthony PERARD<[email protected]>
CC: Michal Orzel<[email protected]>
CC: Jan Beulich<[email protected]>
CC: Julien Grall<[email protected]>
CC: Roger Pau Monné<[email protected]>
CC: Stefano Stabellini<[email protected]>
CC: Shawn Anastasio<[email protected]>
CC: Oleksii Kurochko<[email protected]>
CC: Doug Goldstein<[email protected]>
CC: Marek Marczykowski-Górecki<[email protected]>
CC: Victor Lira<[email protected]>

v3:
* New

---
  automation/gitlab-ci/test.yaml | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
automation/gitlab-ci/test.yaml +1 -1
index 95b883b32bb6..1de68a0fe450 100644
@@ -77,7 +77,7 @@
  .qemu-riscv64:
    extends: .test-jobs-common
    variables:
-    CONTAINER: debian:12-riscv64
+    CONTAINER: debian:13-riscv64
      LOGFILE: qemu-smoke-riscv64.log
    artifacts:
      paths:
#3 lore raw

PATCH v4 2/8 CI: Update ppc64 to use Debian Trixie

In reply to Andrew Cooper

Everything works fine with Debian 13. Provide two new build jobs (for a total of 6), and update the test jobs.

---
CC: Anthony PERARD <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Julien Grall <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Shawn Anastasio <[email protected]>
CC: Oleksii Kurochko <[email protected]>
CC: Doug Goldstein <[email protected]>
CC: Marek Marczykowski-Górecki <[email protected]>
CC: Victor Lira <[email protected]>

v3:
* Update .qemu-ppc64le template too
v2:
* Update containerize

---
 ...pc64le.dockerfile => 13-ppc64le.dockerfile} |  2 +-
 automation/gitlab-ci/build.yaml                | 18 ++++++++++++++++--
 automation/gitlab-ci/test.yaml                 |  4 ++--
 automation/scripts/containerize                |  1 +
 4 files changed, 20 insertions(+), 5 deletions(-)
 copy automation/build/debian/{12-ppc64le.dockerfile => 13-ppc64le.dockerfile} (93%)
automation/build/debian/13-ppc64le.dockerfile renamed from automation/build/debian/12-ppc64le.dockerfile +1 -1
similarity index 93%
copy from automation/build/debian/12-ppc64le.dockerfile
copy to automation/build/debian/13-ppc64le.dockerfile
index da518aab4e10..5b22a4545842 100644
@@ -1,5 +1,5 @@
 # syntax=docker/dockerfile:1
-FROM --platform=linux/amd64 debian:bookworm-slim
+FROM --platform=linux/amd64 debian:trixie-slim
 LABEL maintainer.name="The Xen Project"
 LABEL maintainer.email="[email protected]"
 
automation/gitlab-ci/build.yaml +16 -2
index c0728e58c48b..f8e45f3467c8 100644
@@ -319,10 +319,10 @@ debian-12-x86_64-clang-debug:
   variables:
     CONTAINER: debian:12-x86_64
 
-debian-12-ppc64le-gcc-debug:
+debian-13-ppc64le-gcc-debug:
   extends: .gcc-ppc64le-cross-build-debug
   variables:
-    CONTAINER: debian:12-ppc64le
+    CONTAINER: debian:13-ppc64le
     KBUILD_DEFCONFIG: ppc64_defconfig
     HYPERVISOR_ONLY: y
     EXTRA_XEN_CONFIG: |
@@ -705,6 +705,20 @@ debian-12-ppc64le-gcc:
     KBUILD_DEFCONFIG: ppc64_defconfig
     HYPERVISOR_ONLY: y
 
+debian-12-ppc64le-gcc-debug:
+  extends: .gcc-ppc64le-cross-build-debug
+  variables:
+    CONTAINER: debian:12-ppc64le
+    KBUILD_DEFCONFIG: ppc64_defconfig
+    HYPERVISOR_ONLY: y
+
+debian-13-ppc64le-gcc:
+  extends: .gcc-ppc64le-cross-build
+  variables:
+    CONTAINER: debian:13-ppc64le
+    KBUILD_DEFCONFIG: ppc64_defconfig
+    HYPERVISOR_ONLY: y
+
 # RISC-V 64 cross-build
 debian-12-riscv64-gcc:
   extends: .gcc-riscv64-cross-build
automation/gitlab-ci/test.yaml +2 -2
index 1de68a0fe450..e8946e15dc3a 100644
@@ -90,7 +90,7 @@
 .qemu-ppc64le:
   extends: .test-jobs-common
   variables:
-    CONTAINER: debian:12-ppc64le
+    CONTAINER: debian:13-ppc64le
     LOGFILE: qemu-smoke-ppc64le.log
   artifacts:
     paths:
@@ -712,4 +712,4 @@ qemu-smoke-ppc64le-powernv9-gcc:
   script:
     - ./automation/scripts/qemu-smoke-ppc64le.sh powernv9 2>&1 | tee ${LOGFILE}
   needs:
-    - debian-12-ppc64le-gcc-debug
+    - debian-13-ppc64le-gcc-debug
automation/scripts/containerize +1 -0
index 340b6caaab44..65c8804ce5f3 100755
@@ -31,6 +31,7 @@ case "_${CONTAINER}" in
     _fedora) CONTAINER="${BASE}/fedora:41-x86_64";;
     _bullseye-ppc64le) CONTAINER="${BASE}/debian:11-ppc64le" ;;
     _bookworm-ppc64le) CONTAINER="${BASE}/debian:12-ppc64le" ;;
+    _trixie-ppc64le) CONTAINER="${BASE}/debian:13-ppc64le" ;;
     _bookworm-riscv64) CONTAINER="${BASE}/debian:12-riscv64" ;;
     _trixie-riscv64) CONTAINER="${BASE}/debian:13-riscv64" ;;
     _bookworm-x86_64-gcc-ibt) CONTAINER="${BASE}/debian:12-x86_64-gcc-ibt" ;;
Signature · 1 line
2.39.5
#4 lore raw

PATCH v4 3/8 CI: Merge categories in debian/12-x86_64.dockerfile

In reply to Andrew Cooper

cpio needs to be in Tools (general) now that it's used by the general build script. Merge the rest of the test phase jobs into one group, to avoid being overly fine-grain.

No functional change.

---
CC: Anthony PERARD <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Julien Grall <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Shawn Anastasio <[email protected]>
CC: Oleksii Kurochko <[email protected]>
CC: Doug Goldstein <[email protected]>
CC: Marek Marczykowski-Górecki <[email protected]>
CC: Victor Lira <[email protected]>

Prep for making a Debian Trixie derivative.

v3:
* New

---
 automation/build/debian/12-x86_64.dockerfile | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)
automation/build/debian/12-x86_64.dockerfile +4 -8
index 3cf99c730b61..4e533ee879fd 100644
@@ -23,6 +23,7 @@ RUN <<EOF
 
         # Tools (general)
         ca-certificates
+        cpio
         git-core
         pkg-config
         wget
@@ -52,19 +53,14 @@ RUN <<EOF
         ocaml-nox
         ocaml-findlib
 
-        # for test phase, qemu-smoke-* jobs
+        # for test phase, qemu-* jobs
+        busybox-static
         expect
+        ovmf
         qemu-system-x86
 
         # for build-each-commit-gcc
         ccache
-
-        # for qemu-alpine-x86_64-gcc
-        busybox-static
-        cpio
-
-        # For *-efi jobs
-        ovmf
     )
 
     apt-get -y --no-install-recommends install "${DEPS[@]}"
Signature · 1 line
2.39.5
Reviewed-by on v4 3/8
#5 lore raw

Re: [PATCH v4 3/8] CI: Merge categories in debian/12-x86_64.dockerfile

Quoted 8 lines · Andrew Cooper

cpio needs to be in Tools (general) now that it's used by the general build script. Merge the rest of the test phase jobs into one group, to avoid being overly fine-grain.

No functional change.

Signature · 3 lines
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
#6 lore raw

PATCH v4 4/8 CI: Make qemu-smoke-x86-64-gcc-efi compatible with Debian Trixie

In reply to Andrew Cooper

The OVMF package in Debian Trixie has _4M suffixes on the files. Have scripts/include/xtf-x86-64-efi check for this before falling back to no suffix.

---
CC: Anthony PERARD <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Julien Grall <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Shawn Anastasio <[email protected]>
CC: Oleksii Kurochko <[email protected]>
CC: Doug Goldstein <[email protected]>
CC: Marek Marczykowski-Górecki <[email protected]>
CC: Victor Lira <[email protected]>
CC: Denis Mukhin <[email protected]>

v4:
* New

https://gitlab.com/xen-project/hardware/xen-staging/-/jobs/11334759836

---
 automation/scripts/include/xtf-x86-64-efi | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
automation/scripts/include/xtf-x86-64-efi +9 -3
index e0d821b3f6fd..8340c745dbf4 100644
@@ -20,6 +20,7 @@ function xtf_arch_setup()
 {
     local esp_dir="${WORKDIR}/boot-esp"
     local efi_dir="${esp_dir}/EFI/BOOT"
+    local suff=
 
     # Generate EFI boot environment
     mkdir -p ${efi_dir}
@@ -35,8 +36,13 @@ options=${XEN_CMDLINE}
 kernel=kernel
 EOF
 
+    # Vs older versions, Debian Trixie names the OVMF files with a _4M suffix.
+    if [[ -e ${FW_PREFIX}/OVMF_VARS_4M.fd ]]; then
+        suff=_4M
+    fi
+
     # NB: OVMF_CODE.fd is read-only, no need to copy
-    cp ${FW_PREFIX}OVMF_VARS.fd ${WORKDIR}
+    cp ${FW_PREFIX}OVMF_VARS${suff}.fd ${WORKDIR}
 
     export TEST_CMD="${QEMU_PREFIX}qemu-system-x86_64 \
         -no-reboot \
@@ -45,8 +51,8 @@ EOF
         -serial stdio \
         -m 512 \
         -M q35,kernel-irqchip=split \
-        -drive if=pflash,format=raw,readonly=on,file=${FW_PREFIX}OVMF_CODE.fd \
-        -drive if=pflash,format=raw,file=${WORKDIR}/OVMF_VARS.fd \
+        -drive if=pflash,format=raw,readonly=on,file=${FW_PREFIX}OVMF_CODE${suff}.fd \
+        -drive if=pflash,format=raw,file=${WORKDIR}/OVMF_VARS${suff}.fd \
         -drive file=fat:rw:${esp_dir},media=disk,index=0,format=raw \
     "
 }
Signature · 1 line
2.39.5
#7 lore raw

PATCH v4 5/8 x86/emul: Make condition coverage warning non-fatal

In reply to Andrew Cooper

Randconfig with GCC-14 (Debian Trixie) found:

In file included from arch/x86/x86_emulate/x86_emulate.c:11,

                   from arch/x86/x86_emulate.c:27:
  arch/x86/x86_emulate/x86_emulate.c: In function 'x86_emulate':
  arch/x86/x86_emulate/private.h:482:8: error: Too many conditions (found 826); giving up coverage [-Werror=coverage-too-many-conditions]
    482 | ({  if ( (p) ) {                                                          \
        |        ^
  arch/x86/x86_emulate/x86_emulate.c:1283:5: note: in expansion of macro 'generate_exception_if'
   1283 |     generate_exception_if((mode_vif() &&
        |     ^~~~~~~~~~~~~~~~~~~~~

which is a consequence of having a new enough compiler to allow CONFIG_CONDITIONAL_COVERAGE in to the mix.

In the short term make warning non-fatal.

---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Anthony PERARD <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Julien Grall <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Volodymyr Babchuk <[email protected]>

v4:
* New

Full failure logs:
https://gitlab.com/xen-project/hardware/xen-staging/-/jobs/11331286819

---
 xen/arch/x86/Makefile | 3 +++
 1 file changed, 3 insertions(+)
xen/arch/x86/Makefile +3 -0
index d7aed7d92c15..a0bba5d9085e 100644
@@ -98,6 +98,9 @@ $(obj)/usercopy.o: CFLAGS-y += -iquote .
 ifneq ($(CONFIG_HVM),y)
 $(obj)/x86_emulate.o: CFLAGS-y += -Wno-unused-label
 endif
+ifneq ($(CONFIG_CONDITION_COVERAGE),y)
+$(obj)/x86_emulate.o: CFLAGS-y += $(call cc-option,$(CC),-Wno-error=coverage-too-many-conditions)
+endif
 
 efi-y := $(shell if [ ! -r $(objtree)/include/xen/compile.h -o \
                       -O $(objtree)/include/xen/compile.h ]; then \
Signature · 1 line
2.39.5
Reviewed-by Denis Mukhin on v4 5/8
#8 lore raw

Re: [PATCH v4 5/8] x86/emul: Make condition coverage warning non-fatal

Quoted 12 lines · Andrew Cooper

Randconfig with GCC-14 (Debian Trixie) found:

In file included from arch/x86/x86_emulate/x86_emulate.c:11,

                   from arch/x86/x86_emulate.c:27:
  arch/x86/x86_emulate/x86_emulate.c: In function 'x86_emulate':
  arch/x86/x86_emulate/private.h:482:8: error: Too many conditions (found 826); giving up coverage [-Werror=coverage-too-many-conditions]
    482 | ({  if ( (p) ) {                                                          \
        |        ^
  arch/x86/x86_emulate/x86_emulate.c:1283:5: note: in expansion of macro 'generate_exception_if'
   1283 |     generate_exception_if((mode_vif() &&
        |     ^~~~~~~~~~~~~~~~~~~~~
Quoted 6 lines

which is a consequence of having a new enough compiler to allow CONFIG_CONDITIONAL_COVERAGE in to the mix.

In the short term make warning non-fatal.

#9 lore raw

Re: [PATCH v4 5/8] x86/emul: Make condition coverage warning non-fatal

In reply to Andrew Cooper
Quoted 41 lines · Andrew Cooper

Randconfig with GCC-14 (Debian Trixie) found:

In file included from arch/x86/x86_emulate/x86_emulate.c:11,

                   from arch/x86/x86_emulate.c:27:
  arch/x86/x86_emulate/x86_emulate.c: In function 'x86_emulate':
  arch/x86/x86_emulate/private.h:482:8: error: Too many conditions (found 826); giving up coverage [-Werror=coverage-too-many-conditions]
    482 | ({  if ( (p) ) {                                                          \
        |        ^
  arch/x86/x86_emulate/x86_emulate.c:1283:5: note: in expansion of macro 'generate_exception_if'
   1283 |     generate_exception_if((mode_vif() &&
        |     ^~~~~~~~~~~~~~~~~~~~~

which is a consequence of having a new enough compiler to allow CONFIG_CONDITIONAL_COVERAGE in to the mix.

In the short term make warning non-fatal.

---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Anthony PERARD <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Julien Grall <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Volodymyr Babchuk <[email protected]>

v4:
* New

Full failure logs:
https://gitlab.com/xen-project/hardware/xen-staging/-/jobs/11331286819

---
 xen/arch/x86/Makefile | 3 +++
 1 file changed, 3 insertions(+)
xen/arch/x86/Makefile +0 -0
index d7aed7d92c15..a0bba5d9085e 100644

xen/arch/x86/Makefile $(obj)/usercopy.o: CFLAGS-y += -iquote . · line 103

Quoted 6 lines
xen/arch/x86/Makefile +3 -0
@@ -98,6 +98,9 @@ $(obj)/usercopy.o: CFLAGS-y += -iquote .
 ifneq ($(CONFIG_HVM),y)
 $(obj)/x86_emulate.o: CFLAGS-y += -Wno-unused-label
 endif
+ifneq ($(CONFIG_CONDITION_COVERAGE),y)
+$(obj)/x86_emulate.o: CFLAGS-y += $(call cc-option,$(CC),-Wno-error=coverage-too-many-conditions)
+endif

This should be ifeq, not ifneq.  It's probably safe to drop the cc-option too, as that limits it to compilers which know -fcondition-coverage

~Andrew

#10 lore raw

PATCH v4 6/8 CI: Use pipefail in scripts/build

In reply to Andrew Cooper

Marek noticed that some builds were failing with:

+ cd dist/install
+ find
+ cpio -R 0:0 -o -H newc ./automation/scripts/build: line 111: cpio: command not found
+ gzip

but succeeding overall, and producing a zero length xen-tools.cpio.gz as an artefact.

In fact, it's all of:

archlinux:current
debian:12-x86_32
fedora:41
opensuse:tumbleweed
ubuntu (all versions)

Add cpio into all of these containers, including opensuse leap for good measure, and use pipefail in the build script.

Fixes 4611ae6fb8f9 ("CI: save toolstack artifact as cpio.gz")

---
CC: Anthony PERARD <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Julien Grall <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Shawn Anastasio <[email protected]>
CC: Oleksii Kurochko <[email protected]>
CC: Doug Goldstein <[email protected]>
CC: Marek Marczykowski-Górecki <[email protected]>
CC: Victor Lira <[email protected]>

v4:
* New

I have already deployed the updated containers.

All failures:
https://gitlab.com/xen-project/hardware/xen-staging/-/pipelines/2036157692

---
 automation/build/archlinux/current.dockerfile          | 1 +
 automation/build/debian/12-x86_32.dockerfile           | 1 +
 automation/build/fedora/41-x86_64.dockerfile           | 1 +
 automation/build/opensuse/leap-15.6-x86_64.dockerfile  | 1 +
 automation/build/opensuse/tumbleweed-x86_64.dockerfile | 1 +
 automation/build/ubuntu/16.04-x86_64.dockerfile        | 1 +
 automation/build/ubuntu/18.04-x86_64.dockerfile        | 1 +
 automation/build/ubuntu/20.04-x86_64.dockerfile        | 1 +
 automation/build/ubuntu/22.04-x86_64.dockerfile        | 1 +
 automation/build/ubuntu/24.04-x86_64.dockerfile        | 1 +
 automation/scripts/build                               | 2 ++
 11 files changed, 12 insertions(+)
automation/build/archlinux/current.dockerfile +1 -0
index 657ddd77a85c..4e53c835fa50 100644
@@ -8,6 +8,7 @@ RUN pacman-key --init
 RUN pacman -S --refresh --sysupgrade --noconfirm --noprogressbar --needed \
         bridge-utils \
         bzip2 \
+        cpio \
         discount \
         dtc \
         e2fsprogs \
automation/build/debian/12-x86_32.dockerfile +1 -0
index ef7a2571556b..447152d7e5e4 100644
@@ -23,6 +23,7 @@ RUN <<EOF
 
         # Tools (general)
         ca-certificates
+        cpio
         git-core
         pkg-config
         wget
automation/build/fedora/41-x86_64.dockerfile +1 -0
index 8032a2098632..e33329aedc9e 100644
@@ -23,6 +23,7 @@ RUN <<EOF
         checkpolicy
 
         # Tools (general)
+        cpio
         git-core
         gzip
         patch
automation/build/opensuse/leap-15.6-x86_64.dockerfile +1 -0
index 97890dfc006c..33db3ecd634b 100644
@@ -29,6 +29,7 @@ RUN <<EOF
         python311
 
         # Tools (general)
+        cpio
         git-core
         gzip
         patch
automation/build/opensuse/tumbleweed-x86_64.dockerfile +1 -0
index 61e840fc67da..218bc45294c1 100644
@@ -28,6 +28,7 @@ RUN <<EOF
         python3
 
         # Tools (general)
+        cpio
         git-core
         gzip
         patch
automation/build/ubuntu/16.04-x86_64.dockerfile +1 -0
index 9cc8ca89e8e0..72a46389fa0d 100644
@@ -24,6 +24,7 @@ RUN <<EOF
 
         # Tools (general)
         ca-certificates
+        cpio
         git-core
         gzip
         patch
automation/build/ubuntu/18.04-x86_64.dockerfile +1 -0
index aefe52125a22..2634856c8980 100644
@@ -24,6 +24,7 @@ RUN <<EOF
 
         # Tools (general)
         ca-certificates
+        cpio
         git-core
         gzip
         patch
automation/build/ubuntu/20.04-x86_64.dockerfile +1 -0
index 1ee20a13ac6b..9ec57eb975e1 100644
@@ -24,6 +24,7 @@ RUN <<EOF
 
         # Tools (general)
         ca-certificates
+        cpio
         git-core
         gzip
         patch
automation/build/ubuntu/22.04-x86_64.dockerfile +1 -0
index a9a9b84930fb..6ae7f4faa859 100644
@@ -24,6 +24,7 @@ RUN <<EOF
 
         # Tools (general)
         ca-certificates
+        cpio
         git-core
         gzip
         patch
automation/build/ubuntu/24.04-x86_64.dockerfile +1 -0
index 2005723b31ad..84777d188c0d 100644
@@ -24,6 +24,7 @@ RUN <<EOF
 
         # Tools (general)
         ca-certificates
+        cpio
         git-core
         gzip
         patch
automation/scripts/build +2 -0
index d0511843e7ea..7a81d229decd 100755
@@ -1,5 +1,7 @@
 #!/bin/bash -ex
 
+set -o pipefail
+
 test -f /etc/os-release && cat "$_"
 
 # Construct $cc such that it matches what `make` will chose when taking
Signature · 1 line
2.39.5
Reviewed-by on v4 6/8
#11 lore raw

Re: [PATCH v4 6/8] CI: Use pipefail in scripts/build

Quoted 19 lines · Andrew Cooper

Marek noticed that some builds were failing with:

+ cd dist/install
+ find
+ cpio -R 0:0 -o -H newc ./automation/scripts/build: line 111: cpio: command not found
+ gzip

but succeeding overall, and producing a zero length xen-tools.cpio.gz as an artefact.

In fact, it's all of:

archlinux:current
debian:12-x86_32
fedora:41
opensuse:tumbleweed
ubuntu (all versions)

Quoted 6 lines

Add cpio into all of these containers, including opensuse leap for good measure, and use pipefail in the build script.

Fixes 4611ae6fb8f9 ("CI: save toolstack artifact as cpio.gz")
Signature · 3 lines
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
Reviewed-by Denis Mukhin on v4 6/8
#12 lore raw

Re: [PATCH v4 6/8] CI: Use pipefail in scripts/build

In reply to Andrew Cooper
Quoted 19 lines · Andrew Cooper

Marek noticed that some builds were failing with:

+ cd dist/install
+ find
+ cpio -R 0:0 -o -H newc ./automation/scripts/build: line 111: cpio: command not found
+ gzip

but succeeding overall, and producing a zero length xen-tools.cpio.gz as an artefact.

In fact, it's all of:

archlinux:current
debian:12-x86_32
fedora:41
opensuse:tumbleweed
ubuntu (all versions)

Quoted 6 lines

Add cpio into all of these containers, including opensuse leap for good measure, and use pipefail in the build script.

Fixes 4611ae6fb8f9 ("CI: save toolstack artifact as cpio.gz")
#13 lore raw

PATCH v4 7/8 CI: Update x86 to use Debian Trixie

In reply to Andrew Cooper

With the exception of the custom IBT job, copy all Debian 12 jobs making Debian 13 versions, then trim the Debian 12 ranconfig jobs.

Update the test jobs using Debian 12 to use 13.

---
CC: Anthony PERARD <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Julien Grall <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Shawn Anastasio <[email protected]>
CC: Oleksii Kurochko <[email protected]>
CC: Doug Goldstein <[email protected]>
CC: Marek Marczykowski-Górecki <[email protected]>
CC: Victor Lira <[email protected]>

v3:
* Update .qemu-x86-64 too.
* Rebase over cleanup to 12-x86_64
v2:
* Make 13-x86_64 be root-less
* Update containerize

---
 ...x86_32.dockerfile => 13-x86_32.dockerfile} |  2 +-
 ...x86_64.dockerfile => 13-x86_64.dockerfile} |  2 +-
 automation/gitlab-ci/build.yaml               | 54 ++++++++++++++-----
 automation/gitlab-ci/test.yaml                | 12 ++---
 automation/scripts/containerize               |  3 +-
 5 files changed, 52 insertions(+), 21 deletions(-)
 copy automation/build/debian/{12-x86_32.dockerfile => 13-x86_32.dockerfile} (95%)
 copy automation/build/debian/{12-x86_64.dockerfile => 13-x86_64.dockerfile} (96%)
automation/build/debian/13-x86_32.dockerfile renamed from automation/build/debian/12-x86_32.dockerfile +1 -1
similarity index 95%
copy from automation/build/debian/12-x86_32.dockerfile
copy to automation/build/debian/13-x86_32.dockerfile
index 447152d7e5e4..464b4fc55e38 100644
@@ -1,5 +1,5 @@
 # syntax=docker/dockerfile:1
-FROM --platform=linux/i386 debian:bookworm
+FROM --platform=linux/i386 debian:trixie-slim
 LABEL maintainer.name="The Xen Project"
 LABEL maintainer.email="[email protected]"
 
automation/build/debian/13-x86_64.dockerfile renamed from automation/build/debian/12-x86_64.dockerfile +1 -1
similarity index 96%
copy from automation/build/debian/12-x86_64.dockerfile
copy to automation/build/debian/13-x86_64.dockerfile
index 4e533ee879fd..2c6c9d4a5098 100644
@@ -1,5 +1,5 @@
 # syntax=docker/dockerfile:1
-FROM --platform=linux/amd64 debian:bookworm
+FROM --platform=linux/amd64 debian:trixie-slim
 LABEL maintainer.name="The Xen Project"
 LABEL maintainer.email="[email protected]"
 
automation/gitlab-ci/build.yaml +42 -12

87 lines not on this page · raw message

automation/gitlab-ci/test.yaml +6 -6
index e8946e15dc3a..8d8f62c8d04d 100644
@@ -59,7 +59,7 @@
 .qemu-x86-64:
   extends: .test-jobs-common
   variables:
-    CONTAINER: debian:12-x86_64
+    CONTAINER: debian:13-x86_64
     LOGFILE: qemu-smoke-x86-64.log
   artifacts:
     paths:
@@ -661,35 +661,35 @@ qemu-smoke-x86-64-gcc:
   script:
     - ./automation/scripts/qemu-xtf.sh x86-64 pv64 example 2>&1 | tee ${LOGFILE}
   needs:
-    - debian-12-x86_64-gcc-debug
+    - debian-13-x86_64-gcc-debug
 
 qemu-smoke-x86-64-clang:
   extends: .qemu-smoke-x86-64
   script:
     - ./automation/scripts/qemu-xtf.sh x86-64 pv64 example 2>&1 | tee ${LOGFILE}
   needs:
-    - debian-12-x86_64-clang-debug
+    - debian-13-x86_64-clang-debug
 
 qemu-smoke-x86-64-gcc-pvh:
   extends: .qemu-smoke-x86-64
   script:
     - ./automation/scripts/qemu-xtf.sh x86-64 hvm64 example 2>&1 | tee ${LOGFILE}
   needs:
-    - debian-12-x86_64-gcc-debug
+    - debian-13-x86_64-gcc-debug
 
 qemu-smoke-x86-64-clang-pvh:
   extends: .qemu-smoke-x86-64
   script:
     - ./automation/scripts/qemu-xtf.sh x86-64 hvm64 example 2>&1 | tee ${LOGFILE}
   needs:
-    - debian-12-x86_64-clang-debug
+    - debian-13-x86_64-clang-debug
 
 qemu-smoke-x86-64-gcc-efi:
   extends: .qemu-smoke-x86-64
   script:
     - ./automation/scripts/qemu-xtf.sh x86-64-efi pv64 example 2>&1 | tee ${LOGFILE}
   needs:
-    - debian-12-x86_64-gcc-debug
+    - debian-13-x86_64-gcc-debug
 
 qemu-xtf-argo-x86_64-gcc-debug:
   extends: .qemu-smoke-x86-64
automation/scripts/containerize +2 -1
index 65c8804ce5f3..743567cb772a 100755
@@ -35,7 +35,8 @@ case "_${CONTAINER}" in
     _bookworm-riscv64) CONTAINER="${BASE}/debian:12-riscv64" ;;
     _trixie-riscv64) CONTAINER="${BASE}/debian:13-riscv64" ;;
     _bookworm-x86_64-gcc-ibt) CONTAINER="${BASE}/debian:12-x86_64-gcc-ibt" ;;
-    _bookworm|_bookworm-x86_64|_) CONTAINER="${BASE}/debian:12-x86_64" ;;
+    _bookworm|_bookworm-x86_64) CONTAINER="${BASE}/debian:12-x86_64" ;;
+    _trixie-x86_64|_) CONTAINER="${BASE}/debian:13-x86_64" ;;
     _bookworm-i386|_bookworm-x86_32) CONTAINER="${BASE}/debian:12-x86_32" ;;
     _bookworm-arm64v8-arm32-gcc) CONTAINER="${BASE}/debian:bookworm-arm64v8-arm32-gcc" ;;
     _bookworm-arm64v8) CONTAINER="${BASE}/debian:bookworm-arm64v8" ;;
Signature · 1 line
2.39.5
Reviewed-by on v4 7/8
#14 lore raw

Re: [PATCH v4 7/8] CI: Update x86 to use Debian Trixie

Quoted 7 lines · Andrew Cooper

With the exception of the custom IBT job, copy all Debian 12 jobs making Debian 13 versions, then trim the Debian 12 ranconfig jobs.

Update the test jobs using Debian 12 to use 13.

Signature · 3 lines
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
#15 lore raw

PATCH v4 8/8 CHANGELOG: Notes about distro changes in CI

In reply to Andrew Cooper

Also state the RISC-V baseline now it's been set, as it's the reason why RISC-V Bullseye got dropped.

---
CC: Anthony PERARD <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Julien Grall <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Oleksii Kurochko <[email protected]>

v2:
* New

---
 CHANGELOG.md | 3 +++
 1 file changed, 3 insertions(+)
CHANGELOG.md +3 -0
index 7bd96ac09d14..ca1b43b940d2 100644
@@ -10,6 +10,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
  - The minimum toolchain requirements have increased for some architectures:
    - For x86, GCC 5.1 and Binutils 2.25, or Clang/LLVM 11
    - For ARM32 and ARM64, GCC 5.1 and Binutils 2.25
+   - For RISC-V, GCC 12.2 and Binutils 2.39
+ - Debian Trixie added to CI.  Debian Bullseye retired from CI for RISC-V due
+   to the baseline change.
  - Linux based device model stubdomains are now fully supported.
 
  - On x86:
Signature · 1 line
2.39.5