Improve Claude review reliability#14526
Conversation
The claude-code-base-action defaults to timeout_minutes=10, which is insufficient for large PRs. The review of PR facebook#14499 timed out after 600 seconds (exit code 124) while Claude was mid-review. Set timeout_minutes=60 for both auto-review and manual-review jobs.
✅ clang-tidy: No findings on changed linesCompleted in 0.0s. |
✅ Claude Code ReviewAuto-triggered after CI passed — reviewing commit 020ff0f Code Review: ci: increase Claude review timeout from 10 to 60 minutesPR: ci: increase Claude review timeout from 10 to 60 minutes SummaryThis PR makes two changes to the Claude review CI workflow:
Overall AssessmentLGTM. Straightforward CI reliability improvement. The changes are well-motivated and correctly implemented. Detailed FindingsFinding 1: Timeout increase — Correct and appropriateSeverity: No issue (positive change) Adding Finding 2: Retry loop — Correct implementationSeverity: No issue (positive change)
Finding 3 (Suggestion):
|
Exported PRs (e.g. from Meta's internal export pipeline) can trigger CI within milliseconds of PR creation. When this happens, the workflow_run payload has pull_requests=[], and the SHA-based fallback lookup also misses because the PR isn't registered yet. Fix by retrying the SHA lookup up to 5 times with a 10s delay, giving GitHub up to ~50 seconds to associate the PR. Also increase per_page from 30 to 100 to reduce the chance of missing the PR in busy repos.
|
@xingbowang has imported this pull request. If you are a Meta employee, you can view this in D98636217. |
Problems
(1) Claude review times out on large PRs
The
claude-code-base-actiondefaults totimeout_minutes=10. Large PRs (e.g. #14499) get killed with exit code 124 after 600 seconds mid-review.(2) Exported PRs never get reviewed
PRs exported from Meta's internal pipeline (e.g. #14515) trigger CI within milliseconds of PR creation. The
workflow_runpayload haspull_requests=[], and the SHA-based fallback also misses because GitHub hasn't registered the PR yet — so Claude review never fires.Fixes
timeout_minutes: "60"on both auto-review and manual-reviewRun Claudestepsper_pagefrom 30 to 100.