Skip to content

ci: stop the review workflow cancelling itself - #12

Closed
ahrzb wants to merge 2 commits into
masterfrom
ci/fix-review-self-trigger
Closed

ci: stop the review workflow cancelling itself#12
ahrzb wants to merge 2 commits into
masterfrom
ci/fix-review-self-trigger

Conversation

@ahrzb

@ahrzb ahrzb commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Every /review was being killed by the reviewer's own comment.

Cause (confirmed in the run history):

30010567822  actor=ahrzb        issue_comment  → CANCELLED   ← the real review
30010586182  actor=claude[bot]  issue_comment  → skipped     ← 16s later, killed it

track_progress: true makes claude[bot] post a tracking comment. That's another issue_comment: created, its body contains "/review", so it passed the gate and started a second run — and cancel-in-progress: true then cancelled the human-triggered review.

Fix: gate on a non-Bot comment author, so the workflow can't be re-triggered by its own bot comments.

Also drops allowed_bots, which is now dead config (bot comments can't pass the gate at all). If we later want agents to /review, that needs a targeted exception rather than the blanket bot allowance.

🤖 Generated with Claude Code

ahrzb and others added 2 commits July 23, 2026 17:37
track_progress posts a tracking comment as claude[bot]. That fired
issue_comment again, matched the /review gate, and cancel-in-progress killed
the human-triggered review (confirmed: run 30010567822 by ahrzb cancelled 16s
later by 30010586182 by claude[bot]).

Gate on a non-Bot comment author. allowed_bots is now dead config, so drop it.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Blanket bot exclusion also blocked claude-agent-ahrzb[bot] from requesting
reviews. Only claude[bot] posts comments (the loop source); the agent App
only pushes, so exempting it cannot feed the self-cancel loop. Restores
allowed_bots, which is live again for that path.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@claude-agent-ahrzb

Copy link
Copy Markdown

Closing for now — we're not using the AI CI review workflow at the moment, so the self-cancel it fixes is moot.

Worth knowing if it's ever turned back on: the workflow cancels its own review, because claude[bot]'s track_progress comment re-fires issue_comment, matches /review, and cancel-in-progress kills the run already in flight. The fix on this branch (excluding bot-authored comments, with our agent App exempted) still applies.

@claude

claude Bot commented Jul 28, 2026

Copy link
Copy Markdown

Claude Code is working…

I'll analyze this and get back to you.

View job run

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.

1 participant