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.
This commit is contained in:
Pavlo Ratushnyi
2026-10-01 22:27:25 +02:00
parent bef197ec83
commit a9c49236b7
+10
View File
@@ -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"