test(ui-server): the files_changed workspaces/ case outruns the 30 s test limit on a loaded unit worker

Abierto Apto para principiantes
#4,249 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
78/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
typescript
Área
testing

Línea de trabajo

Lee packages/ui-server/tests/turn-scope.test.ts:85-104 y compara la configuración de timeout para fixtures pesadas en otras partes de packages/ui-server/tests/. Ajusta el presupuesto de la prueba o el número de archivos, manteniendo sus aserciones sobre clones de referencia, rutas externas y elementos hermanos de workspaces-old/. Ejecuta la prueba específica bajo carga y confirma que termina dentro de su presupuesto sin que se produzca después un fallo de aserción.

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

Descripción

agent-ready area: ui-server priority: p3 type: test

What happens

packages/ui-server/tests/turn-scope.test.ts "files_changed leaves out a reference clone under workspaces/ but counts every path outside it (#3793)" timed out at the 30 s per-test limit, [30000.20ms]. This was hosted candidate run 44207608156, job unit (8), for PR #4240, which touches only ui-react markdown rendering.

After the timeout, the test body was still running. Its final assertion then failed as an unhandled error between tests: BRAIN_PATHS_PAST_THE_CAP_STILL_PAUSE, with the expected count: 1001 in the diff.

Cause

The test (packages/ui-server/tests/turn-scope.test.ts:85-104) writes 1500 files under workspaces/argo/src and 1000 more in the brain, one writeFileSync at a time. Then it runs journal observations over them. That takes a few seconds on an idle machine. On the shared hosted unit worker, it ran next to the test-invocation rebuild cases, and the memory log shows the cgroup near its peak, so it ran past 30 s. Nothing in the test is wrong except its budget: the 30 s limit is a hang catch-all, not a timing claim.

Acceptance criteria

  • The test gives itself a budget that fits its file volume under load. Either pass an explicit timeout that scales with the work (as other heavy fixtures in packages/ui-server/tests/ do), or cut the file count to what the cap needs, for example by lowering max_files_changed.
  • Its assertions are unchanged: a reference clone under workspaces/ does not count, and a path outside it does, including a workspaces-old/ sibling.
  • The timed-out test no longer surfaces its last assertion as an unhandled error in a later test.
Lenguaje dominante
TypeScript
Estrellas
4
Forks
0
Merge medio
6 h 5 min
PR fusionados (30 d)
730

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 schlessera/brain-kit

Todos los issues de schlessera/brain-kit

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.