watch: a rebuild queued during a failed deploy is never deployed
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 78/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- node.js, typescript
调研方向
从 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
- In
notation watch, start a deploy that will fail. - While it's running, save a change.
- 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 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
notationlabs/notation 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 42/100
notationlabs/notation#47 ·
-
难度 5/5 一周以上 新手友好度 35/100
notationlabs/notation#34 ·
-
envs as config未关闭
难度 5/5 一周以上 新手友好度 35/100
notationlabs/notation#33 ·
-
难度 3/5 1-2 天 新手友好度 45/100
notationlabs/notation#16 ·
-
难度 4/5 3-5 天 新手友好度 45/100
notationlabs/notation#15 ·
查看 notationlabs/notation 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
jessepollak/home#2223 ·
维护者通常 1 天内回复
-
grep fixture corpus test follows the corpus's loop symlink under the receipt runner (fails on main)未关闭
难度 2/5 1-3 小时 新手友好度 68/100
code-yeongyu/senpi#3756 ·
维护者通常 1 天内回复
-
org:external package:deepagents priority:triage topic:memory topic:middleware type:bug
难度 2/5 1-3 小时 新手友好度 65/100
langchain-ai/deepagents#7059 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 92/100
osmlab/name-suggestion-index#12992 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 66/100
hemilabs/ui-monorepo#2506 ·
维护者通常 1 天内回复