From nobody Mon Feb 9 00:31:01 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=1627038492; cv=none; d=zohomail.com; s=zohoarc; b=b23jCUmwqDFyeF/2fHVvFgNgk8ElG1OoKBDzr/Lj6NqptUepUXD1da3huh088ekpeQU1676qa9u+I0RiwMJt02G6yk1AQUQgOib88iX5vnuqWVHf+GPSIdMmUWdIJlY2JGgtXPwa3/EI5GlC3lFJsgXEmVPtuzRhUsmCT++u1CU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1627038492; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=uuNQOS7IFKHEZ6XIucVdSxVJJVJQXJSBvjsX07/cOh8=; b=QTk2/7IXfKvj63FOxuZToqGY8rDDmC7JeJQ3mgSqI/0bf/3RoHReguHu8SRGQGM/WCkv6wpGD9mdEuwVkLfZW668L6RnDbV+m1U9LNjkr0thXJlXn0tiKsJNRc/Q1+TnbbM3HdDJ5ajS42Q9EQrxlM8/RcKYRiEIU+cYjXJrUG0= 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 1627038492506437.10378884682495; Fri, 23 Jul 2021 04:08:12 -0700 (PDT) Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-59-vI8QX_TKMcGeepz_DpaWmg-1; Fri, 23 Jul 2021 07:08:08 -0400 Received: by mail-wr1-f71.google.com with SMTP id d14-20020adfe2ce0000b029013a357d7bdcso835465wrj.18 for ; Fri, 23 Jul 2021 04:08:08 -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 z6sm5496223wmp.1.2021.07.23.04.08.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jul 2021 04:08:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1627038491; 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=uuNQOS7IFKHEZ6XIucVdSxVJJVJQXJSBvjsX07/cOh8=; b=YaUwKgd8JAeI6T6T6l5cyE4jRZkfRaHvZn6nIxbhu/OkEP2fAdLxxEBYZGn/SFXeXVanIS U6NGckHxiDsoo5/XdxmNO10sNn83Ovl8nMpuHC5Gmo9l1LzM8NZ43tFpablrVpwBJiIc54 HJ1NP3R0qNYqBDXX0JZg3uethHRONdw= X-MC-Unique: vI8QX_TKMcGeepz_DpaWmg-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=uuNQOS7IFKHEZ6XIucVdSxVJJVJQXJSBvjsX07/cOh8=; b=r2zIMUIBeUMC8zNccS32ki4s3aFz7tl+R2AT8h7KbNxpxIyGRDR0R9kRukhQbPd2UO LKc768nrBaPV0CvtPnMI8XcQYDtKot2DHyQ9P7APoshvqMyw9Cv0V7UfcDQfdTvlYzMl z1NQWJMiQq3NnIpY1nGFvlV54wKA73579gC74tqmtMfzo5Ehqq0Hu5ac4gGqX7WqilHq /KcEyvmRcIVWW8tUh1pQaUOySV+Xtz99MHZp6zUhSbvhyowpnB253Dcbyx/nA9Z4Un07 /YTSVYroxLoXlW43Hf3yHqqjzayakjLwfGm433qzEtKZwe335fwrWbTGA4XXOgHGpVYV 1k6A== X-Gm-Message-State: AOAM530G2rBcmdPZKANiRrwoSnbxxo6nbOcgeG7Nw+iC4P+tcchrNTSu 9Ih0Zvr3tTsYXZ8yJiWZTTniduOFm/jjAqi1mL+vRSfW0d9GsXuUKD9jlNsOU9RKcN5iU4iQVMu rd1kLw5F6NMTeog== X-Received: by 2002:a5d:6d8f:: with SMTP id l15mr4676567wrs.158.1627038487347; Fri, 23 Jul 2021 04:08:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxP3mG+GuXTevCVV0LTYjQ9ixYNMx2XAwCl0CaOZlkJWlY6CY1X3JMumFu2kgTgoxcMWDjxZw== X-Received: by 2002:a5d:6d8f:: with SMTP id l15mr4676533wrs.158.1627038487135; Fri, 23 Jul 2021 04:08:07 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Willian Rampazzo , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , Thomas Huth , Bin Meng , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Wainer dos Santos Moschetta , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH-for-6.1 v3 1/4] docs: Document GitLab custom CI/CD variables Date: Fri, 23 Jul 2021 13:07:57 +0200 Message-Id: <20210723110800.855648-2-philmd@redhat.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210723110800.855648-1-philmd@redhat.com> References: <20210723110800.855648-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: 1627038492941100001 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 Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Daniel P. Berrang=C3=A9 --- 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