Open
fix(test): use exist_ok=True in model-recommend-infer-optimize test_run_batch.py #468
fix(test): use exist_ok=True in model-recommend-infer-optimize test_run_batch.py #468
Open
liangjinxuan-2026Add on 3 days ago
liangjinxuan-2026
3 days ago

变更说明

问题描述

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

likedislike
Merge blocked
liangjinxuan-2026liangjinxuan-2026
3 days ago Created pull request, commit 029ef297
liangjinxuan-2026liangjinxuan-2026
3 days ago Associated issue: [Bug-Report|缺陷反馈]: test_run_batch.py 创建测试目录缺少 exist_ok=True
liangjinxuan-2026
liangjinxuan-2026
3 days ago Comments:

/compile

likedislike
liangjinxuan-2026liangjinxuan-2026
3 days ago Pre merge succeeded (commit_id: 8cab4a0fa1ef08b19cbee12db9b45941095a8ecc)
CANN-robotCANN-robotCollaborators
3 days ago Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
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 /approve or /lgtm
  • Commenting /approve implies 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. 👍

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