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

watch: a failed deploy blocks every later deploy on the deployment hold

未关闭
#47 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
42/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
aws, node.js, typescript
领域
devtools

调研方向

Start with packages/reconciler/src/durable/deployment-hold.ts and trace how watch creates execution IDs for deploys. Compare the hold behavior on failure with the watch rebuild flow; the issue lists resuming the failed execution or clearing its hold as possible directions. Done means a failed deploy no longer leaves later deploys in the same watch session hanging.

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

描述

Problem

After one deploy fails during notation watch, every later deploy in that session hangs forever on reconciler.hold.waiting.

withDeploymentHold (packages/reconciler/src/durable/deployment-hold.ts) deliberately keeps the hold when an execution fails, so the same execution can be resumed with --execution-id. But watch starts each deploy with a new randomUUID() execution ID and never resumes the failed one. So the next deploy waits for a holder that will never finish, and the only way out is to clear the hold manually.

Repro

  1. Run notation watch infra/api.ts with invalid AWS credentials, so the first deploy fails with InvalidClientTokenId.
  2. Edit a runtime file to trigger a rebuild.
  3. The second deploy logs reconciler.hold.waiting with holderExecutionId set to the first execution, then hangs.

This predates the move to child-process deploys (7735a67), since watch has always used a new execution ID per deploy.

Possible directions

  • Have watch resume the failed execution ID on the next rebuild, rather than starting a new one.
  • Or have watch clear its own failed execution's hold (it knows the holder is dead) before starting the next deploy.
主要语言
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 摘要。