From nobody Mon Nov 17 16:05:44 2025 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=1604530013; cv=none; d=zohomail.com; s=zohoarc; b=Ep4QqBh4+NxRn0eJdl1uPLF89F7iVhmv1gE88+Wi2PD2bfSMHqRX9ViWu/y5sRB34N/Ox3eVRQ548PxWHfBEwLy1FYEBbULwpSPRImmBo1+CLOX889+iVSNGQ8br6Ev0szU94gQzPnaN9fgqBt4mattC/gr6XqnY5DB/1QE8mcM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1604530013; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=FpLX9DyDtPv5J9Kb6VvonpOVnvS/v0Bt0CgJMTWK7g4=; b=E5mbdgfITIliK5pcOMvny/rsJqF9Ms5Z/trOJbbnBSQzBOHGFp6Ai11g8F1I0XzGmpdBuFnK0LDJ+ElUDf7mqZVd9xBwbWhKtkQ9FD9qd7GR9fsTxuJuBwhrFyn+B3WEmtnCdmrUXtX+hEIbGR7OqkGTMhds/sLL4WnwCX7Ls3s= 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) header.from= 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 1604530013341729.6820866463074; Wed, 4 Nov 2020 14:46:53 -0800 (PST) Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-285-2_uL4rUENb2mTW0N7p1n3Q-1; Wed, 04 Nov 2020 17:46:50 -0500 Received: by mail-wm1-f71.google.com with SMTP id 3so1802658wms.9 for ; Wed, 04 Nov 2020 14:46:49 -0800 (PST) Return-Path: Return-Path: Received: from x1w.redhat.com (234.red-83-42-66.dynamicip.rima-tde.net. [83.42.66.234]) by smtp.gmail.com with ESMTPSA id f7sm4892993wrx.64.2020.11.04.14.46.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Nov 2020 14:46:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1604530012; 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=FpLX9DyDtPv5J9Kb6VvonpOVnvS/v0Bt0CgJMTWK7g4=; b=SSu1Dkt7gBqgXCz2q8oORNItcFJ95Ay5RmkpWFkVebTs6sxAcjSsEQKLVYrXve2KT4DQ5r QHRg4nGuc78f3MbzmeIJov4Yoqg1Ote7dYcxai2kA2RZy9ggLfUgMjUeMmzwuzEG1/2FiH wWldc2H7n687flhCyPUUMPDQ6FoRS3M= X-MC-Unique: 2_uL4rUENb2mTW0N7p1n3Q-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=FpLX9DyDtPv5J9Kb6VvonpOVnvS/v0Bt0CgJMTWK7g4=; b=SUhuXoplT6AfyjAXjibj0X+CwmjdrF7HA0PimDbJdaBefoCFAhpw1AK6nH5Fei+IKL XP4cvo9OnGrLJzwX3JJ2B0MX9/BswQg3v3IbPZDXaSLxKCxh842ixhtJA7wkMHYmPvGT BasiOzYLPM5TPEStbGzcEpy44ILAF9Odr34QdSHaMBDhjZJpeuHVIcDnkkRcZrw76r1A /k6W09ZbDnlEXDrGc3n4c4sbqYFq1q4tmqVP+UIJbNkkrO9FWf37KE6GtPgkh6SS7LMj HtT5nyVkSnG1LOYh2U6D17lwC19YKBDKY53chl4MarZ2A4ktiz4WrsRvI9C49gKnqHoN /hMQ== X-Gm-Message-State: AOAM531pQPB0V/hVks3b7aqtwpR8T42VNp2PFdNgxv7wbRhHpZBTH0PS 0dRFpZBuAbRt/CLz6pvnIMnr/sYd3QhR/nAm5uJv1ZfrRyJlVttb+MqzDaNNE+oljhCd2RZ2cKQ PDlqTVuXXsTzA5Q== X-Received: by 2002:adf:f74e:: with SMTP id z14mr244705wrp.312.1604530008659; Wed, 04 Nov 2020 14:46:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWTMC/bJuH0Z5OZNDyRUvcEPOfkIl0/Y9YW1vv2gMMsssf/xwYgpj+BZKuFUdP0aCo3rpSbA== X-Received: by 2002:adf:f74e:: with SMTP id z14mr244687wrp.312.1604530008509; Wed, 04 Nov 2020 14:46:48 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: "Daniel P . Berrange" , John Snow , Cornelia Huck , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Thomas Huth , Peter Maydell Subject: [RFC PATCH 9/9] gitlab-ci: Add rules to skip building/testing native jobs Date: Wed, 4 Nov 2020 23:45:58 +0100 Message-Id: <20201104224558.3384595-10-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201104224558.3384595-1-philmd@redhat.com> References: <20201104224558.3384595-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) Add rules to skip various build/test jobs. The following tags are available to skip CI jobs: - user (user-mode jobs) - system (system-mode jobs) - centos (jobs based on CentOS distribution image) - debian (... Debian) - fedora (... Fedora) - ubuntu (... Ubuntu) - crypto (jobs testing the crypto feature) - tci (jobs testing TCI feature) - fuzz (fuzzer job) - integration (integration tests) Developers can combine tags in the SKIP_BUILD variable when pushing a branch (or tag) to repositories. Examples: $ git push -o ci.variable=3D"SKIP_BUILD=3Duser" myrepo= mybranch $ git push -o ci.variable=3D"SKIP_BUILD=3Duser,debian,crypto,fuzz" myrepo= mybranch References: - https://docs.gitlab.com/ee/ci/yaml/#rulesif - https://docs.gitlab.com/ee/user/project/push_options.html#push-options-fo= r-gitlab-cicd Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- .gitlab-ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 961070d2cbe..432daccf590 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -21,6 +21,30 @@ include: =20 .native_common_job: image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:latest + rules: + # If the if statement is true, the job is excluded from a pipeline. + - if: ($TARGETS =3D~ /softmmu/ || $CONFIGURE_ARGS =3D~ /disable-user/)= && $SKIP_BUILD =3D~ /system/ + when: never + - if: ($TARGETS =3D~ /user/ || $CONFIGURE_ARGS =3D~ /disable-system/) = && $SKIP_BUILD =3D~ /user/ + when: never + - if: $IMAGE =3D~ /^centos/ && $SKIP_BUILD =3D~ /centos/ + when: never + - if: $IMAGE =3D~ /^debian/ && $SKIP_BUILD =3D~ /debian/ + when: never + - if: $IMAGE =3D~ /^fedora/ && $SKIP_BUILD =3D~ /fedora/ + when: never + - if: $IMAGE =3D~ /^ubuntu/ && $SKIP_BUILD =3D~ /ubuntu/ + when: never + - if: $CI_JOB_NAME =3D~ /crypto/ && $SKIP_BUILD =3D~ /crypto/ + when: never + - if: $CI_JOB_NAME =3D~ /tci/ && $SKIP_BUILD =3D~ /tci/ + when: never + - if: $CI_JOB_NAME =3D~ /fuzz/ && $SKIP_BUILD =3D~ /fuzz/ + when: never + - if: $CI_JOB_NAME =3D~ /^acceptance/ && $SKIP_BUILD =3D~ /integration/ + when: never + # In all other cases, the job is added to the pipeline. + - when: on_success =20 .native_build_job: extends: .native_common_job --=20 2.26.2