已合并
[build] revert Shell scripts shebang #4678
ouyangcaike创建于 3 天前
[build] revert Shell scripts shebang #4678
已合并
Pull Request已成功合入, 合并人@CANN-robot
(感谢 ouyangcaike 的贡献)3 天前 创建了 pull request,commit bb39c14f
atomgit-bot
3 天前 评论:
3 天前 评论:
变更摘要
本 PR 为 Bug 修复,回退 #4556 中关于 shell 脚本 shebang 头的修改,将此前统一改为 #!/usr/bin/env bash 的脚本解释器声明恢复为直接指定系统路径的解释器(#!/bin/bash 或 #!/bin/sh),涉及 CI 脚本、打包安装脚本、示例构建、测试与本地构建等 32 个脚本,每处均为首行 shebang 的单一改动,并已完成编译与拦截任务验证。
主要改动
- 回退 CI 与示例构建脚本:
.gitcode/scripts/下的compile.sh、pre_smoke.sh、st.sh、ut.sh以及examples/build.sh的 shebang 由#!/usr/bin/env bash恢复为#!/bin/bash,恢复原有解释器解析方式 - 回退 hcomm 打包脚本:
scripts/package/hcomm/scripts/下安装、卸载、软链接创建/移除、版本检查等脚本(如install.sh、uninstall.sh、hcomm_func.sh、ver_check.sh)均恢复为#!/bin/bash;scripts/oat_check.sh则恢复为#!/bin/sh - 回退 latest_manager 与版本信息脚本:
scripts/package/latest_manager/scripts/中manager.sh、manager_func.sh恢复为#!/bin/sh,install.sh、uninstall.sh恢复为#!/bin/bash;scripts/update_version_info/update_version_info.sh恢复为#!/bin/bash - 回退测试与本地构建脚本:
test/hccl_vm/下的build.sh、build_pkg.sh、install.sh、test/run_ut.sh及asset/下拓扑生成、配置等脚本,以及src/legacy/ascend950/local_build/format_whole_repo.sh均恢复为#!/bin/bash


atomgit-bot
3 天前 评论:
3 天前 评论:
3 天前 添加了label:cann-cla/yes
CANN-robot
3 天前 评论:
3 天前 评论:
CANN-robot
3 天前 评论:
3 天前 评论:
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.
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 |
|---|---|---|
| .gitcode/** | ✅ 宋常霞, laodazhao1, 颜业峰 (3/2) | ✅ 宋常霞 (1/1) |
| examples | ✅ 颜业峰, laodazhao1 (2/2) | ✅ 颜业峰 (1/1) |
| repo-cann/hcomm | ✅ 颜业峰, laodazhao1 (2/2) | ✅ 颜业峰 (1/1) |
| scripts | ✅ 颜业峰, laodazhao1 (2/2) | ✅ 颜业峰 (1/1) |
| test/hccl_vm | ✅ 颜业峰, ZhanPhil, laodazhao1 (3/2) | ✅ ZhanPhil (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)


3 天前 将mywaaagh_admin,leabclove,songchangxia,tanghaoran7,yanglianxiang2,ccNeo824,whk19940509,chengym,shentukangjun,ccl_ligang,linyf950,yanzhenghang,chenliang267,yanyefeng,chenhao_,dingweiqin_57,Larry_liuyi,songmingyang,wenxuemin,yangxiaoyuan,laodazhao1,yangshaohua,chenke2026,zhongqin2020,bz_lee,Innoecho,chenyia,temper7620,zhangxp1030,abiggg,lilin_137,lilianlin_hw,hulk1997,virtual_runtime,zheng555,ZhanPhil,ouyangxizi设为评审人
3 天前 将mywaaagh_admin,leabclove,songchangxia,tanghaoran7,yanglianxiang2,ccNeo824,whk19940509,chengym,shentukangjun,ccl_ligang,linyf950,yanzhenghang,chenliang267,yanyefeng,chenhao_,dingweiqin_57,Larry_liuyi,songmingyang,wenxuemin,yangxiaoyuan,laodazhao1,yangshaohua,chenke2026,zhongqin2020,bz_lee,Innoecho,chenyia,temper7620,zhangxp1030,abiggg,lilin_137,lilianlin_hw,hulk1997,virtual_runtime,zheng555,ZhanPhil,ouyangxizi设为评审人
3 天前 将mywaaagh_admin,leabclove,songchangxia,tanghaoran7,yanglianxiang2,ccNeo824,whk19940509,chengym,shentukangjun,ccl_ligang,linyf950,yanzhenghang,chenliang267,yanyefeng,chenhao_,dingweiqin_57,Larry_liuyi,songmingyang,wenxuemin,yangxiaoyuan,laodazhao1,yangshaohua,chenke2026,zhongqin2020,bz_lee,Innoecho,chenyia,temper7620,zhangxp1030,abiggg,lilin_137,lilianlin_hw,hulk1997,virtual_runtime,zheng555,ZhanPhil,ouyangxizi设为审查人
3 天前 将mywaaagh_admin,leabclove,songchangxia,tanghaoran7,yanglianxiang2,ccNeo824,whk19940509,chengym,shentukangjun,ccl_ligang,linyf950,yanzhenghang,chenliang267,yanyefeng,chenhao_,dingweiqin_57,Larry_liuyi,songmingyang,wenxuemin,yangxiaoyuan,laodazhao1,yangshaohua,chenke2026,zhongqin2020,bz_lee,Innoecho,chenyia,temper7620,zhangxp1030,abiggg,lilin_137,lilianlin_hw,hulk1997,virtual_runtime,zheng555,ZhanPhil,ouyangxizi设为审查人
ouyangcaike
3 天前 评论:
3 天前 评论:
/compile


Oouyangcaike
3 天前 update merge request[project id: 7874083, iid: 4678, commit_id: 1207c6f0fdc0bb3e1721febbf00c9eaed72bfd4d] virtual merging success
3 天前 update merge request[project id: 7874083, iid: 4678, commit_id: 1207c6f0fdc0bb3e1721febbf00c9eaed72bfd4d] virtual merging success
3 天前 添加了label:ci-pipeline-running
CANN-robot
3 天前 评论:
3 天前 评论:
流水线任务触发成功
任务链接 [a49a08434a944434b959934dc2390751][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| SCA | ❌ FAILED | >>>>> | |
| antipoison | ✅ SUCCESS | >>>>> | |
| Check_Pr | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| StaticCheck_codespell | ✅ SUCCESS | ||
| StaticCheck_link_validity | ✅ SUCCESS | ||
| StaticCheck_resource_existence | ✅ SUCCESS | ||
| StaticCheck_tag_closed | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS |


3 天前 删除了label:ci-pipeline-running
3 天前 添加了label:ci-pipeline-failed
CANN-robot
3 天前 评论:
3 天前 评论:
流水线 PR-pipeline_cann_hcomm#18148 [ commitID:ed0db9c2 ] 运行失败


philo
3 天前 评论:
3 天前 评论:
/lgtm
/approve


laodazhao1
3 天前 评论:
3 天前 评论:
/lgtm


3 天前 添加了label:lgtm
ouyangcaike
3 天前 评论:
3 天前 评论:
/compile


3 天前 删除了label:ci-pipeline-failed
3 天前 添加了label:ci-pipeline-running
CANN-robot
3 天前 评论:
3 天前 评论:
流水线任务触发成功
任务链接 [7dff631f3c9b4fb4949931a6bfc9a449][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| SCA | ✅ SUCCESS | >>>>> | |
| antipoison | ✅ SUCCESS | >>>>> | |
| Check_Pr | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_ubuntu24 | ✅ SUCCESS | >>>>> | >>>>> |
| StaticCheck_codespell | ✅ SUCCESS | ||
| StaticCheck_link_validity | ✅ SUCCESS | ||
| StaticCheck_resource_existence | ✅ SUCCESS | ||
| StaticCheck_tag_closed | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS | ||
| ST_Test | ✅ SUCCESS | ||
| API_Check | ✅ SUCCESS | >>>>> | |
| codecheck | ✅ SUCCESS | >>>>> | |
| codecheck_style | ✅ SUCCESS | >>>>> | |
| UT_Test | ✅ SUCCESS | >>>>> | |
| precommit | ✅ SUCCESS | >>>>> | |
| PreSmoke_A900_npupool | ✅ SUCCESS | >>>>> | |
| PreSmoke_A3_npupool | ✅ SUCCESS | >>>>> |
[2026-08-18 17:49:58] CI执行结束


3 天前 添加了label:api-check-pass
3 天前 删除了label:ci-pipeline-running
3 天前 添加了label:ci-pipeline-passed
CANN-robot
3 天前 评论:
3 天前 评论:
流水线 PR-pipeline_cann_hcomm#18165 [ commitID:ed0db9c2 ] 已完成


songchangxia
3 天前 评论:
3 天前 评论:
/lgtm
/approve


3 天前 添加了label:approved
3 天前 合入了pull request
描述
变更类型
请选择本次引入的变更类型:
关联的Issue
NA
测试
已完成的测试用例和场景:
补充的UT用例:
NA
文档更新
NA
合入检查