|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH v2 3/3] CI: Run driver domains test on Debian too
The recent failure affected only glibc-based systems, so do the test on
Debian too.
Signed-off-by: Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx>
---
Changes in v2:
- use systemd in Debian
I once got the following timeout:
(backend) ==> /var/log/xen/xldevd.log <==
(backend) libxl: error: libxl_aoutils.c:539:async_exec_timeout: killing
execution of /etc/xen/scripts/vif-bridge online because of timeout
https://gitlab.com/xen-project/people/marmarek/xen/-/jobs/10961394681
(docker-bobcat runner)
Could be related to having systemd in domU (and being on QEMU TCG, not
even KVM). I never hit this case on Alpine nor Debian with OpenRC. If
that will repeat, may need some adjustments - more CPUs in QEMU? limit
to more powerful runners? setup KVM on the runners?
---
automation/gitlab-ci/test.yaml | 19 ++++++++++++++++++-
automation/scripts/qemu-driverdomains-x86_64.sh | 18 +++++++++++++++--
2 files changed, 35 insertions(+), 2 deletions(-)
diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml
index 5c4b2dc304b4..a5ae03b0eee9 100644
--- a/automation/gitlab-ci/test.yaml
+++ b/automation/gitlab-ci/test.yaml
@@ -30,6 +30,17 @@
job: microcode-x86
ref: master
+.debian-x86-64-test-needs: &debian-x86-64-test-needs
+ - project: xen-project/hardware/test-artifacts
+ job: linux-6.6.56-x86_64
+ ref: master
+ - project: xen-project/hardware/test-artifacts
+ job: debian-12-x86_64-rootfs
+ ref: master
+ - project: xen-project/hardware/test-artifacts
+ job: microcode-x86
+ ref: master
+
.qemu-arm64:
extends: .test-jobs-common
variables:
@@ -664,6 +675,14 @@ qemu-alpine-driverdomains-x86_64-gcc:
- *x86-64-test-needs
- alpine-3.18-gcc
+qemu-debian-12-driverdomains-x86_64-gcc:
+ extends: .qemu-x86-64
+ script:
+ - ./automation/scripts/qemu-driverdomains-x86_64.sh 2>&1 | tee ${LOGFILE}
+ needs:
+ - *debian-x86-64-test-needs
+ - debian-12-x86_64-gcc-debug
+
qemu-smoke-x86-64-gcc:
extends: .qemu-smoke-x86-64
script:
diff --git a/automation/scripts/qemu-driverdomains-x86_64.sh
b/automation/scripts/qemu-driverdomains-x86_64.sh
index a8e2ceb33527..e5765ba5dbd6 100755
--- a/automation/scripts/qemu-driverdomains-x86_64.sh
+++ b/automation/scripts/qemu-driverdomains-x86_64.sh
@@ -23,7 +23,11 @@ if grep -q test=backend /proc/cmdline; then
brctl addbr xenbr0
ip link set xenbr0 up
ip addr add 192.168.0.1/24 dev xenbr0
- bash /etc/init.d/xendriverdomain start
+ if [ -d /run/systemd ]; then
+ systemctl start xendriverdomain
+ else
+ bash /etc/init.d/xendriverdomain start
+ fi
# log backend-related logs to the console
tail -F /var/log/xen/xldevd.log /var/log/xen/xen-hotplug.log
>>/dev/console 2>/dev/null &
else
@@ -77,7 +81,11 @@ cat > etc/local.d/xen.start << EOF
set -x
-bash /etc/init.d/xencommons start
+if [ -d /run/systemd ]; then
+ systemctl start xen-init-dom0.service
+else
+ bash /etc/init.d/xencommons start
+fi
xl list
@@ -94,6 +102,12 @@ cp ../bzImage ./root/
mkdir -p etc/default
echo 'XENCONSOLED_TRACE=all' >> etc/default/xencommons
mkdir -p var/log/xen/console
+if [ -e etc/systemd/system.conf ]; then
+ chroot . systemctl enable proc-xen.mount \
+ xenstored.service \
+ xenconsoled.service \
+ xen-init-dom0.service
+fi
mkfs.ext4 -d . ../dom0-rootfs.img 2048M
cd ..
rm -rf rootfs
--
git-series 0.9.1
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |