已合并
【fix】修复assertError类型报错的问题 #31687
【fix】修复assertError类型报错的问题 #31687
已合并
xiaoqi-zhou创建于 3月12日
xiaoqi-zhou成员
3月12日

【合入来源】

问题单

【修改方案】

在torch2.9.0及以后的版本中,运行test/distributed/checkpoint/test_checkpoint.py中的_test_dist_failure方法,错误场景从ValueError 扩展为ValueError 和 AssertionError。
使用assert判断时需要将错误场景扩大,与开源代码对齐

【资料变更】

不涉及

【接口变更】

不涉及

【功能验证】

本地用例通过:
python test_checkpoint.py -v -k test_load_error_handling
image.png

【CheckList】

PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x]

likedislike
Pull Request已成功合入, 合并人@ascend-robot
(感谢 xiaoqi-zhou 的贡献)
Xxiaoqi-zhou成员
3月12日 创建了 pull request,commit e82c1acb
ascend-robot
ascend-robot成员
3月12日 评论:

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 wjlflyer, renyujin (2/2) wjlflyer (1/1)

💡 Tip:

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

CLA Signature Pass

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

likedislike
ascend-robotascend-robot成员
3月12日 添加了label:ascend-cla/yes
Xxiaoqi-zhou成员
3月12日 修改了pull request 的描述
xiaoqi-zhou成员
3月12日 评论:

compile

likedislike
Xxiaoqi-zhou成员
3月12日 修改标题为 “【fix】修复assertError类型报错的问题”,原标题为“【bug-fix】修复assertError类型报错的问题”
ascend-robotascend-robot成员
3月12日 添加了label:ci-pipeline-running
ascend-robotascend-robot成员
3月12日 删除了label:ci-pipeline-running
ascend-robotascend-robot成员
3月12日 添加了label:ci-pipeline-passed
ascend-robot
ascend-robot成员
3月12日 评论:
流水线 PR-pipeline_pytorch#10221 已完成
阶段 任务名 状态 详情
编译构建 Build_X86 >>>
Build_LibTorch >>>
Build_ARM >>>
Build_ARM_inductor 🛑 >>>
Build_X86_torchair 🛑 >>>
Build_ARM_torchair 🛑 >>>
恶意代码检查 Antipoison >>>
编码安全与规范检查 CodeCheck >>>
check_error >>>
开源片段检查 SCA >>>
开发者测试 UT_X86_Part_01 🛑 >>>
UT_X86_Part_02 🛑 >>>
UT_ARM_A3_Part_01 🛑 >>>
UT_ARM_A3_Part_02 🛑 >>>
UT_DIST_X86_Part_01 >>>
UT_DIST_X86_Part_02 >>>
UT_DIST_X86_Part_03 >>>
UT_DIST_X86_Part_04 >>>
UT_inductor_Part_01 🛑 >>>
UT_inductor_Part_02 🛑 >>>
UT_inductor_Part_03 🛑 >>>
UT_inductor_Part_04 🛑 >>>
UT_ARM_A2_Part_01 >>>
UT_ARM_A2_Part_02 >>>
流水线 PR-pipeline_pytorch >>>
likedislike
wjlflyer成员
3月13日 评论:

/lgtm

likedislike
Xxiaoqi-zhou成员
3月17日 update merge request[project id: 7404318, iid: 31687, commit_id: 2bd6d96dd3a6c019594b4f400b3dfb7404863b7d] virtual merging success
Xxiaoqi-zhou成员
3月17日 强制推送  1 个提交:dfccb9a3-【bug-fix】修复assertError类型报错的问题
Xxiaoqi-zhou成员
3月17日 update merge request[project id: 7404318, iid: 31687, commit_id: 00f05f622b7b81860e90e5a7e49a6994d13e0703] virtual merging success
ascend-robotascend-robot成员
3月17日 删除了label:ci-pipeline-passed
ascend-robot
ascend-robot成员
3月17日 评论:

Notification

This pull request source branch has changed, so removes the following label(s): ci-pipeline-passed.

likedislike
AtlasAccountAtlasAccount成员
3月17日 添加了label:ci-pipeline-failed
xiaoqi-zhou成员
3月17日 评论:

compile

likedislike
Xxiaoqi-zhou成员
3月17日 修改了pull request 的描述
xiaoqi-zhou成员
3月17日 评论:

compile

likedislike
ascend-robotascend-robot成员
3月17日 删除了label:ci-pipeline-failed
ascend-robotascend-robot成员
3月17日 添加了label:ci-pipeline-running
ascend-robotascend-robot成员
3月17日 删除了label:ci-pipeline-running
ascend-robotascend-robot成员
3月17日 添加了label:ci-pipeline-passed
ascend-robot
ascend-robot成员
3月17日 评论:
流水线 PR-pipeline_pytorch#10969 已完成
阶段 任务名 状态 详情
编译构建 Build_X86 >>>
Build_ARM >>>
Build_LibTorch_x86 >>>
Build_X86_torchair 🛑 >>>
Build_ARM_torchair 🛑 >>>
Build_ARM_inductor 🛑 >>>
恶意代码检查 Antipoison >>>
编码安全与规范检查 CodeCheck >>>
check_error >>>
开源片段检查 SCA >>>
开发者测试 UT_X86_Part_01 🛑 >>>
UT_X86_Part_02 🛑 >>>
UT_ARM_A3_Part_01 🛑 >>>
UT_ARM_A3_Part_02 🛑 >>>
UT_DIST_X86_Part_01 >>>
UT_DIST_X86_Part_02 >>>
UT_DIST_X86_Part_03 >>>
UT_DIST_X86_Part_04 >>>
UT_inductor_Part_01 🛑 >>>
UT_inductor_Part_02 🛑 >>>
UT_inductor_Part_03 🛑 >>>
UT_inductor_Part_04 🛑 >>>
UT_ARM_A2_Part_01 >>>
UT_ARM_A2_Part_02 >>>
流水线 PR-pipeline_pytorch >>>
likedislike
renyujin成员
3月17日 评论:

/lgtm

likedislike
wjlflyer成员
3月17日 评论:

/lgtm
/approve

likedislike
ascend-robotascend-robot成员
3月17日 添加了label:approvedlgtm
ascend-robot
ascend-robot成员
3月17日 评论:

Review Guide

This pull-request passes review.
Committers who wrote a comment of /approve are: wjlflyer.
Reviewers who wrote a comment of /lgtm are: wjlflyer, renyujin.

likedislike
ascend-robotascend-robot成员
3月17日 合入了pull request