From ed7689d1c2d6d4ac4a85bb1175148b7601a32984 Mon Sep 17 00:00:00 2001 From: Axel Heider Date: Tue, 30 Jan 2024 01:12:14 +0100 Subject: [PATCH] CI: avoid runs from different PR cancelling each other Signed-off-by: Axel Heider --- .github/workflows/test-hw.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-hw.yml b/.github/workflows/test-hw.yml index 136f72a9..7672aa91 100644 --- a/.github/workflows/test-hw.yml +++ b/.github/workflows/test-hw.yml @@ -75,8 +75,12 @@ jobs: fail-fast: true matrix: march: [nehalem, armv7a, armv8a] - # do not run concurrently with previous jobs in PRs, but do run concurrently in the build matrix - concurrency: camkes-hw-pr-${{ strategy.job-index }} + # Reduce the load on the machine queue by cancelling any older jobs from + # the current PR that are still running. This usually happens if there are + # new pushes to the PR's branch without waiting for the runs to finish. As + # a side effect, pushing becomes a convenient way to cancel all the runs + # that are stuck and would only be stopped by the timeout eventually. + concurrency: pr-${{ github.event.number }}-${{ strategy.job-index }} steps: - name: Get machine queue uses: actions/checkout@v4