From patchwork Wed Jul 13 11:22:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Zhukov X-Patchwork-Id: 1655959 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=yandex.ru header.i=@yandex.ru header.a=rsa-sha256 header.s=mail header.b=TPrfXp6r; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=2605:bc80:3010::133; helo=smtp2.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LjZzL1NhBz9s07 for ; Wed, 13 Jul 2022 21:25:02 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 2D10D41592; Wed, 13 Jul 2022 11:25:00 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 2D10D41592 Authentication-Results: smtp2.osuosl.org; dkim=fail reason="signature verification failed" (1024-bit key, unprotected) header.d=yandex.ru header.i=@yandex.ru header.a=rsa-sha256 header.s=mail header.b=TPrfXp6r X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pup7SJOTCn8E; Wed, 13 Jul 2022 11:24:59 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp2.osuosl.org (Postfix) with ESMTPS id E0F5F40C5E; Wed, 13 Jul 2022 11:24:57 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org E0F5F40C5E Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id B2901C0033; Wed, 13 Jul 2022 11:24:57 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 1C318C0033 for ; Wed, 13 Jul 2022 11:24:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id E17CB42400 for ; Wed, 13 Jul 2022 11:24:55 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org E17CB42400 Authentication-Results: smtp4.osuosl.org; dkim=pass (1024-bit key) header.d=yandex.ru header.i=@yandex.ru header.a=rsa-sha256 header.s=mail header.b=TPrfXp6r X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vnQYWE9TIITt for ; Wed, 13 Jul 2022 11:24:54 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org A8957423EA Received: from forward103p.mail.yandex.net (forward103p.mail.yandex.net [77.88.28.106]) by smtp4.osuosl.org (Postfix) with ESMTPS id A8957423EA for ; Wed, 13 Jul 2022 11:24:53 +0000 (UTC) Received: from iva5-344f444591f3.qloud-c.yandex.net (iva5-344f444591f3.qloud-c.yandex.net [IPv6:2a02:6b8:c0c:687:0:640:344f:4445]) by forward103p.mail.yandex.net (Yandex) with ESMTP id 780E25A48BD; Wed, 13 Jul 2022 14:24:37 +0300 (MSK) Received: by iva5-344f444591f3.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id 4PGL3EdNPz-OahOHTUZ; Wed, 13 Jul 2022 14:24:37 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1657711477; bh=/z2j3OEgge06HFpC7NkPp1M3H/t8baNqVaL5dzW7V8M=; h=Message-Id:Date:Cc:Subject:To:From; b=TPrfXp6racgsES7Sy2/JrnnUstegmO6TFEMViP6VEFgWY7lwZx63BV5s5VEYnICHW 2Dywv2rx7IV7cKs8kZdNp2RR2xr/LR75vrWR1Zn6yJiOpXA4BhoY09LLKBPjxRnsrv ORF9MoiWfWnJ2bG8Vai+ckbm8xCpfL/ueAoNCf1M= Authentication-Results: iva5-344f444591f3.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru From: Igor Zhukov To: dev@openvswitch.org Date: Wed, 13 Jul 2022 18:22:42 +0700 Message-Id: <20220713112242.15833-1-fsb4000@yandex.ru> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Cc: Igor Zhukov Subject: [ovs-dev] [PATCH ovn] Cancel previous runs in the PR when you push new commits X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" From: Igor Zhukov While implementing https://github.com/ovn-org/ovn/pull/139 I sometimes pushed several commits quickly and after that I noticed that previous run was still in progress and the most recent run was waiting in line. I googled some solutions and I found the answer: https://stackoverflow.com/a/72408109/4544798 Github docs: https://docs.github.com/en/actions/using-jobs/using-concurrency Signed-off-by: Igor Zhukov Submitted-at: https://github.com/ovn-org/ovn/pull/145 Acked-by: Ales Musil --- .github/workflows/ovn-kubernetes.yml | 4 ++++ .github/workflows/test.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/ovn-kubernetes.yml b/.github/workflows/ovn-kubernetes.yml index c05bbd3f9..431e47660 100644 --- a/.github/workflows/ovn-kubernetes.yml +++ b/.github/workflows/ovn-kubernetes.yml @@ -8,6 +8,10 @@ on: # Run Sunday at midnight - cron: '0 0 * * 0' +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + env: GO_VERSION: "1.17.6" K8S_VERSION: v1.23.3 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e0de7c60e..56e8ba870 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,6 +7,10 @@ on: # Run Sunday at midnight - cron: '0 0 * * 0' +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: build-linux: env: