Merged
event-leak-9.2.0 #7854
LordOfMysteriesAdd on 2 days ago
event-leak-9.2.0 #7854
Merged
Merged fromLordOfMysteries/pyptoevent-leak-9.2.0intocann/pypto9.2.0
Pull Request has been successfully merged by CANN-robot.
(Thank you for LordOfMysteries's contribution.)2 days ago Created pull request, commit 59c9b29d
2 days ago Added label: stat/needs-squash
2 days ago Added label: cann-cla/yes
CANN-robot
2 days ago Comments:
2 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
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| 9.2.0 | ✅ Andy-lb, jason_yuan_ye (2/2) | ✅ Andy-lb (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
LordOfMysteries, thanks for your pull request. All authors of the commits have signed the CLA. 👍


2 days ago Set xinweiliu,cam_bxh,dai-zhentao,TianXL,lululu40888,shi-dingkun,gguuaanngg,codehjp423,jiangtao_rts,gitcode-chenjiao,hanxiaolong,gaoxiang618,wangzheng97,DCGDDD,syfeng,jason_yuan_ye,foundea,hw_zhangzhiqi,yinjie27_,congqiannan,zhangyuebing,tsungl4,gaoxingwang,zhangxiangjie,zhiweiyuan,caodongdong,make_pto,zhoubotcam,linjiashu,wangbing110,gcw_kUomxQ2l,Andy-lb,WenboCodes as approver
2 days ago Set xinweiliu,cam_bxh,dai-zhentao,TianXL,lululu40888,shi-dingkun,gguuaanngg,codehjp423,jiangtao_rts,gitcode-chenjiao,hanxiaolong,gaoxiang618,wangzheng97,DCGDDD,syfeng,jason_yuan_ye,foundea,hw_zhangzhiqi,yinjie27_,congqiannan,zhangyuebing,tsungl4,gaoxingwang,zhangxiangjie,zhiweiyuan,caodongdong,make_pto,zhoubotcam,linjiashu,wangbing110,gcw_kUomxQ2l,Andy-lb,WenboCodes as approver
2 days ago Set TianXL,jiangtao_rts,gitcode-chenjiao,hanxiaolong,gcw_kUomxQ2l,Andy-lb as approver
2 days ago Set TianXL,jiangtao_rts,gitcode-chenjiao,hanxiaolong,gcw_kUomxQ2l,Andy-lb as approver
LordOfMysteries
2 days ago Comments:
2 days ago Comments:
compile


2 days ago Pre merge succeeded (commit_id: 3df915374b3f056e387ad37a265956ebe8216811)
CANN-robot
2 days ago Comments:
2 days ago Comments:
| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


2 days ago Added label: ci-pipeline-running
2 days ago Removed label: ci-pipeline-running
2 days ago Added label: ci-pipeline-failed
CANN-robot
2 days ago Comments:
2 days ago Comments:
流水线分析报告 — pypto run#8503
流水线: https://gitcode.com/CANN/pypto/actions/runs/a6bec58c7c744fcab52d140aca4e5fa9 | PR#7854 | 2026-11-26 20:49:53 ~ 2026-11-26 21:13:31 | 失败 Job 2 个
定界结论: 代码问题 / LLT测试失败 — DeviceLauncherStaticTest.RunPreSync_AllBranches
- 失败类型: 代码问题
- 根因: 用例失败: DeviceLauncherStaticTest.RunPreSync_AllBranches
- 处置建议: 通知 PR 提交者修复(见各根因的具体建议)
- 检查失败用例(DeviceLauncherStaticTest.RunPreSync_AllBranches)的断言与实现: 若 PR 行为变更符合预期则同步更新用例断言, 否则修正实现逻辑(断言详情见根因折叠块)
失败根因分析
根因 #1: 代码问题 / LLT测试失败 — DeviceLauncherStaticTest.RunPreSync_AllBranches
- 判据: 用例失败: DeviceLauncherStaticTest.RunPreSync_AllBranches
- 定位步骤:
5_ut_acc.log - 影响 Job: UT(GNU 编译), UT(Clang 编译)
- 根因证据(日志原文):
[2026-11-26 21:04:12.810+08:00] [ FAILED ] DeviceLauncherStaticTest.RunPreSync_AllBranches
- 断言详情(解读依据):
test_device_launcher_extra.cpp:104: Failure
Expected equality of these values:
rc
Which is: -1
0
- 关联分析: 两个 UT Job(identifier
JOB_UT_Test_Cpp_make_gnu_part_1_0/JOB_UT_Test_Cpp_make_clang_part_1_0, ASAN OFF/ON)均在test_device_launcher_extra.cpp:104同一断言rc == 0处失败, 实际返回-1。本 PR 变更文件包含framework/src/machine/runtime/launcher/device_launcher.cpp、device_launcher.h、device_launcher_binding.cpp, 与本用例覆盖的 preSync 路径直接相关, 而test_device_launcher_extra.cpp未在本 PR 变更中 → 判定为实现行为变更后未同步用例断言(或 preSync 返回值回归)。
结构化定界摘要
[
{
"repo": "pypto",
"run_number": 8503,
"Failed_Type": "代码问题",
"Failed_Sub_Type": "LLT测试失败",
"Failed_Reason": "UT 用例 DeviceLauncherStaticTest.RunPreSync_AllBranches 在 test_device_launcher_extra.cpp:104 断言 rc==0 实际返回 -1,GNU/Clang 两个 UT Job 同因失败。",
"evidence": "test_device_launcher_extra.cpp:104: Failure Expected equality of these values: rc Which is: -1 0",
"suggestion": "核对 device_launcher preSync 行为:若 -1 为预期则同步更新用例断言,否则修正实现逻辑后重触发",
"jobs": "UT, UT"
}
]
由门禁失败定界分析自动生成 | repo: pypto | run: a6bec58c7c744fcab52d140aca4e5fa9 | PR#7854


2 days ago Pre merge succeeded (commit_id: 4cd3c8d7c209d8299095c77f96847cea94360c65)
2 days ago Pushed 1 commits:d06a9e03-fix(machine): Fix pre-sync event UT failure on ACL stub
2 days ago Pushed 1 commits:d06a9e03-fix(machine): Fix pre-sync event UT failure on ACL stub
2 days ago Pre merge succeeded (commit_id: 6183e7ff47607283599fe41bcda6a629209b0efb)
2 days ago Removed label: cann-cla/yes
2 days ago Added label: cann-cla/yes
LordOfMysteries
2 days ago Comments:
2 days ago Comments:
compile


2 days ago Pre merge succeeded (commit_id: be5020211fedb1f4c75e83c161c9a139f4d1f185)
CANN-robot
2 days ago Comments:
2 days ago Comments:
| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


2 days ago Removed label: ci-pipeline-failed
7 event messages are collapsed here。 See more
2 days ago Removed label: ci-pipeline-passed
CANN-robot
2 days ago Comments:
2 days ago Comments:
2 days ago Added label: cann-cla/yes
5 event messages are collapsed here。 See more
1 day ago Modify description of pull request
LordOfMysteries
1 day ago Comments:
1 day ago Comments:
compile


1 day ago Pre merge succeeded (commit_id: bd2b585a5e5f4f252c156ce6c071490b71ad786b)
CANN-robot
1 day ago Comments:
1 day ago Comments:
| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


1 day ago Added label: ci-pipeline-running
1 day ago Removed label: ci-pipeline-running
1 day ago Added label: ci-pipeline-passed
Andy-lb
1 day ago Comments:
1 day ago Comments:
/approve


1 day ago Added label: approved
袁野
1 day ago Comments:
1 day ago Comments:
/lgtm


1 day ago Added label: lgtm
1 day ago Merged pull request
https://gitcode.com/cann/pypto/issues/3994
RunPreSync里event的创建原本是进程级只创建一个,全程复用,重构被改成了栈变量每次创建但是不释放。
还原回进程复用,且增加析构时的显示destory。