feat(cli): add job management workflow#430
Open
Jinghao-coding wants to merge 1 commit into
Open
Conversation
6005f1e to
930b75b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary / 摘要
English
This PR adds a full
crater jobCLI workflow on top of the latestupstream/mainCLI baseline. It covers job read surfaces, lifecycle helpers, basic job creation, administrator job operations, docs, a dedicated Skill, and snapshot coverage.中文
本 PR 基于最新
upstream/main的 CLI 基线新增完整的crater job作业管理工作流,覆盖作业读取、生命周期操作、基础作业提交、管理员作业操作、文档、专用 Skill 以及快照测试。Changes / 变更
English
/api/v1/vcjobs,/api/v1/admin/vcjobs, and/api/v1/admin/operationsjob endpoints.crater jobread commands:ls,get,pods,events,yaml,template.token,secret,ssh,snapshot,alert,delete --admin.crater job create jupytercrater job create webidecrater job create customcrater job create tensorflow --file <json>crater job create pytorch --file <json>lock,unlock,keep, and cleanup workflows for waiting, long-running, and low-GPU jobs.crater-cli-jobSkill guidance.中文
/api/v1/vcjobs、/api/v1/admin/vcjobs、/api/v1/admin/operations作业相关接口。crater job读取命令:ls、get、pods、events、yaml、template。token、secret、ssh、snapshot、alert、delete --admin。crater job create jupytercrater job create webidecrater job create customcrater job create tensorflow --file <json>crater job create pytorch --file <json>lock、unlock、keep,以及等待作业、长时间运行作业、低 GPU 利用率作业清理流程。crater-cli-jobSkill 使用说明。Testing / 测试
English
UPDATE_SNAPSHOTS=1 go test ./test/snapshots/jobgo test ./...go build ./...中文
UPDATE_SNAPSHOTS=1 go test ./test/snapshots/jobgo test ./...go build ./...Notes / 说明
English
TensorFlow and PyTorch creation use
--fileintentionally because the backend request contains nestedtasks[]specifications. This keeps the CLI aligned with the platform DTO instead of flattening complex task specs into brittle flags.中文
TensorFlow 和 PyTorch 的创建命令刻意使用
--file,因为后端请求包含嵌套的tasks[]结构。这样可以保持 CLI 与平台 DTO 对齐,避免把复杂任务规格拆成脆弱的长 flags。