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. 👍


问题/功能描述
本次PR旨在解决分布式测试环境下的测试文件兼容性问题。当测试管理器在并行执行模式(world_size != 0)下运行时,特定目录(test/_inductor/)中的某些测试文件可能不兼容或无需执行,从而影响测试流程的稳定性和执行效率。通过增加过滤逻辑,可以确保在分布式环境下跳过这些文件,避免潜在问题。
修改方案描述
修改方案核心是在TestMgr.load方法的文件遍历逻辑中,新增一个条件判断。当检测到当前处于分布式测试模式(即world_size参数不为零)且当前处理的文件路径包含test/_inductor/子字符串时,则跳过该文件,不将其添加到待修改文件列表(self.modify_files)中。此修改实现了对特定测试文件在分布式环境下的选择性排除,无需改动其他测试发现或执行框架,改动点集中且风险可控。


| 阶段 | 任务名 | 状态 | 详情 |
|---|---|---|---|
| 编译构建 | 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: htchu, adrian07110.


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