已合并
重构 ops-direct-invoke:替换官方插件并动态生成工作流引导 #34
重构 ops-direct-invoke:替换官方插件并动态生成工作流引导 #34
已合并
xutianze创建于 9月21日
xutianze
xutianze成员
9月21日

将 harness 驱动的直调算子工作流作为 ops-direct-invoke 3.0.0 放入官方插件目录,替换原实现并删除社区目录副本。源码与 npm 安装继续使用统一安装器。

  • 按 tasks/ascendc、workflows/ascendc 组织任务和流程,文档模板平铺到 templates;删除暂不使用的目录,清理任务未使用的变量及模板绑定。
  • 工作流模板第二行通过 use_when 声明适用场景。新增引导生成脚本,启动前扫描模板并生成文件名/调用时机清单,替代手工维护的 registry.csv;组装后不向 harness 传递引导元数据。
  • 同步入口说明、插件清单、安装测试和打包 smoke。适配最新主线的验收裁决命令与失败原因回传,将返工约定集中到角色,删除各 task 的重复提示;失败摘要与完整报告路径由 harness 自动回传,详细证据保留在报告中。更新黑盒测试和说明,不修改 harness 或 Skill 子仓。

验证:

  • 工作流 UT:28 项通过。
  • npm --prefix script test:67 项通过。
  • npm --prefix script run pack:smoke:真实 tgz 安装与运行检查通过。
  • git diff --check 通过;已 rebase 到主线 ade7fa0,仅包含本次重构提交。

测试覆盖组装、安装和模拟执行,未进行真实模型或 NPU 算子开发验证。原来从社区路径安装的工作区需重新执行初始化。

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 xutianze 的贡献)
xutianzexutianze成员
9月21日 创建了 pull request,commit 748b2069
CANN-robotCANN-robot成员
9月21日 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
9月21日 评论:

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 ✅ 宋恺, hanrui22 (2/2) ✅ 宋恺 (1/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成员
9月21日 预合并成功(commit_id: 658fe165cfe579ed0b21110047e0049094ea8cc3)
xutianzexutianze成员
9月21日 强制推送  1 个提交:0ed683c4-refactor(workflow): promote direct invoke and generate template guide
xutianzexutianze成员
9月21日 预合并成功(commit_id: 429997f05f48f329ae31816ded7ea2e3aa0aa465)
CANN-robotCANN-robot成员
9月21日 删除了label:cann-cla/yes
CANN-robotCANN-robot成员
9月21日 添加了label:cann-cla/yes
xutianzexutianze成员
9月21日 修改了pull request 的描述
xutianze
xutianze成员
9月21日 评论:

compile

likedislike
xutianzexutianze成员
9月21日 预合并成功(commit_id: 2453af450c011d13b3a38e7a872b1c72a1c13403)
CANN-robot
CANN-robot成员
9月21日 评论:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robot成员
9月21日 添加了label:ci-pipeline-running
CANN-robotCANN-robot成员
9月21日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
9月21日 添加了label:ci-pipeline-passed
songkai111成员
9月21日 评论:

/approve

likedislike
CANN-robotCANN-robot成员
9月21日 添加了label:approved
hanrui22成员
9月21日 评论:

/lgtm

likedislike
CANN-robotCANN-robot成员
9月21日 添加了label:lgtm
CANN-robotCANN-robot成员
9月21日 合入了pull request