已合并
feat(ops-direct-invoke): 新增 harness 驱动的直调算子开发工作流 #20
feat(ops-direct-invoke): 新增 harness 驱动的直调算子开发工作流 #20
已合并
xutianze创建于 22 天前
xutianze
xutianze成员
22 天前

将 Ascend C <<<>>> 直调算子开发组织为声明式任务图:PM 对齐需求并检查环境,组装 Workflow YAML 后交由 workflow-orchestrator 派发执行与验收,业务知识由可覆写的 repo-* Skills 提供。

主要改动

  • 新增社区插件 ops-direct-invoke(3.0.0),提供工作区 PM 指令及 architect、developer、verifier 三个角色。
  • 提供 basic 和 feasibility 模板、CSV 模板注册、任务变量绑定、依赖与编号组装及公开 CLI 启动脚本;重试预算由 Workflow 下发,模板默认 3 次。
  • 开发流程覆盖知识搜集、黑盒设计、测试工程、算子开发、白盒接入、代码修复与文档;执行者提供构建和测试证据,验收者只读核验证据并检视代码。
  • 七个 repo-* Skills 按 CANN Bench 的工程、测试与评测契约组织,支持同名知识覆写;需求阶段快速预填 checklist,仅询问关键缺项,确认完成后提示进入静默开发。
  • 扩展统一安装器以支持社区插件目录、源码 Skill 软链接、角色及工作流资源安装;补充工作流 UT 和源码/发布包安装验证。

验证

  • 已 rebase 到 cann/master(f66329f)。
  • 最新修复验证:工作流 UT 24 项通过(5 类),安装集成测试 25 项通过,插件资源构建通过。
  • CANN Bench CPU 接入样例通过:官方 loader、golden 参数绑定及 JSON/Markdown/HTML 输出;缺少 Tensor 注解、错误目录两个负例均能发现原问题。
  • 初版提交验证:npm --prefix script test 67 项通过。
  • 初版提交验证:npm --prefix script run pack:smoke 实际 tgz 安装及工作流模拟运行通过。
  • git diff --check 通过;本 PR 不修改 harness 或 vendor/cannbot-skills。

已知限制

  • 模拟执行和安装测试不证明真实模型、权限或所有算子的 NPU 行为正确;本地 GQA 试运行产物未纳入仓库。
  • 已修正规范检查后置与固定 Skill 契约冲突,补齐 CANN Bench 接入样例、按版本复用证据及先比较已有规格的需求对齐规则;本轮未重跑 GQA,不据此量化耗时改善。
  • 当前保留 basic 阶段划分和默认代码修复节点;无缺陷且当前版本已有有效全量证据时允许复用,输入变化或证据不足时补齐验证。性能验收、PR 和外部 CI 不属于本工作流。
likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 xutianze 的贡献)
xutianzexutianze成员
22 天前 创建了 pull request,commit f8c05eb1
CANN-robotCANN-robot成员
22 天前 添加了label:stat/needs-squash
CANN-robotCANN-robot成员
22 天前 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
22 天前 评论:

Thanks for your pull-request.
The full list of commands accepted by me can be found at here.
You can get sig-info at here.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
For more, you also can visit HICANN.


PR Approval Progress

✅ Congratulations! All modules have met the lgtm and approve requirements.

Module Approval Details

module lgtm status approve status
repo-cann/cannbot ✅ 汤平川, 宋恺 (2/2) ✅ 汤平川, 宋恺 (2/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

xutianze, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
xutianzexutianze成员
20 天前 预合并成功(commit_id: f584f7a415e660270e39289042d7261baacdefbd)
xutianzexutianze成员
20 天前 推送  1 个提交:fdec8e53-fix(workflow): align skill contracts and reuse valid execution evidence
xutianzexutianze成员
20 天前 预合并成功(commit_id: dd9fea4b4c65f5c95dbaed7db69726e365e4fcf9)
CANN-robotCANN-robot成员
20 天前 删除了label:cann-cla/yes
CANN-robotCANN-robot成员
20 天前 添加了label:cann-cla/yes
xutianzexutianze成员
20 天前 修改了pull request 的描述
xutianze
xutianze成员
20 天前 评论:

compile

likedislike
xutianzexutianze成员
20 天前 预合并成功(commit_id: 8459e0c6c3ba85c33ef35e02875c8dab66b0e9fe)
CANN-robot
CANN-robot成员
20 天前 评论:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robot成员
20 天前 添加了label:ci-pipeline-running
此处折叠了6条事件消息 查看更多
CANN-robotCANN-robot成员
20 天前 添加了label:cann-cla/yes
xutianze
xutianze成员
20 天前 评论:

compile

likedislike
xutianzexutianze成员
20 天前 预合并成功(commit_id: 2d711083af3fd1777df14c9a7c6e17861c2af94c)
CANN-robot
CANN-robot成员
20 天前 评论:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robot成员
20 天前 删除了label:ci-pipeline-failed
CANN-robotCANN-robot成员
20 天前 添加了label:ci-pipeline-running
CANN-robotCANN-robot成员
20 天前 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
20 天前 添加了label:ci-pipeline-passed
songkai111成员
20 天前 评论:

/approve

likedislike
CANN-robotCANN-robot成员
20 天前 添加了label:approved
TangPC
TangPC成员
20 天前 评论:

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
20 天前 添加了label:lgtm
CANN-robotCANN-robot成员
20 天前 合入了pull request