已合并
refactor: 移除 gen_ci_cmd.py 中 experimental 提前返回及注释代码,启用实验性算子示例命令生成 #3155
songkai111创建于 6月6日
refactor: 移除 gen_ci_cmd.py 中 experimental 提前返回及注释代码,启用实验性算子示例命令生成 #3155
已合并
Pull Request已成功合入, 合并人@CANN-robot
(感谢 songkai111 的贡献)6月6日 创建了 pull request,commit e83549ff
6月6日 添加了label:cann-cla/yes
CANN-robot
6月6日 评论:
6月6日 评论:
CANN-robot
6月6日 评论:
6月6日 评论:
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
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| repo-cann/ops-math | ✅ 王林木, 张磊 (2/2) | ✅ 王林木, 张磊 (2/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)


songkai111
6月6日 评论:
6月6日 评论:
compile


Ssongkai111
6月6日 update merge request[project id: 7649531, iid: 3155, commit_id: e64f8238ede44849d11d70b5f19d7d1417f5e77e] virtual merging success
6月6日 update merge request[project id: 7649531, iid: 3155, commit_id: e64f8238ede44849d11d70b5f19d7d1417f5e77e] virtual merging success
6月6日 添加了label:ci-pipeline-running
CANN-robot
6月6日 评论:
6月6日 评论:
流水线任务触发成功
任务链接 [d86ed8a6ab8a4dd6b35553554fa2bd1a][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_mobile_station | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_experimental | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_experimental | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_single | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_A5 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_A5 | ✅ SUCCESS | >>>>> | >>>>> |
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_mobile_station_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_experimental_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_A5_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_harmony-infer | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_ARM_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_experimental_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_single_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_A5_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_910b | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_910c | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_950 | ✅ SUCCESS | >>>>> | >>>>> |
| UT_Test | ✅ SUCCESS | ||
| UT_Test_experimental | ✅ SUCCESS | ||
| UT_Test_kernel | ✅ SUCCESS | ||
| PreSmoke_A900 | ✅ SUCCESS | >>>>> | |
| API_Check | ✅ SUCCESS | >>>>> | |
| PreSmoke_ATK_Test_A2 | ✅ SUCCESS | >>>>> |
[2026-06-06 11:09:49] CI执行结束


Ssongkai111
6月6日 修改标题为 “refactor: 移除 gen_ci_cmd.py 中 experimental 提前返回及注释代码,启用实验性算子示例命令生成”,原标题为“去除注释代码”
6月6日 修改标题为 “refactor: 移除 gen_ci_cmd.py 中 experimental 提前返回及注释代码,启用实验性算子示例命令生成”,原标题为“去除注释代码”
6月6日 修改了pull request 的描述
CANN-robot
6月6日 评论:
6月6日 评论:
流水线任务触发成功
任务链接 [82f80d3da2634e708fae3173dd19574d][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck | ✅ SUCCESS | >>>>> | |
| SCA | ✅ SUCCESS | >>>>> | |
| antipoison | ✅ SUCCESS | >>>>> | |
| codecheck_Pr | ✅ SUCCESS | ||
| StaticCheck_codespell_check | ✅ SUCCESS | ||
| StaticCheck_link_validity_check | ✅ SUCCESS | ||
| StaticCheck_resource_existence_check | ✅ SUCCESS | ||
| StaticCheck_tag_closed_check | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS | ||
| codecheck_codestyle | ✅ SUCCESS | >>>>> | |
| codecheck_precommit | ✅ SUCCESS | >>>>> | >>>>> |
[2026-06-06 11:02:27] CI执行结束


6月6日 添加了label:approved
6月6日 添加了label:lgtm
此处折叠了5条事件消息 查看更多
描述
移除
scripts/ci/gen_ci_cmd.py中build_example_commands()函数内的无用代码,使实验性算子的示例命令能够正常生成。改动内容
if experimental: return commands提前返回逻辑:原代码在experimental=True时直接返回空列表,导致实验性算子的示例命令无法生成。移除该逻辑后,实验性算子将与普通算子一样走完整的示例命令生成流程(检查 examples 目录、生成 eager 类型命令)# TODO: 后续放开 graph 命令生成及其下方已注释的 graph 命令生成代码块,清理无用的注释残留关联的Issue
测试
文档更新
类型标签
Related Roadmap: https://gitcode.com/cann/ops-math/issues/1258