[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] automation: avoid duplicated builds of staging branch
- To: Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
- From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
- Date: Mon, 17 Jul 2023 14:14:14 +0100
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xHZrwrJvMpH5U9bxsIskuSofd7Bh61t53/2vJsGvyWM=; b=adYmreCTzWjxay/fP2hVvHpXPhO8XGrD3R4QfI7B9c+znMeo8pojCJEaywEjW4Jk8LOhTz03/BClxFHZI34yePJDfme1LWwHneNP1uBV/uN8iNHItLTTB7FahsqqwWJ4v99pt8+ukyLWTn2vBAYwV7bjuJSnOTW9P9wTjtwazMBT9z87k2h4ovoPGhO6J/ho0GUzDhM+Z/0a1p8vUmn8K4d9JbcJC3pMIAfeVveZ2xZCEUtPooIQ6gwbsrof6TEobeFKFU00RQ2YPpgNDj/knFOxPBMRHVHhaZ33WI4xL5uyWE40fM3daGX7R7ZQ0QUl3STf4VHCwv7+yXS5kNN01A==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=W95i21I/YJYVwYdzhGzZpdfrDbvBImrdKFGpWeN1eH7371nQDkI+C2kBzbNms73rFkVilIMmL4DosFtd1nagB7X/Su15FZcs7Bw2ag+MCW0d0eHQh1hUoKdWCMLXiKLjeoReaQCFACnQN2GBZ4vgjzileVYz6DkFDzA6lsAMluDBoh7oKCbqEnSqSkDRrAnkzpLy74LqxmfVtVUBjLhEakzQcuxx8BVmFz6lobBDygrp78eTiLcTGJP4wCQRrjo3yz3dS7SoxAOmbS8Vy6vwb2FlWMFBX8BoWxD6d0twBFc8GLo6iEncSEKk0+295W8Z7awe3Dx/1hZ4sqnk/X4zeQ==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
- Cc: Doug Goldstein <cardoe@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, "committers@xxxxxxxxxxxxxx" <committers@xxxxxxxxxxxxxx>
- Delivery-date: Mon, 17 Jul 2023 13:14:44 +0000
- Ironport-data: A9a23:YWl2fqhLQI4E2Pw78fYRdGHyX161ihEKZh0ujC45NGQN5FlHY01je htvDW2PbKuONDT0Kdx3aY2y/UNVup6Bm9I3Sgtk/is0Figb9cadCdqndUqhZCn6wu8v7q5Ex 55HNoSfdpBcolv0/ErF3m3J9CEkvU2wbuOgTrWCYmYpHlUMpB4J0XpLg/Q+jpNjne+3CgaMv cKai8DEMRqu1iUc3lg8sspvkzsx+qyr0N8klgZmP6sT4waBzyB94K83fsldEVOpGuG4IcbiL wrz5OnR1n/U+R4rFuSknt7TGqHdauePVeQmoiM+t5mK2nCulARrukoIHKN0hXNsoyeIh7hMJ OBl7vRcf+uL0prkw4zxWzEAe8130DYvFLXveRBTuuTLp6HKnueFL1yDwyjaMKVBktubD12i+ tRfFQACYhehvNuH66nkccRX1tYAcPL0adZ3VnFIlVk1DN4AaLWaGeDv2oUd2z09wMdTAfzZe swVLyJ1awjNaAFOPVFRD48imOCvhT/0dDgwRFC9/PJrpTSMilIvluS0WDbWUoXiqcF9t0CUv G/ZuU/+BQkXLoe3wjuZ6HO8wOTImEsXXapLTeDnq6Uy2gf7Kmo7Cj8mS0ThvNCFyQ23ed1AJ BEy5g4glP1nnKCsZpynN/Gim1aBtwQZUsBdEMU77h+M0ave5wuFBmkCQSVFYdZgv8gzLRQ62 1nMk973CDhHtLyOVWnb5rqStSm1OyUeMSkFfyBsZQAM+dXkrak4hwjDSdslG6mw5vXuAi35y T2OqCk4hp0QgNQN2qH9+krI6xqnoZ3MTxIp6x/MdnKo6BtjY4yobJDu7kLUhcusN66cR1iF+ X0bwc6X6blUCYnXzHDUBuIQALuu+vCJdiXGhkJiFIUg8DLr/GO/eYdX43d1I0IB3ts4RAIFq XT74Wt5jKK/9lPwBUOrS+pd0/gX8JU=
- Ironport-hdrordr: A9a23:C4Rs66A8VEIhm6vlHemW55DYdb4zR+YMi2TDgXoBLiC9Ffbo9P xG/c566faasl0ssR0b8+xoW5PgfZq/z/FICNIqTNOftWDd0QOVxedZgLcKqAePJ8SRzIJgPQ gLSdkZNDVdZ2IK7/oTQWODYrMd/OU=
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 17/07/2023 2:09 pm, Marek Marczykowski-Górecki wrote:
> "staging" branch is mirrored (automatically or manually) to several
> repositories. Avoid building it several times to not waste runner
> resources.
>
> Signed-off-by: Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx>
> ---
> .gitlab-ci.yml | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
> index c8bd7519d5fb..c3b05e32636b 100644
> --- a/.gitlab-ci.yml
> +++ b/.gitlab-ci.yml
> @@ -2,6 +2,12 @@ stages:
> - build
> - test
>
> +workflow:
> + rules:
> + - if: '$CI_COMMIT_REF_NAME == "staging" && $CI_PROJECT_NAMESPACE !=
> "xen-project"'
> + when: never
> + - when: always
If we're doing this for staging, we should include staging-* and
stable-*. They're all the same from this point of view.
However, this does need double checking with the committers who use
gitlab regularly (CC'd). This doesn't happen to interfere with my
commit workflow (I use a separate branch called for-staging), but I
can't talk for others.
~Andrew
|