已合并
完善工具依赖文档和更新依赖安装脚本 #342
liu-wei创建于 2月9日
完善工具依赖文档和更新依赖安装脚本 #342
已合并
liu-wei创建于 2月9日
liu-wei
liu-wei成员
2月9日

描述

完善工具依赖文档和更新依赖安装脚本

关联的Issue

https://gitcode.com/cann/ops-cv/issues/94

测试

功能测试:

==== Checking CMake ====
Current CMake version: 3.16.3
CMake meets requirements
==== Checking pigz ====
Current pigz version: 2.4
pigz meets requirements

==== Checking dos2unix ====
dos2unix has been installed

==== Checking googletest ====
Current googletest version: 1.10.0
Install googletest? [Y/n] y
Installing googletest...
xxxx
googletest installed successfully (1.10.0)
====================================================
All dependencies installed successfully!
====================================================


pip3 install -r requirements.txt
Looking in indexes: http://xxxx/pypi/simple
Requirement already satisfied: xxx
Requirement already satisfied: xxx
Requirement already satisfied: xxx

常规测试:

====================================
           FINAL SUMMARY
====================================
kirinx90             : FAILED (no .o)
ascend950            : OK (144 .o)
ascend910            : SKIPPED (.o)
ascend910b           : OK (81 .o)
ascend910B           : OK (81 .o)
ascend310b           : OK (3 .o)
ascend310B           : OK (3 .o)
ascend310p           : OK (25 .o)
ascend310P           : OK (25 .o)
ascend610lite        : SKIPPED (.o)
ascend910_93         : OK (81 .o)
STATIC_BUILD         : OK (cann-910b-ops-cv_9.0.0_linux-x86_64.run, cann-910b-ops-cv-static_9.0.0_linux-x86_64.tar.gz)
mc62cm12a            : OK (cann-mc62cm12a-ops-cv_9.0.0_linux-x86_64.run)
====================================
[ALL DONE]

文档更新

工具依赖的txt更新

类型标签

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 liu-wei 的贡献)
liu-weiliu-wei成员
2月9日 创建了 pull request,commit 96c22d6b
CANN-robot
CANN-robot成员
2月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-cann/ops-cv zhou-qilong, loov1 (2/2) zhou-qilong (1/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)
likedislike
CANN-robotCANN-robot成员
2月9日 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
2月9日 评论:

问题/功能描述

本次PR旨在提升项目依赖管理和测试环境的跨平台兼容性与完备性。主要解决了原依赖安装脚本对特定Linux发行版(如openEuler/EulerOS)支持不完整、部分系统及Python依赖缺失,以及脚本提示信息为中文的问题。通过更新脚本和依赖列表,为项目开发和测试提供了更标准化、更全面的环境支持。

修改方案描述

主要更新了依赖安装脚本 (install_deps.sh) 和Python依赖包列表。脚本方面:将所有提示信息国际化(中译英),简化并统一了Linux发行版检测逻辑(聚焦Debian与RHEL家族),新增了googletest库的自动化安装支持(支持包管理器或源码编译),并进行了多项细节优化(如统一GCC版本提取、确保make工具安装等)。依赖列表方面:在主requirements.txt和测试tests/requirements.txt中分别新增了setuptoolssympyattrsnumpyscipypsutil等必要的Python包,以完善开发和测试环境。

likedislike
CANN-robot
CANN-robot成员2月9日进行代码检视3
install_deps.sh
已过期
@@ -65,4 +62,3 @@
6562 elif [[ "$(uname -s)" == "Darwin" ]]; then
6663 OS="macos"
6764 if ! command -v brew &> /dev/null; then
68- echo "请先安装Homebrew"
CANN-robot
CANN-robot2月9日评论:

代码逻辑错误: 在detect_os函数中,当检测到不支持的操作系统时,输出的错误信息存在错别字,将'发行版本'写成了'发型版本'。虽然这是一个拼写错误,但会影响用户体验和专业性。

问题类型: 代码逻辑错误
文件路径: install_deps.sh
行号: 59
问题代码:

            echo "自动安装脚本不支持该Linux发型版本,请手动安装依赖"

修改建议:

将'发型版本'更正为'发行版本',修改为:echo "自动安装脚本不支持该Linux发行版本,请手动安装依赖"

此评论由代码审查工具自动生成

likedislike
liu-wei
liu-wei成员
2月9日 评论:

需要修改。

System
系统消息系统
2月9日 评论:

changed this line on f3bbc3c4 view diff detail

liu-wei
liu-wei成员
2月9日 评论:

compile

likedislike
CANN-robotCANN-robot成员
2月9日 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
2月9日 评论:

流水线任务触发成功 [流水线指导]
任务链接 [0f3ddd2599494dcf8e5758739fac5231]

任务名称状态日志下载链接
codecheck ✅ SUCCESS >>>>>
SCA ✅ SUCCESS >>>>>
anti_virus ✅ SUCCESS
Check_Pr ✅ SUCCESS >>>>>
Compile_Ascend_X86 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_mobile_station ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM ✅ SUCCESS >>>>> >>>>>
pre_comment ✅ SUCCESS >>>>>
UT_Test ✅ SUCCESS
Smoke_A900 ✅ SUCCESS >>>>> >>>>>
API_Check ✅ SUCCESS >>>>>

[2026-02-09 14:56:02]    CI执行结束

likedislike
CANN-robotCANN-robot成员
2月9日 添加了label:api-check-pass
此处折叠了7条事件消息 查看更多
CANN-robotCANN-robot成员
2月9日 删除了label:ci-pipeline-passed
CANN-robot
CANN-robot成员
2月9日 评论:

Notification

This pull request source branch has changed, so removes the following label(s): ci-pipeline-passed.

likedislike
CANN-robot
CANN-robot成员
2月9日 评论:

Notification

This pull request source branch has changed, so removes the following label(s): ci-pipeline-passed.

likedislike
liu-wei
liu-wei成员
2月9日 评论:

compile

likedislike
CANN-robotCANN-robot成员
2月9日 添加了label:ci-pipeline-running
CANN-robotCANN-robot成员
2月9日 删除了label:api-check-pass
CANN-robot
CANN-robot成员
2月9日 评论:

流水线任务触发成功 [流水线指导]
任务链接 [c2dfba5ad0ec46e4838b8b91fbb4b31c]

任务名称状态日志下载链接
codecheck ✅ SUCCESS >>>>>
SCA ✅ SUCCESS >>>>>
anti_virus ✅ SUCCESS
Check_Pr ✅ SUCCESS >>>>>
Compile_Ascend_X86 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_mobile_station ⏳ waiting >>>>>
Compile_Ascend_ARM ✅ SUCCESS >>>>> >>>>>
pre_comment ✅ SUCCESS >>>>>
UT_Test ⏳ waiting
Smoke_A900 ⏳ waiting >>>>>
API_Check ⏳ waiting >>>>>
likedislike
liu-weiliu-wei成员
2月9日 update merge request[project id: 7657293, iid: 342, commit_id: 29c7c00bab991e10524fb91b8d3168e7b11d3b19] virtual merging success
liu-weiliu-wei成员
2月9日 强制推送  1 个提交:732cc87c-完善工具依赖文档和更新依赖安装脚本
liu-weiliu-wei成员
2月9日 update merge request[project id: 7657293, iid: 342, commit_id: dd6b69fb4d5c28afdd755d018aa188f21977e1fb] virtual merging success
CANN-robot
CANN-robot成员
2月9日 评论:

CLA Signature Pass

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

likedislike
liu-wei
liu-wei成员
2月9日 评论:

compile

likedislike
CANN-robotCANN-robot成员
2月9日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
2月9日 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
2月9日 评论:

流水线任务触发成功 [流水线指导]
任务链接 [983177c6e6e549ba9af64d3b5cd9deb4]

任务名称状态日志下载链接
codecheck ✅ SUCCESS >>>>>
SCA ✅ SUCCESS >>>>>
anti_virus ✅ SUCCESS >>>>>
Check_Pr ✅ SUCCESS >>>>>
Compile_Ascend_X86 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_X86_mobile_station ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM ✅ SUCCESS >>>>> >>>>>
pre_comment ✅ SUCCESS >>>>>
UT_Test ✅ SUCCESS
Smoke_A900 ✅ SUCCESS >>>>> >>>>>
API_Check ✅ SUCCESS >>>>>

[2026-02-09 16:13:45]    CI执行结束

likedislike
CANN-robotCANN-robot成员
2月9日 添加了label:api-check-pass
CANN-robotCANN-robot成员
2月9日 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
2月9日 添加了label:ci-pipeline-passed
loov成员
2月9日 评论:

/lgtm

likedislike
sunday成员
2月9日 评论:

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
2月9日 添加了label:lgtmapproved
CANN-robot
CANN-robot成员
2月9日 评论:

Review Guide

This pull-request passes review.
Committers who wrote a comment of /approve are: zhou-qilong.
Reviewers who wrote a comment of /lgtm are: loov1, zhou-qilong.

likedislike
CANN-robotCANN-robot成员
2月9日 合入了pull request
liu-weiliu-wei成员
2月9日 关联了issue:[Requirement|需求建议]: 需要完善工具依赖文档和更新依赖安装脚本,增加googletest
liu-weiliu-wei成员
2月9日 修改了pull request 的描述