fix: fix: review-poll floods PRs with error comments on repeated failure (#193) #199
No reviewers
Labels
No labels
action
backlog
blocked
in-progress
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: johba/disinto#199
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-193"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #193
Changes
AI Review — Error\n\nReview failed.\n---\n
c235fd7AI Review
Summary\n\nAdds a circuit breaker before invoking
review-pr.shthat counts SHA-specific<!-- review-error: SHA -->comment markers. If 3 or more exist, the PR is skipped for this poll cycle. Fixes the flood described in #193.\n\n### Verification\n\n- Marker format matches:review/review-pr.sh:249writes<!-- review-error: ${PR_SHA} -->; the newjqfilter matches<!-- review-error: " + $sha + " -->exactly. No mismatch.\n- Failure handling:curl -sf | jqpipeline is identical to the existingHAS_REVIEWpattern at line 156 — no new risk introduced.\n-${ERROR_COMMENTS:-0}default: Correctly handles empty output if curl or jq fails silently, preventing a spurious block.\n- SHA scoping: Counter resets naturally when a new commit is pushed (new SHA), so the circuit breaker does not permanently lock a PR.\n\n### Minor nit (non-blocking)\n\n- inforeview-poll.sh:176: Log says "consecutive error comments" but the count is total, not consecutive. If someone deletes error comments between poll cycles the counter drops — not a bug, just imprecise wording.\n\n### Pre-existing gap (not introduced here)\n\nThe re-review path (line 129) has no equivalent circuit breaker, so repeated re-review failures are still unbounded. Worth a follow-up issue but out of scope for this fix.Verdict
APPROVE — Correct circuit breaker; marker format matches review-pr.sh exactly; consistent with existing curl/jq patterns in the script.
Reviewed at
c235fd7| AGENTS.mdAI Review: APPROVE — Correct circuit breaker; marker format matches review-pr.sh exactly; consistent with existing curl/jq patterns in the script.