Open
fix(test): use exist_ok=True in model-recommend-infer-optimize test_run_batch.py #468
liangjinxuan-2026Add on 3 days ago
fix(test): use exist_ok=True in model-recommend-infer-optimize test_run_batch.py #468
Open
Merge blocked
3 days ago Created pull request, commit 029ef297
3 days ago Associated issue: [Bug-Report|缺陷反馈]: test_run_batch.py 创建测试目录缺少 exist_ok=True
3 days ago Associated issue: [Bug-Report|缺陷反馈]: test_run_batch.py 创建测试目录缺少 exist_ok=True
liangjinxuan-2026
3 days ago Comments:
3 days ago Comments:
/compile


3 days ago Pre merge succeeded (commit_id: 8cab4a0fa1ef08b19cbee12db9b45941095a8ecc)
3 days ago Pre merge succeeded (commit_id: 8cab4a0fa1ef08b19cbee12db9b45941095a8ecc)
3 days ago Added label: cann-cla/yes
CANN-robot
3 days ago Comments:
3 days ago Comments:
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.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
For more, you also can visit HICANN.
PR Approval Progress
⚠️ This PR does not yet meet the following requirements:lgtm (requires ≥ 2 person(s) per module)、approve (requires ≥ 1 person(s) per module)
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| plugins-community/model-recommend-infer-optimize | ❌ (0/2)(You can also ask: 陆玲辉, wangzheng97, 宋恺, w00934874, benwallace52) | ❌ (0/1)(You can also ask: zihengwang2, fanzhaoyun001) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
liangjinxuan-2026, thanks for your pull request. All authors of the commits have signed the CLA. 👍


3 days ago Set qq_37913898,w00934874,dengguojie,jon_jin,rxtfeng,songkai111,xutianze,pingchuantang,hanrui22,wangzheng97,hedi0515,benwallace52,linghuis,OpSphere,zihengwang2,fanzhaoyun001 as approver
3 days ago Set qq_37913898,w00934874,dengguojie,jon_jin,rxtfeng,songkai111,xutianze,pingchuantang,hanrui22,wangzheng97,hedi0515,benwallace52,linghuis,OpSphere,zihengwang2,fanzhaoyun001 as approver
3 days ago Set zihengwang2,fanzhaoyun001 as approver
CANN-robot
3 days ago Comments:
3 days ago Comments:
| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


3 days ago Added label: ci-pipeline-running
3 days ago Removed label: ci-pipeline-running
3 days ago Added label: ci-pipeline-passed
变更说明
问题描述
plugins-community/model-recommend-infer-optimize/tests/test_run_batch.py在shutil.rmtree(WS, ignore_errors=True)后直接调用os.makedirs且未传exist_ok=True,若rmtree因残留锁或并发未完全删除目录会抛出FileExistsError。修复方案
为两处
os.makedirs补充exist_ok=True。Fixes #262