已合并
chore: 补充 HPTG2@ops-math common 分类规则 op_math_proto_extend.h #7279
songkai111创建于 7 天前
chore: 补充 HPTG2@ops-math common 分类规则 op_math_proto_extend.h #7279
已合并
songkai111创建于 7 天前
songkai111成员
7 天前

描述

在 classify_rule.yaml 中补充 HPTG2@ops-math 的分类规则,新增 ops/ops-math/common/inc/op_graph/op_math_proto_extend.h 条目(位于 src.unrelease.test_code 列表),使该公共头文件纳入 HPTG2 的分类范围。

改动原因

op_math_proto_extend.h 是 common 目录下的公共头文件,HPTG2@ops-math 的分类规则此前未在该列表中覆盖该路径,需要补充。

改动方法

在 HPTG2@ops-math → src → unrelease → test_code 列表末尾新增一行:
- ops/ops-math/common/inc/op_graph/op_math_proto_extend.h
共 +1 行,不改动其他条目。

关联的Issue

测试

  • 通过 git diff 复核变更范围(仅 classify_rule.yaml,+1 行)
  • YAML 结构与缩进检查通过
  • 配置项变更,不涉及算子功能测试

文档更新

无

类型标签

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 songkai111 的贡献)
Ssongkai111成员
7 天前 创建了 pull request,commit d39690e2
atomgit-bot
atomgit-bot
7 天前 评论:

变更摘要

本次变更涉及 classify_rule.yaml 中针对 HPTG2@ops-math 分类规则的一处配置补充:在原有的交付文件清单中新增一条记录,把 ops/ops-math/common/inc/op_graph/op_math_proto_extend.h 纳入该规则的文件范围,使得这个公共 protobuf 扩展头文件与同目录下的其他 common/inc 头文件按一致的分类规则处理。

主要改动

  • 分类规则文件范围扩展:在 HPTG2@ops-math 规则的文件列表新增 ops/ops-math/common/inc/op_graph/op_math_proto_extend.h,用于将 op_graph 目录下的公共 proto 扩展头文件纳入统一归类。
  • 与既有 common 头文件归并:新增条目与已有的 common/inc/op_api/aclnn_check.h、level2_base_math.h 等条目并列,保持 ops-math/common/inc 路径下头文件在分类规则中的一致性。
  • 规则其余字段保持不变:non_delivery 与 open_source 等原有配置项未作调整,本次仅为清单条目的增量补充,不影响其他规则语义。

🧩 本次 Review 已使用自定义 Skill:

likedislike
不准确?
atomgit-bot
atomgit-bot
7 天前 评论:

代码审查

检视结论

改动文件与检视结果

  • classify_rule.yaml:发现 1 处问题(见下),其余部分(YAML 键拼写、缩进层级、路径书写格式)本次新增行未引入问题。

问题清单(1 条)

级别 位置 问题
P2 classify_rule.yaml:468 ops/ops-math/common/inc/op_graph/op_math_proto_extend.h 已在同一分组 HPTG2@ops-math 的 src.release.style(第 445 行)登记,本次又在 src.unrelease.test_code 中新增同一路径,形成 release/unrelease 互斥桶的归类冲突

风险判断

本次为单行 YAML 配置补充,无代码逻辑、无安全面变更,整体风险低。但新增行与已有的第 445 行完全重复,属于「本该核对已存在条目却重复添加」的配置一致性问题:最坏情况下会把一个交付用的 op_graph 图原型扩展头误判为非交付 test_code,使其脱离交付侧规范/门禁检查;最好情况也只是一条永远命中不到的冗余配置。建议删除该行,或先确认真正要补充的目标分组/桶位再提交。

类型 数量
🔴 阻塞 0
🟡 建议 1

💬 仅评论


🧩 本次 Review 已使用自定义 Skill:

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

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/ops-math ✅ 张磊, 汤平川 (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

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

likedislike
CANN-robotCANN-robot成员
7 天前 将yue-ma,zhou-qilong,wangrui_,rxtfeng,loov1,zhangzijie,jia0liang,zl_hw,chenxingyu18,pingchuantang,llimwang,gubaocheng,andong_hw,xuejinghui,onanfield,zhanw_coding,jiangjiawei,clinglai0517设为评审人
CANN-robotCANN-robot成员
7 天前 将yue-ma,zhou-qilong,wangrui_,rxtfeng,loov1,zhangzijie,jia0liang,zl_hw,chenxingyu18,pingchuantang,llimwang,gubaocheng,andong_hw,xuejinghui,onanfield,zhanw_coding,jiangjiawei,clinglai0517设为审查人
atomgit-bot
atomgit-bot7 天前进行代码检视1
classify_rule.yaml
@@ -465,6 +465,7 @@ HPTG2@ops-math:
465465 - ops/ops-math/common/inc/op_api/aclnn_check.h
466466 - ops/ops-math/common/inc/op_api/level2_base_math.h
467467 - ops/ops-math/experimental/math/reduce_mean_with_count/tests/ut/common/tiling_case_executor.cpp
468+ - ops/ops-math/common/inc/op_graph/op_math_proto_extend.h
atomgit-bot
atomgit-bot7 天前评论:

🟡 Medium Priority

变更行(classify_rule.yaml:468)在 HPTG2@ops-math 分组下新增 - ops/ops-math/common/inc/op_graph/op_math_proto_extend.h,但同一分组的 src.release.style 列表第 445 行早已存在完全相同的路径。

证据链:

  1. 第 439 行 HPTG2@ops-math: → 第 441 行 release: → 第 442 行 style: → 第 445 行已有 - ops/ops-math/common/inc/op_graph/op_math_proto_extend.h;
  2. 第 455 行 unrelease: → 第 456 行 test_code: → 新增第 468 行为同一路径;
  3. 全文检索该文件名只命中这两处,且均在同一 HPTG2@ops-math 分组内。

影响与失败模式:release 与 unrelease 在语义上互斥(交付件 vs 非交付件),同一文件路径同时出现在两个桶中会产生归类冲突。下游按该规则做文件分类/交付统计/门禁检查时,命中结果取决于匹配实现(先匹配 release 则新增行是纯冗余死配置;先匹配 unrelease 则把一个 public 的 op_graph 图原型扩展头当作非交付 test_code,从交付件清单/交付侧门禁中被剔除,导致该头文件的规范与交付检查漏检)。此外新增行被放进 test_code(test_code 桶内其余条目多为 tests/examples/build.sh 等非交付内容),与文件本身作为交付头文件的属性不符。

建议:删除第 468 行新增的重复条目(该文件已在第 445 行的 release.style 中登记)。若确实需要补充到其他分组/桶位,请先确认正确目标位置并避免同一路径在 release 与 unrelease 中重复出现。

likedislike
不准确?
Ssongkai111成员
7 天前 修改了pull request 的描述
Ssongkai111成员
7 天前 解决了最后一个问题
songkai111成员
7 天前 评论:

compile

likedislike
Ssongkai111成员
7 天前 预合并成功(commit_id: 5eaf56847a70035ed66da4374830d9632abf1da0)
CANN-robot
CANN-robot成员
7 天前 评论:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robot成员
7 天前 添加了label:ci-pipeline-running
CANN-robotCANN-robot成员
7 天前 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
7 天前 添加了label:ci-pipeline-passed
chenyifeng成员
7 天前 评论:

您好,PR已满足合入指标,请尽快联系Committer进行合入。如暂时不需要合入,请在PR标题前加[WIP]

likedislike
zl_hw成员
7 天前 评论:

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
7 天前 添加了label:approved
TangPC
TangPC成员
7 天前 评论:

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
7 天前 添加了label:lgtm
CANN-robotCANN-robot成员
7 天前 关闭了关联的issue
CANN-robotCANN-robot成员
7 天前 合入了pull request