Pull Request已成功合入, 合并人@CANN-robot
(感谢 qinhan 的贡献)变更摘要
本 PR 调整了 scripts/package/ops_ras/scripts/opp_install.sh 中 OPP 安装流程的执行顺序,将 install_es_whl 和 install_cann_ops_ras_whl 两个 whl 安装调用提前到 install_common_parser(即 COMMON_PARSER_FILE 调用)之前,使 whl 包先安装、再由后续流程统一进行权限规范。同时,将删除 ${TARGET_VERSION_DIR}/ops_ras 目录的逻辑从 install_es_whl 迁移到 add_init_py,并把 whl 包安装中的权限设置动作移除。
主要改动
- 调整 whl 安装时机: 在
install_opp中把install_es_whl与install_cann_ops_ras_whl的调用从add_init_py之后移动到bash "${COMMON_PARSER_FILE}" ...之前,实现先安装 whl 包再统一权限规范。 - 移除
install_whl_package中的权限设置: 删除了对${_pythonlocalpath}/${_package_name}及其dist-info目录执行chmod -R "${CUSTOM_PERM}"的两行逻辑,权限规范交由后续统一流程处理。 - 迁移目录清理逻辑: 将
install_es_whl中删除${TARGET_VERSION_DIR}/ops_ras目录的判断与rm -rf操作移除,并新增到add_init_py中,使清理动作随初始化脚本添加环节统一执行。
🧩 本次 Review 已使用自定义 Skill:




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/ops-ras | ✅ yue-ma, 柳宗谷 (2/2) | ✅ yue-ma (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)


compile


流水线任务触发成功
任务链接 [7b1ea6644bd048d09be3504c47bc7987][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| PreSmoke_ATK_Test_A2 | ✅ SUCCESS | >>>>> |
[2026-10-16 11:01:07] CI执行结束


流水线任务触发成功
任务链接 [1df83a6a1c6d46258d1eba1058246c98][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_mobile_station | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_single | ✅ SUCCESS | >>>>> | >>>>> |
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_mobile_station_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_single_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| UT_Test_ophost | ✅ SUCCESS | ||
| UT_Test_opapi | ✅ SUCCESS | ||
| API_Check | ✅ SUCCESS | >>>>> |
[2026-10-16 11:03:12] CI执行结束


/lgtm
/approve


描述
本 PR 调整了 scripts/package/ops_ras/scripts/opp_install.sh 中 OPP 安装流程的执行顺序:将 install_es_whl 和 install_cann_ops_ras_whl 两个 whl 安装调用从 add_init_py 之后移动到 install_common_parser(COMMON_PARSER_FILE 调用)之前,使 whl 包先安装、再由后续流程统一进行权限规范。同时把删除 ${TARGET_VERSION_DIR}/ops_ras 目录的逻辑从 install_es_whl 移入 add_init_py,使清理动作随初始化脚本添加环节统一执行。
关联的Issue
测试
文档更新
类型标签