From 77ed9534b7e38af4dd62b51c3f3cc8e928eb41a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Wed, 16 Feb 2022 16:30:01 +0100 Subject: [PATCH 1/2] build: prevent concurrent CI and CQ workflow runs Use concurrency groups to prevent new runs from being started while a previous job is already running. This can happen when a lot of unrelated jobs are pending because of runner exhaustion. --- .github/workflows/auto-start-ci.yml | 2 ++ .github/workflows/commit-queue.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/auto-start-ci.yml b/.github/workflows/auto-start-ci.yml index 3c5ad5948cb11f..57051fd1f3da03 100644 --- a/.github/workflows/auto-start-ci.yml +++ b/.github/workflows/auto-start-ci.yml @@ -8,6 +8,8 @@ on: # ./doc/contributing/commit-queue.md - cron: '*/5 * * * *' +concurrency: auto-start-ci + env: NODE_VERSION: lts/* diff --git a/.github/workflows/commit-queue.yml b/.github/workflows/commit-queue.yml index f4aee6dd37a3ee..a873d852e223c8 100644 --- a/.github/workflows/commit-queue.yml +++ b/.github/workflows/commit-queue.yml @@ -13,6 +13,8 @@ on: schedule: - cron: '*/5 * * * *' +concurrency: commit-queue + env: NODE_VERSION: lts/* From e2254f0604bb839c60b4c881365bf31ed63b0fa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Wed, 16 Feb 2022 16:48:43 +0100 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Mestery --- .github/workflows/auto-start-ci.yml | 2 +- .github/workflows/commit-queue.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-start-ci.yml b/.github/workflows/auto-start-ci.yml index 57051fd1f3da03..2416561ab7ebf3 100644 --- a/.github/workflows/auto-start-ci.yml +++ b/.github/workflows/auto-start-ci.yml @@ -8,7 +8,7 @@ on: # ./doc/contributing/commit-queue.md - cron: '*/5 * * * *' -concurrency: auto-start-ci +concurrency: ${{ github.workflow }} env: NODE_VERSION: lts/* diff --git a/.github/workflows/commit-queue.yml b/.github/workflows/commit-queue.yml index a873d852e223c8..bbaf67a0e7e779 100644 --- a/.github/workflows/commit-queue.yml +++ b/.github/workflows/commit-queue.yml @@ -13,7 +13,7 @@ on: schedule: - cron: '*/5 * * * *' -concurrency: commit-queue +concurrency: ${{ github.workflow }} env: NODE_VERSION: lts/*