Add memory-safe Vitest settings for local Docker runs

Đang mở
#2,720 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 3 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
docker, typescript
Lĩnh vực
devops, testing

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
2k
Fork
301
Merge trung bình
3 ngày 14 giờ
Pull request đã merge (30 ngày)
103

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Zoo-Code-Org/Zoo-Code

Tất cả issue của Zoo-Code-Org/Zoo-Code

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.