Queue superseded e2e runs instead of cancelling in-progress ones

Agents push to main every few minutes and a sharded run takes about 30,
so cancel-in-progress meant a busy main could never complete a verdict.
With cancel-in-progress off, the in-flight run finishes and GitHub
collapses queued runs to the newest pending one, so intermediate pushes
still skip without killing the run that is about to report.
This commit is contained in:
rcourtman 2026-07-08 08:29:08 +01:00
parent b05d255576
commit a9ac8251ba

View file

@ -22,11 +22,12 @@ on:
- '.github/workflows/test-e2e.yml'
workflow_dispatch:
# Keep only the newest commit's verdict in flight per ref; superseded runs
# are cancelled rather than burning four shard jobs each.
# Let the in-progress run finish (pushes land here every few minutes, and
# cancelling would mean a busy main never completes a verdict); queued runs
# collapse to the newest pending one, so intermediate pushes skip.
concurrency:
group: e2e-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
cancel-in-progress: false
permissions:
contents: read