`yarn test-ios` exits before building RNTester: `objc-test.sh` launches the WebSocket server script #59433 deleted

Abierto Apto para principiantes
#59,939 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
76/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
bash, javascript, node.js, react-native

Línea de trabajo

Empieza por scripts/objc-test.sh, alrededor de las líneas 54–70 y 132–135. Después, inspecciona las pruebas de integración de RNTester y la eliminación vinculada en PR #59433. Confirma si alguna prueba que quede necesita el servidor WebSocket en el puerto 5555 y actualiza el script de pruebas para que coincida con las pruebas actuales. Se considera terminado cuando yarn test-ios supera el inicio del servidor y continúa con el packager y la compilación de RNTester.

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

Descripción

Description

yarn test-ios (scripts/objc-test.sh test) starts the WebSocket test server with sh "./IntegrationTests/launchWebSocketServer.sh" & from packages/rn-tester, then waits for localhost:5555 to answer (L132-L135). https://github.com/react/react-native/pull/59433 deleted packages/rn-tester/IntegrationTests/, that script and websocket_integration_test_server.js among it, so waitForWebSocketServer polls sixty times and exits 1: on main the command stops before it builds RNTester or runs a test. No test left on main connects to port 5555.

No GitHub job runs yarn test-ios (#59596), and #59666, which turns it on in test_ios_rntester, counts on the script starting that server.

Steps to reproduce
  1. On macOS, in a checkout of main (0e4af152b8), run yarn test-ios; or run bash repro.sh from the reproducer below, which runs scripts/objc-test.sh test in a sparse clone of main with lsof stubbed, so the script's cleanup kills nothing listening on 8081 or 5555.

Expected: the script gets past the WebSocket server step to the packager and builds RNTester for testing.
Actual: it prints sh: ./IntegrationTests/launchWebSocketServer.sh: No such file or directory, retries localhost:5555 for a minute and exits 1 with WebSocket Server did not respond in time. No more attempts left.

React Native Version

main (0e4af152b8)

Affected Platforms

Build - MacOS

Output of npx @react-native-community/cli info

Not applicable: this is React Native's own test script. The reproducer's run: react-native 0e4af15 (2026-11-11), Darwin 27.2.0, bash 3.2.57(1)-release

Stacktrace or Logs
react-native 0e4af15 (2026-11-11), Darwin 27.2.0, bash 3.2.57(1)-release
packages/rn-tester/IntegrationTests/launchWebSocketServer.sh: missing
scripts/objc-test.sh:134:    sh "./IntegrationTests/launchWebSocketServer.sh" &
scripts/objc-test.sh:135:    waitForWebSocketServer
  Launch WebSocket Server
  sh: ./IntegrationTests/launchWebSocketServer.sh: No such file or directory
  WebSocket Server did not respond in time. No more attempts left.
scripts/objc-test.sh test exited 1 after 62s, retrying localhost:5555 59 times
SUMMARY: yarn test-ios stops before building RNTester: it launches packages/rn-tester/IntegrationTests/launchWebSocketServer.sh, which is missing, and exits 1 when nothing answers on localhost:5555
MANDATORY Reproducer

https://gist.github.com/YevheniiKotyrlo/6235683cdbbb2507855f997fa6023f79 — bash repro.sh exits 1 while yarn test-ios stops at the WebSocket server and 0 once it gets past it to the packager.

Screenshots and Videos

No response

Lenguaje dominante
C++
Estrellas
127k
Forks
25.5k
Merge medio
3 d 18 h
PR fusionados (30 d)
188

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 react/react-native

Todos los issues de react/react-native

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.