Repository navigation
ci(review-reviewers): cap job at 30 min so setup hangs don't waste 6 hours - #474
Closed
tend-agent wants to merge 1 commit into
Closed
tend-agent wants to merge 1 commit into
tend-agent wants to merge 1 commit into
Conversation
…hours Without a job-level `timeout-minutes`, an upstream `claude-code-action` setup hang burns the GHA 360-min default. Observed twice in 12 days: 75 leg-min on 2026-05-02 (apt-get DNS outage) and 360 leg-min on 2026-05-13 (apt-get silent hang). Successful legs run 3-13 min (p99 ≈ 10 min); 30 min caps hangs while leaving 3x headroom for legitimate deep-investigation legs. Co-Authored-By: Claude Opus 4.7 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Cap
review-reviewersjob duration at 30 min so action-setup hangs no longer burn the full 360-min GHA default.Evidence
Two occurrences in the past 12 days where the upstream
anthropics/claude-code-actionsetup steps (apt-get install bubblewrap socat,curlClaude install) hung past their internal retries:azure.archive.ubuntu.comDNS outage during the apt-get retry loop ate ~25 min per leg across all 3 matrix legs (~75 leg-min total). Recorded in #365.14:43:27Z(bun install completes) and20:43:14Z(GHA cancel at the 360-min default). No session log was uploaded — the job never reached the Claude session.Why 30 min
30-day distribution of successful leg durations:
p99 ≈ 10 min, max successful = 13 min. 30 min is 3× p99 — plenty of headroom for the long worktrunk legs that occasionally hit 16 min during deep investigation, while killing structural hangs early. The root cause sits in upstream
claude-code-action's setup steps (not in tend'saction.yaml); a cap here is the per-workflow mitigation that doesn't depend on upstream fixes.Scope
This PR only caps
review-reviewers.yaml(the immediate-cost workflow). The generatedtend-*workflows share the same risk profile — any consumer's tend run can hang at the same setup step. Adding atimeout-minutesdefault to the generator templates is a larger, separate concern worth landing once this targeted fix is validated.Test plan
review-reviewerscron tick completes within the 30-min cap