Diagnose Tool 针对失败的任务收集详细日志、CRD 信息输出到指定文件夹,提供任务异常排查
此 ISSUE 为 隐语开源共建计划(SecretFlow Open Source Contribution Plan,简称 SF OSCP)Phase 5 任务 ISSUE,欢迎社区开发者参与共建~
- 认领前,辛苦确认是否完成报名~
- 更多任务,可查看 「OSCP Phase5 Season of Dev」Project
This ISSUE is one of the tasks of the SecretFlow Open Source Contribution Plan (referred to as SF OSCP) Phase 5. Welcome to join us in building it together!
- Before claiming a task, please make sure you have signed up.
- For more tasks, you can check the "OSCP Phase5 Season of Dev" Project.
任务介绍
- 任务名称:Diagnose Tool 针对失败的任务详细信息收集
- 技术方向:Kuscia/CLI
- 任务难度:进阶🌟🌟
- 任务预估完成时间:4周
- 任务 Reviewer:@gaoyonglong
详细要求
Diagnose Tool 针对失败的任务收集详细的日志、CRD 信息输出到指定文件夹,提供任务异常排查。
可以通过现有的 Kuscia Diagnose 功能,扩展命令,能够从 Kuscia 中排查出当前有哪些运行失败的 KusicaJob,并且根据 KusciaJob 的信息,收集对应失败的 KusciaTask 信息到指定的文件夹下的文件中。
- 要求:
- 通过判断 KusciaJob 中失败的 KusciaTask,将涉及到的 KusciaJob 和 KusciaTask 的 CRD 信息输出到指定文件中;
- 筛选 Kuscia.log,k3s.log 等日志文件中筛选出和 KusciaJob 和 KusciaTask 相关的日志信息输出到指定文件中;
- 要求输出文件中的内容能够格式分明,逻辑清晰,便于异常排查
- 任务说明:
- 设计方案:请先准备你的设计思路方案,并在 ISSUE 下评论提交方案,经过 Reviewer 确认设计思路方案后再根据确认后的方案,进行相关的功能开发
- 功能开发:代码需符合代码规范 https://github.com/uber-go/guide/blob/master/style.md
- 功能提交:功能开发完成后,关联该 ISSUE 并提交代码至 https://github.com/secretflow/kuscia
能力要求
- 对 Kuscia 原理有一定了解
- 熟悉 Golang
操作说明
@rooobinye Please give it to me
由于您未能在规定时间内完成任务,该任务已重新开放认领。如需继续完成,请重新认领;同时也欢迎其他开发者参与认领。\n\nAs the task was not completed within the specified time, it has been unassigned for claiming. If you wish to continue working on it, please reclaim the task. Other developers are also welcome to claim it.