已合并
Update torchair (GitCode) #26139
dilililiwhy创建于 2025年10月30日
Update torchair (GitCode) #26139
已合并
dilililiwhy创建于 2025年10月30日
dilililiwhy
dilililiwhy成员
2025年10月30日

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:

/kind bug
/kind task
/kind feature

What does this PR do / why do we need it:

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewers:

likedislike
Pull Request已成功合入, 合并人@ascend-robot
(感谢 dilililiwhy 的贡献)
dilililiwhydilililiwhy成员
2025年10月30日 创建了 pull request,commit 601a876d
ascend-robot
ascend-robot成员
2025年10月30日 评论:

Thank your for your pull-request.

The full list of commands accepted by me can be found at here.

You can get sig-info at here

likedislike
openLiBingCI成员
2025年10月30日 评论:
ascend-robot
ascend-robot成员
2025年10月30日 评论:

以下是根据您提交的修改文件推荐的Reviewer和Committer序列,需各模块评审通过后方可合入

Module List Reviewers Committers
repo-Ascend/pytorch yanpengquan, duchengkun, zqwenn, SCh_zx, yangkaixin liwei386, wangchao430, shaoyf, wangchao285, aichunzheng
likedislike
ascend-robotascend-robot成员
2025年10月30日 添加了label:ascend-cla/yes
ascend-robot
ascend-robot成员
2025年10月30日 评论:

CLA Signature Pass

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

likedislike
openLiBingCI成员2025年10月30日进行代码检视1
.gitmodules
@@ -8,3 +8,3 @@
88[submodule "third_party/torchair/torchair"]
99 path = third_party/torchair/torchair
10- url = https://gitee.com/ascend/torchair.git
10+ url = https://gitcode.com/ascend/torchair.git
openLiBingCI2025年10月30日评论:

代码可维护性: 在检视过程中发现,torchair子模块的URL从gitee.com迁移到了gitcode.com,但其他子模块的URL来源存在不一致性。op-plugin、torchair、Tensorpipe使用gitcode.com,而googletest、fmt、nlohmann、torch-mlir使用gitee.com。这种混合使用不同代码托管平台的情况可能会影响项目的依赖管理一致性和长期维护性。

问题类型: 代码可维护性
文件路径: .gitmodules
行号: 10
问题代码:

url = https://gitcode.com/ascend/torchair.git

修改建议:

建议统一所有子模块的代码托管平台来源。如果项目主要使用gitcode.com,考虑将googletest、fmt、nlohmann、torch-mlir也迁移到gitcode.com的对应镜像;如果主要使用gitee.com,则考虑将op-plugin、torchair、Tensorpipe迁移回gitee.com。这样可以简化依赖管理,提高构建稳定性。

此评论由代码审查工具自动生成

likedislike
openLiBingCI成员
2025年10月30日 评论:

问题/功能描述

本次PR主要解决torchair子模块仓库地址迁移问题,将源码仓库从gitee平台迁移到gitcode平台,确保代码依赖管理的正确性和可访问性,避免因仓库平台变更导致的子模块拉取失败问题。

修改方案描述

通过更新.gitmodules配置文件,将third_party/torchair/torchair子模块的URL地址从https://gitee.com/ascend/torchair.git修改为https://gitcode.com/ascend/torchair.git,保持子模块路径和其他配置不变,确保项目能够正常拉取和更新依赖的子模块代码。

安全质量评估

风险等级: 低

评估说明: 本次变更仅涉及子模块仓库地址的更新,不涉及任何代码逻辑修改。变更内容为纯文本配置文件的URL地址修改,不存在编码安全问题、安全红线问题或漏洞风险。由于是配置文件的简单更新,且目标仓库仍为同一组织的可信源,安全风险极低。

likedislike
dilililiwhy
dilililiwhy成员
2025年10月30日 评论:

compile

likedislike
AtlasAccount
AtlasAccount成员
2025年10月30日 评论:

流水线任务触发成功,正在执行,请稍候。 任务链接[75f1817555184fd7bd98ac54163991c4]

likedislike
AtlasAccountAtlasAccount成员
2025年10月30日 添加了label:ci-pipeline-running
AtlasAccount
AtlasAccount成员
2025年10月30日 评论:

get-log

likedislike
AtlasAccountAtlasAccount成员
2025年10月30日 删除了label:ci-pipeline-running
AtlasAccountAtlasAccount成员
2025年10月30日 添加了label:ci-pipeline-running
AtlasAccountAtlasAccount成员
2025年10月30日 删除了label:ci-pipeline-running
AtlasAccountAtlasAccount成员
2025年10月30日 添加了label:ci-pipeline-passed
AtlasAccount
AtlasAccount成员
2025年10月30日 评论:
检查项 状态 日志 产物
code_check >>> N/A
sca >>> N/A
check_error >>> N/A
anti poison >>> N/A
Build_X86_USE_CXX_ABI_GCC13 >>> >>>
Build_LibTorch_USE_CXX_ABI_GCC13 >>> >>>
Build_ARM_USE_CXX_ABI_GCC13 >>> >>>
UT_X86_Part_01 >>> N/A
UT_X86_Part_02 >>> N/A
openlibing链接 点此跳转
likedislike
AtlasAccountAtlasAccount成员
2025年10月30日 删除了label:ci-pipeline-passed
AtlasAccountAtlasAccount成员
2025年10月30日 添加了label:ci-pipeline-passed
wbigat
wbigat成员
2025年10月31日 评论:

/approve

likedislike
ascend-robotascend-robot成员
2025年10月31日 添加了label:lgtm
王超成员
2025年10月31日 评论:

/approve

likedislike
ascend-robotascend-robot成员
2025年10月31日 添加了label:approved
ascend-robot
ascend-robot成员
2025年10月31日 评论:

Review Guide

This Pull-Request Passes Review.
Committers who writed a comment of /approve are: wangchao430, wangqiang160.
Reviewers who writed a comment of /lgtm are: wangqiang160, wangchao430.

likedislike
ascend-robotascend-robot成员
2025年10月31日 合入了pull request