Skip to contentSkip to conversation

CI: updates for XTF jobs

PATCH New [email protected] 1 participant 14 messages Nov 5 Arm/Zynq architecture

lore
Share & tools
lore
#0 lore raw

cover CI: updates for XTF jobs

This series has started as a tooling for SVM AVIC series to allow running AVIC tests [1] on a real target. The series depends on the SVM AVIC series, see [2].

The series performs the overhaul of the existing XTF tooling to allow XTF test suite orchestration on both QEMU and real hardware targets.

It also fixes up the XTF error code reporting and accounting of the tests, e.g.:

```
  Total : 2
  CRASH : 0
  ERROR : 0
  SKIP : 0
  FAIL : 0
  UNKNOWN : 0
  EOF : 0
  PASS : 2
  TIMEOUT : 0
```

QEMU XTF jobs updates:
- x86 XTF jobs now batch 75 XTFs each at once (~7m for the entire run) XTF batching eliminates few existing jobs which simplifies the existing test pipeline.
- Arm XTF job run 2 available tests at once (<1m)

Patch 1 is a housekeeping to avoid committing test artifacts after local QEMU XTF runs. Turns out to be very convenient to run QEMU XTFs locally.

Patches 2 and 3 is a non-functional cleanup meant to unify the CI jobs definitions.

Patch 4 adds per-arch per-compiler XTF builds. This way the XTF test jobs can skip re-building the XTF world and pull from the artifactory instead.

Patch 5 updates console.exp to recognize known XTF-reported test statuses for building fine-grain test reports.

Patch 5 adds binutils to docker containers used by XTF jobs. This is needed for patch 6.

Patch 6 is a mega-overhaul of the existing qemu-xtf.sh. I kept it bash for simplicity, but it makes sense to make another pass and switch (finally) to pytest (see [3] and [4]). I deliberately decided not to split it into smaller chunks and I __hope__ that would be OK for this code to be reviewed in such a form, since that is tooling and there's a public evidence of it being functional. But - sorry in advance, that is a big change. The example output is here:
https://gitlab.com/xen-project/people/dmukhin/xen/-/jobs/17749986186

Patches 7-12 - enable qubes runners to be used for XTFs. All XTF jobs runnable on a real hardware are made disabled by default. They can be selected via CI variables or manually triggered (but still needs elevated CI privileges). Here I want to thank Marek for providing Zen5 runner and the initial set of Zen5 jobs.

Patch 13 is meant to provide a way to execute the new interrupt-latency test on AMD x86 runners. Shall not be merged.

[1] XTF branch: https://gitlab.com/xen-project/people/dmukhin/xtf/-/tree/x86_64-ipi-latency?ref_type=heads
[2] Xen AVIC + CI infra branch: https://gitlab.com/xen-project/people/dmukhin/xen/-/tree/svm-avic-v3?ref_type=heads
[3] https://lore.kernel.org/xen-devel/[email protected]/
[4] https://lore.kernel.org/xen-devel/1793715358.8631fc262581453bbf619ec5b2062170.1a1a1c44b87000403d@vates.tech/
[5] CI: https://gitlab.com/xen-project/people/dmukhin/xen/-/pipelines/3028917985

Denis Mukhin (12):
gitignore: exclude QEMU testing artifacts
CI: unify hypervisor console parametrization
CI: unify naming for hypervisor extra arguments
CI: enable XTF build jobs
CI: enable XTF status codes
CI: enable binutils for alpine and debian containers
CI: rework to allow hardware runners
CI: enable on-demand XTF on qubes runners
CI: enable on-demand IPI latency test on AMD Zen2/Zen3 runners
CI: x86: attempt to fixup flaky tests
CI: add on-demand XTF test jobs on AMD Zen5
CI: do not merge: re-wire XTF repos to custom branches

Marek Marczykowski-Górecki (1):
CI: add test jobs on AMD Zen5

 .gitignore                                    |   5 +
 .../build/alpine/3.24-arm64v8.dockerfile      |   3 +
 .../build/alpine/3.24-x86_64.dockerfile       |   3 +
 automation/build/debian/12-arm64v8.dockerfile |   3 +
 automation/build/debian/13-x86_64.dockerfile  |   3 +
 automation/gitlab-ci/build.yaml               |  56 +++
 automation/gitlab-ci/test.yaml                | 289 ++++++++++---
 automation/scripts/.gitignore                 |   1 +
 automation/scripts/console.exp                |  25 +-
 .../scripts/include/configs/xtf-arm64-config  |   2 -
 .../scripts/include/configs/xtf-x86_64-config |   0
 .../include/configs/xtf-x86_64-efi-config     |   0
 .../scripts/include/manifests/qemu-x86_64     |  75 ++++
 automation/scripts/include/xtf-runner         | 138 ------
 .../include/{xtf-arm64 => xtf/qemu-arm64}     |  13 +-
 .../include/{xtf-x86_64 => xtf/qemu-x86_64}   |  13 +-
 .../{xtf-x86_64-efi => xtf/qemu-x86_64-efi}   |  13 +-
 automation/scripts/include/xtf/qubes-hw1      |   1 +
 automation/scripts/include/xtf/qubes-hw11     |   1 +
 automation/scripts/include/xtf/qubes-hw2      |   1 +
 automation/scripts/include/xtf/qubes-hw21     |   1 +
 automation/scripts/include/xtf/qubes-hw22     |   1 +
 automation/scripts/include/xtf/qubes-hw3      |   1 +
 automation/scripts/include/xtf/qubes-x86_64   |  54 +++
 automation/scripts/qemu-xtf.sh                |  28 --
 automation/scripts/qubes-x86_64.sh            |   4 +-
 .../scripts/xilinx-smoke-dom0-x86_64.sh       |   2 +-
 automation/scripts/xtf                        | 395 ++++++++++++++++++
 28 files changed, 864 insertions(+), 267 deletions(-)
 delete mode 100644 automation/scripts/include/configs/xtf-arm64-config
 delete mode 100644 automation/scripts/include/configs/xtf-x86_64-config
 delete mode 100644 automation/scripts/include/configs/xtf-x86_64-efi-config
 create mode 100644 automation/scripts/include/manifests/qemu-x86_64
 delete mode 100644 automation/scripts/include/xtf-runner
 rename automation/scripts/include/{xtf-arm64 => xtf/qemu-arm64} (79%)
 rename automation/scripts/include/{xtf-x86_64 => xtf/qemu-x86_64} (53%)
 rename automation/scripts/include/{xtf-x86_64-efi => xtf/qemu-x86_64-efi} (75%)
 create mode 120000 automation/scripts/include/xtf/qubes-hw1
 create mode 120000 automation/scripts/include/xtf/qubes-hw11
 create mode 120000 automation/scripts/include/xtf/qubes-hw2
 create mode 120000 automation/scripts/include/xtf/qubes-hw21
 create mode 120000 automation/scripts/include/xtf/qubes-hw22
 create mode 120000 automation/scripts/include/xtf/qubes-hw3
 create mode 100644 automation/scripts/include/xtf/qubes-x86_64
 delete mode 100755 automation/scripts/qemu-xtf.sh
 create mode 100755 automation/scripts/xtf
Signature · 1 line
2.55.0
#1 lore raw

PATCH 1/13 gitignore: exclude QEMU testing artifacts

From: Denis Mukhin <[email protected]>

---
 .gitignore                    | 5 +++++
 automation/scripts/.gitignore | 1 +
 2 files changed, 6 insertions(+)
.gitignore +5 -0
index 0aa9b801de63..46d14a86da84 100644
@@ -37,6 +37,11 @@ cscope.po.out
 .vimrc
 .vscode
 
+# Local QEMU testing
+binaries
+smoke.serial
+xen-config
+
 dist
 
 autom4te.cache/
automation/scripts/.gitignore +1 -0
index a01b533c60a8..f5f0c15d2606 100644
@@ -3,4 +3,5 @@
 /smoke.serial
 /xtf-*/
 
+*.log
 *.rom
Signature · 1 line
2.55.0
#2 lore raw

PATCH 2/13 CI: unify hypervisor console parametrization

In reply to [email protected]

From: Denis Mukhin <[email protected]>

gitlab CI configuration uses different environment variables for passing Xen console arguments to the test jobs.

Switch all tests uniformly to 'XEN_CONSOLE=' environment variable.

Not a functional change.

---
 automation/gitlab-ci/test.yaml                 | 12 ++++++------
 automation/scripts/qubes-x86_64.sh             |  4 ++--
 automation/scripts/xilinx-smoke-dom0-x86_64.sh |  2 +-
 3 files changed, 9 insertions(+), 9 deletions(-)
automation/gitlab-ci/test.yaml +6 -6
index 96127995d7be..f984c34a922e 100644
@@ -121,7 +121,7 @@
   variables:
     CONTAINER: ubuntu:xilinx-hw-runner
     LOGFILE: xilinx-smoke-x86_64.log
-    XEN_CMD_CONSOLE: "console=com2 com2=57600,8n1,0x2F8,4"
+    XEN_CONSOLE: "console=com2 com2=57600,8n1,0x2F8,4"
     TEST_BOARD: "crater"
     TEST_TIMEOUT_OVERRIDE: 1000
   artifacts:
@@ -144,7 +144,7 @@
     LOGFILE: smoke-test.log
     PCIDEV: "03:00.0"
     PCIDEV_INTR: "MSI-X"
-    CONSOLE_OPTS: "console=com1 com1=115200,8n1"
+    XEN_CONSOLE: "console=com1 com1=115200,8n1"
     SUT_ADDR: test-2.testnet
   artifacts:
     paths:
@@ -165,7 +165,7 @@
   variables:
     PCIDEV: "00:1f.6"
     PCIDEV_INTR: "MSI"
-    CONSOLE_OPTS: "console=com1 com1=115200,8n1,pci,0"
+    XEN_CONSOLE: "console=com1 com1=115200,8n1,pci,0"
     SUT_ADDR: test-3.testnet
   tags:
     - qubes-hw3
@@ -176,7 +176,7 @@
   variables:
     PCIDEV: "56:00.0"
     PCIDEV_INTR: "MSI-X"
-    CONSOLE_OPTS: "console=com1 com1=115200,8n1"
+    XEN_CONSOLE: "console=com1 com1=115200,8n1"
     EXTRA_XEN_OPTS: "fred"
     SUT_ADDR: test-22.testnet
   tags:
@@ -188,7 +188,7 @@
   variables:
     PCIDEV: "01:00.0"
     PCIDEV_INTR: "MSI-X"
-    CONSOLE_OPTS: "console=com1 com1=115200,8n1,pci,msi,04:00.0"
+    XEN_CONSOLE: "console=com1 com1=115200,8n1,pci,msi,04:00.0"
     SUT_ADDR: test-1.testnet
   tags:
     - qubes-hw1
@@ -199,7 +199,7 @@
   variables:
     PCIDEV: "01:00.0"
     PCIDEV_INTR: "MSI-X"
-    CONSOLE_OPTS: "console=com1 com1=115200,8n1,pci,msi"
+    XEN_CONSOLE: "console=com1 com1=115200,8n1,pci,msi"
     SUT_ADDR: test-11.testnet
   tags:
     - qubes-hw11
automation/scripts/qubes-x86_64.sh +2 -2
index 065f03931bea..73cbdff2be72 100755
@@ -260,14 +260,14 @@ TFTP=/scratch/gitlab-runner/tftp
 [email protected]
 
 echo "
-multiboot2 (http)/gitlab-ci/xen $CONSOLE_OPTS loglvl=all guest_loglvl=all dom0_mem=4G console_timestamps=boot watchdog ${EXTRA_XEN_OPTS-} $extra_xen_opts
+multiboot2 (http)/gitlab-ci/xen $XEN_CONSOLE loglvl=all guest_loglvl=all dom0_mem=4G console_timestamps=boot watchdog ${EXTRA_XEN_OPTS-} $extra_xen_opts
 module2 (http)/gitlab-ci/vmlinuz console=hvc0 root=/dev/ram0 earlyprintk=xen
 module2 --nounzip (http)/gitlab-ci/initrd-dom0
 " > $TFTP/grub.cfg
 
 echo "#!ipxe
 
-kernel /gitlab-ci/xen $CONSOLE_OPTS loglvl=all guest_loglvl=all dom0_mem=4G console_timestamps=boot watchdog ${EXTRA_XEN_OPTS-} $extra_xen_opts || reboot
+kernel /gitlab-ci/xen $XEN_CONSOLE loglvl=all guest_loglvl=all dom0_mem=4G console_timestamps=boot watchdog ${EXTRA_XEN_OPTS-} $extra_xen_opts || reboot
 module /gitlab-ci/vmlinuz console=hvc0 root=/dev/ram0 earlyprintk=xen || reboot
 module /gitlab-ci/initrd-dom0 || reboot
 boot
automation/scripts/xilinx-smoke-dom0-x86_64.sh +1 -1
index 5379738019a7..0fe96d62534b 100755
@@ -146,7 +146,7 @@ cd ..
 
 # Load software into TFTP server directory.
 TFTP="/scratch/gitlab-runner/tftp"
-XEN_CMDLINE="${XEN_CMD_CONSOLE} ${XEN_CMD_XEN} ${XEN_CMD_DOM0} ${XEN_CMD_EXTRA}"
+XEN_CMDLINE="${XEN_CONSOLE} ${XEN_CMD_XEN} ${XEN_CMD_DOM0} ${XEN_CMD_EXTRA}"
 cp -f binaries/xen ${TFTP}/${TEST_BOARD}/xen
 cp -f binaries/bzImage ${TFTP}/${TEST_BOARD}/vmlinuz
 cp -f binaries/dom0-rootfs.cpio.gz ${TFTP}/${TEST_BOARD}/initrd-dom0
Signature · 1 line
2.55.0
#3 lore raw

PATCH 3/13 CI: unify naming for hypervisor extra arguments

In reply to [email protected]

From: Denis Mukhin <[email protected]>

Update the name of environment variable used to append an extra hypervisor arguments to 'EXTRA_XEN_CMDLINE' for consistency with existing 'XEN_CMDLINE'.

Not a functional change.

---
 automation/gitlab-ci/test.yaml     | 2 +-
 automation/scripts/qubes-x86_64.sh | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
automation/gitlab-ci/test.yaml +1 -1
index f984c34a922e..047c4d513a65 100644
@@ -177,7 +177,7 @@
     PCIDEV: "56:00.0"
     PCIDEV_INTR: "MSI-X"
     XEN_CONSOLE: "console=com1 com1=115200,8n1"
-    EXTRA_XEN_OPTS: "fred"
+    EXTRA_XEN_CMDLINE: "fred"
     SUT_ADDR: test-22.testnet
   tags:
     - qubes-hw22
automation/scripts/qubes-x86_64.sh +2 -2
index 73cbdff2be72..580a1e86f1ef 100755
@@ -260,14 +260,14 @@ TFTP=/scratch/gitlab-runner/tftp
 [email protected]
 
 echo "
-multiboot2 (http)/gitlab-ci/xen $XEN_CONSOLE loglvl=all guest_loglvl=all dom0_mem=4G console_timestamps=boot watchdog ${EXTRA_XEN_OPTS-} $extra_xen_opts
+multiboot2 (http)/gitlab-ci/xen $XEN_CONSOLE loglvl=all guest_loglvl=all dom0_mem=4G console_timestamps=boot watchdog ${EXTRA_XEN_CMDLINE-} $extra_xen_opts
 module2 (http)/gitlab-ci/vmlinuz console=hvc0 root=/dev/ram0 earlyprintk=xen
 module2 --nounzip (http)/gitlab-ci/initrd-dom0
 " > $TFTP/grub.cfg
 
 echo "#!ipxe
 
-kernel /gitlab-ci/xen $XEN_CONSOLE loglvl=all guest_loglvl=all dom0_mem=4G console_timestamps=boot watchdog ${EXTRA_XEN_OPTS-} $extra_xen_opts || reboot
+kernel /gitlab-ci/xen $XEN_CONSOLE loglvl=all guest_loglvl=all dom0_mem=4G console_timestamps=boot watchdog ${EXTRA_XEN_CMDLINE-} $extra_xen_opts || reboot
 module /gitlab-ci/vmlinuz console=hvc0 root=/dev/ram0 earlyprintk=xen || reboot
 module /gitlab-ci/initrd-dom0 || reboot
 boot
Signature · 1 line
2.55.0
#4 lore raw

PATCH 4/13 CI: enable XTF build jobs

In reply to [email protected]

From: Denis Mukhin <[email protected]>

Build and publish XTF binaries to be consumed by test jobs.

---
 automation/gitlab-ci/build.yaml | 56 +++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)
automation/gitlab-ci/build.yaml +56 -0
index 3d37e0b572d0..1f6228ba74ff 100644
@@ -288,6 +288,7 @@ alpine-3.24-x86_64-gcc-debug:
       CONFIG_ARGO=y
       CONFIG_UBSAN=y
       CONFIG_UBSAN_FATAL=y
+      CONFIG_SHADOW_PAGING=y
       CONFIG_MICROCODE_SCAN_DEFAULT=y
       CONFIG_XHCI=y
 
@@ -297,6 +298,9 @@ debian-13-x86_64-gcc-debug:
   variables:
     CONTAINER: debian:13-x86_64
     EXTRA_XEN_CONFIG: |
+      CONFIG_EXPERT=y
+      CONFIG_UNSUPPORTED=y
+      CONFIG_ARGO=y
       CONFIG_SHADOW_PAGING=y
 
 debian-13-x86_64-clang-debug:
@@ -305,6 +309,9 @@ debian-13-x86_64-clang-debug:
   variables:
     CONTAINER: debian:13-x86_64
     EXTRA_XEN_CONFIG: |
+      CONFIG_EXPERT=y
+      CONFIG_UNSUPPORTED=y
+      CONFIG_ARGO=y
       CONFIG_SHADOW_PAGING=y
 
 debian-13-ppc64le-gcc-debug:
@@ -840,3 +847,52 @@ macos-26-arm64:
   variables:
     XEN_TARGET_ARCH: arm64
     CROSS_COMPILE: aarch64-elf-
+
+.xtf-common:
+  variables:
+    BUILD_QEMU_XEN: y
+  script:
+    - git clone ${XTF_URI} xtf-${ARCH} -b ${XTF_BRANCH}
+    - make -C xtf-${ARCH} -j$(nproc) ${XTF_CONFIG}
+    - DESTDIR=$(pwd) xtfdir=/binaries make -C xtf-${ARCH} ${XTF_CONFIG} install
+  artifacts:
+    paths:
+      - binaries/*
+
+xtf-arm64-gcc-debug:
+  extends:
+    - .gcc-arm64-build-debug
+    - .xtf-common
+  <<: *build-test
+  variables:
+    CONTAINER: alpine:3.24-arm64v8
+    ARCH: arm64
+    XTF_URI: https://gitlab.com/xen-project/fusa/xtf.git
+    XTF_BRANCH: xtf-arm
+    XTF_CONFIG: |
+      CONFIG_GICV2=y
+      CONFIG_SBSA_UART=y
+
+xtf-x86_64-gcc-debug:
+  extends:
+    - .gcc-x86_64-build-debug
+    - .xtf-common
+  <<: *build-test
+  variables:
+    CONTAINER: alpine:3.24-x86_64
+    ARCH: x86_64
+    XTF_URI: https://xenbits.xen.org/git-http/xtf.git
+    XTF_BRANCH: master
+    XTF_CONFIG:
+
+xtf-x86_64-clang-debug:
+  extends:
+    - .clang-x86_64-build-debug
+    - .xtf-common
+  <<: *build-test
+  variables:
+    CONTAINER: debian:13-x86_64
+    ARCH: x86_64
+    XTF_URI: https://xenbits.xen.org/git-http/xtf.git
+    XTF_BRANCH: master
+    XTF_CONFIG:
Signature · 1 line
2.55.0
#5 lore raw

PATCH 5/13 CI: enable XTF status codes

In reply to [email protected]

From: Denis Mukhin <[email protected]>

Enable XTF status code parsing detection similarly to python 'xtf-runner' script (XTF repo) to allow fine-grained test report.

---
 automation/scripts/console.exp | 25 ++++++++++++++++++++-----
 1 file changed, 20 insertions(+), 5 deletions(-)
automation/scripts/console.exp +20 -5
index e27886bbef23..55373f86e673 100755
@@ -14,8 +14,9 @@
 # - WAKEUP_CMD (optional): command to execute to wakeup the system 30s after
 #   seeing SUSPEND_MSG
 # - LOG_MSG (optional): final console message to wait for
-# - PASSED: message to look for to consider test a success; if LOG_MSG is set,
+# - PASSED (optional): message to look for to consider test a success; if LOG_MSG is set,
 #   both LOG_MSG and PASSED must appear (in any order) for test to succeed
+# - TEST_XTF (optional): distinguish XTF error codes
 
 if {[info exists env(TEST_TIMEOUT_OVERRIDE)]} {
     set timeout $env(TEST_TIMEOUT_OVERRIDE)
@@ -31,12 +32,24 @@ match_max 10000
 
 eval spawn $env(TEST_CMD)
 
+if {[info exists env(TEST_XTF)]} {
+    expect_before {
+        -re {Test result: SUCCESS} { exit 0 }
+        -re {ERROR-EOF}            { exit 2 }
+        -re {Test result: SKIP}    { exit 3 }
+        -re {Neither HAP nor Shadow available} { exit 3 }
+        -re {Test result: ERROR}   { exit 4 }
+        -re {Test result: FAILURE} { exit 5 }
+        -re { crashed }            { exit 6 }
+    }
+}
+
 expect_after {
     -re "(.*)\r" {
         exp_continue -continue_timer
     }
     timeout {send_error "\nERROR-Timeout!\n"; exit 1}
-    eof {send_error "\nERROR-EOF!\n"; exit 1}
+    eof {send_error "\nERROR-EOF!\n"; exit 2}
 }
 
 if {[info exists env(UBOOT_CMD)]} {
@@ -71,9 +84,11 @@ if {[info exists env(LOG_MSG)]} {
     }
 }
 
-expect {
-    -re "$env(PASSED)" {
-        exit 0
+if {[info exists env(PASSED)]} {
+    expect {
+        -re "$env(PASSED)" {
+            exit 0
+        }
     }
 }
 
Signature · 1 line
2.55.0
#6 lore raw

PATCH 6/13 CI: enable binutils for alpine and debian containers

In reply to [email protected]

From: Denis Mukhin <[email protected]>

Enable binutils for the docker images used for test runners (e.g. 'readelf' may be useful for inspecting build artifacts).

---
 automation/build/alpine/3.24-arm64v8.dockerfile | 3 +++
 automation/build/alpine/3.24-x86_64.dockerfile  | 3 +++
 automation/build/debian/12-arm64v8.dockerfile   | 3 +++
 automation/build/debian/13-x86_64.dockerfile    | 3 +++
 4 files changed, 12 insertions(+)
automation/build/alpine/3.24-arm64v8.dockerfile +3 -0
index 5b28d874efae..7952005141fc 100644
@@ -44,6 +44,9 @@ RUN <<EOF
         # Ocaml bindings/oxenstored
         ocaml
         ocaml-findlib
+
+        # XTF
+        binutils
     )
 
     apk add --no-cache "${DEPS[@]}"
automation/build/alpine/3.24-x86_64.dockerfile +3 -0
index f93158e0186d..e7bb73b05044 100644
@@ -56,6 +56,9 @@ RUN <<EOF
 
         # livepatch-tools deps
         elfutils-dev
+
+        # XTF
+        binutils
     )
 
     apk add --no-cache "${DEPS[@]}"
automation/build/debian/12-arm64v8.dockerfile +3 -0
index 5cc4de822cc6..6003a8eef0c6 100644
@@ -58,6 +58,9 @@ RUN <<EOF
         ovmf
         u-boot-qemu
         u-boot-tools
+
+        # XTF
+        binutils
     )
 
     apt-get -y --no-install-recommends install "${DEPS[@]}"
automation/build/debian/13-x86_64.dockerfile +3 -0
index 784299d52dc3..f11085685a37 100644
@@ -62,6 +62,9 @@ RUN <<EOF
 
         # for build-each-commit-gcc
         ccache
+
+        # XTF
+        binutils
     )
 
     apt-get -y --no-install-recommends install "${DEPS[@]}"
Signature · 1 line
2.55.0
#7 lore raw

PATCH 7/13 CI: rework to allow hardware runners

In reply to [email protected]

From: Denis Mukhin <[email protected]>

Rework current bash tooling to simplify its use for local testing and CI integration.

Allow batching multiple tests in one run.

The batching rules are:
- Use 'SELECTED_GROUP_ONLY' for running only XTF group of jobs. If unset, run all XTF jobs.
- Use file passed in 'XTF_MANIFEST' to select a group of tests to run. If unset, run all known tests.
- Use regex in 'SELECTED_XTF_ONLY' environment variable to select a group of XTF tests. If unset, run all tests.

Correctly resolve individual XTF test statuses returned from console.exp for pretty accounting.

Include per-test title in the output.

Rely on per-XTF 'info.json' for assembling per-test Xen command line.

Prefix all per-arch XTF QEMU configuration fragments with "qemu-" prefix and move them under 'xtf' directory. While here, rename qemu-xtf.sh to xtf.sh since the code is now generic, not QEMU specific.

Update all affected QEMU XTF jobs.

---
That may clash with
https://lore.kernel.org/xen-devel/[email protected]/
and
https://lore.kernel.org/xen-devel/1793715358.8631fc262581453bbf619ec5b2062170.1a1a1c44b87000403d@vates.tech

My take - pytests is the way to go, but I had to unblock myself with running some AVIC testing, so ended up with existing bash infra cleanup.

---
 automation/gitlab-ci/test.yaml                | 165 +++++---
 .../scripts/include/configs/xtf-arm64-config  |   2 -
 .../scripts/include/configs/xtf-x86_64-config |   0
 .../include/configs/xtf-x86_64-efi-config     |   0
 .../scripts/include/manifests/qemu-x86_64     |  75 ++++
 automation/scripts/include/xtf-runner         | 138 ------
 .../include/{xtf-arm64 => xtf/qemu-arm64}     |  13 +-
 .../include/{xtf-x86_64 => xtf/qemu-x86_64}   |  13 +-
 .../{xtf-x86_64-efi => xtf/qemu-x86_64-efi}   |  13 +-
 automation/scripts/qemu-xtf.sh                |  28 --
 automation/scripts/xtf                        | 395 ++++++++++++++++++
 11 files changed, 590 insertions(+), 252 deletions(-)
 delete mode 100644 automation/scripts/include/configs/xtf-arm64-config
 delete mode 100644 automation/scripts/include/configs/xtf-x86_64-config
 delete mode 100644 automation/scripts/include/configs/xtf-x86_64-efi-config
 create mode 100644 automation/scripts/include/manifests/qemu-x86_64
 delete mode 100644 automation/scripts/include/xtf-runner
 rename automation/scripts/include/{xtf-arm64 => xtf/qemu-arm64} (79%)
 rename automation/scripts/include/{xtf-x86_64 => xtf/qemu-x86_64} (53%)
 rename automation/scripts/include/{xtf-x86_64-efi => xtf/qemu-x86_64-efi} (75%)
 delete mode 100755 automation/scripts/qemu-xtf.sh
 create mode 100755 automation/scripts/xtf
automation/gitlab-ci/test.yaml +105 -60
index 047c4d513a65..9ca93842dfe7 100644
@@ -5,6 +5,31 @@
   - if: $CI_JOB_NAME =~ $SELECTED_JOBS_ONLY
     when: on_success
 
+.test-jobs-group:
+  extends:
+    - .test-jobs-common
+  rules:
+    - if: '$CI_JOB_NAME =~ $SELECTED_JOBS_ONLY && $SELECTED_GROUP_ONLY =~ /(^|,)(all|[*])(,|$)/'
+      when: on_success
+    - if: '$CI_JOB_NAME =~ $SELECTED_JOBS_ONLY && $SELECTED_GROUP_ONLY =~ $GROUP_REGEX'
+      when: on_success
+    - if: '$CI_JOB_NAME =~ $SELECTED_JOBS_ONLY'
+      when: manual
+      allow_failure: true
+    - when: never
+
+.test-jobs-perf:
+  extends:
+    - .test-jobs-group
+  variables:
+    GROUP_REGEX: '/(^|,)perf(,|$)/'
+
+.test-jobs-hardware-xtf:
+  extends:
+    - .test-jobs-group
+  variables:
+    GROUP_REGEX: '/(^|,)xtf(,|$)/'
+
 .arm64-test-needs: &arm64-test-needs
   - project: $ARTIFACTS_REPO
     job: $LINUX_JOB_ARM64
@@ -27,11 +52,44 @@
     job: microcode-x86
     ref: $ARTIFACTS_BRANCH
 
+.xtf-arm64-gcc-debug:
+  variables:
+    ARCH: arm64
+  script:
+    - time ./automation/scripts/xtf 2>&1 | tee ${LOGFILE}
+  artifacts:
+    paths:
+      - '*.log'
+    when: always
+  needs:
+    - *arm64-test-needs
+    - alpine-3.24-arm64-gcc-debug
+    - xtf-arm64-gcc-debug
+
+.xtf-x86_64-gcc-debug:
+  variables:
+    ARCH: x86_64
+  script:
+    - |
+      if [[ "${CONTAINER}" != "debian:13-x86_64" ]]; then
+          apk add --no-cache binutils
+      fi
+    - time ./automation/scripts/xtf 2>&1 | tee ${LOGFILE}
+  artifacts:
+    paths:
+      - '*.log'
+    when: always
+  needs:
+    - *x86_64-test-needs
+    - alpine-3.24-x86_64-gcc-debug
+    - xtf-x86_64-gcc-debug
+
 .qemu-arm64:
   extends: .test-jobs-common
   variables:
     CONTAINER: debian:13-arm64v8
     LOGFILE: qemu-smoke-arm64.log
+    XTF_TARGET: qemu-arm64
   artifacts:
     paths:
       - smoke.serial
@@ -58,6 +116,7 @@
   variables:
     CONTAINER: debian:13-x86_64
     LOGFILE: qemu-smoke-x86_64.log
+    XTF_TARGET: qemu-x86_64
   artifacts:
     paths:
       - smoke.serial
@@ -66,11 +125,6 @@
   tags:
     - x86_64
 
-.qemu-smoke-x86_64:
-  extends: .qemu-x86_64
-  variables:
-    TEST_TIMEOUT_OVERRIDE: 120
-
 .qemu-riscv64:
   extends: .test-jobs-common
   variables:
@@ -503,6 +557,12 @@ zen2-suspend-x86_64-gcc-debug:
     - *x86_64-test-needs
     - alpine-3.24-x86_64-gcc-debug
 
+zen2-xtf-x86_64-gcc-debug:
+  extends:
+    - .zen2-x86_64
+    - .xtf-x86_64-gcc-debug
+    - .test-jobs-hardware-xtf
+
 zen3p-smoke-x86_64-gcc-debug:
   extends: .zen3p-x86_64
   script:
@@ -565,6 +625,12 @@ zen3p-tools-tests-pvh-x86_64-gcc-debug:
     - *x86_64-test-needs
     - alpine-3.24-x86_64-gcc-debug
 
+zen3p-xtf-x86_64-gcc-debug:
+  extends:
+    - .zen3p-x86_64
+    - .xtf-x86_64-gcc-debug
+    - .test-jobs-hardware-xtf
+
 qemu-smoke-dom0-arm64-gcc:
   extends: .qemu-arm64
   script:
@@ -653,21 +719,13 @@ qemu-smoke-dom0less-arm64-gcc-debug-earlyprintk:
     - *arm64-test-needs
     - alpine-3.24-arm64-gcc-debug-earlyprintk
 
-qemu-xtf-dom0less-arm64-gcc-hyp-xen-version:
-  extends: .qemu-arm64
-  script:
-    - ./automation/scripts/qemu-xtf.sh arm64 mmu64le hyp-xen-version 2>&1 | tee ${LOGFILE}
-  needs:
-    - *arm64-test-needs
-    - alpine-3.24-arm64-gcc
-
-qemu-xtf-dom0less-arm64-gcc-debug-hyp-xen-version:
-  extends: .qemu-arm64
-  script:
-    - ./automation/scripts/qemu-xtf.sh arm64 mmu64le hyp-xen-version 2>&1 | tee ${LOGFILE}
-  needs:
-    - *arm64-test-needs
-    - alpine-3.24-arm64-gcc-debug
+qemu-xtf-arm64-gcc-debug:
+  extends:
+    - .qemu-arm64
+    - .test-jobs-common
+    - .xtf-arm64-gcc-debug
+  variables:
+    TEST_TIMEOUT_OVERRIDE: 10
 
 qemu-smoke-dom0-arm32-gcc:
   extends: .qemu-arm32
@@ -741,49 +799,36 @@ qemu-alpine-x86_64-gcc:
     - *x86_64-test-needs
     - alpine-3.24-x86_64-gcc
 
-qemu-smoke-x86_64-gcc:
-  extends: .qemu-smoke-x86_64
-  script:
-    - ./automation/scripts/qemu-xtf.sh x86_64 pv64 example 2>&1 | tee ${LOGFILE}
-  needs:
-    - 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-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-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-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-13-x86_64-gcc-debug
-
-qemu-xtf-argo-x86_64-gcc-debug:
-  extends: .qemu-smoke-x86_64
+qemu-xtf-x86_64-gcc-debug:
+  extends:
+    - .qemu-x86_64
+    - .test-jobs-common
+    - .xtf-x86_64-gcc-debug
   variables:
-    TEST_TIMEOUT_OVERRIDE: 60
+    TEST_TIMEOUT_OVERRIDE: 10
+    XTF_MANIFEST: include/manifests/qemu-x86_64
+
+qemu-xtf-x86_64-efi-gcc-debug:
+  extends: qemu-xtf-x86_64-gcc-debug
+  variables:
+    XTF_TARGET: qemu-x86_64-efi
+
+qemu-xtf-x86_64-clang-debug:
+  extends: .qemu-x86_64
+  variables:
+    ARCH: x86_64
+    TEST_TIMEOUT_OVERRIDE: 10
+    XTF_MANIFEST: include/manifests/qemu-x86_64
   script:
-    - ./automation/scripts/qemu-xtf.sh x86_64 pv64 argo 2>&1 | tee ${LOGFILE}
+    - time ./automation/scripts/xtf 2>&1 | tee ${LOGFILE}
+  artifacts:
+    paths:
+      - '*.log'
+    when: always
   needs:
-    - alpine-3.24-x86_64-gcc-debug
+    - *x86_64-test-needs
+    - debian-13-x86_64-clang-debug
+    - xtf-x86_64-clang-debug
 
 qemu-smoke-riscv64-gcc:
   extends: .qemu-riscv64
automation/scripts/include/configs/xtf-arm64-config deleted +0 -2
deleted file mode 100644
index 99427409276d..000000000000
@@ -1,2 +0,0 @@
-CONFIG_GICV2=y
-CONFIG_SBSA_UART=y
automation/scripts/include/configs/xtf-x86_64-config deleted +0 -0
deleted file mode 100644
index e69de29bb2d1..000000000000
automation/scripts/include/configs/xtf-x86_64-efi-config deleted +0 -0
deleted file mode 100644
index e69de29bb2d1..000000000000
automation/scripts/include/manifests/qemu-x86_64 new file +75 -0

75 lines not on this page · raw message

automation/scripts/include/xtf-runner deleted +0 -138

138 lines not on this page · raw message

automation/scripts/include/xtf/qemu-arm64 renamed from automation/scripts/include/xtf-arm64 +5 -8
similarity index 79%
rename from automation/scripts/include/xtf-arm64
rename to automation/scripts/include/xtf/qemu-arm64
index 5d851af788a1..1f23e33fc0ac 100644
@@ -3,20 +3,17 @@
 # XTF test utilities (arm64).
 #
 
-# Arch-specific environment overrides.
-function xtf_arch_prepare()
+# Target-specific environment overrides.
+function xtf_init()
 {
     export FW_PREFIX="${FW_PREFIX:-/usr/lib/u-boot/qemu_arm64/}"
     export QEMU_PREFIX="${QEMU_PREFIX:-}"
     export XEN_BINARY="${XEN_BINARY:-${WORKDIR}/xen}"
-    export XEN_CMDLINE="${XEN_CMDLINE:-loglvl=all noreboot console_timestamps=boot console=dtuart}"
-    export XTF_SRC_BRANCH="${XTF_SRC_BRANCH:-xtf-arm}"
-    export XTF_SRC_URI="${XTF_SRC_URI:-https://gitlab.com/xen-project/fusa/xtf.git}"
-    export XTF_SRC_VARIANTS="mmu64le"
+    export EXTRA_XEN_CMDLINE="${XEN_CMDLINE:-loglvl=all noreboot console_timestamps=boot console=dtuart}"
 }
 
-# Perform arch-specific XTF environment setup.
-function xtf_arch_setup()
+# Perform target-specific XTF environment setup.
+function xtf_setup_host()
 {
     # Crude check for local testing
     if [ ! -d imagebuilder ]; then
automation/scripts/include/xtf/qemu-x86_64 renamed from automation/scripts/include/xtf-x86_64 +5 -8
similarity index 53%
rename from automation/scripts/include/xtf-x86_64
rename to automation/scripts/include/xtf/qemu-x86_64
index 186f074bd8eb..0e079893dc25 100644
@@ -3,20 +3,17 @@
 # XTF test utilities (x86_64).
 #
 
-# Arch-specific environment overrides.
-function xtf_arch_prepare()
+# Target-specific environment overrides.
+function xtf_init()
 {
     export FW_PREFIX="${FW_PREFIX:-}"
     export QEMU_PREFIX="${QEMU_PREFIX:-}"
     export XEN_BINARY="${XEN_BINARY:-${WORKDIR}/xen}"
-    export XEN_CMDLINE="${XEN_CMDLINE:-loglvl=all noreboot console_timestamps=boot console=com1}"
-    export XTF_SRC_BRANCH="${XTF_SRC_BRANCH:-master}"
-    export XTF_SRC_URI="${XTF_SRC_URI:-https://xenbits.xen.org/git-http/xtf.git}"
-    export XTF_SRC_VARIANTS="hvm64 pv64"
+    export EXTRA_XEN_CMDLINE="${XEN_CMDLINE:-loglvl=all noreboot console_timestamps=boot console=com1}"
 }
 
-# Perform arch-specific XTF environment setup.
-function xtf_arch_setup()
+# Perform target-specific XTF environment setup.
+function xtf_setup_host()
 {
     export TEST_CMD="${QEMU_PREFIX}qemu-system-x86_64 \
         -no-reboot \
automation/scripts/include/xtf/qemu-x86_64-efi renamed from automation/scripts/include/xtf-x86_64-efi +5 -8
similarity index 75%
rename from automation/scripts/include/xtf-x86_64-efi
rename to automation/scripts/include/xtf/qemu-x86_64-efi
index 15c6463dcdc5..dd2b8c3c6e52 100644
@@ -3,20 +3,17 @@
 # XTF test utilities (x86_64, EFI).
 #
 
-# Arch-specific environment overrides.
-function xtf_arch_prepare()
+# Target-specific environment overrides.
+function xtf_init()
 {
     export FW_PREFIX="${FW_PREFIX:-/usr/share/OVMF/}"
     export QEMU_PREFIX="${QEMU_PREFIX:-}"
     export XEN_BINARY="${XEN_BINARY:-${WORKDIR}/xen.efi}"
-    export XEN_CMDLINE="${XEN_CMDLINE:-loglvl=all noreboot console_timestamps=boot console=com1}"
-    export XTF_SRC_BRANCH="${XTF_SRC_BRANCH:-master}"
-    export XTF_SRC_URI="${XTF_SRC_URI:-https://xenbits.xen.org/git-http/xtf.git}"
-    export XTF_SRC_VARIANTS="hvm64 pv64"
+    export EXTRA_XEN_CMDLINE="${XEN_CMDLINE:-loglvl=all noreboot console_timestamps=boot console=com1}"
 }
 
-# Perform arch-specific XTF environment setup.
-function xtf_arch_setup()
+# Perform target-specific XTF environment setup.
+function xtf_setup_host()
 {
     local esp_dir="${WORKDIR}/boot-esp"
     local efi_dir="${esp_dir}/EFI/BOOT"
automation/scripts/qemu-xtf.sh deleted +0 -28
deleted file mode 100755
index 55c221b36dc5..000000000000
@@ -1,28 +0,0 @@
-#!/bin/bash
-#
-# XTF test runner (QEMU).
-#
-
-set -e -o pipefail
-
-if [ $# -lt 3 ]; then
-    echo "Usage: $(basename $0) ARCH XTF-VARIANT XTF-NAME"
-    exit 0
-fi
-
-export ARCH="$1"
-shift
-
-set -x
-
-export XEN_ROOT="${PWD}"
-cd $(dirname $0)
-
-source include/xtf-runner
-
-if [ ! -f "include/xtf-${ARCH}" ]; then
-    die "unsupported architecture '${ARCH}'"
-fi
-source include/xtf-${ARCH}
-
-xtf_test $@
automation/scripts/xtf new file +395 -0

395 lines not on this page · raw message

Signature · 1 line
2.55.0
#8 lore raw

PATCH 8/13 CI: enable on-demand XTF on qubes runners

In reply to [email protected]

From: Denis Mukhin <[email protected]>

Currently, public CI infra has no job to run an XTF on the hardware runner.

This change enables running XTFs on hardware runners on demand, such as test job on a development branch.

---
 automation/gitlab-ci/test.yaml              |  2 +
 automation/scripts/include/xtf/qubes-hw1    |  1 +
 automation/scripts/include/xtf/qubes-hw11   |  1 +
 automation/scripts/include/xtf/qubes-hw2    |  1 +
 automation/scripts/include/xtf/qubes-hw22   |  1 +
 automation/scripts/include/xtf/qubes-hw3    |  1 +
 automation/scripts/include/xtf/qubes-x86_64 | 54 +++++++++++++++++++++
 7 files changed, 61 insertions(+)
 create mode 120000 automation/scripts/include/xtf/qubes-hw1
 create mode 120000 automation/scripts/include/xtf/qubes-hw11
 create mode 120000 automation/scripts/include/xtf/qubes-hw2
 create mode 120000 automation/scripts/include/xtf/qubes-hw22
 create mode 120000 automation/scripts/include/xtf/qubes-hw3
 create mode 100644 automation/scripts/include/xtf/qubes-x86_64
automation/gitlab-ci/test.yaml +2 -0
index 9ca93842dfe7..4d7d5e3d9a11 100644
@@ -244,6 +244,7 @@
     PCIDEV_INTR: "MSI-X"
     XEN_CONSOLE: "console=com1 com1=115200,8n1,pci,msi,04:00.0"
     SUT_ADDR: test-1.testnet
+    XTF_TARGET: qubes-hw1
   tags:
     - qubes-hw1
 
@@ -255,6 +256,7 @@
     PCIDEV_INTR: "MSI-X"
     XEN_CONSOLE: "console=com1 com1=115200,8n1,pci,msi"
     SUT_ADDR: test-11.testnet
+    XTF_TARGET: qubes-hw11
   tags:
     - qubes-hw11
 
automation/scripts/include/xtf/qubes-hw1 new file +1 -0
new file mode 120000
index 000000000000..c6b7de7308b6
@@ -0,0 +1 @@
+qubes-x86_64
\ No newline at end of file
automation/scripts/include/xtf/qubes-hw11 new file +1 -0
new file mode 120000
index 000000000000..c6b7de7308b6
@@ -0,0 +1 @@
+qubes-x86_64
\ No newline at end of file
automation/scripts/include/xtf/qubes-hw2 new file +1 -0
new file mode 120000
index 000000000000..c6b7de7308b6
@@ -0,0 +1 @@
+qubes-x86_64
\ No newline at end of file
automation/scripts/include/xtf/qubes-hw22 new file +1 -0
new file mode 120000
index 000000000000..c6b7de7308b6
@@ -0,0 +1 @@
+qubes-x86_64
\ No newline at end of file
automation/scripts/include/xtf/qubes-hw3 new file +1 -0
new file mode 120000
index 000000000000..c6b7de7308b6
@@ -0,0 +1 @@
+qubes-x86_64
\ No newline at end of file
automation/scripts/include/xtf/qubes-x86_64 new file +54 -0

54 lines not on this page · raw message

Signature · 1 line
2.55.0
#9 lore raw

PATCH 9/13 CI: enable on-demand IPI latency test on AMD Zen2/Zen3 runners

In reply to [email protected]

From: Denis Mukhin <[email protected]>

Enable IPI latency test on hardware Zen2/Zen3 runners.

---
 automation/gitlab-ci/test.yaml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
automation/gitlab-ci/test.yaml +16 -0
index 4d7d5e3d9a11..98edf7eb9ff5 100644
@@ -565,6 +565,14 @@ zen2-xtf-x86_64-gcc-debug:
     - .xtf-x86_64-gcc-debug
     - .test-jobs-hardware-xtf
 
+zen2-hvm64-interrupt-latency:
+  extends:
+    - zen2-xtf-x86_64-gcc-debug
+    - .test-jobs-perf
+  variables:
+    SELECTED_XTF_ONLY: test-hvm64-interrupt-latency
+    TEST_TIMEOUT_OVERRIDE: 600
+
 zen3p-smoke-x86_64-gcc-debug:
   extends: .zen3p-x86_64
   script:
@@ -633,6 +641,14 @@ zen3p-xtf-x86_64-gcc-debug:
     - .xtf-x86_64-gcc-debug
     - .test-jobs-hardware-xtf
 
+zen3p-hvm64-interrupt-latency:
+  extends:
+    - zen3p-xtf-x86_64-gcc-debug
+    - .test-jobs-perf
+  variables:
+    SELECTED_XTF_ONLY: test-hvm64-interrupt-latency
+    TEST_TIMEOUT_OVERRIDE: 600
+
 qemu-smoke-dom0-arm64-gcc:
   extends: .qemu-arm64
   script:
Signature · 1 line
2.55.0
#10 lore raw

PATCH 10/13 CI: x86: attempt to fixup flaky tests

In reply to [email protected]

From: Denis Mukhin <[email protected]>

Allow maximum of 2 retries to account for flaky infrastructure scripting for powering on the target board.

---
 automation/gitlab-ci/test.yaml | 4 ++++
 1 file changed, 4 insertions(+)
automation/gitlab-ci/test.yaml +4 -0
index 98edf7eb9ff5..bf12b9123f1e 100644
@@ -192,6 +192,10 @@
 
 .adl-x86_64:
   extends: .test-jobs-common
+  # Account for infra failure
+  retry:
+    max: 2
+    when: script_failure
   variables:
     # the test controller runs on RPi4
     CONTAINER: alpine:qubes-hw-runner
Signature · 1 line
2.55.0
#11 lore raw

PATCH 11/13 CI: add test jobs on AMD Zen5

In reply to [email protected]

From: Marek Marczykowski-Górecki <[email protected]>

This is Minisforum X1 Pro AI mini PC with AMD Ryzen AI 9 HX 370.

---
 automation/gitlab-ci/test.yaml | 74 ++++++++++++++++++++++++++++++++++
 1 file changed, 74 insertions(+)
automation/gitlab-ci/test.yaml +74 -0
index bf12b9123f1e..05dbd0d3e07c 100644
@@ -264,6 +264,18 @@
   tags:
     - qubes-hw11
 
+.zen5-x86_64:
+  # it's really similar to the above
+  extends: .adl-x86_64
+  variables:
+    PCIDEV: "c3:00.0"
+    PCIDEV_INTR: "MSI-X"
+    XEN_CONSOLE: "console=com1 com1=115200,8n1,pci,msi"
+    SUT_ADDR: test-21.testnet
+    XTF_TARGET: qubes-hw21
+  tags:
+    - qubes-hw21
+
 # Test jobs
 build-each-commit-gcc:
   extends: .test-jobs-common
@@ -653,6 +665,68 @@ zen3p-hvm64-interrupt-latency:
     SELECTED_XTF_ONLY: test-hvm64-interrupt-latency
     TEST_TIMEOUT_OVERRIDE: 600
 
+zen5-smoke-x86_64-gcc-debug:
+  extends: .zen5-x86_64
+  script:
+    - ./automation/scripts/qubes-x86_64.sh dom0pv 2>&1 | tee ${LOGFILE}
+  needs:
+    - *x86_64-test-needs
+    - alpine-3.24-x86_64-gcc-debug
+
+zen5-smoke-x86_64-dom0pvh-gcc-debug:
+  extends: .zen5-x86_64
+  script:
+    - ./automation/scripts/qubes-x86_64.sh dom0pvh 2>&1 | tee ${LOGFILE}
+  needs:
+    - *x86_64-test-needs
+    - alpine-3.24-x86_64-gcc-debug
+
+zen5-smoke-x86_64-dom0pvh-hvm-gcc-debug:
+  extends: .zen5-x86_64
+  script:
+    - ./automation/scripts/qubes-x86_64.sh dom0pvh-hvm 2>&1 | tee ${LOGFILE}
+  needs:
+    - *x86_64-test-needs
+    - alpine-3.24-x86_64-gcc-debug
+
+zen5-pci-hvm-x86_64-gcc-debug:
+  extends: .zen5-x86_64
+  script:
+    - ./automation/scripts/qubes-x86_64.sh pci-hvm 2>&1 | tee ${LOGFILE}
+  needs:
+    - *x86_64-test-needs
+    - alpine-3.24-x86_64-gcc-debug
+
+zen5-pvshim-x86_64-gcc-debug:
+  extends: .zen5-x86_64
+  script:
+    - ./automation/scripts/qubes-x86_64.sh pvshim 2>&1 | tee ${LOGFILE}
+  needs:
+    - *x86_64-test-needs
+    - alpine-3.24-x86_64-gcc-debug
+
+zen5-tools-tests-pv-x86_64-gcc-debug:
+  extends: .zen5-x86_64
+  script:
+    - ./automation/scripts/qubes-x86_64.sh tools-tests-pv 2>&1 | tee ${LOGFILE}
+  artifacts:
+    reports:
+      junit: tests-junit.xml
+  needs:
+    - *x86_64-test-needs
+    - alpine-3.24-x86_64-gcc-debug
+
+zen5-tools-tests-pvh-x86_64-gcc-debug:
+  extends: .zen5-x86_64
+  script:
+    - ./automation/scripts/qubes-x86_64.sh tools-tests-pvh 2>&1 | tee ${LOGFILE}
+  artifacts:
+    reports:
+      junit: tests-junit.xml
+  needs:
+    - *x86_64-test-needs
+    - alpine-3.24-x86_64-gcc-debug
+
 qemu-smoke-dom0-arm64-gcc:
   extends: .qemu-arm64
   script:
Signature · 1 line
2.55.0
#12 lore raw

PATCH 12/13 CI: add on-demand XTF test jobs on AMD Zen5

In reply to [email protected]

From: Denis Mukhin <[email protected]>

Add on-demand XTF test jobs: complete run of all tests and a standalone interrupt latency test (AVIC).

---
 automation/gitlab-ci/test.yaml            | 14 ++++++++++++++
 automation/scripts/include/xtf/qubes-hw21 |  1 +
 2 files changed, 15 insertions(+)
 create mode 120000 automation/scripts/include/xtf/qubes-hw21
automation/gitlab-ci/test.yaml +14 -0
index 05dbd0d3e07c..f65758cf3b96 100644
@@ -276,6 +276,20 @@
   tags:
     - qubes-hw21
 
+zen5-xtf-x86_64-gcc-debug:
+  extends:
+    - .zen5-x86_64
+    - .xtf-x86_64-gcc-debug
+    - .test-jobs-hardware-xtf
+
+zen5-hvm64-interrupt-latency:
+  extends:
+    - zen5-xtf-x86_64-gcc-debug
+    - .test-jobs-perf
+  variables:
+    SELECTED_XTF_ONLY: test-hvm64-interrupt-latency
+    TEST_TIMEOUT_OVERRIDE: 600
+
 # Test jobs
 build-each-commit-gcc:
   extends: .test-jobs-common
automation/scripts/include/xtf/qubes-hw21 new file +1 -0
new file mode 120000
index 000000000000..c6b7de7308b6
@@ -0,0 +1 @@
+qubes-x86_64
\ No newline at end of file
Signature · 1 line
2.55.0
#13 lore raw

PATCH 13/13 CI: do not merge: re-wire XTF repos to custom branches

In reply to [email protected]

From: Denis Mukhin <[email protected]>

Only for testing.

---
 automation/gitlab-ci/build.yaml | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
automation/gitlab-ci/build.yaml +6 -6
index 1f6228ba74ff..a9f85fd9915f 100644
@@ -867,8 +867,8 @@ xtf-arm64-gcc-debug:
   variables:
     CONTAINER: alpine:3.24-arm64v8
     ARCH: arm64
-    XTF_URI: https://gitlab.com/xen-project/fusa/xtf.git
-    XTF_BRANCH: xtf-arm
+    XTF_URI: https://gitlab.com/xen-project/people/dmukhin/xtf.git
+    XTF_BRANCH: xtf-arm64
     XTF_CONFIG: |
       CONFIG_GICV2=y
       CONFIG_SBSA_UART=y
@@ -881,8 +881,8 @@ xtf-x86_64-gcc-debug:
   variables:
     CONTAINER: alpine:3.24-x86_64
     ARCH: x86_64
-    XTF_URI: https://xenbits.xen.org/git-http/xtf.git
-    XTF_BRANCH: master
+    XTF_URI: https://gitlab.com/xen-project/people/dmukhin/xtf.git
+    XTF_BRANCH: x86_64-ipi-latency
     XTF_CONFIG:
 
 xtf-x86_64-clang-debug:
@@ -893,6 +893,6 @@ xtf-x86_64-clang-debug:
   variables:
     CONTAINER: debian:13-x86_64
     ARCH: x86_64
-    XTF_URI: https://xenbits.xen.org/git-http/xtf.git
-    XTF_BRANCH: master
+    XTF_URI: https://gitlab.com/xen-project/people/dmukhin/xtf.git
+    XTF_BRANCH: x86_64-ipi-latency
     XTF_CONFIG:
Signature · 1 line
2.55.0