已关闭
[Bug-Report|缺陷反馈]: develop 分支 compiler/engines/cpu_engine、runtime/v2/engine/aicpu 运行时日志文案不符合《CANN 日志规范》 #541
Ding_Jing创建于 9 天前关闭于 8 天前
Ding_Jing
9 天前 评论:
9 天前 评论:
/assign


9 天前 将 Ding_Jing 设为负责人
Ding_Jing
8 天前 评论:
8 天前 评论:
/close


CANN-robot
8 天前 评论:
8 天前 评论:
Notice
@Ding_Jing , this issue is linked to an open PR. Please merge the PR before closing this issue.


8 天前 关闭了 issue
8 天前 添加了label:resolved
Describe the current behavior / 问题描述 (Mandatory / 必填)
用 CANN 日志规范评测工具(cann-log-evaluation)对 develop 分支 的
compiler/engines/cpu_engine、runtime/v2/engine/aicpu运行时日志做了全量扫描,发现 233 处日志文案不符合《CANN 日志规范》,分布为:语法错误 163、拼写错误 37、
错误描述不完整 17、缺少度量单位 15、魔鬼数字 1。
典型问题:
neod def→node def(13 处)、Tran→Convert、probuf→protobuf、adge→edge、funtion→function、smaller then→smaller thanwhen calculate→when calculating、is not need update→does not need to update、has already exist→already exists、failed result of→because ...Call UpdateInputDesc ...实际调用的是UpdateOutputDesc;AddInputDesc "x"与"perm"两处共用同一句文案;ffts 属性名打印成ATTR_NAME_UNKNOWN_SHAPE_TYPE,改为真实属性名bytes;unknown type 4改为unknown shape type[DEPEND_COMPUTE]与 master 分支(Issue #528)的关系:同一批缺陷。逐行比对后,两个责任路径内
develop 与 master 仅有 2 行差异,且均为 develop 侧尚未回流的
failed→fail退化:cpu_optimizer.cpp:216"[%s]BuildFftsInfoAicpuNodeDef fail state[%u]""[%s]BuildFftsInfoAicpuNodeDef failed, state[%u]"ops_parallel_rule_json_file.cpp:54"Convert ops parallel json [rule:%s] fail.""Convert ops parallel json [rule:%s] failed."因此 develop 侧比 master 侧多 1 处待修(语法 162 → 163)。
这些日志出现在参数校验、错误上报等排障路径上,文案拼写/语法错误会导致按关键字检索日志时漏检,
描述与实参不符则会把排障方向直接带偏。
Environment / 环境信息 (Mandatory / 必填)
f3c3a50d5)Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
compiler/engines/cpu_engine、runtime/v2/engine/aicpu下的运行时日志打印语句;Describe the expected behavior / 预期结果 (Mandatory / 必填)
运行时日志文案应满足:拼写与语法正确、描述与实际执行动作/实参一致、
出错日志给出当前值与合法范围、度量值带单位、日志级别与内容匹配。
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
问题样例见上方"问题描述"。完整问题清单与逐条修改建议由 cann-log-evaluation 工具产出。
Special notes for this issue/备注 (Optional / 选填)
修复 PR:#4568(由 master 侧 #4494 cherry-pick 而来,并补齐上述 develop 特有的 1 处)。
对应 master 分支 Issue:#528。修复仅改动日志格式串及其实参,不改变任何控制流。