Merge pull request 'fix: enforce single-threaded pipeline per project' (#40) from fix/single-threaded-per-project into main

Reviewed-on: https://codeberg.org/johba/disinto/pulls/40
This commit is contained in:
johba 2026-03-17 10:24:03 +01:00
commit 18f57c5cc4

View file

@ -328,6 +328,7 @@ for i in $(seq 0 $((BACKLOG_COUNT - 1))); do
else
log "#${ISSUE_NUM} PR #${EXISTING_PR} exists (CI: ${CI_STATE}, waiting)"
WAITING_PRS="${WAITING_PRS:-}${WAITING_PRS:+, }#${EXISTING_PR}"
continue
fi
fi
@ -337,6 +338,13 @@ for i in $(seq 0 $((BACKLOG_COUNT - 1))); do
break
done
# Single-threaded per project: if any issue has an open PR waiting for review/CI,
# don't start new work — let the pipeline drain first
if [ -n "$READY_ISSUE" ] && [ -n "${WAITING_PRS:-}" ]; then
log "holding #${READY_ISSUE} — waiting for open PR(s) to land first: ${WAITING_PRS}"
exit 0
fi
if [ -z "$READY_ISSUE" ]; then
log "no ready issues (all blocked by unmerged deps)"
exit 0