Add memory-safe Vitest settings for local Docker runs

Abierto
#2,720 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 3 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
docker, typescript
Área
devops, testing

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
2k
Forks
301
Merge medio
3 d 14 h
PR fusionados (30 d)
103

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Zoo-Code-Org/Zoo-Code

Todos los issues de Zoo-Code-Org/Zoo-Code

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.