已合并
fix some failed testcases #37673
fix some failed testcases #37673
已合并
fgd_dragon创建于 6月5日
fgd_dragon成员
6月5日

【合入来源】

【修改方案】

修复部分测试用例失败问题,当前提交包含两类调整:

  1. test_npu_multi_head_attention.py

    • 去掉 test_npu_multi_head_attention 上的 skip 标记,恢复用例执行。
    • 在用例开始处设置:
      torch.npu.config.allow_internal_format = True
      
    • 根因是该用例构造了 FORMAT_NZ 输入,npu_multi_head_attention 相关路径依赖内部 format;未开启 internal format 时,CPU 参考链路与 NPU 算子链路的 format 行为不一致,导致 assertRtolEqual 精度对比失败。
    • 删除不再使用的 import unittest
  2. .pytorch-disabled-tests.json

    • 从 disabled 列表中移除 _chunk_cat 相关用例:
      • test_compare_cpu__chunk_cat_npu_float32
      • test_variant_consistency_eager__chunk_cat_npu_float32
      • test_operator__chunk_cat_npu_float32
    • _chunk_cat 相关问题已修复,恢复这些用例进入常规测试看护。

【资料变更】

不涉及。

【接口变更】

不涉及对外接口变更。

本次仅调整测试用例配置和测试执行条件,不新增公开 API,不修改已有接口语义。

【功能验证】

  • test/custom_ops/test_npu_multi_head_attention.py
    image.png
  • test_compare_cpu__chunk_cat_npu_float32
    image.png
  • test_variant_consistency_eager__chunk_cat_npu_float32
    image.png
  • test_operator__chunk_cat_npu_float32
    image.png

【CheckList】

likedislike
Pull Request已成功合入, 合并人@ascend-robot
(感谢 fgd_dragon 的贡献)
Ffgd_dragon成员
6月5日 创建了 pull request,commit 159bbfd2
Ffgd_dragon成员
6月5日 关联了issue:[Bug]: 部分ci用例报错,需要解决
ascend-robotascend-robot成员
6月5日 添加了label:ascend-cla/yes
ascend-robot
ascend-robot成员
6月5日 评论:

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
test chujinjin, chengpeng25 (2/2) chujinjin (1/1)

💡 Tip:

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

CLA Signature Pass

wang-ziqi-code, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
ascend-robot
ascend-robot成员
6月5日 评论:

当前仓库存在以下 保护分支

Protected Branch Version Release
master
v2.7.1
v2.10.0
v2.11.0
v2.12.0
v2.9.0
ci-test
sync-pr28113--to-v2.9.0

评论 /sync <branch1> <branch2> ... 可将当前 PR 修改同步到其它分支(创建同步 PR):
a) 如果当前 PR 是 Open 状态,同步操作将延迟到 PR 被合并时执行
b) 如果当前 PR 已经 Merged,将立即执行同步操作

注意:

  1. /sync 命令可以指定同步到多个分支,仅最后一个 /sync 命令生效
  2. 如果创建的同步 PR 不正确,可通过向同步 PR 的源分支提交轻量级 PR 完善,或使用 /close 命令关闭
likedislike
ascend-robot
ascend-robot成员
6月5日 评论:

Ascend docs pipeline is running...

likedislike
ascend-robotascend-robot成员
6月5日 添加了label:docs-ci-pipeline-running
ascend-robot
ascend-robot成员
6月5日 评论:

✅ 跳过 docs ci 检查,没有需要检查的文档文件

likedislike
ascend-robotascend-robot成员
6月5日 删除了label:docs-ci-pipeline-running
ascend-robotascend-robot成员
6月5日 添加了label:docs-ci-pipeline-success
fgd_dragon成员
6月5日 评论:

compile

likedislike
ascend-robot
ascend-robot成员
6月5日 评论:

Ascend docs pipeline is running...

likedislike
ascend-robotascend-robot成员
6月5日 删除了label:docs-ci-pipeline-success
ascend-robotascend-robot成员
6月5日 添加了label:docs-ci-pipeline-running
ascend-robotascend-robot成员
6月5日 添加了label:ci-pipeline-running
ascend-robot
ascend-robot成员
6月5日 评论:

✅ 跳过 docs ci 检查,没有需要检查的文档文件

likedislike
ascend-robotascend-robot成员
6月5日 删除了label:docs-ci-pipeline-running
ascend-robotascend-robot成员
6月5日 添加了label:docs-ci-pipeline-success
ascend-robotascend-robot成员
6月5日 删除了label:ci-pipeline-running
ascend-robotascend-robot成员
6月5日 添加了label:ci-pipeline-passed
ascend-robot
ascend-robot成员
6月5日 评论:
流水线 PR-pipeline_pytorch#29887 已完成
阶段 任务名 状态 详情
编译构建 Build_X86 >>>
Build_ARM >>>
Build_LibTorch_x86 >>>
Build_LibTorch_ARM >>>
Build_X86_torchair 🛑 >>>
Build_ARM_torchair 🛑 >>>
patch_test 🛑 >>>
恶意代码检查 Antipoison >>>
编码安全与规范检查 CodeCheck >>>
check_error >>>
CodeCheck_lintrunner >>>
开源片段检查 SCA >>>
开发者测试 UT_X86_Part_01 🛑 >>>
UT_X86_Part_02 🛑 >>>
UT_ARM_A3_Part_01 🛑 >>>
UT_ARM_A3_Part_02 🛑 >>>
UT_ARM_A2_Part_01 >>>
UT_ARM_A2_Part_02 >>>
UT_ARM_A2_Part_03 >>>
UT_inductor_Part_01 🛑 >>>
UT_inductor_Part_02 🛑 >>>
UT_inductor_Part_03 🛑 >>>
UT_inductor_Part_04 🛑 >>>
UT_DIST_ARM_Part_01 🛑 >>>
UT_DIST_ARM_Part_02 🛑 >>>
UT_DIST_ARM_Part_03 🛑 >>>
UT_DIST_ARM_Part_04 🛑 >>>
UT_ARM_A2_Select_Part_01 >>>
UT_ARM_A2_Select_Part_02 >>>
流水线 PR-pipeline_pytorch >>>
likedislike
chengpeng25成员
6月5日 评论:

/lgtm

likedislike
Ffgd_dragon成员
6月8日 update merge request[project id: 7404318, iid: 37673, commit_id: f3e01deb68982d80ee067ce58e180cc874d52b78] virtual merging success
Ffgd_dragon成员
6月8日 强制推送  1 个提交:7cc42c78-fix some failed testcases
Ffgd_dragon成员
6月8日 update merge request[project id: 7404318, iid: 37673, commit_id: d306ccc2b1ce72c84c36ab8738e05dbae4fdc44f] virtual merging success
ascend-robotascend-robot成员
6月8日 删除了label:ci-pipeline-passed
ascend-robot
ascend-robot成员
6月8日 评论:

Notification

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

likedislike
ascend-robot
ascend-robot成员
6月8日 评论:

Ascend docs pipeline is running...

likedislike
ascend-robotascend-robot成员
6月8日 删除了label:docs-ci-pipeline-success
ascend-robotascend-robot成员
6月8日 添加了label:docs-ci-pipeline-running
ascend-robot
ascend-robot成员
6月8日 评论:

✅ 跳过 docs ci 检查,没有需要检查的文档文件

likedislike
ascend-robotascend-robot成员
6月8日 删除了label:docs-ci-pipeline-running
ascend-robotascend-robot成员
6月8日 添加了label:docs-ci-pipeline-success
fgd_dragon成员
6月8日 评论:

compile

likedislike
ascend-robotascend-robot成员
6月8日 添加了label:ci-pipeline-running
ascend-robot
ascend-robot成员
6月8日 评论:

Ascend docs pipeline is running...

likedislike
ascend-robotascend-robot成员
6月8日 删除了label:docs-ci-pipeline-success
ascend-robotascend-robot成员
6月8日 添加了label:docs-ci-pipeline-running
ascend-robot
ascend-robot成员
6月8日 评论:

✅ 跳过 docs ci 检查,没有需要检查的文档文件

likedislike
ascend-robotascend-robot成员
6月8日 删除了label:docs-ci-pipeline-running
ascend-robotascend-robot成员
6月8日 添加了label:docs-ci-pipeline-success
ascend-robotascend-robot成员
6月8日 删除了label:ci-pipeline-running
ascend-robotascend-robot成员
6月8日 添加了label:ci-pipeline-passed
ascend-robot
ascend-robot成员
6月8日 评论:
流水线 PR-pipeline_pytorch#30200 已完成
阶段 任务名 状态 详情
编译构建 Build_X86 >>>
Build_ARM >>>
Build_LibTorch_x86 >>>
Build_LibTorch_ARM >>>
Build_X86_torchair 🛑 >>>
Build_ARM_torchair 🛑 >>>
patch_test 🛑 >>>
恶意代码检查 Antipoison >>>
编码安全与规范检查 CodeCheck >>>
check_error >>>
CodeCheck_lintrunner >>>
开源片段检查 SCA >>>
开发者测试 UT_X86_Part_01 🛑 >>>
UT_X86_Part_02 🛑 >>>
UT_ARM_A3_Part_01 🛑 >>>
UT_ARM_A3_Part_02 🛑 >>>
UT_ARM_A2_Part_01 >>>
UT_ARM_A2_Part_02 >>>
UT_ARM_A2_Part_03 >>>
UT_inductor_Part_01 🛑 >>>
UT_inductor_Part_02 🛑 >>>
UT_inductor_Part_03 🛑 >>>
UT_inductor_Part_04 🛑 >>>
UT_DIST_ARM_Part_01 🛑 >>>
UT_DIST_ARM_Part_02 🛑 >>>
UT_DIST_ARM_Part_03 🛑 >>>
UT_DIST_ARM_Part_04 🛑 >>>
UT_ARM_A2_Select_Part_01 >>>
UT_ARM_A2_Select_Part_02 >>>
流水线 PR-pipeline_pytorch >>>
likedislike
chengpeng25成员
6月8日 评论:

/lgtm

likedislike
chujinjin成员
6月8日 评论:

/approve

likedislike
ascend-robotascend-robot成员
6月8日 添加了label:approvedlgtm
ascend-robotascend-robot成员
6月8日 合入了pull request
ascend-robot
ascend-robot成员
6月8日 评论:
流水线 pytorch_gitcode_PR_multiVersion#10188 [ commitID:7cc42c78 ] 已完成
likedislike