In progress
Description
A transient failure in the draft-to-ready write ends loopzero ready --wait immediately. Checks that depend on activation may remain skipped, and the command does not distinguish an unapplied write from a lost reply after GitHub accepted it.
Reproducer
At 29a3f882, use the test_ready_wait_reports_initial_draft_blocker_once fixture in tests/test_cli.py. Keep the approved draft with its required check skipped and inject a 502 only on the first gh pr ready invocation. The audit observed exit 1 after one activation attempt, no delay, and no PR read-back. Repeat with a subprocess timeout or reset at the same boundary.
Expected and acceptance
- After an infrastructure failure, re-read the same PR and head. If GitHub already activated it, resume the existing wait. If it is still eligible and still draft, allow one backed-off retry within the original budget.
- A moved head, new blocker, or unknown activation state must prevent a second write. Preserve the original local receipt and report an infrastructure failure distinctly if recovery cannot finish.
- Extend an existing parameterized draft-activation case without net new test lines or new flags.
Metadata
Metadata
Assignees
Labels
No labels
Activity
eowca commentedon Nov 26, 2026
eowca commentedon Nov 26, 2026
Lean ruling (26 Nov): #1777 closed with both review rounds spent. A fresh replacement (known mergeability, remaining-time subprocess budgets, same-head recheck after the probe) is commissioned only on new evidence that this transient failure recurs. Issue stays open.
eowca commentedon Nov 26, 2026
Recurrence check (26 Nov 17:30Z, builder for the Lean owner): no recurrence since the 12:39Z ruling, so no replacement is built.
statev2.sqliteorchestration_events, 12:39Z to 17:14Z, about 114k events): nogh pr ready <n> ... failed:output, nomarkPullRequestReadyForReviewerror, and noready --waitoutput that mentions a rate limit, HTTP 5xx or timeout. The only matches were search scripts. Control: the same log holds 12 successfulmarked ready; waiting for required checksoutputs (first at 12:41Z) and 56ready --waitmentions between 16:10Z and 16:59Z, so draft activations ran during the 16:20Z shared REST quota exhaustion (reset 16:43Z), and none of them failed.pr ready: none reports an activation failure.The issue stays open under the ruling.