Skip to content

fix(ci): ban gh pr checks --watch alongside gh run watch - #1498

Merged
max-sixty merged 1 commit into
mainfrom
hourly/review-23077253025
Mar 14, 2026
Merged

max-sixty merged 1 commit into
mainfrom
hourly/review-23077253025

Conversation

@worktrunk-bot

Copy link
Copy Markdown
Collaborator

Summary

  • Explicitly bans gh pr checks --watch in the running-in-ci skill, alongside the existing gh run watch ban

Evidence

Run 23077253025 (claude-review for PR #1497) used gh pr checks 1497 --watch with a 600000ms timeout, which hung for ~55 minutes until the workflow was cancelled. Session log excerpt:

Bash: {"command":"gh pr checks 1497 --watch 2>&1 | tail -5","description":"Wait for CI checks to complete","timeout":600000}

After the --watch call timed out/was cancelled, the bot tried sleep 60 && gh pr checks 1497 — then the workflow was cancelled entirely.

Root cause

The running-in-ci skill says:

Avoid gh run watch — it can hang indefinitely.

But gh pr checks --watch has the same blocking behavior and wasn't explicitly banned. The bot followed the letter of the rule (didn't use gh run watch) while violating its spirit (used an equivalent blocking command).

This is a recurrence of the pattern from #1402 and #1316 — CI polling commands that block indefinitely.

Test plan

  • Verify the updated text is clear and covers both commands

🤖 Generated with Claude Code

The running-in-ci skill banned `gh run watch` but not `gh pr checks --watch`,
which has the same hang behavior. Run 23077253025 used `--watch` and hung
for ~55 minutes until the workflow was cancelled.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@worktrunk-bot worktrunk-bot added the claude-behavior Issues with Claude CI bot behavior label Mar 14, 2026
@worktrunk-bot

Copy link
Copy Markdown
Collaborator Author

LGTM — clean fix, well-motivated by the incident evidence. The updated wording reads naturally and covers both blocking commands in one sentence.

@max-sixty
max-sixty merged commit 5bc7604 into main Mar 14, 2026
22 checks passed
@max-sixty
max-sixty deleted the hourly/review-23077253025 branch March 14, 2026 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claude-behavior Issues with Claude CI bot behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants