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.
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 |
) Fixes workflow hanging indefinitely during Claude Code Action execution. Added safety measures to the `claude-pr-review.yml` workflow: 1. **Timeout Protection** (`timeout-minutes: 15`): - Prevents workflow from running indefinitely - Terminates the step after 15 minutes if it hangs 2. **Debug Logging** (`ACTIONS_STEP_DEBUG: true`): - Enables detailed debug output for troubleshooting - Helps diagnose where the action hangs Co-Authored-By: diego <diego@sigmaprime.io>
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.