iOS tests check command limits on a spawn timeoutMs that nothing reads, which keeps it in spawn's options type

Abierto
#1,984 1 comentario 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
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
74/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
node.js, typescript
Área
backend, testing

Línea de trabajo

Start with src/drivers/ios/command-run.ts and src/ports/process-runner-types.ts, then inspect the nine listed iOS test files that use timeoutMs. First check how the tests advance the clock and verify the real timer limit. Done when those tests prove the limit through the timer and spawn's options type no longer accepts timeoutMs.

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

Descripción

bug:new

iOS tests pin command limits through the timeoutMs option runCommand passes to spawn (src/drivers/ios/command-run.ts:26), which the Node runner never reads, so they cannot see whether the limit holds. Removing that dead option fails 41 tests in 9 files under src/drivers/ios (boot-deadline, index, index-device-set, index-provenance-root, index-save-source-lifecycle, index-seed-provision, index-slim-mode, physical, physical-presence). The real limit is the clock timer at command-run.ts:43; a test that advances the clock proves it.

While those tests read it, timeoutMs cannot leave spawn's options type (src/ports/process-runner-types.ts:2), so the compiler cannot refuse a call like #1979's.

Found while triaging #1980.

Written by an agent.

Lenguaje dominante
TypeScript
Estrellas
730
Forks
44
Merge medio
16 h 13 min
PR fusionados (30 d)
387

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

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 callstackincubator/simlock

Todos los issues de callstackincubator/simlock

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.