已合并
【PR】: 整改目录日志不规范问题 #5025
【PR】: 整改目录日志不规范问题 #5025
已合并
lihecen创建于 20 天前
lihecen
lihecen成员
20 天前

Pull Request

描述

按照 issue #566 的日志规范扫描结果,整改 api、compiler、runtime 目录下共 25 处日志不规范问题:

  1. 拼写错误(10处):Dose not support → Does not support(runtime/om2 format_transfers 8处)、uninfered → uninferred(api/session 2处)
  2. 语法错误(11处):Not find → Failed to find(aicore_node_converter 4处)、Failed to lowering → Failed to lower(if_case_converter 5处)、not support dtype → dtype is not supported(build_tensor)、dim num not match → dim num does not match(infer_shape_range)、nodes is empty → nodes are empty(binary_partitioner)、is not support → is not supported(transpose 2处,此前已修复)
  3. 相邻字符串拼接缺空格(2处):graph_manager.cc、lowerings.cpp
  4. 日志级别错配(4处):opendir/stat failed、资源释放失败、stage stop failed 等失败场景由 GELOGI 改为 GELOGW
  5. 缺少度量单位(2处):model_manager.cc 中 timeout 日志补充单位 s(秒)

变更类型

关联的Issue

#566

如何测试

  1. 日志文案变更,无功能逻辑改动,编译通过即可
  2. 触发 CI 流水线验证编译与测试通过

核对清单

其他信息

issue #566 中 base/asc/tilingdata_base_impl.cc 属于 metadef 独立仓库,不在本仓库修复范围内。

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 lihecen 的贡献)
lihecenlihecen成员
20 天前 创建了 pull request,commit 299c7df3
lihecenlihecen成员
20 天前 关联了issue:[Log规范] runtime目录下日志不规范问题整改
atomgit-bot
atomgit-bot
20 天前 评论:

变更摘要

本 PR 按照 issue #566 的日志规范扫描结果,对 api、compiler、runtime 目录下的日志文案、级别与格式进行整改,涉及拼写、语法、字符串拼接、日志级别和度量单位等几类问题,不涉及功能逻辑改动。核心变更包括:将 om2 format_transfers 中的 Dose not support 修正为 Does not support,将 uninfered/infered 修正为 uninferred/inferred,将 Not find、Failed to lowering、not support dtype、dim num not match 等表述修正为规范英文;对部分失败场景日志级别由 GELOGI 调整为 GELOGW;并补充超时日志的秒单位。

主要改动

  • 拼写与语法修正: runtime/om2/formats/format_transfers 下多处 CheckArgs 的错误信息由 Dose not support trans format 改为 Does not support trans format;api/session/jit_execution/utils/jit_infer_utils.cc 与 binary_partitioner.cc 中 uninfered/infered 改为 uninferred/inferred,并同步更新注释。
  • 错误信息表述规范化: aicore_node_converter.cc 中 Not find AI core task def 改为 Failed to find AI core task def;if_case_converter.cc 中 Failed to lowering 改为 Failed to lower;build_tensor.cc 中 not support dtype 改为 dtype is not supported;infer_shape_range.cc 中 dim num not match 改为 dim num does not match;binary_partitioner.cc 中 remaining nodes is empty 改为 remaining nodes are empty。
  • 相邻字符串拼接补空格: graph_manager.cc 的 OPTION_EXEC_HCOM_GROUPLIST_V2 冲突提示、lowerings.cpp 的 re-lowering 提示中补齐拼接处缺失的空格,避免日志文案粘连。
  • 日志级别错配修正: python_custom_op_bridge_loader.cc 中 opendir/stat 失败日志、om2_model_executor.cc 中资源释放失败日志、rt_v2_pipeline_executor.cc 中 stage 停止失败分支由 GELOGI 改为 GELOGW(后者还拆分为成功/失败两条分支日志)。
  • 补充度量单位: model_manager.cc 中 LaunchKernelCustAicpuSo 与 LaunchKernelBuiltinAicpuSo 的 timeout 日志格式由 %u 改为 %us,为超时值补充秒单位。
likedislike
不准确?
atomgit-bot
atomgit-bot
20 天前 评论:

代码审查

✅ 未发现问题

likedislike
不准确?
CANN-robotCANN-robot成员
20 天前 添加了label:stat/needs-squash
CANN-robotCANN-robot成员
20 天前 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
20 天前 评论:

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/ge ✅ yangyongqiang0606, ClarkXie, Mexyy (3/2) ✅ yangyongqiang0606 (1/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

lihecen, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
CANN-robotCANN-robot成员
20 天前 将yangyongqiang0606,kobemini,ClarkXie,tangqunzhang,xchu42,hugo111,lining23666,depeng1994,wqtshg_wt,peiyang,shengnan666,zhangfan_hanq,zhanj,zhujingjing,Mexyy,wangxiaotian995,stevenaw0,yuht9设为评审人
CANN-robotCANN-robot成员
20 天前 将yangyongqiang0606,kobemini,ClarkXie,tangqunzhang,xchu42,hugo111,lining23666,depeng1994,wqtshg_wt,peiyang,shengnan666,zhangfan_hanq,zhanj,zhujingjing,Mexyy,wangxiaotian995,stevenaw0,yuht9设为审查人
lihecen
lihecen成员
20 天前 评论:

compile

likedislike
lihecenlihecen成员
20 天前 预合并成功(commit_id: d7aa40036c623a158e87cd76b02a2d9512ed25f5)
CANN-robot
CANN-robot成员
20 天前 评论:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robot成员
20 天前 添加了label:ci-pipeline-running
CANN-robotCANN-robot成员
20 天前 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
20 天前 添加了label:ci-pipeline-passed
lihecenlihecen成员
20 天前 预合并成功(commit_id: 464706f3d18f081a94fec7a5a276d31c4370d103)
lihecenlihecen成员
20 天前 强制推送  1 个提交:79bf7dce-fix: 整改 api/compiler/runtime 目录日志不规范问题 for #566
lihecenlihecen成员
20 天前 预合并成功(commit_id: 26d70847da7750a01d4daebf662ee253f0623972)
lihecen
lihecen成员
20 天前 评论:

compile

likedislike
lihecenlihecen成员
20 天前 预合并成功(commit_id: bba0cfd46ba7475cd25d3ffabed277053cdca970)
CANN-robotCANN-robot成员
20 天前 删除了label:cann-cla/yes
CANN-robotCANN-robot成员
20 天前 删除了label:ci-pipeline-passedstat/needs-squash
CANN-robot
CANN-robot成员
20 天前 评论:

Notification

This pull request has been changed(code update) or closed, so removes the following label(s): ci-pipeline-passed, stat/needs-squash.

likedislike
CANN-robotCANN-robot成员
20 天前 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
20 天前 评论:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robot成员
20 天前 添加了label:ci-pipeline-running
此处折叠了5条事件消息 查看更多
CANN-robotCANN-robot成员
20 天前 添加了label:ci-pipeline-passed
ClarkXie
ClarkXie成员
20 天前 评论:

/lgtm

likedislike
夏国正成员
20 天前 评论:

/lgtm

likedislike
CANN-robotCANN-robot成员
20 天前 添加了label:lgtm
yangyongqiang
yangyongqiang成员
20 天前 评论:

/approve

likedislike
CANN-robotCANN-robot成员
20 天前 添加了label:approved
CANN-robotCANN-robot成员
20 天前 合入了pull request