已合并
fix conv kernel ut #5186
zhengjia_gaffey创建于 5月24日
fix conv kernel ut #5186
已合并
Pull Request已成功合入, 合并人@CANN-robot
(感谢 zhengjia_gaffey 的贡献)5月24日 创建了 pull request,commit 66789582
5月24日 添加了label:stat/needs-squash
CANN-robot
5月24日 评论:
5月24日 评论:
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 |
|---|---|---|
| conv | ✅ 陈琦, 杨阳 (2/2) | ✅ 陈琦 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
zhengjia_gaffey, thanks for your pull request. All authors of the commits have signed the CLA. 👍


5月24日 添加了label:cann-cla/no
5月24日 将crystalhu,yangyang016,fanqirui,zhou-qilong,chenqi317,lileizheng,liubo75,tangweiwei2,zhangyuxiang0119,wangcimeng,huafeng793,zhang-wu设为评审人
5月24日 将crystalhu,yangyang016,fanqirui,zhou-qilong,chenqi317,lileizheng,liubo75,tangweiwei2,zhangyuxiang0119,wangcimeng,huafeng793,zhang-wu设为评审人
5月24日 将crystalhu,chenqi317,lileizheng,liubo75,tangweiwei2,zhangyuxiang0119,wangcimeng,huafeng793,zhang-wu设为审查人
5月24日 将crystalhu,chenqi317,lileizheng,liubo75,tangweiwei2,zhangyuxiang0119,wangcimeng,huafeng793,zhang-wu设为审查人
CANN-robot
5月24日 评论:
5月24日 评论:
| 检查项 | 状态 | 详情 |
|---|---|---|
| 接口管理 |
通过
|


5月25日 修改了pull request 的描述
Zzhengjia_gaffey
5月25日 update merge request[project id: 7665709, iid: 5186, commit_id: 3c6d12018f6f726e21bb7b1e5a2b17d428e9b2ca] virtual merging success
5月25日 update merge request[project id: 7665709, iid: 5186, commit_id: 3c6d12018f6f726e21bb7b1e5a2b17d428e9b2ca] virtual merging success
5月25日 添加了label:ci-pipeline-running
CANN-robot
5月25日 评论:
5月25日 评论:
流水线任务触发成功
任务链接 [85d215f9d4f04c148919cbaea4a36a06][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_mobile_station | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_single | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_experimental | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_950 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_950 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Pre | ✅ SUCCESS | >>>>> | |
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_mobile_station_ubuntu24 | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_950_ubuntu24 | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_ARM_ubuntu24 | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_single_ubuntu24 | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_experimental_ubuntu24 | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_ARM_950_ubuntu24 | ✅ SUCCESS | >>>>> | |
| Compile_X86_monitor_910b | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_910c | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_950 | ✅ SUCCESS | >>>>> | >>>>> |
| UT_Test_ophost | ✅ SUCCESS | ||
| UT_Test_opapi | ✅ SUCCESS | ||
| UT_Test_kernel | ✅ SUCCESS | ||
| UT_Test_opgraph | ✅ SUCCESS | ||
| PreSmoke_A900 | ✅ SUCCESS | >>>>> | |
| API_Check | ✅ SUCCESS | >>>>> | |
| PreSmoke_ATK_Test_A2 | ✅ SUCCESS | >>>>> | |
| UT_Test_report_lcov | ✅ SUCCESS | >>>>> |
[2026-05-25 10:19:10] CI执行结束


CANN-robot
5月25日 评论:
5月25日 评论:
流水线任务触发成功
任务链接 [28d3fff48b664ae38048109411e8a5cf][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck | ✅ SUCCESS | >>>>> | |
| antipoison | ✅ SUCCESS | >>>>> | |
| codecheck_checkpr | ✅ SUCCESS | ||
| StaticCheck_codespell_check | ✅ SUCCESS | ||
| StaticCheck_link_validity_check | ✅ SUCCESS | ||
| StaticCheck_resource_existence_check | ✅ SUCCESS | ||
| StaticCheck_tag_closed_check | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS | ||
| codecheck_style | ✅ SUCCESS | >>>>> | |
| codecheck_precommit | ⚠️ WARNING | >>>>> | >>>>> |
[2026-05-25 09:51:26] CI执行结束


5月25日 添加了label:api-check-pass
5月25日 删除了label:ci-pipeline-running
5月25日 添加了label:ci-pipeline-passed
5月25日 添加了label:approved
yangyang016
5月25日 评论:
5月25日 评论:
/lgtm
/approve


5月25日 添加了label:lgtm
zhengjia_gaffey
5月25日 评论:
5月25日 评论:
/check-cla


zhengjia_gaffey
5月25日 评论:
5月25日 评论:
/check-cla


zhengjia_gaffey
5月25日 评论:
5月25日 评论:
/check-cla


zhengjia_gaffey
5月25日 评论:
5月25日 评论:
/check-cla


5月25日 删除了label:cann-cla/no
5月25日 添加了label:cann-cla/yes
CANN-robot
5月25日 评论:
5月25日 评论:
5月25日 合入了pull request
描述
Kernel UT 中存在大量分散的测试数据准备代码,使用 system() 调用执行 shell 命令:
重复样板代码多:至少 131 个文件包含 system() 调用
依赖 GNU/Linux 工具:cp、chmod、rm、get_current_dir_name(非跨平台)
错误定位困难:system() 返回码粗糙,无法区分路径错误、权限问题、Python缺失等
维护成本高:同一套逻辑散落在大量算子测试中
修改方案
统一测试数据生命周期管理:拷贝、清理、生成、比对
改善报错体验:使用项目标准日志宏 OP_LOGI/OP_LOGE,区分路径错误、脚本执行失败等
降低贡献门槛:开发者只需声明数据目录和参数
本次修改对conv 目录下的部分算子 kernel ut 逐步迁移
关联的Issue
[Requirement|需求建议]: 统一 Kernel UT 数据准备流程,消除分散的 system(...) 依赖 #2337
测试
UT 运行正常
文档更新
类型标签