已合并
fix(ops-direct-invoke): 对齐 DSL Skill 正式目录引用 #135
fix(ops-direct-invoke): 对齐 DSL Skill 正式目录引用 #135
已合并
xutianze创建于 14 天前
xutianze
xutianze成员
14 天前

描述

对齐 cannbot-skills PR1360 的目录迁移与设计输入契约,将官方 ops-direct-invoke 工作流使用的六个 cannbot-dsl-* Skill 从 community/ops/ 改为 ops/。

修改范围

Skill 工作流用途
cannbot-dsl-env-check 环境检查
cannbot-dsl-op-design 方案设计
cannbot-dsl-unit-planner 实现单元规划
cannbot-dsl-test-generator 黑盒、白盒、Golden 与 TDD 测试生成
cannbot-dsl-best-practice 整体实现参考与生产代码规范
cannbot-dsl-code-reviewer 代码检视
  • 六项来源统一为 vendor/cannbot-skills/ops/cannbot-dsl-*,保持 Skill 名称、安装 ID、角色和工作流拓扑不变。
  • 保留主线 cannbot PR133 已完成的范式来源适配:ops-design-paradigms 已由 skills PR1359 迁入 ops/。本次迁移完成后,直调插件的外部 Skill 来源不再包含 community/。
  • 方案设计节点先获取调用/导出契约与范式资料,再显式向 cannbot-dsl-op-design 提供规格文件路径、环境、API 文档、SoC 信息及上述资料;工作流仍使用 design/doc/spec.yaml,公共 Skill 不再依赖这个固定文件名。
  • 复用既有安装测试辅助函数,检查六个 DSL Skill 与范式 Skill 的源码软链接真实目标和打包副本类型。
  • 更新 README 与入口 Skill 的来源说明,修正过期的 wheel API 文档提取描述;已检查 QUICKSTART,安装命令无需变更。

范围边界与配套版本

  • 本 PR 仅保留 ops-direct-invoke 及其安装回归的 5 个文件修改;不修改 ops-perf-evolution、跨代迁移插件、全局 marketplace SHA 或子模块固定版本。
  • 统一源码 init 默认获取同名分支,缺失时回退 master,无需为了使用最新 Skill 手动提交子模块指针。指定 --skills <SHA|path> 时,调用方应选择包含迁移的兼容版本。打包则使用 vendor 当前检出的版本,不自动获取最新分支。
  • PR1360 尚未合入;在它合入前,默认 master 尚无六项新路径。联调使用 PR1360 的 d091d056dd1aa06ffd2d0f116c582cdf53f29bfb,未将该 SHA 固定到本仓。
  • 最新 PR1360 已承接 skills PR1333 的“移除结构 probe”契约变化,对应工作流改造由 cannbot PR126 独立处理,当前仍待合入。本 PR 不重复其改造;正式合入和完整 DSL 流程验证需与 PR1360、PR126 配套,合入前需核对配套版本。

关联的 Issue / PR

测试

  • git diff --check:通过。
  • python3 plugins-official/ops-direct-invoke/skills/ops-direct-invoke-maintain/test/ut/test_all.py:5 类、36 项全部通过。
  • 用既有 assemblePlugins 仅构建 ops-direct-invoke,随后运行 node --test --test-name-pattern='ops-direct-invoke' script/test/install.test.js:11 项通过,覆盖五客户端 × 源码/打包安装及统一 init。
  • node --test script/test/skills-source.test.js script/test/harness.test.js:36 项全部通过,覆盖版本选择、来源更新、安装与工作流调度接口。
  • 核对 31 项来源映射及 SKILL.md 名称,无 community/ 来源;六个 DSL Skill 与范式 Skill 的 251 个非入口资源与打包副本逐字节一致。
  • 检索直调插件及安装测试,无旧 DSL/范式社区路径、已移除的 cannbot-dsl-docs-search 调用或合并冲突标记。

以上为本 PR 范围内的安装、资源与接口验证,不代表全仓构建通过,也不代表真实模型/NPU 完整 DSL 开发验收通过。未扩展处理其他插件的依赖问题。

文档更新

  • ops-direct-invoke/README.md:迁移说明、自动更新与显式版本选择边界、API 文档来源。
  • ops-direct-invoke 入口 SKILL.md:统一到正式 ops/ 来源。
  • QUICKSTART.md:已核对,保持原有正确的统一 init 用法。

类型标签

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 xutianze 的贡献)
xutianzexutianze成员
14 天前 创建了 pull request,commit 7abed29b
xutianzexutianze成员
14 天前 关联了issue:[Requirement|需求建议]: 将 cannbot-dsl 相关 skills 从 community/ops 迁移至 ops 目录
CANN-robotCANN-robot成员
14 天前 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
14 天前 评论:

CLA Signature Pass

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

likedislike
CANN-robot
CANN-robot成员
14 天前 评论:

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) ✅ 汤平川 (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成员
13 天前 修改标题为 “[WIP]fix(ops-direct-invoke): 对齐 DSL Skill 正式目录引用”,原标题为“[WIP]fix(ops-direct-invoke): 同步 DSL skills 迁移及关联依赖”
此处折叠了10条事件消息 查看更多
xutianzexutianze成员
13 天前 修改了pull request 的描述
xutianze
xutianze成员
13 天前 评论:

compile

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

/lgtm
/approve

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

/lgtm

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