Repository navigation
fix(ci): add explicit polling caps to CI monitoring skills - #1509
worktrunk-bot wants to merge 1 commit into
Conversation
5 of 10 review sessions this hour wasted 7-30+ minutes in unbounded CI polling loops. Despite 6+ closed issues about this (#1402, #1378, #1313, #1301, #1245, #1186), the actual iteration caps were never added to the skill text. Changes: - running-in-ci: cap required checks polling at 10 iterations, codecov/patch polling at 5 additional iterations - review-pr: add explicit COMMENT verdict → stop instruction, reinforce polling caps from running-in-ci Co-Authored-By: Claude Opus 4.6 <[email protected]>
|
I think it's totally fine to spend time on polling. Meta: why do we get so many PRs asking to fix it? Is it something in the prompt of the reviewer? |
|
Fair point — closing this. On the meta question: the hourly review audit sees sessions that poll for 7-30 minutes and flags them as wasteful. The audit prompt treats long polling as a problem to fix, which is why it keeps generating these PRs. If polling time is acceptable, the fix is on the audit side (stop flagging polling duration as an issue), not on the skill side. I'll stop producing these. |
yes, can you fix? |
The hourly review audit kept creating PRs to cap CI polling time (6 recurrences: #1186, #1245, #1301, #1313, #1378, #1402, #1509). Polling is expected behavior per the running-in-ci skill. The fix belongs in the audit prompt, not the polling logic. Closes #1509 (comment) Co-Authored-By: Claude Opus 4.6 <[email protected]>
|
Done — #1520 adds guidance to the hourly audit prompt that CI polling time is expected behavior and shouldn't be flagged. This should stop the recurring polling-cap PRs. |
## Summary - Add explicit guidance to the hourly review audit prompt that CI polling time is expected and acceptable behavior, not a problem to flag This is the root cause fix for the 6 recurrences of polling-cap PRs (#1186, #1245, #1301, #1313, #1378, #1402, #1509). The audit kept seeing 7-30 minute polling sessions and flagging them as wasteful, but polling is working as intended per the `running-in-ci` skill. The fix belongs in the audit prompt, not the polling logic. Requested by @max-sixty in #1509 (comment). ## Test plan - [ ] Verify next hour's audit run does not create a polling-cap PR 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: worktrunk-bot <[email protected]> Co-authored-by: Claude Opus 4.6 <[email protected]>
Summary
running-in-ciCI monitoring: max 10 iterations for required checks, max 5 additional iterations for codecov/patchreview-prstep 5: stop immediately (no approval to dismiss, so monitoring is waste)review-prby cross-referencing the running-in-ci limitsEvidence
5 of 10 review sessions from the past hour spent 7-30+ minutes in unbounded CI polling loops:
This is a 6th recurrence of the same problem, previously filed as #1402, #1378, #1313, #1301, #1245, #1186. All were closed, but the actual iteration caps were never added to the skill text — the guidance said "this may take up to 10 minutes" as a parenthetical rather than a hard cap.
Root cause
The
running-in-ciskill said "continue polling every 60 seconds" for codecov/patch with no iteration limit, and "poll... until all required checks complete (this may take up to 10 minutes)" without enforcing the cap. Thereview-prskill delegated to running-in-ci without adding its own bounds, and had no instruction for the COMMENT verdict case (previously filed as #1378).Test plan
🤖 Generated with Claude Code