Skip to content

ci(triage): time out hung Oz triage runs instead of waiting 6h - #13249

Merged
zkochan merged 3 commits into
pnpm:mainfrom
bholmesdev:oz-triage-hang-timeout
Jul 23, 2026
Merged

zkochan merged 3 commits into
pnpm:mainfrom
bholmesdev:oz-triage-hang-timeout

Conversation

@bholmesdev

@bholmesdev bholmesdev commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

What

Adds a 20 minute timeout-minutes to the Triage with Oz agent step, plus a 30 minute job-level backstop.

Why

Eight triage runs have hung at the Oz step until GitHub's 6 hour job ceiling cancelled them:

runs 105, 114, 115, 116, 118, 131, 133, 139.

Each one hangs before the agent takes its first turn, so nothing is written to the issue. In run 131 the last output is the run ID at 16:42:49Z, then six hours of silence, then cleanup reaping an orphaned oz process. These issues did not get a state: label as a result: #13067, #13095, #13104, #13106, #13179, #13201, #13228, #13236.

Successful triage runs finish in a median of ~3 minutes, with 13 minutes the slowest observed, so a 20 minute step timeout has enough headroom.

I'll see if we can investigate on Warp's end. One interesting note: these hangs occurred Blacksmith runner blacksmith-4vcpu-ubuntu-2404, not on GitHub runners using ubuntu-latest. It's a small sample though; 8/39 hangs on Blacksmith and 0/15 on GHA.

Test plan

Config-only change to an issues: opened triggered workflow, so it cannot be exercised from a PR. Verified the YAML parses and that both timeout-minutes keys sit at valid positions (job level under jobs.triage, step level under the Triage with Oz agent step).



View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Summary by CodeRabbit

  • Chores
    • Added time limits to issue triage automation to prevent jobs from running indefinitely.
    • Set a 30-minute limit for the triage job and a 20-minute limit for the automated triage step.

Triage runs occasionally wedge inside the `Triage with Oz agent` step
before the agent's first turn. The job then sits until GitHub's 6h
ceiling cancels it, so the issue is never labelled and never gets a
comment explaining why. Eight runs have hit this.

Successful triage runs complete in ~3 min (13 min worst case observed),
so a 20 min step timeout leaves ample headroom while turning a silent 6h
stall into a red run you can see and re-run.

Co-Authored-By: Oz <[email protected]>
@coderabbitai

coderabbitai Bot commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: a202b794-8865-4d19-ae94-a49a6c1335af

📥 Commits

Reviewing files that changed from the base of the PR and between 9837959 and 31fccee.

📒 Files selected for processing (1)
  • .github/workflows/triage-issues.yml

📝 Walkthrough

Walkthrough

The triage workflow adds a 30-minute timeout to the job and a 20-minute timeout to the Oz agent step.

Changes

Triage workflow controls

Layer / File(s) Summary
Triage runtime limits
.github/workflows/triage-issues.yml
The triage job is limited to 30 minutes, and the “Triage with Oz agent” step is limited to 20 minutes.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Suggested reviewers: zkochan

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Comment thread .github/workflows/triage-issues.yml Resolved
Comment thread .github/workflows/triage-issues.yml Resolved
@bholmesdev
bholmesdev marked this pull request as ready for review July 23, 2026 18:23
@bholmesdev
bholmesdev requested a review from zkochan as a code owner July 23, 2026 18:23
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@greptile-apps

greptile-apps Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

The PR appears safe to merge.

The timeout settings are valid at their respective workflow levels, leave a ten-minute job-level backstop after the Oz step deadline, and introduce no concrete regression in the changed workflow.

Reviews (1): Last reviewed commit: "remove timeout comment block 2" | Re-trigger Greptile

@zkochan
zkochan merged commit fd9e534 into pnpm:main Jul 23, 2026
24 checks passed
@welcome

welcome Bot commented Jul 23, 2026

Copy link
Copy Markdown

Congrats on merging your first pull request! 🎉🎉🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants