Pull Request已成功合入, 合并人@CANN-robot
(感谢 qinhan 的贡献)变更摘要
本 PR 旨在统一 dflow、ge-compiler、ge-executor 三个组件安装文件及目录的权限规范。改动方式为纯删除(无新增代码):移除散落在各安装脚本与功能脚本中的 chmod 权限设置,包括数据文件、version.info、Python 包目录、stub 软链接目录等,使目录/文件权限不再由各脚本单独指定,统一交由统一规范管控,脚本中仅保留 chown 属主设置等必要操作。
主要改动
- 移除安装目录与数据文件权限设置:
scripts/package/dflow-executor/scripts/install.sh、scripts/package/ge-executor/scripts/install.sh、scripts/package/ge-compiler/scripts/install.sh的chmod_end()中删除了对ascend_install.info、version.info、scene.info、default_dir及script目录/文件的chmod调用,仅保留chown -R属主设置。 - 移除 ge-compiler 的 Python 包权限设置:
scripts/package/ge-compiler/scripts/install.sh的chmod_end()中删除了对python及site-packages下llm_datadist_v1、dataflow、ge、ge_py、ge_py_pass_bridge等目录和 dist-info、LICENSE的大量递归chmod设置。 - 移除版本信息文件权限设置:三个组件的
install.sh中update_version_info_version()均不再对$default_dir/version.info执行chmod_single_dir ... 440。 - 移除 stub 软链接目录权限操作:
scripts/package/ge-compiler/scripts/ge-compiler_func.sh与scripts/package/ge-executor/scripts/ge-executor_func.sh的create_stub_softlink()中移除chmod u-w .,remove_stub_softlink()中移除操作结束后的chmod u-w .(保留前置的chmod u+w .)。 - 移除 ACL 头文件目录只读设置:
scripts/package/ge-executor/scripts/ge-executor_func.sh的create_acl_empty_headers()中删除了对$acl_headers_dir的chmod u-w调用。


Hi @qinhan123, welcome to submitting your first PR to ge!
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.


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/ge | ✅ yangyongqiang0606, kobemini (2/2) | ✅ yangyongqiang0606 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
qinhan123, thanks for your pull request. All authors of the commits have signed the CLA. 👍


compile


流水线任务触发成功
任务链接 [b095be6e07de4a689c4192139675b9ad][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_ARM_compiler | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_ARM_executor | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_ARM_dflow | ✅ SUCCESS | >>>>> | >>>>> |
| API_Check | ✅ SUCCESS | >>>>> | |
| PreSmoke_A900_npupool | ✅ SUCCESS | >>>>> |
[2026-08-25 20:39:57] CI执行结束


流水线任务触发成功
任务链接 [203c17e6e57e49ec8ba40ff0262fe603][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_X86_compiler | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_executor | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_dflow | ✅ SUCCESS | >>>>> | >>>>> |
| UT_Test_dflow | ✅ SUCCESS | ||
| UT_Test_ge_common | ✅ SUCCESS | ||
| UT_Test_parser | ✅ SUCCESS | ||
| UT_Test_python | ✅ SUCCESS | >>>>> | |
| UT_Test_rt | ✅ SUCCESS | ||
| UT_Test_acl | ✅ SUCCESS | ||
| UT_Test_autofuse | ✅ SUCCESS | ||
| UT_Test_executor | ✅ SUCCESS | ||
| UT_Test_autofuse_ascendc_api | ✅ SUCCESS | ||
| ST_Test_dflow | ✅ SUCCESS | ||
| ST_Test_ge_common | ✅ SUCCESS | ||
| ST_Test_parser | ✅ SUCCESS | ||
| ST_Test_python | ✅ SUCCESS | >>>>> | |
| ST_Test_rt | ✅ SUCCESS | ||
| ST_Test_autofuse | ✅ SUCCESS | ||
| ST_Test_executor | ✅ SUCCESS | ||
| ST_Test_hetero | ✅ SUCCESS | ||
| ST_Test_autofuse_ascendc_api | ✅ SUCCESS | ||
| ST_Test_autofuse_e2e | ✅ SUCCESS | ||
| UT_Test_fe | ✅ SUCCESS | ||
| UT_Test_tefusion | ✅ SUCCESS | ||
| ST_Test_fe | ✅ SUCCESS | ||
| ST_Test_tefusion | ✅ SUCCESS | ||
| ST_Test_ge_common_atc | ✅ SUCCESS | ||
| UT_Test_Report_graphengine | ✅ SUCCESS | >>>>> | |
| UT_Test_Report_ge_executor_c | ✅ SUCCESS | >>>>> | |
| UT_Test_Report_ge_autofuse | ✅ SUCCESS | >>>>> | |
| ST_Test_Report_graphengine | ✅ SUCCESS | >>>>> | |
| ST_Test_Report_ge_executor_c | ✅ SUCCESS | >>>>> | |
| ST_Test_Report_ge_autofuse | ✅ SUCCESS | >>>>> | |
| UT_Test_Report_fe | ✅ SUCCESS | >>>>> | |
| ST_Test_Report_fe | ✅ SUCCESS | >>>>> |
[2026-08-25 20:47:47] CI执行结束


流水线任务触发成功
任务链接 [7480a00472a7477d836bd06d6af2b6d8][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck_Pr | ✅ SUCCESS | ||
| antipoison | ✅ SUCCESS | >>>>> | |
| SCA | ✅ SUCCESS | >>>>> | |
| codecheck_dt | ✅ SUCCESS | >>>>> | |
| codecheck_precommit | ✅ SUCCESS | >>>>> | |
| StaticCheck_codespell | ✅ SUCCESS | ||
| StaticCheck_link_validity | ✅ SUCCESS | ||
| StaticCheck_resource_existence | ✅ SUCCESS | ||
| StaticCheck_tag_closed | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS |
[2026-08-25 20:38:06] CI执行结束


compile


/lgtm


/lgtm


/approve


Pull Request
描述
统一dflow、ge-compiler、ge-executor安装文件及目录权限,这些权限统一由cmake控制, 删除安装脚本中一些影响权限规范的操作
变更类型
请选择本次引入的变更类型:
关联的Issue
如何测试
描述测试此变更的步骤和前提条件:
重新出包,然后比较安装后的内容化是否符合预期
除了opp/built-in目录为550,所有目录均为750,可执行程序为750,python/shell脚本为750,
share/info/包名/script目录下安装卸载脚本等统一为740,其他文件为640,符号链接为777
核对清单
其他信息
在此添加任何其他关于本次 PR 的说明。