已合并
fix ut opgraph cov #4933
chenqi317创建于 5月18日
fix ut opgraph cov #4933
已合并
C
chenqi317成员
5月18日
5月18日
## 描述
修复opgraph ut 覆盖率统计失败问题
CMake Error at tests/ut/CMakeLists.txt:47 (add_custom_command):
No TARGET 'generate_ops_cpp_cov' has been created in this directory.
适配lcov版本 报错,:
geninfo: ERROR: Unexpected negative count '-1' for /usr/include/c++/13/bits/stl_algobase.h:390.
Perhaps you need to compile with '-fprofile-update=atomic
(use "geninfo --ignore-errors negative ..." to bypass this error)
lcov: ERROR: no valid records found in tracefile ***//build/tests/ut/cov_report/cpp_utest/ops.info
(use "lcov --ignore-errors empty ..." to bypass this error)
generated coverage file ***//build/tests/ut/cov_report/cpp_utest/ops.info
lcov: ERROR: no valid records found in tracefile ***//build/tests/ut/cov_report/cpp_utest/ops.info
use "lcov --ignore-errors empty ..." to bypass this error)
## 关联的Issue
https://gitcode.com/cann/ops-nn/issues/2731
## 测试
已验证成功反馈UT 覆盖率
## 文档更新
不涉及
## 类型标签
- [x] Bug修复
- [ ] 新特性
- [ ] 性能优化
- [ ] 文档更新
- [ ] 其他,请描述:


Pull Request已成功合入, 合并人@CANN-robot
(感谢 chenqi317 的贡献)CANN-robot
5月18日 评论:
5月18日 评论:
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 |
|---|---|---|
| scripts | ✅ 范其瑞, 胡碧霞 (2/2) | ✅ 范其瑞, 胡碧霞 (2/1) |
| tests | ✅ 范其瑞, 胡碧霞 (2/2) | ✅ 范其瑞, 胡碧霞 (2/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
chenqi317, thanks for your pull request. All authors of the commits have signed the CLA. 👍


5月18日 添加了label:cann-cla/yes
5月18日 将chenfeng61,crystalhu,yangyang016,fanqirui,zhou-qilong,zhajianqing123,liubo75,tangweiwei2,zhangyuxiang0119设为评审人
5月18日 将chenfeng61,crystalhu,yangyang016,fanqirui,zhou-qilong,zhajianqing123,liubo75,tangweiwei2,zhangyuxiang0119设为评审人
5月18日 将chenfeng61,crystalhu,yangyang016,fanqirui,zhou-qilong,zhajianqing123,liubo75,tangweiwei2,zhangyuxiang0119设为审查人
5月18日 将chenfeng61,crystalhu,yangyang016,fanqirui,zhou-qilong,zhajianqing123,liubo75,tangweiwei2,zhangyuxiang0119设为审查人
5月18日 添加了label:ci-pipeline-running
CANN-robot
5月18日 评论:
5月18日 评论:
流水线任务触发成功
任务链接 [78c468c91aaf40dfa0c6f32d28b10ffb][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| 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 | >>>>> | >>>>> |
| Pre_Compile | ✅ 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 | >>>>> | |
| ATK_Test_A2 | ✅ SUCCESS |
[2026-05-18 10:01:43] CI执行结束


范其瑞
5月18日 评论:
5月18日 评论:
/lgtm


CANN-robot
5月18日 评论:
5月18日 评论:
流水线任务触发成功
任务链接 [c7e906ccf2a249f880b7f2c995d65e74][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck | ✅ SUCCESS | >>>>> | |
| antipoison | ✅ SUCCESS | ||
| Check_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_style | ✅ SUCCESS | ||
| codecheck_precommit | ✅ SUCCESS | >>>>> | >>>>> |
[2026-05-18 09:55:18] CI执行结束


此处折叠了6条事件消息 查看更多
5月18日 删除了label:ci-pipeline-passed
CANN-robot
5月18日 评论:
5月18日 评论:
5月18日 删除了label:api-check-pass
5月18日 添加了label:ci-pipeline-running
CANN-robot
5月18日 评论:
5月18日 评论:
流水线任务触发成功
任务链接 [945874b43e76417d9251dd5cdf848540][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| 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 | >>>>> | >>>>> |
| Pre_Compile | ✅ 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 | >>>>> | |
| ATK_Test_A2 | ✅ SUCCESS |
[2026-05-18 10:12:59] CI执行结束


CANN-robot
5月18日 评论:
5月18日 评论:
流水线任务触发成功
任务链接 [d4a428c9d83f4649b3746c43a7b338b7][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck | ✅ SUCCESS | >>>>> | |
| antipoison | ✅ SUCCESS | ||
| Check_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_style | ✅ SUCCESS | ||
| codecheck_precommit | ✅ SUCCESS | >>>>> | >>>>> |
[2026-05-18 10:06:33] CI执行结束


范其瑞
5月18日 评论:
5月18日 评论:
/lgtm
/approve


5月18日 添加了label:approved
5月18日 添加了label:api-check-pass
5月18日 删除了label:ci-pipeline-running
5月18日 添加了label:ci-pipeline-passed
5月18日 添加了label:lgtm
CANN-robot
5月18日 评论:
5月18日 评论:
5月18日 关闭了关联的issue
5月18日 合入了pull request