← Back to Pull requests

src: expand --process-timeout output to include workers #67712

Closed
unknown closed this pull request without merging on Nov 25, 2026 02:23 UTC
View on GitHub
unknown unknown commented on Nov 22, 2026 22:09 UTC
Author

When a process is interrupted using --process-timeout, the output would print the resources and stack of the main thread. If the thing keeping the process alive was a worker thread, or if the worker thread was interrupted, there was no diagnostic output.

This adds an additional --process-timeout-worker-stacks flag that includes the worker details. We don't necessarily want to include workers every time because if there's a large number of workers the output could become quite noisy.

$ ./node --process-timeout=1s --process-timeout-worker-stacks -pe "new worker_threads.Worker('setTimeout(()=>{}, 10000)', {eval:true})"
(node:358015) Process timed out after 1s (--process-timeout). Exiting with code 124.
Main thread was not executing JavaScript.
Resources keeping the event loop alive:
    Worker (thread 1, name 'WorkerThread')
Worker thread 1 (name 'WorkerThread') was not executing JavaScript.
Resources keeping its event loop alive:
    Timeout (next due in 9028ms)

$ ./node --process-timeout=1s --process-timeout-worker-stacks -pe "new worker_threads.Worker('while(true){}', {eval:true})"
(node:358032) Process timed out after 1s (--process-timeout). Exiting with code 124.
Main thread was not executing JavaScript.
Resources keeping the event loop alive:
    Worker (thread 1, name 'WorkerThread')
Worker thread 1 (name 'WorkerThread') was executing JavaScript:
    at [worker eval]:1:1
    at runScriptInThisContext (node:internal/vm:219:10)
    at node:internal/process/execution:485:12
    at [worker eval]-wrapper:6:24
    at runScriptInContext (node:internal/process/execution:483:60)
    at evalFunction (node:internal/process/execution:317:30)
    at evalTypeScript (node:internal/process/execution:329:3)
    at node:internal/main/worker_thread:201:9
    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:876:20)
    at node:internal/per_context/messageport:23:28
No resources keeping its event loop alive were found

Diff: 246 lines (+184 / -62) across 3 files Reviewer: christianaurichzm Review duration: 3134m
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 246 lines diff across 3 files
0.39
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.330
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #67712"
general weight: 0.35
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 38.9% (MEDIUM) · Higher = larger blast radius
38.9%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 15.4% · Safe to merge
15.4%
Repository