Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

未关闭 适合新手
#48 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
78/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
领域
cli, devops

调研方向

从 packages/cli/src/watch.ts 开始,跟踪 triggerDeploy 如何处理 promise 成功和失败的路径。在 deploy 运行期间保存一项更改以重现故障,然后确保排队的 deploy 在任一结果之后都会运行;验证它不会被 #47 中描述的部署保持状态阻止。

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
TypeScript
星标
54
派生
1
平均合并
1 小时 45 分钟
30 天内合并 PR
1

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

notationlabs/notation 的其他 Issue

查看 notationlabs/notation 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。