Merged
feat(skills): 引入独立 PyPTO-Pro kernel skill 并精简编排入口 #816
ddddweAdd on Oct 13
feat(skills): 引入独立 PyPTO-Pro kernel skill 并精简编排入口 #816
Merged
Pull Request has been successfully merged by CANN-robot.
(Thank you for ddddwe's contribution.)Oct 13 Added label: cann-cla/yes
CANN-robot
Oct 13 Comments:
Oct 13 Comments:
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/pypto-gym | ✅ wangzheng97, pan-boyi (2/2) | ✅ wangzheng97 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
ddddwe, thanks for your pull request. All authors of the commits have signed the CLA. 👍


Oct 19 Pre merge succeeded (commit_id: 96283c2e252ca39fc9bac08ad3041cff67e652f8)
119 messages are collapsed here。 See more
pan-boyi
Oct 28 Comments:
Oct 28 Comments:
/lgtm


Oct 28 Added label: lgtm
CANN-robot
Oct 28 Comments:
Oct 28 Comments:
The MR can not be merged, because of CodeReview discussion not resolved
If you want to solve this problem, you can click here to do it in the FAQs.


Oct 28 Resolved final issue
Oct 28 Merged pull request
关联需求:#293。
引入独立的
pypto-pro-kernelskill,并让 PyPTO-Pro 编排入口围绕该 skill 完成原生 kernel 开发、验证、调试与优化。examples、参考资料和检查工具随 skill 一起分发;不包含仿真器实现。变更内容
cannbot-skills/ops/pypto-pro-kernel/包含技能入口、参考资料、检查工具和内置 examples,共 629 个受版本控制的资源文件;其中 examples 为 509 个文件,115 个公开样例提供可发现的测试入口。安装后额外随附仓库的 CANN-2.0LICENSE。PYPTO_SRC或--pypto-root指定与目标环境匹配的外部 PyPTO 源码。Sparse Attention 原始评估器的额外依赖已在索引中说明。ops-profiling使用来源链接,需单独安装。社区仓合规对齐
参考已合入的 cannbot-skills !1499(
f020a3c774c938539735173c81b7d58f8ae053cb)和 cannbot !204:requirements*.txt依赖清单增加文件名豁免。LICENSE.CANN,安装时从本仓cannbot-skills/LICENSE分发许可证;同步许可证引用和检查,覆盖生成文件、安装幂等性和配置保护。name元数据,将入口标记为实验性,并链接社区仓。保留本仓既有目录和安装布局。o关键字参数、PyPTO 原生切片语法和具有 DSL 语义的 VF 调用,补充对应回归;不直接接受自动清理导致的接口或语义变化。shell=False。AssertionError契约;真实python -O子进程验证无效配置会在进入 native 装饰器之前被拒绝。验证
fd41dd34afb515e7503cfa028274f0d10bafaf9a的 #530 中,权限、PR 关联、格式、precommit、防投毒与 SCA 全部通过;SCA 确认扫描提交一致,0 条问题。CodeCheck 仍因 Minor 项未通过,Critical/Major、版权/许可证头、循环闭包、可变默认参数和命令调用告警均为 0。PreSmoke 因 CodeCheck 前置失败未执行。从 skill 根目录执行工具回归(先安装 pytest 和
scripts/requirements-checks.txt):Minor 屏蔽申请参考
当前提交的 CodeCheck 报告 汇总为 Critical 0、Major 0、Minor 641。以下仅统计未屏蔽 Minor 项,共 24 类规则、1,765 条展开明细;平台汇总项与展开明细使用不同计数口径。未屏蔽的 810 处
assert命中均位于测试文件。以下为按规则、文件/函数范围申请屏蔽或暂缓整改的参考理由,由维护者在平台审核;许可证、版权、OAT 和 SCA 不纳入本表。命名协议和输出协议应保留;普通维护性建议可独立清理;字典键访问等依赖输入契约的条目需逐处核对。每条问题的文件和行号可在报告中按对应规则筛选。
AI 参与