`yarn test-ios` exits before building RNTester: `objc-test.sh` launches the WebSocket server script #59433 deleted
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
- Domínio
- build-system, mobile-dev, testing
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
- On macOS, in a checkout of
main(0e4af152b8), runyarn test-ios; or runbash repro.shfrom the reproducer below, which runsscripts/objc-test.sh testin a sparse clone ofmainwithlsofstubbed, 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
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de react/react-native
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
react/react-native#59945 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
react/react-native#59944 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
react/react-native#59942 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
react/react-native#59929 · 1 comentário ·
Mantenedores costumam responder em até 2 dias
-
iOS Fabric pointer-handler reset leaves the next lone touch non-primaryTalvez já em andamento @alleneubank assumiu há 1 dia. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
react/react-native#59919 ·
Mantenedores costumam responder em até 2 dias
Todas as issues de react/react-native
Issues semelhantes
-
type:bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
tensorflow/tflite-micro#3995 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
-
not for AI lovers
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
OSGeo/gdal#15515 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
VT: Backend
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
contour-terminal/contour#2314 ·
Mantenedores costumam responder em até 1 dia