-
Notifications
You must be signed in to change notification settings - Fork 25
ci: add timeout and debug logging to claude-pr-review workflow #705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: add timeout and debug logging to claude-pr-review workflow #705
Conversation
| - name: Run Claude Code Action | ||
| if: steps.check.outputs.is_member == 'true' | ||
| timeout-minutes: 15 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Workflow Changes: Good additions
The timeout-minutes: 15 and ACTIONS_STEP_DEBUG: true are sensible additions for preventing workflow hangs and debugging issues. These align with the PR description.
- Add 15-minute timeout to prevent infinite hangs - Enable ACTIONS_STEP_DEBUG for more detailed logging - Helps diagnose why workflow hangs at 'Setting up Claude Code' step
3fb56b2 to
b7973b3
Compare
|
Claude finished @diegomrsantos's task —— View job Code Review CompleteTodo List:
Review SummaryThis PR adds two important safety features to the Changes Made:
Detailed Analysis1. Code Quality ✅
2. Timeout Value Consideration
|
|
I tried a workaround to make the review run again: change the PR to draft and then to ready again. In my operator dg PR, it didn't work. The job was stuck for hours in "Setup claude" https://github.com/sigp/anchor/actions/runs/18719488501. But in this PR the trick worked. |
|
So I tried the trick once again in the other PR and seems it fails immediately if there's another one running https://github.com/sigp/anchor/actions/runs/18719488501/job/53387663631. Or maybe it was just a coincidence |
Actually it did work in the second time #692 (comment), I was checking the previous job that got cancelled after 6 hours |
Issue Addressed
Fixes workflow hanging indefinitely during Claude Code Action execution.
Proposed Changes
Added safety measures to the
claude-pr-review.ymlworkflow:Timeout Protection (
timeout-minutes: 15):Debug Logging (
ACTIONS_STEP_DEBUG: true):Additional Info
Observed Behavior:
With these changes, the workflow will fail fast (15 minutes) instead of hanging, and provide detailed logs to identify the issue.