已合并
MOE算子UT覆盖率配置 #6764
MOE算子UT覆盖率配置 #6764
已合并
wuxiyuan创建于 6月11日
wuxiyuan成员
6月11日

描述

背景

当前 tests/test_config.yaml 中 MOE 系列算子的 ut_cov_exclude 配置将整个算子目录排除在 UT 覆盖率统计之外,导致算子目录下的测试代码、示例代码等也被一并排除,无法真实反映 UT 覆盖情况。

修改内容

将 16 个 MOE 算子的 ut_cov_exclude 从排除整个算子目录改为仅排除不需要 UT 覆盖的源码子目录:

  • op_api/
  • op_graph/
  • op_kernel/

涉及算子:

序号 算子
1 moe_finalize_routing_v2
2 moe_finalize_routing_v2_grad
3 moe_fused_topk
4 moe_gating_top_k
5 moe_gating_top_k_backward
6 moe_gating_top_k_softmax
7 moe_init_routing_quant
8 moe_init_routing_v2_grad
9 moe_token_permute_with_ep
10 moe_token_permute_with_ep_grad
11 moe_token_permute_with_routing_map
12 moe_token_permute_with_routing_map_grad
13 moe_token_unpermute_with_ep
14 moe_token_unpermute_with_ep_grad
15 moe_token_unpermute_with_routing_map
16 moe_token_unpermute_with_routing_map_grad

关联的Issue

https://gitcode.com/cann/ops-transformer/issues/3058

测试

文档更新

类型标签

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 wuxiyuan 的贡献)
Wwuxiyuan成员
6月11日 创建了 pull request,commit 89a81dc4
CANN-robotCANN-robot成员
6月11日 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
6月11日 评论:

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
tests 刘丹, wang-minbo (2/2) 刘丹, wang-minbo (2/1)

💡 Tip:

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

CLA Signature Pass

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

likedislike
wuxiyuan成员
6月11日 评论:

compile

likedislike
Wwuxiyuan成员
6月11日 update merge request[project id: 7673863, iid: 6764, commit_id: fe8ec0a63fd1ef53359bbe366e90534cd5bf48d8] virtual merging success
CANN-robotCANN-robot成员
6月11日 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
6月11日 评论:

流水线任务触发成功
任务链接 [96f365eef3204391b127a3a28df88b71][流水线指导]

任务名称状态日志下载链接
Compile_Ascend_X86 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_mobile_station ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_experimental ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_experimental ✅ SUCCESS >>>>> >>>>>
Compile_Pre ✅ SUCCESS >>>>>
pre_comment ✅ SUCCESS >>>>>
Compile_Ascend_X86_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_mobile_station_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_experimental_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_experimental_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_910b ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_910c ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_950 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_experimental_950 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_experimental_950 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_experimental_950_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_experimental_950_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_classify ✅ SUCCESS >>>>>
UT_Test ✅ SUCCESS
PreSmoke_A900 ✅ SUCCESS >>>>>
API_Check ✅ SUCCESS >>>>>
PreSmoke_ATK_Test_A2 ✅ SUCCESS >>>>>
UT_Test_report_lcov ⚠️ WARNING >>>>>

[2026-06-11 17:15:33]    CI执行结束

likedislike
CANN-robot
CANN-robot成员
6月11日 评论:

流水线任务触发成功
任务链接 [0466268a621847999fe4d9790b77f1a3][流水线指导]

任务名称状态日志下载链接
codecheck ✅ SUCCESS >>>>>
SCA ✅ SUCCESS >>>>>
antipoison ✅ SUCCESS >>>>>
codecheck_style ✅ SUCCESS >>>>>
StaticCheck_codespell_check ✅ SUCCESS
StaticCheck_link_validity_check ✅ SUCCESS
StaticCheck_resource_existence_check ✅ SUCCESS
StaticCheck_tag_closed_check ✅ SUCCESS
StaticCheck_markdownlint ✅ SUCCESS
codecheck_checkpr ✅ SUCCESS
codecheck_precommit ⚠️ WARNING >>>>> >>>>>

[2026-06-11 16:57:17]    CI执行结束

likedislike
CANN-robotCANN-robot成员
6月11日 添加了label:api-check-pass
此处折叠了6条事件消息 查看更多
CANN-robotCANN-robot成员
6月11日 删除了label:ci-pipeline-passed
CANN-robot
CANN-robot成员
6月11日 评论:

Notification

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

likedislike
wuxiyuan成员
6月11日 评论:

compile

likedislike
Wwuxiyuan成员
6月11日 update merge request[project id: 7673863, iid: 6764, commit_id: 6dfb660c21f2f3094ca448a54b6931ff67f9b5e0] virtual merging success
CANN-robotCANN-robot成员
6月11日 删除了label:api-check-pass
CANN-robotCANN-robot成员
6月11日 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
6月11日 评论:

流水线任务触发成功
任务链接 [df9f90e0e657415f9e4c5747adf6b3a7][流水线指导]

任务名称状态日志下载链接
Compile_Ascend_X86 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_mobile_station ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_experimental ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_experimental ✅ SUCCESS >>>>> >>>>>
Compile_Pre ✅ SUCCESS >>>>>
pre_comment ✅ SUCCESS >>>>>
Compile_Ascend_X86_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_mobile_station_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_experimental_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_experimental_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_910b ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_910c ✅ SUCCESS >>>>> >>>>>
Compile_X86_monitor_950 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_experimental_950 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_experimental_950 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_experimental_950_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM_experimental_950_ubuntu24 ✅ SUCCESS >>>>> >>>>>
Compile_classify ✅ SUCCESS >>>>>
UT_Test ✅ SUCCESS
PreSmoke_A900 ✅ SUCCESS >>>>>
API_Check ✅ SUCCESS >>>>>
PreSmoke_ATK_Test_A2 ✅ SUCCESS >>>>>
UT_Test_report_lcov ⚠️ WARNING >>>>>

[2026-06-11 17:47:42]    CI执行结束

likedislike
CANN-robot
CANN-robot成员
6月11日 评论:

流水线任务触发成功
任务链接 [4f1e606894254affa97c77435a9277ce][流水线指导]

任务名称状态日志下载链接
codecheck ✅ SUCCESS >>>>>
SCA ✅ SUCCESS >>>>>
antipoison ✅ SUCCESS >>>>>
codecheck_style ✅ SUCCESS >>>>>
StaticCheck_codespell_check ✅ SUCCESS
StaticCheck_link_validity_check ✅ SUCCESS
StaticCheck_resource_existence_check ✅ SUCCESS
StaticCheck_tag_closed_check ✅ SUCCESS
StaticCheck_markdownlint ✅ SUCCESS
codecheck_checkpr ✅ SUCCESS
codecheck_precommit ⚠️ WARNING >>>>> >>>>>

[2026-06-11 17:35:13]    CI执行结束

likedislike
CANN-robotCANN-robot成员
6月11日 添加了label:api-check-pass
CANN-robotCANN-robot成员
6月11日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
6月11日 添加了label:ci-pipeline-passed
Wwuxiyuan成员
6月11日 修改了pull request 的描述
wang-minbo成员
6月11日 评论:

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
6月11日 添加了label:approved
liudan12成员
6月12日 评论:

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
6月12日 添加了label:lgtm
CANN-robotCANN-robot成员
6月12日 关闭了关联的issue
CANN-robotCANN-robot成员
6月12日 合入了pull request