已合并
[build] revert Shell scripts shebang #4678
ouyangcaike创建于 3 天前
[build] revert Shell scripts shebang #4678
已合并
ouyangcaike创建于 3 天前
ouyangcaike成员
3 天前

描述

  1. 回退https://gitcode.com/cann/hcomm/pull/4556中关于shell脚本shebang头的修改

变更类型

请选择本次引入的变更类型:

关联的Issue

NA

测试

已完成的测试用例和场景:

  1. 编译成功
  2. 拦截任务成功

补充的UT用例:
NA

文档更新

NA

合入检查

likedislike
Pull Request已成功合入, 合并人@CANN-robot
(感谢 ouyangcaike 的贡献)
Oouyangcaike成员
3 天前 创建了 pull request,commit bb39c14f
atomgit-bot
atomgit-bot
3 天前 评论:

变更摘要

本 PR 为 Bug 修复,回退 #4556 中关于 shell 脚本 shebang 头的修改,将此前统一改为 #!/usr/bin/env bash 的脚本解释器声明恢复为直接指定系统路径的解释器(#!/bin/bash#!/bin/sh),涉及 CI 脚本、打包安装脚本、示例构建、测试与本地构建等 32 个脚本,每处均为首行 shebang 的单一改动,并已完成编译与拦截任务验证。

主要改动

  • 回退 CI 与示例构建脚本: .gitcode/scripts/ 下的 compile.shpre_smoke.shst.shut.sh 以及 examples/build.sh 的 shebang 由 #!/usr/bin/env bash 恢复为 #!/bin/bash,恢复原有解释器解析方式
  • 回退 hcomm 打包脚本: scripts/package/hcomm/scripts/ 下安装、卸载、软链接创建/移除、版本检查等脚本(如 install.shuninstall.shhcomm_func.shver_check.sh)均恢复为 #!/bin/bashscripts/oat_check.sh 则恢复为 #!/bin/sh
  • 回退 latest_manager 与版本信息脚本: scripts/package/latest_manager/scripts/manager.shmanager_func.sh 恢复为 #!/bin/shinstall.shuninstall.sh 恢复为 #!/bin/bashscripts/update_version_info/update_version_info.sh 恢复为 #!/bin/bash
  • 回退测试与本地构建脚本: test/hccl_vm/ 下的 build.shbuild_pkg.shinstall.shtest/run_ut.shasset/ 下拓扑生成、配置等脚本,以及 src/legacy/ascend950/local_build/format_whole_repo.sh 均恢复为 #!/bin/bash
likedislike
atomgit-bot
atomgit-bot
3 天前 评论:

代码审查

✅ 未发现问题

likedislike
CANN-robotCANN-robot成员
3 天前 添加了label:cann-cla/yes
CANN-robot
CANN-robot成员
3 天前 评论:

CLA Signature Pass

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

likedislike
CANN-robot
CANN-robot成员
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 /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)
likedislike
CANN-robotCANN-robot成员
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设为评审人
CANN-robotCANN-robot成员
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 天前 评论:

/compile

likedislike
Oouyangcaike成员
3 天前 update merge request[project id: 7874083, iid: 4678, commit_id: 1207c6f0fdc0bb3e1721febbf00c9eaed72bfd4d] virtual merging success
CANN-robotCANN-robot成员
3 天前 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
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
likedislike
CANN-robotCANN-robot成员
3 天前 删除了label:ci-pipeline-running
CANN-robotCANN-robot成员
3 天前 添加了label:ci-pipeline-failed
CANN-robot
CANN-robot成员
3 天前 评论:
流水线 PR-pipeline_cann_hcomm#18148 [ commitID:ed0db9c2 ] 运行失败
likedislike
philo
philo成员
3 天前 评论:

/lgtm
/approve

likedislike
laodazhao1成员
3 天前 评论:

/lgtm

likedislike
CANN-robotCANN-robot成员
3 天前 添加了label:lgtm
ouyangcaike成员
3 天前 评论:

/compile

likedislike
CANN-robotCANN-robot成员
3 天前 删除了label:ci-pipeline-failed
CANN-robotCANN-robot成员
3 天前 添加了label:ci-pipeline-running
CANN-robot
CANN-robot成员
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执行结束

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

/approve

likedislike
songchangxia成员
3 天前 评论:

/lgtm
/approve

likedislike
CANN-robotCANN-robot成员
3 天前 添加了label:approved
CANN-robotCANN-robot成员
3 天前 合入了pull request