Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

watch: a rebuild queued during a failed deploy is never deployed

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

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
78/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
node.js, typescript
Domínio
cli, devops

Direção de pesquisa

Comece em packages/cli/src/watch.ts e acompanhe como triggerDeploy trata os caminhos de sucesso e falha da promise. Reproduza a falha salvando uma alteração durante um deploy em andamento e, em seguida, certifique-se de que o deploy na fila seja executado após qualquer um dos resultados; verifique se ele não fica bloqueado pela suspensão do deploy descrita em #47.

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

Descrição

Problem

In packages/cli/src/watch.ts, if a rebuild happens while a deploy is running, triggerDeploy sets deployQueued = true. The .then handler starts the queued deploy, but the .catch handler only resets isDeploying and never checks deployQueued.

So if the running deploy fails, a change saved during it is silently left undeployed until the next file change. That's often exactly the fix for the failure.

Repro

  1. In notation watch, start a deploy that will fail.
  2. While it's running, save a change.
  3. The failed deploy finishes, and the saved change is not deployed until another edit.

Fix

Drain the queue in both paths, e.g. move the deployQueued check into a .finally, or call the same "done" function from .then and .catch.

Note that while #47 is open, the queued deploy would then hang on the deployment hold, so the two are worth fixing together.

Linguagem predominante
TypeScript
Estrelas
54
Forks
1
Merge médio
1h 45min
PRs com merge (30d)
1

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 notationlabs/notation

Todas as issues de notationlabs/notation

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.