Pull Request has been successfully merged by CANN-robot.
(Thank you for li-yuanjie-da's contribution.)🤖 正在生成合并请求摘要,请稍候…


Hi @li-yuanjie-da, welcome to submitting your first PR to cann-samples!
PR Merge Steps
1. CLA Signing
If the current PR label includes cann-cla/yes, it means you have signed the CLA and can proceed to the next step. If the label includes cann-cla/no, please sign the CLA first. If you have any questions, please refer to the FAQ.
2. CI Check
Please comment /compile to trigger the CI pipeline check. If the CI run is successful, the PR will be tagged with ci-pipeline-passed and you can proceed to the next step. If the CI run fails, the PR will be tagged with ci-pipeline-failed, please check the CI logs to fix the issues in the PR. If you have any questions, please refer to the FAQ.
3. Code Review
After CI passes, please refer to the PR Approval Progress and proactively @ the committers in the table to review the code. After approval, committers will comment /lgtm and /approve. Once the lgtm and approved labels are successfully added, the PR will be merged automatically.


🤖 AI 代码检视正在进行中,请稍候…


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 |
|---|---|---|
| repo-cann/cann-samples | ✅ 周奇龙, 杨阳 (2/2) | ✅ 周奇龙, 杨阳 (2/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
li-yuanjie-da, thanks for your pull request. All authors of the commits have signed the CLA. 👍


⚠️ 本次变更过大(182 个可审文件、10392 行,预估需 9 轮分片审查),已超出 AI 代码评审的处理范围,本次跳过。建议拆分为更小的 PR 以获得有效评审。


⚠️ 本次变更过大(182 个可审文件、10392 行,预估需 9 轮分片审查),已超出 AI 代码评审的处理范围,本次跳过。建议拆分为更小的 PR 以获得有效评审。


compile


| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


流水线分析报告 — cann-samples run#242
流水线: https://gitcode.com/CANN/cann-samples/actions/runs/bd210e811f24415fbd166cc8a4383a70 | PR#489 | 2026-10-13 21:00:24 ~ 2026-10-13 21:04:40 | 失败 Job 1 个
定界结论: 代码问题 / 代码检查错误
- 失败类型: 代码问题
- 根因: CodeCheck(openlibing)代码检查不通过, 扫描结论 no pass, 门禁拦截
- 处置建议: 通知 PR 提交者修复 —— 通过扫描报告查看具体拦截项, 修复后重新触发流水线
- 排除项: 同 run 其余 Job 全部通过(Compile 全矩阵 x86/arm/910c/950、CodeCheck_precommit、CodeCheck_style、CodeCheck_staticcheck、staticcheck_md_check、SCA、Antipoison、Test_pre_pipeline 无 PR 冲突); CodeCheck 服务本身任务创建/执行均正常完成, 排除服务异常与网络问题
失败根因分析
根因 #1: 代码问题 / 代码检查错误 — CodeCheck 扫描 no pass
- 判据: codecheck 检查不通过
- 定位步骤:
3_codecheck.log - 影响 Job: CodeCheck
- 扫描报告: https://www.openlibing.com/apps/entryCheckDashCode/MR_ae20b9d84d744738942fa3e88c230891/d864cde755bd7598bc4f45670a5eee77?projectId=300033&codeHostingPlatformFlag=gitcode
- 根因证据(日志原文):
2026-10-13 21:03:44,520 - INFO 响应: {"code":"200","msg":"success","data":"https://www.openlibing.com/apps/entryCheckDashCode/MR_ae20b9d84d744738942fa3e88c230891/d864cde755bd7598bc4f45670a5eee77?projectId=300033&codeHostingPlatformFlag=gitcode","uuid":null,"state":"no pass",...}
2026-10-13 21:03:44,520 - INFO [codecheck 2026-10-13 21:03:44] Task failed
2026-10-13 21:03:44,522 - INFO [codecheck 2026-10-13 21:03:44] codecheck result: no pass.
::error::Process exited with code 255
- 说明: CodeCheck 服务任务正常创建并执行完成(前置多次轮询均为 running, 最终返回 state=no pass), 属检查结论不通过而非服务故障; CI 日志中不含具体拦截明细, 需通过上方扫描报告链接查看具体违规项后修复
结构化定界摘要
[{"repo": "cann-samples", "run_number": 242, "Failed_Type": "代码问题",
"Failed_Sub_Type": "代码检查错误",
"Failed_Reason": "CodeCheck(openlibing)代码检查扫描结论 no pass, 门禁拦截; CI 日志无拦截明细, 具体违规项见扫描报告",
"evidence": "2026-10-13 21:03:44,522 - INFO [codecheck 2026-10-13 21:03:44] codecheck result: no pass.",
"suggestion": "PR 提交者通过扫描报告查看具体拦截项并修复, 之后重新触发流水线",
"jobs": "CodeCheck"}]
由门禁失败定界分析自动生成 | repo: cann-samples | run: bd210e811f24415fbd166cc8a4383a70 | PR#489


compile


| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


@yangyang016 @zhou-qilong @zhangzijie 帮忙确认加分


compile


| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


/lgtm
/approve


/lgtm
/approve


描述
tensor api代码切换snake风格
关联的Issue
测试
文档更新
类型标签