ci: concurrency-cancel on same-branch pushes #43
Closed
goldstein
wants to merge 1 commit from
fix/ci-concurrency into main
pull from: fix/ci-concurrency
merge into: goldstein:main
goldstein:main
goldstein:feat/ui-jobs-list
goldstein:feat/ui-polish
goldstein:feat/ui
goldstein:feat/inline-use-case
goldstein:chore/mvp-deployed
goldstein:fix/ollama-extract-json
goldstein:fix/ollama-schema-in-prompt
goldstein:fix/ollama-loose-json
goldstein:fix/cache-volumes
goldstein:fix/ollama-schema-sanitise
goldstein:fix/surya-version
goldstein:fix/torch-cu124
goldstein:fix/host-network
goldstein:fix/docker-gpu-runtime
goldstein:fix/docker-readme
goldstein:fix/docker-distutils
goldstein:feat/mvp-deployed
goldstein:feat/default-model-qwen3
goldstein:feat/e2e-smoke
goldstein:feat/deploy-setup
goldstein:feat/dockerize
goldstein:feat/production-wiring
goldstein:feat/surya-client
goldstein:feat/ollama-client
goldstein:feat/pg-queue-adapter
goldstein:feat/worker-loop
goldstein:feat/rest-adapter
goldstein:feat/jobs-repo
goldstein:feat/config
goldstein:feat/alembic-init
goldstein:feat/pipeline-e2e-fakes
goldstein:feat/step-response-handler
goldstein:feat/step-reliability
goldstein:feat/step-genai
goldstein:feat/step-ocr
goldstein:feat/step-setup
goldstein:feat/ingestion
goldstein:feat/client-protocols
goldstein:feat/pipeline-core
goldstein:feat/provenance-mapper-verifier
goldstein:feat/provenance-normalize
goldstein:feat/segment-index
goldstein:feat/use-case-bank-statement-header
goldstein:feat/contracts-response
goldstein:feat/contracts-request
goldstein:feat/errors
goldstein:feat/scaffold
1 commit
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
| f17ca00bbb |
ci: add concurrency-cancel on push to the same PR / branch
Forgejo runner runs with `capacity: 1` (one job at a time across every
repo it serves — mammon, infoxtractor, etc.). Without a concurrency
block, rapid-fire pushes to the same PR branch all queue behind any
task already running, burning the runner for 30+ min on stale commits.
`concurrency: { group: ci-$ref, cancel-in-progress: true }` tells
Forgejo to cancel any still-queued or still-running CI on this ref as
soon as a newer commit shows up. Applies to both push and
pull_request events.
(Previous PR bodies noted a "trigger bug" where I saw no CI response
on a push — that was actually just the capacity=1 queue with no visible
signal; the CI always fired, just minutes later. Runner capacity bump
lives in infrastructure, not this repo.)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|