← Back to Dashboard
#8837 vitest integration can orphan processes in busy loops
Recommendation:KEEP OPEN
Difficulty:hard
Reasoning:
Serious DX issue; maintainer partially reproduced; inconsistent trigger
Suggested Action:
Investigate orphan process root cause
Analysis Report
Issue Review: cloudflare/workers-sdk#8837
Summary
Vitest integration can leave orphaned node processes running at 100% CPU after tests complete.
Findings
- Created: 2025-04-07
- Updated: 2025-12-17
- Version: wrangler 3.107.3 → wrangler 4.61.0
- Component: vitest (unstable_dev), Workers Vitest Integration
- Labels: bug, awaiting Cloudflare response
- Comments: 9
Key Evidence
- Issue reported via Twitter, reproduction repo: https://github.com/danthegoodman1/DurableStreams
- Orphaned
node (vitest)processes consuming 99.7% CPU - Uses
unstable_dev()API, not vitest-pool-workers - Maintainer @petebacondarwin could reproduce orphaned vitest process but not consistently
- Both clean exits and ctrl-c can trigger the orphan
- Label indicates awaiting Cloudflare response
Recommendation
Status: KEEP OPEN
Reasoning: This is a serious developer experience issue that causes laptops to drain battery. The maintainer partially reproduced it but couldn't consistently trigger it. The label "awaiting Cloudflare response" indicates it needs internal investigation.
Action: Needs more investigation to determine root cause of orphaned processes. Consider adding process cleanup timeout or parent process monitoring.
Suggested Comment
N/A - Issue has "awaiting Cloudflare response" label.
Notes & Feedback (0)
No notes yet.