ci: make Claude Review advisory (never block PRs)#16
Conversation
The review step exited non-zero when claude-code-action hit --max-turns, turning the PR check red even though the review ran and posted findings. Add continue-on-error so the review is advisory: it posts what it finds but never blocks a merge. Also raise --max-turns 5 -> 20 so the review has room to finish its analysis (with track_progress the 5-turn budget was exhausted before completing); timeout-minutes: 15 remains the wall-clock guard. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Claude finished @matthieugouel's task in 37s —— View job Review
The change is correct and well-reasoned. Two findings worth noting:
This is the intentional tradeoff, and the PR description acknowledges it. But it means infrastructure failures (missing secrets, OAuth token expiry, GitHub API outages) will also show green and leave no obvious signal. Since this is a review-only action with no side effects beyond posting comments, the risk is low — a silent failure just means no review comments appear. Acceptable tradeoff for an advisory job.
No issues found with security (no new secrets or injection surfaces introduced), CLAUDE.md conventions (those apply to Rust source, not CI), or the bot-filter logic (unchanged). LGTM. |
Problem
The
Claude Reviewcheck went red on #14 with:anthropics/claude-code-actionexits non-zero when it hits--max-turns, and that propagates to the job — so the PR check fails even though the review ran and posted its findings. A review running out of turns is not a signal that the PR is bad, so it shouldn't block a merge.Fix
continue-on-error: trueon the review step → the review is advisory: it still posts its comments, but neither a turn-limit stop nor any other action error turns CI red.--max-turns 5 → 20so the review has room to actually finish its analysis (withtrack_progress: truethe 5-turn budget was spent before it completed).timeout-minutes: 15stays as the wall-clock guard.Notes
claude-review.ymltriggers only onpull_request: opened, so this won't re-run on the already-opened PRs; it applies to PRs opened after merge. Existing red checks can be cleared by re-running the job or re-opening.claude-review.yml, so no mirror is needed there.🤖 Generated with Claude Code