Add memory-safe Vitest settings for local Docker runs

未關閉
#2,720 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 3 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
25/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
docker, typescript
領域
devops, testing

研究方向

The issue does not name configuration files or test commands; start by locating the Vitest and Turbo configuration and the existing CI worker and cache settings. Benchmark two and four Vitest workers on the same test inventory, then measure Turbo concurrency across the full local suite, recording elapsed time and peak memory. Done means a documented local Docker setup completes without out-of-memory kills while preserving CI settings, test isolation, coverage, test lanes, and cache validation; an open pull request is already linked.

由索引模型根據 Issue 內容生成。

描述

Local Vitest runs can exhaust memory in the development container and cause Zoo to disconnect. Kernel logs show out-of-memory kills while the container remains running.

Zoo already has CI performance optimizations: four webview workers, two extension workers per lane on Windows, split extension test lanes, and Turbo caching. Local Docker runs do not receive those worker limits.

Investigate and add a local test configuration that controls both Vitest workers and concurrent Turbo tasks. Preserve the existing CI settings and cache contracts.

Acceptance criteria:

  • Benchmark two and four Vitest workers on the same test inventory, recording elapsed time and peak memory.
  • Measure the effect of Turbo task concurrency on the full local test run.
  • Select and document a local Docker configuration that completes without out-of-memory kills.
  • Preserve CI worker limits, test lanes, coverage behavior, and cache validation.
  • Keep test isolation enabled.
  • Document commands for focused tests and the full local suite.

Optionally benchmark threads against the current pool. Adopt it only if results show a benefit and all affected tests pass.

主要語言
TypeScript
星號
2k
分支
301
平均合併
3 天 14 小時
30 天內合併 PR
103

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

Zoo-Code-Org/Zoo-Code 的其他 Issue

查看 Zoo-Code-Org/Zoo-Code 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。