From nobody Mon Feb 9 10:12:28 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1627311880; cv=none; d=zohomail.com; s=zohoarc; b=IlSmB7ggzuNcPsLn85nBCBwby3kQ+uWtkcAV5DnfPC2jP9qW8jdf9+XBCsG7MJaXOyNJicUTy3S+K7rrOc/IR5QTIbtuR1FbQntvKANKBpmERkFiLkP+Xhiqu0Juc3joSzFKmWBp8bWxn+gUyHye2zulJbqW6CRYHvcf30qaAEc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1627311880; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=slgGxAsxuhtdVRDSkYHJEvP8LFK322faI8oQZGFBAXs=; b=gZFZi6WsNDen6mEK4jlHFbJHzQVLp3T1n7YWcACtOSgl6JoXRDqW5kflF5xiL/XAhZdVj3rQA1kjhhjGyPThHyhpkPD8e9NwpxDM2GSTLo7yoCoxtPYSOuKvj3Fdh7A6s3kr4BU38SsIT/MVNhKc8R2PrDwn8T5I2wQztrGpQAY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1627311880710277.8311476626933; Mon, 26 Jul 2021 08:04:40 -0700 (PDT) Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-153-tEnKbpO_NE2JZXmNvZgMMQ-1; Mon, 26 Jul 2021 11:04:36 -0400 Received: by mail-wm1-f69.google.com with SMTP id k4-20020a05600c1c84b0290210c73f067aso696064wms.6 for ; Mon, 26 Jul 2021 08:04:36 -0700 (PDT) Return-Path: Return-Path: Received: from x1w.. (122.red-83-42-66.dynamicip.rima-tde.net. [83.42.66.122]) by smtp.gmail.com with ESMTPSA id d24sm13775875wmb.42.2021.07.26.08.04.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jul 2021 08:04:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1627311879; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=slgGxAsxuhtdVRDSkYHJEvP8LFK322faI8oQZGFBAXs=; b=KTtkvGqAZwMVi78vc9uvGepETjCiBAoMniCqh74ooatdGYbsMSbUFVgWLcSiVnSbzYpL/V kvpKhaGftLf8Dcbso18jnaq5PjD4rNEV3UU7OOBF7NJszvWGCI0rSUIkwkNr06avYPTktp 8L3YhBLzY7bsey8Q1POftEPOZyM4dFQ= X-MC-Unique: tEnKbpO_NE2JZXmNvZgMMQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=slgGxAsxuhtdVRDSkYHJEvP8LFK322faI8oQZGFBAXs=; b=VI3k1irk0ef7FY0hTcOY63YtjxajEXCHsIO33WutP0BCe1qCmzYZhkGQX+WCp+kqKS oAdWZOiCdP9IfdJ0M3MohA7Mt+gz/qIWpCbBFD5MJdf0pQjERWaIhc2AxYTuW3xhYBLV 6DVSZuMnuF4oECaE7LwG9pOBNlU2g4I4NScHoK1z1EIgOTjnyY4dMZJf1tCbUd5bscvr LeEp7OJ94AU3wiUNo2Rc7UGo9NB9HOzAEc467ZCwXOx200puLabOYSmSNicyqqv8LMRq 88E19fEKt2JKLw+k7i9suFANlKQPyfa6+c0rg21qGWa/yE9n95aucE7SEX8+DIAPk18H uK+w== X-Gm-Message-State: AOAM531bHB7MEgM5tO1y1Ku3CZT/0Ndhi9FIsRfTkJgqKf7z6B9Oa9C7 1rlBjyX6znhNN6jSiPFRv+tP40kDb7QR0yWLbcLF7zOiyD9xQGgqZzirD4f3UspERmHVBCZ4jE4 +4V0E+723WXXeOg== X-Received: by 2002:adf:f908:: with SMTP id b8mr20271732wrr.302.1627311875636; Mon, 26 Jul 2021 08:04:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJZlsWpsLS1NPp5Nss4W4Vu73JatZGwGLI3ItNgVJEY0AiQV+rEdhwZbOkZioWHM+hSlFzKw== X-Received: by 2002:adf:f908:: with SMTP id b8mr20271710wrr.302.1627311875503; Mon, 26 Jul 2021 08:04:35 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Thomas Huth , Bin Meng , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= Subject: [PATCH-for-6.1 v4 1/4] docs: Document GitLab custom CI/CD variables Date: Mon, 26 Jul 2021 17:04:26 +0200 Message-Id: <20210726150429.1216251-2-philmd@redhat.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210726150429.1216251-1-philmd@redhat.com> References: <20210726150429.1216251-1-philmd@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1627311882476100001 We introduced the QEMU_CI_AVOCADO_TESTING variable in commit f56bf4caf ("gitlab: Run Avocado tests manually (except mainstream CI)"), but forgot to document it properly. Do it now. Suggested-by: Thomas Huth Reviewed-by: Daniel P. Berrang=C3=A9 Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Thomas Huth Reviewed-by: Willian Rampazzo --- docs/devel/ci.rst | 40 ++++++++++++++++++++++++++++++++++++++++ .gitlab-ci.yml | 19 ++----------------- 2 files changed, 42 insertions(+), 17 deletions(-) diff --git a/docs/devel/ci.rst b/docs/devel/ci.rst index b3bf3ef615b..53df04afb7f 100644 --- a/docs/devel/ci.rst +++ b/docs/devel/ci.rst @@ -8,6 +8,46 @@ found at:: =20 https://wiki.qemu.org/Testing/CI =20 +Custom CI/CD variables +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +QEMU CI pipelines can be tuned setting some CI environment variables. + +Set variable globally in the user's CI namespace +------------------------------------------------ + +Variables can be set globally in the user's CI namespace setting. + +For further information about how to set these variables, please refer to:: + + https://docs.gitlab.com/ee/ci/variables/#create-a-custom-variable-in-the= -ui + +Set variable manually when pushing a branch or tag to the user's repository +--------------------------------------------------------------------------- + +Variables can be set manually when pushing a branch or tag, using +git-push command line arguments. + +Example setting the QEMU_CI_EXAMPLE_VAR variable: + +.. code:: + + git push -o ci.variable=3D"QEMU_CI_EXAMPLE_VAR=3Dvalue" myrepo mybranch + +For further information about how to set these variables, please refer to:: + + https://docs.gitlab.com/ee/user/project/push_options.html#push-options-f= or-gitlab-cicd + +Here is a list of the most used variables: + +QEMU_CI_AVOCADO_TESTING +~~~~~~~~~~~~~~~~~~~~~~~ +By default, tests using the Avocado framework are not run automatically in +the pipelines (because multiple artifacts have to be downloaded, and if +these artifacts are not already cached, downloading them make the jobs +reach the timeout limit). Set this variable to have the tests using the +Avocado framework run automatically. + Jobs on Custom Runners =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6dc5385e697..9762dda2ee3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,24 +16,9 @@ # QEMU CI jobs are based on templates. Some templates provide # user-configurable options, modifiable via configuration variables. # -# These variables can be set globally in the user's CI namespace -# setting: -# https://docs.gitlab.com/ee/ci/variables/#create-a-custom-variable-in-the= -ui -# or set manually each time a branch/tag is pushed, as a git-push -# command line argument: -# https://docs.gitlab.com/ee/user/project/push_options.html#push-options-f= or-gitlab-cicd +# See https://qemu-project.gitlab.io/qemu/devel/ci.html#custom-ci-cd-varia= bles +# for more information. # -# Example setting the QEMU_CI_EXAMPLE_VAR variable: -# -# git push -o ci.variable=3D"QEMU_CI_EXAMPLE_VAR=3Dvalue" myrepo mybranch -# -# ---------------------------------------------------------------------- -# -# List of environment variables that can be use to modify the set -# of jobs selected: -# -# - QEMU_CI_AVOCADO_TESTING -# If set, tests using the Avocado framework will be run =20 include: - local: '/.gitlab-ci.d/qemu-project.yml' --=20 2.31.1