已合并
fix ut opgraph cov #4933
chenqi317创建于 5月18日
fix ut opgraph cov #4933
已合并
chenqi317创建于 5月18日
chenqi317成员
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修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他,请描述:
likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 chenqi317 的贡献)
Cchenqi317成员
5月18日 创建了 pull request,commit 8679d8aa
CANN-robot
CANN-robot成员
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 /approve or /lgtm
  • Commenting /approve implies 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. 👍

likedislike
CANN-robotCANN-robot成员
5月18日 添加了label:cann-cla/yes
CANN-robotCANN-robot成员
5月18日 将chenfeng61,crystalhu,yangyang016,fanqirui,zhou-qilong,zhajianqing123,liubo75,tangweiwei2,zhangyuxiang0119设为评审人
CANN-robotCANN-robot成员
5月18日 将chenfeng61,crystalhu,yangyang016,fanqirui,zhou-qilong,zhajianqing123,liubo75,tangweiwei2,zhangyuxiang0119设为审查人
Cchenqi317成员
5月18日 关联了issue:[Bug-Report|缺陷反馈]: ut opgraph cov 报错, LCOV version 2.0-1 版本覆盖率统计报错
chenqi317成员
5月18日 评论:

compile

likedislike
Cchenqi317成员
5月18日 update merge request[project id: 7665709, iid: 4933, commit_id: 3ad9056c7a6cebecb8e9740ce58be8a517c1a75c] virtual merging success
CANN-robotCANN-robot成员
5月18日 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
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执行结束

likedislike
范其瑞
范其瑞成员
5月18日 评论:

/lgtm

likedislike
CANN-robot
CANN-robot成员
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执行结束

likedislike
Cchenqi317成员
5月18日 修改了pull request 的描述
此处折叠了6条事件消息 查看更多
CANN-robotCANN-robot成员
5月18日 删除了label:ci-pipeline-passed
CANN-robot
CANN-robot成员
5月18日 评论:

Notification

This pull request source branch has changed, so removes the following label(s): ci-pipeline-passed.

likedislike
chenqi317成员
5月18日 评论:

compile

likedislike
Cchenqi317成员
5月18日 update merge request[project id: 7665709, iid: 4933, commit_id: 137b81c2cd5442a0c788139e52e03febb05c835f] virtual merging success
CANN-robotCANN-robot成员
5月18日 删除了label:api-check-pass
CANN-robotCANN-robot成员
5月18日 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
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执行结束

likedislike
CANN-robot
CANN-robot成员
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执行结束

likedislike
范其瑞
范其瑞成员
5月18日 评论:

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
5月18日 添加了label:approved
CANN-robotCANN-robot成员
5月18日 添加了label:api-check-pass
CANN-robotCANN-robot成员
5月18日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
5月18日 添加了label:ci-pipeline-passed
胡碧霞成员
5月18日 评论:

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
5月18日 添加了label:lgtm
CANN-robot
CANN-robot成员
5月18日 评论:

Review Guide

This pull-request passes review.
Committers who wrote a comment of /approve are: 范其瑞, 胡碧霞.
Reviewers who wrote a comment of /lgtm are: 胡碧霞, 范其瑞.

likedislike
CANN-robotCANN-robot成员
5月18日 关闭了关联的issue
CANN-robotCANN-robot成员
5月18日 合入了pull request