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

Aberta Para iniciantes
#59,939 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 2 dias

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
76/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
bash, javascript, node.js, react-native

Direção de pesquisa

Comece por scripts/objc-test.sh, por volta das linhas 54–70 e 132–135. Em seguida, inspecione os testes de integração do RNTester e a exclusão vinculada no PR #59433. Confirme se algum teste restante precisa do servidor WebSocket na porta 5555 e atualize o script de teste para corresponder aos testes atuais. O trabalho estará concluído quando yarn test-ios passar pela inicialização do servidor e prosseguir para o packager e a compilação do RNTester.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

Linguagem predominante
C++
Estrelas
127k
Forks
25.5k
Merge médio
3d 18h
PRs com merge (30d)
188

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de react/react-native

Todas as issues de react/react-native

Issues semelhantes

Mais issues de C++

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.