From a9c49236b7b0ad1df43d4d6bbb1135cfa5e73c8d Mon Sep 17 00:00:00 2001 From: Pavlo Ratushnyi Date: Thu, 1 Oct 2026 22:27:25 +0200 Subject: [PATCH] Two pushes in a row no longer queue two full gate runs The workflow triggers on every push with no concurrency group, so pushing twice in a minute runs the whole gate set twice, in series, and the second run's numbers are the ones a reviewer reads while the first is still scrolling. concurrency is now set per workflow+ref with cancel-in-progress: false. The false is the considered half: a finished run is the evidence a merge decision gets read later, so cancelling the run that is already executing throws away proof to save nothing. GitHub still drops the runs that were only queued. Verified by executing the file again rather than trusting the schema: actionlint 1.7.12 exits 0, and act (0.2.89, catthehacker/ubuntu:act-latest) plays all five jobs green on this commit - lint (shellcheck 0.11.0, pinned), source (unit 59/59, integration 34/34, smoke 19/19), image (openwaf:ci 261 MB, compose smoke 43 passed / 0 failed), console (33 assertions, 0 failed), freshness (pin 2026-10 current). 95 assertion lines across the three live gates, same as before the change. --- .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6441f00..331a582 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,6 +43,16 @@ on: permissions: contents: read +# Two pushes in a row should not queue two full gate runs behind each other. +# cancel-in-progress is deliberately false: a run that finishes is the evidence +# a merge decision gets read later, and cancelling the run that is already +# executing throws that away to save nothing. GitHub keeps the newest pending +# run and drops the ones still waiting behind it, which is the part worth +# dropping. +concurrency: + group: ci-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: false + env: DOTNET_NOLOGO: "1" DOTNET_CLI_TELEMETRY_OPTOUT: "1"