All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrangé" <berrange@redhat.com>
To: "Alex Bennée" <alex.bennee@linaro.org>
Cc: qemu-devel@nongnu.org, "Paul Durrant" <paul@xen.org>,
	"Dmitry Osipenko" <dmitry.osipenko@collabora.com>,
	"Philippe Mathieu-Daudé" <philmd@linaro.org>,
	"Sriram Yagnaraman" <sriram.yagnaraman@ericsson.com>,
	"Gustavo Romero" <gustavo.romero@linaro.org>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Zhao Liu" <zhao1.liu@intel.com>,
	"Kohei Tokunaga" <ktokunaga.mail@gmail.com>,
	"Akihiko Odaki" <odaki@rsg.ci.i.u-tokyo.ac.jp>,
	"Thomas Huth" <thuth@redhat.com>,
	"BALATON Zoltan" <balaton@eik.bme.hu>,
	"Peter Maydell" <peter.maydell@linaro.org>,
	qemu-arm@nongnu.org, qemu-s390x@nongnu.org,
	"Li-Wen Hsu" <lwhsu@freebsd.org>,
	"David Woodhouse" <dwmw2@infradead.org>,
	"Ed Maste" <emaste@freebsd.org>
Subject: Re: [PATCH v2 16/18] gitlab: make custom runners need QEMU_CI to run
Date: Mon, 17 Nov 2025 10:22:17 +0000	[thread overview]
Message-ID: <aRr3WQfFnD1gpXdH@redhat.com> (raw)
In-Reply-To: <20251113102525.1255370-17-alex.bennee@linaro.org>

On Thu, Nov 13, 2025 at 10:25:22AM +0000, Alex Bennée wrote:
> In addition to not being triggered by schedule we should follow the
> same rules about QEMU_CI. One day we may figure out how to fold the
> custom runner rules into the .base_job_template but today is not that
> day.
> 
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
> ---
>  .gitlab-ci.d/custom-runners/debian-13-ppc64le.yml    | 2 +-
>  .gitlab-ci.d/custom-runners/ubuntu-24.04-aarch64.yml | 2 +-
>  .gitlab-ci.d/custom-runners/ubuntu-24.04-s390x.yml   | 2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/.gitlab-ci.d/custom-runners/debian-13-ppc64le.yml b/.gitlab-ci.d/custom-runners/debian-13-ppc64le.yml
> index 6492d013de8..be73c14b95e 100644
> --- a/.gitlab-ci.d/custom-runners/debian-13-ppc64le.yml
> +++ b/.gitlab-ci.d/custom-runners/debian-13-ppc64le.yml
> @@ -11,7 +11,7 @@
>      - ppc64le
>    rules:
>      - if: '$CI_PROJECT_NAMESPACE == "qemu-project" && $CI_COMMIT_BRANCH =~ /^staging/'
> -    - if: '$PPC64LE_RUNNER_AVAILABLE && $CI_PIPELINE_SOURCE != "schedule"'
> +    - if: '$PPC64LE_RUNNER_AVAILABLE && $CI_PIPELINE_SOURCE != "schedule" && $QEMU_CI'
>    before_script:
>      - source scripts/ci/gitlab-ci-section
>      - section_start setup "Pre-script setup"
> diff --git a/.gitlab-ci.d/custom-runners/ubuntu-24.04-aarch64.yml b/.gitlab-ci.d/custom-runners/ubuntu-24.04-aarch64.yml
> index c8adb8171c0..7a30a18d0bc 100644
> --- a/.gitlab-ci.d/custom-runners/ubuntu-24.04-aarch64.yml
> +++ b/.gitlab-ci.d/custom-runners/ubuntu-24.04-aarch64.yml
> @@ -11,7 +11,7 @@
>      - aarch64
>    rules:
>      - if: '$CI_PROJECT_NAMESPACE == "qemu-project" && $CI_COMMIT_BRANCH =~ /^staging/'
> -    - if: '$AARCH64_RUNNER_AVAILABLE && $CI_PIPELINE_SOURCE != "schedule"'
> +    - if: '$AARCH64_RUNNER_AVAILABLE && $CI_PIPELINE_SOURCE != "schedule" && $QEMU_CI'
>    before_script:
>      - source scripts/ci/gitlab-ci-section
>      - section_start setup "Pre-script setup"
> diff --git a/.gitlab-ci.d/custom-runners/ubuntu-24.04-s390x.yml b/.gitlab-ci.d/custom-runners/ubuntu-24.04-s390x.yml
> index fcb49ae884d..c30816a806e 100644
> --- a/.gitlab-ci.d/custom-runners/ubuntu-24.04-s390x.yml
> +++ b/.gitlab-ci.d/custom-runners/ubuntu-24.04-s390x.yml
> @@ -11,7 +11,7 @@
>      - s390x
>    rules:
>      - if: '$CI_PROJECT_NAMESPACE == "qemu-project" && $CI_COMMIT_BRANCH =~ /^staging/'

As a separate commit this should be changed to

   - if: '$CI_PROJECT_NAMESPACE == $QEMU_CI_UPSTREAM && $CI_COMMIT_BRANCH =~ /^staging/'

$QEMU_CI_UPSTREAM defaults to 'qemu-project' but devs can override it
to point to their own repo, in order to test operation as if it were
in upstream.

> -    - if: '$S390X_RUNNER_AVAILABLE && $CI_PIPELINE_SOURCE != "schedule"'
> +    - if: '$S390X_RUNNER_AVAILABLE && $CI_PIPELINE_SOURCE != "schedule" && $QEMU_CI'
>    before_script:
>      - source scripts/ci/gitlab-ci-section
>      - section_start setup "Pre-script setup"

This means the job will never get run by default in upstream context
unless QEMU_CI is set. This is different from base.yml where in upstream
context, jobs all run by default.

ie in upstream we implicitly have QEMU_CI==2 by default, while in
forks we implicitly have QEMU_CI==0 / unset.

To get this matching better requires:

 rules:
   - if: '$CI_PROJECT_NAMESPACE == $QEMU_CI_UPSTREAM && $CI_COMMIT_BRANCH =~ /^staging/'
   - if: '$QEMU_CI != "1" && $QEMU_CI != "2" && $CI_PROJECT_NAMESPACE != $QEMU_CI_UPSTREAM'
     when: never
   - if: '$S390X_RUNNER_AVAILABLE && $CI_PIPELINE_SOURCE != "schedule" && $QEMU_CI == "1"'
     when: manual
   - if: '$S390X_RUNNER_AVAILABLE && $CI_PIPELINE_SOURCE != "schedule"'


With regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|



  reply	other threads:[~2025-11-17 10:23 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-13 10:25 [PATCH v2 00/18] testing/next cleanups (docker, functional) - pre-PR Alex Bennée
2025-11-13 10:25 ` [PATCH v2 01/18] tests/docker: drop --link from COPYs in emsdk docker Alex Bennée
2025-11-13 10:25 ` [PATCH v2 02/18] libvirt-ci: bump libvirt-ci to latest version Alex Bennée
2025-11-13 10:34   ` Daniel P. Berrangé
2025-11-13 11:23     ` Alex Bennée
2025-11-13 10:25 ` [PATCH v2 03/18] tests/lcitool: update ENV stazas outputted by refresh Alex Bennée
2025-11-13 10:25 ` [PATCH v2 04/18] tests/docker: add coreutils to the package list Alex Bennée
2025-11-13 10:25 ` [PATCH v2 05/18] gitlab: add initial ppc64le custom-runner test Alex Bennée
2025-11-13 10:25 ` [PATCH v2 06/18] docs/about/emulation: update assets for uftrace plugin documentation Alex Bennée
2025-11-13 10:25 ` [PATCH v2 07/18] tests: move test_xen assets to share.linaro.org Alex Bennée
2025-11-13 10:25 ` [PATCH v2 08/18] tests: move test_virt " Alex Bennée
2025-11-13 10:25 ` [PATCH v2 09/18] tests: move test_netdev_ethtool " Alex Bennée
2025-11-13 10:25 ` [PATCH v2 10/18] tests: move test_kvm_xen " Alex Bennée
2025-11-13 10:25 ` [PATCH v2 11/18] tests: move test_kvm " Alex Bennée
2025-11-13 10:51   ` Thomas Huth
2025-11-13 10:25 ` [PATCH v2 12/18] tests: move test_virt_gpu " Alex Bennée
2025-11-13 10:51   ` Thomas Huth
2025-11-13 10:25 ` [PATCH v2 13/18] gitlab: use template for ubuntu-24.04-s390x jobs Alex Bennée
2025-11-17 10:27   ` Daniel P. Berrangé
2025-11-13 10:25 ` [PATCH v2 14/18] gitlab: simplify the ubuntu-24.04-aarch64 rules Alex Bennée
2025-11-17 10:26   ` Daniel P. Berrangé
2025-11-13 10:25 ` [PATCH v2 15/18] gitlab: suppress custom runners being triggered by schedule Alex Bennée
2025-11-13 10:25 ` [PATCH v2 16/18] gitlab: make custom runners need QEMU_CI to run Alex Bennée
2025-11-17 10:22   ` Daniel P. Berrangé [this message]
2025-11-17 10:37     ` Alex Bennée
2025-11-13 10:25 ` [PATCH v2 17/18] gitlab: make the schedule rules a bit more general Alex Bennée
2025-11-13 10:25 ` [PATCH v2 18/18] gitlab: add a weekly container building job Alex Bennée

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=aRr3WQfFnD1gpXdH@redhat.com \
    --to=berrange@redhat.com \
    --cc=alex.bennee@linaro.org \
    --cc=balaton@eik.bme.hu \
    --cc=dmitry.osipenko@collabora.com \
    --cc=dwmw2@infradead.org \
    --cc=emaste@freebsd.org \
    --cc=gustavo.romero@linaro.org \
    --cc=ktokunaga.mail@gmail.com \
    --cc=lwhsu@freebsd.org \
    --cc=odaki@rsg.ci.i.u-tokyo.ac.jp \
    --cc=paul@xen.org \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=philmd@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-s390x@nongnu.org \
    --cc=sriram.yagnaraman@ericsson.com \
    --cc=thuth@redhat.com \
    --cc=zhao1.liu@intel.com \
    /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.