已合并
【fix】修复assertError类型报错的问题 #31687
xiaoqi-zhou创建于 3月12日
【fix】修复assertError类型报错的问题 #31687
已合并
Pull Request已成功合入, 合并人@ascend-robot
(感谢 xiaoqi-zhou 的贡献)3月12日 创建了 pull request,commit e82c1acb
AtlasAccount
3月12日 评论:
3月12日 评论:
ascend-robot
3月12日 评论:
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
/approveor/lgtm- Commenting
/approveimplies 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. 👍


3月12日 添加了label:ascend-cla/yes
3月12日 修改了pull request 的描述
xiaoqi-zhou
3月12日 评论:
3月12日 评论:
compile


3月12日 修改标题为 “【fix】修复assertError类型报错的问题”,原标题为“【bug-fix】修复assertError类型报错的问题”
3月12日 添加了label:ci-pipeline-running
3月12日 删除了label:ci-pipeline-running
3月12日 添加了label:ci-pipeline-passed
ascend-robot
3月12日 评论:
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 | ✅ | >>> |


Xxiaoqi-zhou
3月17日 update merge request[project id: 7404318, iid: 31687, commit_id: 2bd6d96dd3a6c019594b4f400b3dfb7404863b7d] virtual merging success
3月17日 update merge request[project id: 7404318, iid: 31687, commit_id: 2bd6d96dd3a6c019594b4f400b3dfb7404863b7d] virtual merging success
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
3月17日 update merge request[project id: 7404318, iid: 31687, commit_id: 00f05f622b7b81860e90e5a7e49a6994d13e0703] virtual merging success
3月17日 删除了label:ci-pipeline-passed
ascend-robot
3月17日 评论:
3月17日 评论:
3月17日 添加了label:ci-pipeline-failed
xiaoqi-zhou
3月17日 评论:
3月17日 评论:
compile


3月17日 修改了pull request 的描述
xiaoqi-zhou
3月17日 评论:
3月17日 评论:
compile


3月17日 删除了label:ci-pipeline-failed
3月17日 添加了label:ci-pipeline-running
3月17日 删除了label:ci-pipeline-running
3月17日 添加了label:ci-pipeline-passed
ascend-robot
3月17日 评论:
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 | ✅ | >>> |


3月17日 添加了label:approvedlgtm
ascend-robot
3月17日 评论:
3月17日 评论:
3月17日 合入了pull request
【合入来源】
问题单
【修改方案】
在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
【CheckList】