CI improvements
cover CI improvements
This patch series moves the installation of packages at runtime from the test scripts into the respective containers.
This series is based on the CI next branch:
https://gitlab.com/xen-project/people/sstabellini/xen/-/tree/next
Michal Orzel (2):
automation: Install packages required by tests in containers
automation: Remove installation of packages from test scripts
automation/build/debian/stretch.dockerfile | 3 +++ automation/build/debian/unstable-arm64v8.dockerfile | 7 +++++++ automation/scripts/qemu-alpine-x86_64.sh | 4 ---- automation/scripts/qemu-smoke-dom0-arm32.sh | 8 -------- automation/scripts/qemu-smoke-dom0-arm64.sh | 9 --------- automation/scripts/qemu-smoke-dom0less-arm64.sh | 9 --------- 6 files changed, 10 insertions(+), 30 deletions(-)
Signature · 1 line
2.25.1
PATCH 1/2 automation: Install packages required by tests in containers
Installation of additional packages from the test scripts when running the tests has some drawbacks. It is slower than cloning containers and can fail due to some network issues (apparently it often happens on x86 rackspace). This patch is adding the packages required by the tests to be installed when building the containers.
From qemu-alpine-x86_64.sh into debian:stretch:
- cpio,
- busybox-static.
From qemu-smoke-*-{arm,arm64}.sh into debian:unstable-arm64v8:
- u-boot-qemu,
- u-boot-tools,
- device-tree-compiler,
- curl,
- cpio,
- busybox-static.
The follow-up patch will remove installation of these packages from the test scripts. This is done in order not to break the CI in-between.
--- automation/build/debian/stretch.dockerfile | 3 +++ automation/build/debian/unstable-arm64v8.dockerfile | 7 +++++++ 2 files changed, 10 insertions(+)
automation/build/debian/stretch.dockerfile +3 -0
@@ -49,6 +49,9 @@ RUN apt-get update && \ apt-transport-https \ # for test phase, qemu-smoke-* jobs qemu-system-x86 \ + # for test phase, qemu-alpine-* jobs + cpio \ + busybox-static \ && \ apt-get autoremove -y && \ apt-get clean && \
automation/build/debian/unstable-arm64v8.dockerfile +7 -0
@@ -43,6 +43,13 @@ RUN apt-get update && \ wget \ git \ nasm \ + # for test phase, qemu-smoke-* jobs + u-boot-qemu \ + u-boot-tools \ + device-tree-compiler \ + curl \ + cpio \ + busybox-static \ && \ apt-get autoremove -y && \ apt-get clean && \
Signature · 1 line
2.25.1
Re: [PATCH 1/2] automation: Install packages required by tests in containers
Quoted 18 lines · Michal Orzel
Installation of additional packages from the test scripts when running the tests has some drawbacks. It is slower than cloning containers and can fail due to some network issues (apparently it often happens on x86 rackspace). This patch is adding the packages required by the tests to be installed when building the containers.
Quoted 1 line
From
qemu-alpine-x86_64.shinto debian:stretch:- cpio,
- busybox-static.Quoted 1 line
From qemu-smoke-*-{arm,arm64}.sh into debian:unstable-arm64v8:
- u-boot-qemu,
- u-boot-tools,
- device-tree-compiler,
- curl,
- cpio,
- busybox-static.
Quoted 4 lines
The follow-up patch will remove installation of these packages from the test scripts. This is done in order not to break the CI in-between.
Signed-off-by Michal Orzel <[email protected]>
Quoted 40 lines
--- automation/build/debian/stretch.dockerfile | 3 +++ automation/build/debian/unstable-arm64v8.dockerfile | 7 +++++++ 2 files changed, 10 insertions(+)automation/build/debian/stretch.dockerfile +3
-0@@ -49,6 +49,9 @@ RUN apt-get update && \ apt-transport-https \ # for test phase, qemu-smoke-* jobs qemu-system-x86 \ + # for test phase, qemu-alpine-* jobs + cpio \ + busybox-static \ && \ apt-get autoremove -y && \ apt-get clean && \automation/build/debian/unstable-arm64v8.dockerfile +7
-0@@ -43,6 +43,13 @@ RUN apt-get update && \ wget \ git \ nasm \ + # for test phase, qemu-smoke-* jobs + u-boot-qemu \ + u-boot-tools \ + device-tree-compiler \ + curl \ + cpio \ + busybox-static \ && \ apt-get autoremove -y && \ apt-get clean && \Signature · 1 line
2.25.1
PATCH 2/2 automation: Remove installation of packages from test scripts
In reply to Michal OrzelNow, when these packages are already installed in the respective containers, we can remove them from the test scripts.
--- automation/scripts/qemu-alpine-x86_64.sh | 4 ---- automation/scripts/qemu-smoke-dom0-arm32.sh | 8 -------- automation/scripts/qemu-smoke-dom0-arm64.sh | 9 --------- automation/scripts/qemu-smoke-dom0less-arm64.sh | 9 --------- 4 files changed, 30 deletions(-)
automation/scripts/qemu-alpine-x86_64.sh +0 -4
@@ -2,10 +2,6 @@ set -ex -apt-get -qy update -apt-get -qy install --no-install-recommends cpio \ - busybox-static - # DomU Busybox cd binaries mkdir -p initrd
automation/scripts/qemu-smoke-dom0-arm32.sh +0 -8
@@ -2,14 +2,6 @@ set -ex -export DEBIAN_FRONTEND=noninteractive -apt-get -qy update -apt-get -qy install --no-install-recommends u-boot-qemu \ - u-boot-tools \ - device-tree-compiler \ - curl \ - cpio - cd binaries # Use the kernel from Debian curl --fail --silent --show-error --location --output vmlinuz http://http.us.debian.org/debian/dists/bullseye/main/installer-armhf/current/images/netboot/vmlinuz
automation/scripts/qemu-smoke-dom0-arm64.sh +0 -9
@@ -2,15 +2,6 @@ set -ex -export DEBIAN_FRONTEND=noninteractive -apt-get -qy update -apt-get -qy install --no-install-recommends u-boot-qemu \ - u-boot-tools \ - device-tree-compiler \ - cpio \ - curl \ - busybox-static - # DomU Busybox cd binaries mkdir -p initrd
automation/scripts/qemu-smoke-dom0less-arm64.sh +0 -9
@@ -38,15 +38,6 @@ fi " fi -export DEBIAN_FRONTEND=noninteractive -apt-get -qy update -apt-get -qy install --no-install-recommends u-boot-qemu \ - u-boot-tools \ - device-tree-compiler \ - busybox-static \ - cpio \ - curl - # XXX QEMU looks for "efi-virtio.rom" even if it is unneeded curl -fsSLO https://github.com/qemu/qemu/raw/v5.2.0/pc-bios/efi-virtio.rom ./binaries/qemu-system-aarch64 \
Signature · 1 line
2.25.1
Re: [PATCH 2/2] automation: Remove installation of packages from test scripts
Quoted 4 lines · Michal Orzel
Now, when these packages are already installed in the respective containers, we can remove them from the test scripts.
Signed-off-by Michal Orzel <[email protected]>
Quoted 84 lines
--- automation/scripts/qemu-alpine-x86_64.sh | 4 ---- automation/scripts/qemu-smoke-dom0-arm32.sh | 8 -------- automation/scripts/qemu-smoke-dom0-arm64.sh | 9 --------- automation/scripts/qemu-smoke-dom0less-arm64.sh | 9 --------- 4 files changed, 30 deletions(-)automation/scripts/qemu-alpine-x86_64.sh +0
-4@@ -2,10 +2,6 @@ set -ex -apt-get -qy update -apt-get -qy install --no-install-recommends cpio \ - busybox-static - # DomU Busybox cd binaries mkdir -p initrdautomation/scripts/qemu-smoke-dom0-arm32.sh +0
-8@@ -2,14 +2,6 @@ set -ex -export DEBIAN_FRONTEND=noninteractive -apt-get -qy update -apt-get -qy install --no-install-recommends u-boot-qemu \ - u-boot-tools \ - device-tree-compiler \ - curl \ - cpio - cd binaries # Use the kernel from Debian curl --fail --silent --show-error --location --output vmlinuz http://http.us.debian.org/debian/dists/bullseye/main/installer-armhf/current/images/netboot/vmlinuzautomation/scripts/qemu-smoke-dom0-arm64.sh +0
-9@@ -2,15 +2,6 @@ set -ex -export DEBIAN_FRONTEND=noninteractive -apt-get -qy update -apt-get -qy install --no-install-recommends u-boot-qemu \ - u-boot-tools \ - device-tree-compiler \ - cpio \ - curl \ - busybox-static - # DomU Busybox cd binaries mkdir -p initrdautomation/scripts/qemu-smoke-dom0less-arm64.sh +0
-9@@ -38,15 +38,6 @@ fi " fi -export DEBIAN_FRONTEND=noninteractive -apt-get -qy update -apt-get -qy install --no-install-recommends u-boot-qemu \ - u-boot-tools \ - device-tree-compiler \ - busybox-static \ - cpio \ - curl - # XXX QEMU looks for "efi-virtio.rom" even if it is unneeded curl -fsSLO https://github.com/qemu/qemu/raw/v5.2.0/pc-bios/efi-virtio.rom ./binaries/qemu-system-aarch64 \Signature · 1 line
2.25.1