make it easier to run tasks locally
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
调研方向
Start by examining the taskgraph command entry points and the existing run-task or other task runners mentioned in the issue. Define how a task label is resolved, how its container image is built or downloaded, and how dependencies and volume caches are handled locally. Done means a containerized task can be run locally with behavior matching CI, including the supported dependency cases.
由索引模型根据 Issue 内容生成。
描述
@JohanLorenzo linked me to dagger.io recently. One of the things that it tries to solve is reproducability problems between local and CI executions of the same thing. It does by making it trivial to run exactly what CI does locally. We have a lot of issues with this at the moment (especially in Gecko), to the point where it is often avoided altogether, and I think taskgraph should be able to make this similarly easy for containerized tasks.
I'm envisioning something like a taskgraph run command that can be fed a label or some other unique task identifier. Taskgraph would then either build or download the image the task runs on, launch a container, and run the task.
The trickiest bit here is likely to be what to do with tasks that depend on things from other tasks. In many cases we'd probably want to fetch artifacts from existing tasks, but there may be cases where we'd want to rebuild those tasks locally. This is extra tricky in some Gecko scenarios where something like mozharness is built as part of the build task, but we probably don't want to do a full build to pick up changes to it. (Maybe we can ignore extra complicated scenarios like this to start with. The fix there could be not to build mozharness as part of builds...). Docker images are the most notable thing that nearly all containerized tasks depend on.
Other possible issues we may encounter:
run-taskor other task runners currently only working on our deployed images- Tasks that use volume caches may need some adjustments to run locally
- 主要语言
- Python
- 星标
- 26
- 派生
- 55
- 平均合并
- 2 天 6 分钟
- 30 天内合并 PR
- 15
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
taskcluster/taskgraph 的其他 Issue
-
难度 5/5 一周以上 新手友好度 20/100
taskcluster/taskgraph#952 ·
-
难度 4/5 3-5 天 新手友好度 35/100
taskcluster/taskgraph#915 ·
-
feature
难度 3/5 1-2 天 新手友好度 35/100
taskcluster/taskgraph#911 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 45/100
taskcluster/taskgraph#882 ·
-
难度 5/5 一周以上 新手友好度 35/100
taskcluster/taskgraph#865 · 1 条评论 ·
查看 taskcluster/taskgraph 的全部 Issue
相似的 Issue
-
bug confirmed issue
难度 2/5 1-3 小时 新手友好度 75/100
open-webui/open-webui#30750 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
-
enhancement
难度 2/5 1-3 小时 新手友好度 75/100
OpenwaterHealth/openmotion-bloodflow-app#604 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
-
good first issue
难度 1/5 1 小时以内 新手友好度 90/100