已关闭
[Log规范] runtime目录下日志不规范问题整改 #566
wangyuchen创建于  12 天前关闭于  9 天前
wangyuchen
wangyuchen成员
12 天前 创建

背景

根据日志规范扫描结果(output/ge-gmd-runtime_findings.jsonl),runtime 目录下共发现 21处 日志不规范问题,涉及拼写错误、语法错误、日志级别错配、缺少度量单位四类。

问题清单

1. 拼写错误(8处,严重)

Dose not support → Does not support

文件 行号
runtime/om2/formats/format_transfers/om2_format_transfer_c1hwncoc0_hwcn.cc 30
runtime/om2/formats/format_transfers/om2_format_transfer_fracz_hwcn.cc 32
runtime/om2/formats/format_transfers/om2_format_transfer_fracz_nchw.cc 30
runtime/om2/formats/format_transfers/om2_format_transfer_fracz_nhwc.cc 30
runtime/om2/formats/format_transfers/om2_format_transfer_hwcn_c1hwncoc0.cc 50
runtime/om2/formats/format_transfers/om2_format_transfer_nc1hwc0_nchw.cc 30
runtime/om2/formats/format_transfers/om2_format_transfer_nc1hwc0_nhwc.cc 30
runtime/om2/formats/format_transfers/om2_format_transfer_nhwc_nc1hwc0.cc 55

2. 语法错误(5处,中等)

文件 行号 原文 修改建议
runtime/v2/engine/aicore/converter/aicore_node_converter.cc 1042, 1168, 1273 Not find AI core task def Failed to find AI core task def
runtime/v2/engine/aicore/converter/aicore_node_converter.cc 1306 Not find AI core taskdef. Failed to find AI core taskdef.
runtime/v2/engine/gelocal/if_case_converter.cc 53 Failed to lowering Failed to lower
runtime/v2/kernel/common_kernel_impl/build_tensor.cc 58 not support dtype is not supported
runtime/v2/kernel/common_kernel_impl/infer_shape_range.cc 32 dim num not match does not match

3. 日志级别错配(4处,中等)

错误/失败场景错误使用了 INFO 级别日志,应改用 WARN 或 ERROR 级别。

文件 行号 当前级别 描述
runtime/custom_op/python_custom_op_bridge_loader.cc 80 GELOGI opendir failed 用 INFO
runtime/custom_op/python_custom_op_bridge_loader.cc 91 GELOGI stat failed 用 INFO
runtime/om2/om2_model_executor.cc 1616 GELOGI Dlclose 失败用 INFO
runtime/v1/hybrid/executor/runtime_v2/rt_v2_pipeline_executor.cc 376 GELOGI Stage stop failed 用 INFO

4. 缺少度量单位(2处,中等)

文件 行号 问题
runtime/v1/graph/load/model_manager/model_manager.cc 2139, 2335 timeout 值未标识单位(ms/s)

5. 其他日志问题

严重级 规则 仓库 分支 文件 行号 代码 问题原因 修复建议 发现时间 所属分队 漏改严重
拼写错误 ge - api/session/jit_execution/utils/jit_infer_utils.cc 87 GELOGD("Infer node:%s. Parent node uninfered", (*it)->GetName().c_str());
it = inferred_nodes.erase(it);
日志文案存在英文拼写错误:uninfered 应为 uninferred,影响阅读与检索 将输出文案中的 uninfered 修正为 uninferred 后复测 2026-09-09 18:53:31 基础图框架分队 1
严重 拼写错误 ge - api/session/jit_execution/utils/partitioner/binary_partitioner.cc 76 bool BinaryPartitioner::CheckNodesContainsCycle(const std::vector<NodePtr> &infered_nodes,
const std::vector<NodePtr> &uninfer_nodes) {
日志文案存在英文拼写错误:uninfered/infered 应为 uninferred/inferred,影响阅读与检索 将输出文案中的 uninfered/infered 修正为 uninferred/inferred 后复测 2026-09-09 18:53:31 基础图框架分队 1
一般 语法错误 ge - api/session/jit_execution/utils/partitioner/binary_partitioner.cc 29 GELOGI("Partition completed! remaining nodes is empty. graph name:%s", graph->GetName().c_str()); 主谓不一致:复数主语搭配单数系动词 is:"Partition completed! remaining nodes is empty. graph name:%s" 修正语法后复测 2026-09-09 18:53:31 基础图框架分队 1
一般 语法错误 ge - base/formats/format_transfers/format_transfer_transpose.cc 85 GELOGE(ACL_ERROR_GE_DATATYPE_INVALID, "[Trans][Param]Failed, the data type %s is not support", 缺助动词或动词形式错误(not support 应为 does not support / is not supported):"[Trans][Param]Failed, the data type %s is not support" 修正语法后复测 2026-09-09 18:53:31 基础图框架分队 1
一般 语法错误 ge - compiler/graph/manager/graph_manager.cc 5452 GELOGE(FAILED, 相邻字符串字面量拼接处缺少空格:PLIST conflicts with 与 OPTION_EXEC_HCOM_GRO 直接相连 在拼接边界补一个空格后复测 2026-09-09 18:53:31 基础图框架分队 1
一般 语法错误 ge - compiler/graph/optimize/autofuse/autofuse/lowering/lowerings.cpp 613 GELOGI( 相邻字符串字面量拼接处缺少空格:ersize, or this node 与 different core num s 直接相连 在拼接边界补一个空格后复测 2026-09-09 18:53:31 基础图框架分队 1
一般 语法错误 ge - compiler/graph/optimize/autofuse/autofuse/lowering/lowerings.cpp 614 GELOGI(
"Try re-lowering for node %s, type %s after realize inputs as kernel box is oversize, or this node"
"different core num scope with after nodes.",
node->GetName().c_str(), node->GetType().c_str());
相邻字符串字面量拼接处缺少空格:...ersize, or this node 与 different core num s... 直接相连,运行时输出为 or this nodedifferent co 在相邻字面量的拼接边界补一个空格后复测 2026-09-09 18:53:31 基础图框架分队 1
一般 语法错误 ge - runtime/om2/formats/format_transfers/om2_format_transfer_transpose.cc 85 GELOGE(ACL_ERROR_GE_DATATYPE_INVALID, "[Trans][Param]Failed, the data type %s is not support", 缺助动词或动词形式错误(not support 应为 does not support / is not supported):"[Trans][Param]Failed, the data type %s is not support" 修正语法后复测 2026-09-09 18:53:31 基础图框架分队 1
一般 语法错误 metadef - base/asc/tilingdata_base_impl.cc 224 printf("[Warning]: tiling struct [%s] is conflict with one in file %s, line %u\n", name, item.first, item.second); is conflict with 动词形式错误,应为 conflicts with 修正语法后复测 2026-09-09 12:59:15 基础图框架分队 1

修改要求

  1. 拼写错误全部修正
  2. 语法错误按英文规范修正
  3. 日志级别错配的根据实际情况改为 GELOGW 或 GELOGE
  4. 缺少单位的补充单位标识
likedislike
wangyuchenwangyuchen成员
12 天前 添加了label:bug
wangyuchenwangyuchen成员
12 天前 将 lihecen 设为负责人
夏国正成员
12 天前 评论:

您好,感谢您提出问题,我们将尽快确认,如果明确是问题将会提出pr进行修复,请关注issue状态

likedislike
lihecenlihecen成员
11 天前 关联了pull request:[PR]: 整改 runtime 目录日志不规范问题
wangyuchenwangyuchen成员
10 天前 修改了issue 的描述
lihecenlihecen成员
10 天前 关联了pull request:[PR]: 整改日志不规范问题(Issue #566 第5类 其他日志问题)
lihecenlihecen成员
10 天前 关联了pull request:fix: 整改 api/compiler/runtime 目录日志不规范问题 for #566
wangyuchenwangyuchen成员
9 天前 issue状态由 进行中 改变为 已完成
wangyuchenwangyuchen成员
9 天前 关闭了 issue
lihecenlihecen成员
6 天前 关联了pull request:fix: cherry-pick 拼写修正与日志规范整改到9.2.0分支 (#4987 #5025)