fix(tools/git): ci-queue-wait.sh crashes (JSONDecodeError) on 404 for not-yet-pushed branch #872

Closed
opened 2026-07-23 16:35:45 +00:00 by jason.woltje · 0 comments
Owner

The mandatory pre-push CI queue guard ci-queue-wait.sh crashes on --purpose push for any branch not yet on the remote: gitea_get_branch_head_sha() does curl -fsSL .../branches/, Gitea returns 404, curl -f fails then empty stdin then python json.load raises JSONDecodeError. The guard runs BEFORE the first push, so every new feature branch first push is blocked. Fix: treat 404 branch-absent as queue-clear (exit 0); genuine API errors still fail-closed. Upstreams Mos host-local tooling-patch kit (2026-07-23) Patch 3.

The mandatory pre-push CI queue guard ci-queue-wait.sh crashes on --purpose push for any branch not yet on the remote: gitea_get_branch_head_sha() does curl -fsSL .../branches/<branch>, Gitea returns 404, curl -f fails then empty stdin then python json.load raises JSONDecodeError. The guard runs BEFORE the first push, so every new feature branch first push is blocked. Fix: treat 404 branch-absent as queue-clear (exit 0); genuine API errors still fail-closed. Upstreams Mos host-local tooling-patch kit (2026-07-23) Patch 3.
Mos closed this issue 2026-07-23 17:08:58 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaicstack/stack#872