feat(cli): add `--failure-ttl` to `coder templates push`
维护者通常 1 天内回复
@jeremyruppel 已经在做这个了。
开始于 2026年11月30日。
评估
调研方向
从 coder templates push 的实现入手,并比较 coder templates create 和 edit 如何检查 Advanced Template Scheduling 权限。追踪新建和现有模板请求的构建位置,并找到相关的 push 测试。添加 --failure-ttl,更新相应的请求字段,并将权限检查与 dormancy 标志共用;完成标准是:仅在设置该标志时才发送它,未获许可的部署会报告此限制,且测试覆盖两种路径。
由索引模型根据 Issue 内容生成。
描述
Part of #31998.
coder templates create --failure-ttl sets how long after a failed start build Coder waits before stopping the workspace ("Failure cleanup" in the UI). coder templates push has no equivalent flag.
What to change
- New template: set
CreateTemplateRequest.FailureTTLMillis. - Existing template: send
UpdateTemplateMeta.FailureTTLMillisonly when the user sets the flag. - License check required. This setting needs the Advanced Template Scheduling entitlement. On unlicensed (AGPL) deployments, the server keeps the old value without returning an error, so
pushwould look like it worked when it didn't. Check entitlements first, the same way `create` and `edit` do.--failure-ttl,--dormancy-thresholdand--dormancy-auto-deletionshould share one check.
Scope: Small (S), about 20 lines plus a test. Add another 20 to 30 lines for whichever of the three adds the shared license check first.
Created on behalf of @angrycub
- 主要语言
- Go
- 星标
- 17.5k
- 派生
- 1.7k
- 平均合并
- 2 天 23 小时
- 30 天内合并 PR
- 575
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
coder/coder 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
bug: token allow-list with a specific template ID returns 500 "column reference \"id\" is ambiguous"可能已有人在做 @stirby 于 22 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
coder/coder#32059 · 2 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
feat(cli): add `--agents-allowed` to `coder templates push`可能已有人在做 @jeremyruppel 于 4 天前认领。 未关闭cli
难度 2/5 1-3 小时 新手友好度 82/100
coder/coder#32005 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
feat(cli): add `--require-active-version` to `coder templates push`可能已有人在做 @jeremyruppel 于 4 天前认领。 未关闭cli
难度 2/5 1-3 小时 新手友好度 74/100
coder/coder#32004 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
feat(cli): add `--dormancy-auto-deletion` to `coder templates push`可能已有人在做 @jeremyruppel 于 4 天前认领。 未关闭cli
难度 2/5 1-3 小时 新手友好度 72/100
coder/coder#32003 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
neilotoole/sq#1503 ·
维护者通常 1 天内回复
-
help wanted kind/bug stage/010-actionable
难度 2/5 1-3 小时 新手友好度 77/100
kubestellar/kubestellar#4077 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
bot snap/qwen3-6
难度 2/5 1-3 小时 新手友好度 72/100
canonical/inference-snaps#463 ·
维护者通常 2 天内回复