Android snapshot helper: a capture cancelled in its first milliseconds stalls the next capture
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
- 72/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- android, typescript
Direção de pesquisa
Start with packages/platform-android/src/__tests__/snapshot-helper-session.test.ts and read the test named “cancels a stalled snapshot, retires its helper, and starts the next capture cleanly.” Trace how that test triggers cancellation and how the helper is retired or reused; the issue does not name the implementation file. Done means the test explicitly exercises cancellation at the risky early points and confirms the next capture starts within its normal budget.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Found while working on #4021 (#4005). This happens on main's sources and was not introduced by that PR.
Symptom. In CI Coverage, packages/platform-android/src/__tests__/snapshot-helper-session.test.ts › "cancels a stalled snapshot, retires its helper, and starts the next capture cleanly" timed out at 5 s (run 40711232553).
Trigger. The test aborts the stalled capture with a fixed 10 ms timer. When the same flow is aborted 0–2 ms in instead, the next capture hangs for more than 3 s. This reproduces on main's sources and on #4021 alike. On a slow CI host the 10 ms abort lands early in the flow, which turns this into an intermittent timeout.
Possible product impact. If a real snapshot is cancelled right after it starts, the next capture on that device may stall instead of starting cleanly. That fits the "persistent session didn't answer" runs reported in #4005 and #3929.
Required behavior.
- A capture cancelled at any point leaves the helper retired or reusable.
- The next capture starts within its normal budget.
- The test drives the abort at the risky points explicitly, rather than through a wall-clock timer.
- Linguagem predominante
- TypeScript
- Estrelas
- 5.2k
- Forks
- 359
- Merge médio
- 12h 43min
- PRs com merge (30d)
- 666
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem 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 callstack/agent-device
-
bug ready-for-agent
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 77/100
callstack/agent-device#4018 ·
Mantenedores costumam responder em até 1 dia
-
Limrun iOS fill reports success but drops non-ASCII textTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Abertabug ready-for-agent
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 87/100
callstack/agent-device#3819 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
callstack/agent-device#1869 ·
Mantenedores costumam responder em até 1 dia
-
iOS simulator: snapshot drops controls nested deeper than 64 accessibility levelsTalvez já em andamento @KrzysztofMoch assumiu há 1 dia. Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
callstack/agent-device#4088 ·
Mantenedores costumam responder em até 1 dia
-
needs-info
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
callstack/agent-device#4086 · 5 comentários ·
Mantenedores costumam responder em até 1 dia
Todas as issues de callstack/agent-device
Issues semelhantes
-
bug ready-for-agent
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 73/100
PhyberApex/kuroshiro#1687 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 73/100
microsoft/monaco-editor#5563 ·
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
-
bug
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 86/100
awslabs/visual-asset-management-system#937 ·
Mantenedores costumam responder em até 1 dia
-
enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100