Skip to content

fix: cap CI polling and skip monitoring on self-authored PRs - #1188

Closed
worktrunk-bot wants to merge 1 commit into
mainfrom
nightly/review-22338923898
Closed

worktrunk-bot wants to merge 1 commit into
mainfrom
nightly/review-22338923898

Conversation

@worktrunk-bot

Copy link
Copy Markdown
Collaborator

Summary

  • Cap CI polling in pr-review Step 5 at 5 iterations (~5 min) instead of unbounded "poll until complete"
  • Explicitly skip CI monitoring for self-authored PRs where no approval exists to dismiss

Evidence

Across 5 review sessions on 2026-02-23, the bot spent 30–40 minutes of CI compute on sleep/poll loops:

Closes #1186

Test plan

  • Verify next review session exits after ≤5 polls
  • Verify self-authored PR reviews skip Step 5 entirely

🤖 Generated with Claude Code

The review bot's Step 5 ("Monitor CI") had two issues wasting compute:

1. Unbounded polling — "poll until complete" with no cap led to 6–13 minutes
   of sleep loops per review. Capped at 5 iterations (~5 min).

2. Self-authored PR monitoring — the bot monitored CI for PRs it can't
   approve, with no possible action on failure. Now explicitly skipped.

Closes #1186

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@max-sixty

Copy link
Copy Markdown
Owner

I think the existed state is good; and compute is cheap. can we revert the changes and add a comment on this?

@worktrunk-bot

Copy link
Copy Markdown
Collaborator Author

Fair enough — closing this. The existing unbounded polling is fine given compute costs are low, and the CI results are always visible on the PR regardless.

@max-sixty

Copy link
Copy Markdown
Owner

but please add a comment explaining our logic instead

@worktrunk-bot

Copy link
Copy Markdown
Collaborator Author

Done — opened #1189 to add the rationale comment to Step 5 of the pr-review skill.

@max-sixty
max-sixty deleted the nightly/review-22338923898 branch June 18, 2026 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Review bot wastes CI compute with unbounded polling and monitors self-authored PRs

2 participants