CI: Add Debian Trixie
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
PATCH v4 1/8 CI: Use the Debian Trixie container for RISC-V test jobs
This was missed when introducing 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
@@ -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
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")Signed-off-by Andrew Cooper<[email protected]>Reviewed-by Denis Mukhin<[email protected]>
~ 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@@ -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:
PATCH v4 2/8 CI: Update ppc64 to use Debian Trixie
In reply to Andrew CooperEverything 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
@@ -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
@@ -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
@@ -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
@@ -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
PATCH v4 3/8 CI: Merge categories in debian/12-x86_64.dockerfile
In reply to Andrew Coopercpio 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
@@ -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
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.
Signed-off-by Andrew Cooper <[email protected]>Reviewed-by Denis Mukhin <[email protected]>
Signature · 3 lines
Best Regards, Marek Marczykowski-Górecki Invisible Things Lab
PATCH v4 4/8 CI: Make qemu-smoke-x86-64-gcc-efi compatible with Debian Trixie
In reply to Andrew CooperThe 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
@@ -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
PATCH v4 5/8 x86/emul: Make condition coverage warning non-fatal
In reply to Andrew CooperRandconfig 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
@@ -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
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_COVERAGEin to the mix.In the short term make warning non-fatal.
Signed-off-by Andrew Cooper <[email protected]>
Re: [PATCH v4 5/8] x86/emul: Make condition coverage warning non-fatal
In reply to Andrew CooperQuoted 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_COVERAGEin to the mix.In the short term make warning non-fatal.
Signed-off-by Andrew Cooper <[email protected]>---
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:
* NewFull 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
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
PATCH v4 6/8 CI: Use pipefail in scripts/build
In reply to Andrew CooperMarek 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.
---
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
@@ -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
@@ -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
@@ -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
@@ -29,6 +29,7 @@ RUN <<EOF python311 # Tools (general) + cpio git-core gzip patch
automation/build/opensuse/tumbleweed-x86_64.dockerfile +1 -0
@@ -28,6 +28,7 @@ RUN <<EOF python3 # Tools (general) + cpio git-core gzip patch
automation/build/ubuntu/16.04-x86_64.dockerfile +1 -0
@@ -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
@@ -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
@@ -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
@@ -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
@@ -24,6 +24,7 @@ RUN <<EOF # Tools (general) ca-certificates + cpio git-core gzip patch
automation/scripts/build +2 -0
@@ -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
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
+ gzipbut 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")Reported-by Marek Marczykowski-Górecki <[email protected]>Signed-off-by Andrew Cooper <[email protected]>
Signature · 3 lines
Best Regards, Marek Marczykowski-Górecki Invisible Things Lab
Re: [PATCH v4 6/8] CI: Use pipefail in scripts/build
In reply to Andrew CooperQuoted 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
+ gzipbut 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")Reported-by Marek Marczykowski-Górecki <[email protected]>Signed-off-by Andrew Cooper <[email protected]>
PATCH v4 7/8 CI: Update x86 to use Debian Trixie
In reply to Andrew CooperWith 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
@@ -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
@@ -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
@@ -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
@@ -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
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.
Signed-off-by Andrew Cooper <[email protected]>Reviewed-by Denis Mukhin <[email protected]>
Signature · 3 lines
Best Regards, Marek Marczykowski-Górecki Invisible Things Lab
PATCH v4 8/8 CHANGELOG: Notes about distro changes in CI
In reply to Andrew CooperAlso 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
@@ -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
Quoted 6 lines · Andrew Cooper
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