已合并
清除mock状态,避免影响下面测试的状态 #1056
chenzeyu创建于 6月9日
清除mock状态,避免影响下面测试的状态 #1056
已合并
chenzeyu创建于 6月9日
chenzeyu
chenzeyu
6月9日

合入背景

对接统一资源池环境,UT不通过问题
不涉及
不涉及
#636

修改内容

CommonUtilsTest::TestGetHomePathWhlPkgSuccess 中的 MOCKER(FileSystem::Exists)
被 GlobalMockObject 持有引用,mock 析构延迟到全局清理才执行,
导致后续 TestLog.TestCreateInstanceSuccess 中 FileSystem::Exists
返回 true 而非实际文件系统状态,造成测试失败。
通过 reset() 提前释放引用,确保 mock 在当前测试结束后立即恢复

资料变更

不涉及

接口变更

不涉及

测试结果

在统一资源池测试环境中创建pod,进行测试,pod内测试通过,未影响其他测试用例

CheckList

PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x]。

likedislike
Pull Request已成功合入, 合并人@ascend-robot
(感谢 chenzeyu 的贡献)
ascend-robotascend-robot成员
6月9日 添加了label:ascend-cla/yes
ascend-robot
ascend-robot成员
6月9日 评论:

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/MindIE-LLM 毛琦, chuyuelin, jiangkaiqiang (3/2) 毛琦 (1/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

qq54010497, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
ascend-robotascend-robot成员
6月9日 添加了label:needs-issue
ascend-robot
ascend-robot成员
6月9日 评论:

Linking Issue Notice

@qq54010497 , the pull request must be linked to at least one issue.
If an issue has already been linked, but the needs-issue label remains, you can remove the label by commenting /check-issue .

likedislike
ascend-robotascend-robot成员
6月9日 添加了label:ci-pipeline-running
ascend-robot
ascend-robot成员
6月9日 评论:

✅ 流水线任务触发成功(流水线编号: 5602),正在执行, 请稍候。 任务链接 点此跳转 ...

likedislike
ascend-robot
ascend-robot成员
6月9日 评论:

Ascend docs pipeline is running...

likedislike
ascend-robotascend-robot成员
6月9日 添加了label:docs-ci-pipeline-running
ascend-robot
ascend-robot成员
6月9日 评论:

✅ 跳过 docs ci 检查,没有需要检查的文档文件

likedislike
ascend-robotascend-robot成员
6月9日 删除了label:docs-ci-pipeline-running
ascend-robotascend-robot成员
6月9日 添加了label:docs-ci-pipeline-success
chenzeyuchenzeyu
6月9日 修改了pull request 的描述
ascend-robotascend-robot成员
6月9日 删除了label:needs-issue
chuyuelin
6月9日 评论:

/lgtm

likedislike
姜凯强
姜凯强
6月9日 评论:

/lgtm

likedislike
ascend-robotascend-robot成员
6月9日 添加了label:lgtm
ascend-robotascend-robot成员
6月9日 删除了label:ci-pipeline-running
ascend-robotascend-robot成员
6月9日 添加了label:ci-pipeline-passed
ascend-robot
ascend-robot成员
6月9日 评论:
流水线 PR-pipeline_MindIE-LLM_gitcode#5602 [ commitID:544e3044 ] 已完成
>>>代码风格自动修复执行成功(无修复内容)
阶段 任务名 状态 详情
编译构建 Build_ops_x86_A3 >>>
Build_ops_arm_A3 >>>
Build_ops_x86_A2 >>>
Build_ops_arm_A2 >>>
Build_linux_x86_abi1_atb >>>
Build_linux_x86_abi1_llm >>>
Build_linux_arm_abi1_atb >>>
Build_linux_arm_abi1_llm >>>
Build_linux_arm_abi0_atb >>>
Build_linux_arm_abi0_llm >>>
恶意代码检查 Antipoison >>>
编码安全与规范检查 pre-commit >>>
开源片段检查 SCA >>>
开发者测试 UT_linux_arm_mindie-llm >>>
UT_linux_arm_atb-models >>>
流水线 PR-pipeline_MindIE-LLM_gitcode >>>
此流水线已支持下列评论快捷指令,仅PR创建者评论有效
  • compile : 运行流水线
  • retry : 重试流水线所有失败子任务
  • retry <任务名> : 仅重试指定失败子任务
  • stop : 停止流水线
likedislike
maoxx241
maoxx241成员
6月9日 评论:

/approve

likedislike
ascend-robotascend-robot成员
6月9日 添加了label:approved
dilililiwhy
dilililiwhy
6月10日 评论:

/check-pr

likedislike
ascend-robot
ascend-robot成员
6月10日 评论:

The following label is not ready.

keeper_approved: Please wait for keeper to merge the code.

likedislike
纪涛
纪涛成员
6月10日 评论:

/merge

likedislike
ascend-robotascend-robot成员
6月10日 添加了label:keeper_approved
ascend-robotascend-robot成员
6月10日 合入了pull request