已关闭
[Requirement|需求建议]: ops-nn安装效率优化:统一安装路径、提升复制效率、改造打包脚本 #1570
qinhan创建于  3月19日关闭于  3月20日
qinhan
qinhan
3月19日 创建

Thanks for sending an requirement! Please fill in the following template to help quickly solve your problem.

Backgroud(背景信息)

原有安装逻辑中,dst_path与install_path,没有统一,涉及到全量文件复制的场景,影响ops-nn的安装效率;
蓝区的打包脚本和黄区打包脚本存在大量差异,影响后期黄蓝区打包脚本归一。

Origin(信息来源)

开发

Benefit / Necessity (价值/作用)

统一dst_path与install_path,确保包内路径和环境上安装路径保持一致,可以实现解压即安装,其它软链保持不变;
在打包解析阶段增加 dst_path == install_path 的强制校验;
改造了打包脚本,添加了do_copy和create softlink等功能。

Design(设计方案)

本次设计旨在重构ops-nn 的构建与打包体系,核心策略是“路径统一、逻辑归一、性能优先”。
路径标准化:统一dst_path与install_path,确保包内路径和环境上安装路径保持一致
脚本归一化:抽象蓝区(Blue Zone)与黄区(Yellow Zone)打包脚本的共性逻辑,通过 Python 解析器 (pkg_parser.py) 统一处理权限、软链接和文件拷贝,消除双轨制差异。
性能优化:引入 copy_all 模式,直接调用系统级批量拷贝 (cp -af),显著提升安装效率。

likedislike
jiangjiawei成员
3月19日 评论:

/assign @qinhan

likedislike
CANN-robot
CANN-robot成员
3月19日 评论:

Notice

This issue can not be assigned to qinhan. Please try to assign to the repository members.

likedislike
qinhan
qinhan
3月20日 评论:

/close

likedislike
CANN-robotCANN-robot成员
3月20日 issue状态由 进行中 改变为 已完成
CANN-robotCANN-robot成员
3月20日 关闭了 issue
CANN-robotCANN-robot成员
3月20日 添加了label:Accepted
CANN-robotCANN-robot成员
3月20日 添加了label:resolved
Zzoujiangjiang
4月15日 关联了pull request:pto-as安装优化改造,解压即安装