iOS runCommand passes timeoutMs to spawn, which ignores it, and its comment relies on that backstop

Aberta
#1,980 1 comentário 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
57/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
typescript
Domínio
mobile-dev

Direção de pesquisa

Read src/drivers/ios/command-run.ts and src/ports/process-runner-types.ts, then inspect NodeProcessRunner.spawn and the ports manual to confirm the timeout contract. Determine how timeout handling should escalate a command that ignores SIGTERM, and check the related issue #1979 for context. Done when the spawn options and implementation agree with the documented contract and the command timeout can escalate as described.

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

Descrição

bug:new

src/drivers/ios/command-run.ts:24-26 computes runnerTimeoutMs and passes it to processRunner.spawn, with the comment "the runner's own timeout is a backstop past the late kill". NodeProcessRunner.spawn reads no timeoutMs, so there is no backstop. runCommand itself still answers at its own clock timer, but a command that ignores the one SIGTERM it sends is never escalated to SIGKILL.

ProcessRunOptions (src/ports/process-runner-types.ts:2) accepts timeoutMs for spawn although the ports manual says spawn takes none, so the compiler flags neither this call nor the one in #1979.

Read in the code on origin/main at dead1fb26, not run. Found while triaging #1979.

Written by an agent.

Linguagem predominante
TypeScript
Estrelas
730
Forks
44
Merge médio
16h 13min
PRs com merge (30d)
387

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

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

Todas as issues de callstackincubator/simlock

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

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