Pull Request已成功合入, 合并人@ascend-robot
(感谢 AACAES 的贡献)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 |
|---|---|---|
| repo-Ascend/pytorch | ✅ htchu, adrian07110 (2/2) | ✅ htchu, adrian07110 (2/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
AACAES, thanks for your pull request. All authors of the commits have signed the CLA. 👍


问题/功能描述
在并行测试执行环境(world_size != 0)下,测试管理器的文件加载逻辑会错误地将 test/_inductor/ 路径下的变更文件纳入测试范围,导致运行了不必要或不适用于分布式场景的测试用例。本次PR旨在优化测试集的构建,通过条件过滤自动排除这些特定文件,确保测试执行的准确性和效率。
修改方案描述
修改了 TestMgr.load 方法,在遍历变更文件列表时新增一个过滤条件:当 world_size 参数不为零(即并行模式)且当前文件路径包含 "test/_inductor/" 子字符串时,直接跳过该文件,不将其加入待分析的修改文件列表。此修改仅涉及内部测试框架逻辑,不引入外部依赖或安全风险,核心是实现针对特定路径的条件排除。


| 阶段 | 任务名 | 状态 | 详情 |
|---|---|---|---|
| 编译构建 | 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 | ✅ | >>> |


/approve


Review Guide
This pull-request passes review.
Committers who wrote a comment of /approve are: htchu, adrian07110.
Reviewers who wrote a comment of /lgtm are: adrian07110, htchu.


【合入来源】
【修改方案】
【资料变更】
【接口变更】
【功能验证】
【CheckList】