All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefano Stabellini <sstabellini@kernel.org>
To: Denis Mukhin <dmukhin@ford.com>
Cc: xen-devel@lists.xenproject.org, andrew.cooper3@citrix.com,
	 anthony.perard@vates.tech, jbeulich@suse.com, julien@xen.org,
	 michal.orzel@amd.com, roger@xenproject.org,
	sstabellini@kernel.org,  dmukhin@xen.org
Subject: Re: [PATCH v1 08/13] CI: enable on-demand XTF on qubes runners
Date: Wed, 2 Dec 2026 18:24:26 -0800 (PST)	[thread overview]
Message-ID: <50e08e51-e304-60d2-4405-53d01a2ebb8c@kernel.org> (raw)
In-Reply-To: <20261105013701.719658-9-dmukhin@ford.com>

On Wed, 4 Nov 2026, dmukhin@ford.com wrote:
> From: Denis Mukhin <dmukhin@ford.com>
> 
> 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.

very nice!!


> Signed-off-by: Denis Mukhin <dmukhin@ford.com>
> ---
>  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
> 
> diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml
> index 9ca93842dfe7..4d7d5e3d9a11 100644
> --- a/automation/gitlab-ci/test.yaml
> +++ b/automation/gitlab-ci/test.yaml
> @@ -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
>  
> diff --git a/automation/scripts/include/xtf/qubes-hw1 b/automation/scripts/include/xtf/qubes-hw1
> new file mode 120000
> index 000000000000..c6b7de7308b6
> --- /dev/null
> +++ b/automation/scripts/include/xtf/qubes-hw1
> @@ -0,0 +1 @@
> +qubes-x86_64
> \ No newline at end of file
> diff --git a/automation/scripts/include/xtf/qubes-hw11 b/automation/scripts/include/xtf/qubes-hw11
> new file mode 120000
> index 000000000000..c6b7de7308b6
> --- /dev/null
> +++ b/automation/scripts/include/xtf/qubes-hw11
> @@ -0,0 +1 @@
> +qubes-x86_64
> \ No newline at end of file
> diff --git a/automation/scripts/include/xtf/qubes-hw2 b/automation/scripts/include/xtf/qubes-hw2
> new file mode 120000
> index 000000000000..c6b7de7308b6
> --- /dev/null
> +++ b/automation/scripts/include/xtf/qubes-hw2
> @@ -0,0 +1 @@
> +qubes-x86_64
> \ No newline at end of file
> diff --git a/automation/scripts/include/xtf/qubes-hw22 b/automation/scripts/include/xtf/qubes-hw22
> new file mode 120000
> index 000000000000..c6b7de7308b6
> --- /dev/null
> +++ b/automation/scripts/include/xtf/qubes-hw22
> @@ -0,0 +1 @@
> +qubes-x86_64
> \ No newline at end of file
> diff --git a/automation/scripts/include/xtf/qubes-hw3 b/automation/scripts/include/xtf/qubes-hw3
> new file mode 120000
> index 000000000000..c6b7de7308b6
> --- /dev/null
> +++ b/automation/scripts/include/xtf/qubes-hw3
> @@ -0,0 +1 @@
> +qubes-x86_64
> \ No newline at end of file

Setting

      XTF_TARGET: qubes-x86_64

once in .adl-x86_64 would cover every Qubes runner, including zen5,
without any symlinks.



> diff --git a/automation/scripts/include/xtf/qubes-x86_64 b/automation/scripts/include/xtf/qubes-x86_64
> new file mode 100644
> index 000000000000..d183dd33e4af
> --- /dev/null
> +++ b/automation/scripts/include/xtf/qubes-x86_64
> @@ -0,0 +1,54 @@
> +#!/bin/bash
> +#
> +# XTF test utilities (qubes-* hardware x86_64 runners).
> +#
> +
> +# Target-specific environment overrides.
> +function xtf_init()
> +{
> +    export XEN_BINARY="${XEN_BINARY:-${WORKDIR}/xen}"
> +
> +    XEN_CMDLINE="${XEN_CMDLINE:-loglvl=all guest_loglvl=all dom0_mem=4G console_timestamps=boot}"
> +    export EXTRA_XEN_CMDLINE="${XEN_CMDLINE} ${XEN_CONSOLE}"

this overwrites the job's EXTRA_XEN_CMDLINE, for example "fred" would be
dropped


> +    export TFTP="/scratch/gitlab-runner/tftp"
> +    export CONTROLLER="control@thor.testnet"
> +}
> +
> +# Perform target-specific XTF environment setup.
> +function xtf_setup_host()
> +{
> +    cat > "$TFTP/grub.cfg" <<EOF
> +serial --port=auto --speed=115200 --word=8 --parity=no --stop=1
> +terminal_input serial
> +terminal_output serial
> +
> +insmod multiboot2
> +
> +echo Loading Xen...
> +multiboot2 (http)/gitlab-ci/xen $XEN_CMDLINE
> +
> +echo Loading XTF...
> +module2 (http)/gitlab-ci/xtf
> +
> +echo Booting Xen...
> +boot
> +    EOF

EOF is indented and does not end the heredoc


> +
> +    cat > $TFTP/boot.ipxe <<EOF
> +#!ipxe
> +kernel /gitlab-ci/xen $XEN_CMDLINE || reboot
> +module /gitlab-ci/xtf || reboot
> +boot
> +EOF
> +
> +    cp ${XEN_BINARY} $TFTP/xen
> +    cp ${XTF_BINARY} $TFTP/xtf
> +
> +    export TEST_CMD="ssh $CONTROLLER console"
> +
> +    trap "ssh $CONTROLLER poweroff" EXIT
> +
> +    # Boot the system
> +    ssh $CONTROLLER gitlabci poweron

As this powercycle the board once per test, do you have an estimate for
how long it takes to run this?


> +}
> -- 
> 2.55.0
> 


  reply	other threads:[~2026-12-03  2:24 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-05  1:36 [PATCH v1 00/13] CI: updates for XTF jobs dmukhin
2026-11-05  1:36 ` [PATCH v1 01/13] gitignore: exclude QEMU testing artifacts dmukhin
2026-12-03  1:45   ` Stefano Stabellini
2026-11-05  1:36 ` [PATCH v1 02/13] CI: unify hypervisor console parametrization dmukhin
2026-12-03  1:34   ` Stefano Stabellini
2026-11-05  1:36 ` [PATCH v1 03/13] CI: unify naming for hypervisor extra arguments dmukhin
2026-12-03  1:35   ` Stefano Stabellini
2026-11-05  1:36 ` [PATCH v1 04/13] CI: enable XTF build jobs dmukhin
2026-12-03  1:44   ` Stefano Stabellini
2026-11-05  1:36 ` [PATCH v1 05/13] CI: enable XTF status codes dmukhin
2026-12-03  1:58   ` Stefano Stabellini
2026-11-05  1:36 ` [PATCH v1 06/13] CI: enable binutils for alpine and debian containers dmukhin
2026-12-03  2:01   ` Stefano Stabellini
2026-11-05  1:36 ` [PATCH v1 07/13] CI: rework to allow hardware runners dmukhin
2026-12-03  2:18   ` Stefano Stabellini
2026-11-05  1:36 ` [PATCH v1 08/13] CI: enable on-demand XTF on qubes runners dmukhin
2026-12-03  2:24   ` Stefano Stabellini [this message]
2026-11-05  1:36 ` [PATCH v1 09/13] CI: enable on-demand IPI latency test on AMD Zen2/Zen3 runners dmukhin
2026-12-03  2:27   ` Stefano Stabellini
2026-11-05  1:36 ` [PATCH v1 10/13] CI: x86: attempt to fixup flaky tests dmukhin
2026-12-03  2:29   ` Stefano Stabellini
2026-11-05  1:36 ` [PATCH v1 11/13] CI: add test jobs on AMD Zen5 dmukhin
2026-11-05  1:37 ` [PATCH v1 12/13] CI: add on-demand XTF " dmukhin
2026-11-05  1:37 ` [PATCH v1 13/13] CI: do not merge: re-wire XTF repos to custom branches dmukhin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50e08e51-e304-60d2-4405-53d01a2ebb8c@kernel.org \
    --to=sstabellini@kernel.org \
    --cc=andrew.cooper3@citrix.com \
    --cc=anthony.perard@vates.tech \
    --cc=dmukhin@ford.com \
    --cc=dmukhin@xen.org \
    --cc=jbeulich@suse.com \
    --cc=julien@xen.org \
    --cc=michal.orzel@amd.com \
    --cc=roger@xenproject.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.