Open
[L1] fix: .gitignore 规则锚定,修复 1 个在册构建配置文件被忽略 #90
[L1] fix: .gitignore 规则锚定,修复 1 个在册构建配置文件被忽略 #90
Open
eieieiAdd on Oct 19
eieiei
eieiei
Oct 19

描述

[L1] fix: .gitignore 规则锚定,修复 1 个在册构建配置文件被忽略。CI 流水线全 Job 通过(含 ruff check / ruff format / codespell / OAT 检查等),单提交、CLA yes。

变更类型

Bug 修复

关联的Issue

NA(代码质量修复,不涉及功能 Issue)

测试

  • CI 流水线全 Job 通过(含 ruff check / ruff format / codespell / OAT 等检查项)
  • 变更为最小化修复,不影响现有功能

文档更新

NA(无文档变更)

合入检查

likedislike
Merge blocked
eieieieieiei
Oct 19 Created pull request, commit 08efcbe7
atomgit-bot
atomgit-bot
Oct 19 Comments:

变更摘要

本 PR 针对仓库 .gitignore 中规则匹配范围过宽的问题进行最小化修复:将原本未锚定的 third_party 规则改为以 / 前缀锚定,使其仅匹配仓库根目录下的 third_party,而不再误命中子目录(如 cmake/third_party/...)中的在册文件。此改动旨在消除“被忽略的在册构建配置文件”这一情况(计数由 1 降为 0),避免贡献者在该目录新增文件时被 git 拒绝加入、导致他人克隆后构建失败,同时理顺 git status 语义。

主要改动

  • third_party 规则锚定: 在 .gitignore 中将 third_party 改为 /third_party/,把匹配范围限定为仓库根目录下的该目录,不再覆盖子路径下的同名目录内容。
  • 修复被误忽略的在册文件: 通过锚定后,原先被过宽规则命中的在册文件(如 cmake/third_party/gtest.cmake)不再被忽略,被忽略的在册文件计数由 1 变为 0。
  • 保留对真实构建产物的忽略: 锚定后的 /third_party/ 仍能忽略该根目录内的真实产物(如 third_party/x.tgz),在收窄规则范围的同时维持原有忽略意图。
likedislike
Incorrect?
atomgit-bot
atomgit-bot
Oct 19 Comments:

代码审查

✅ 未发现问题

likedislike
Incorrect?
CANN-robotCANN-robotCollaborators
Oct 19 Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
Oct 19 Comments:

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

⚠️ This PR does not yet meet the following requirements:lgtm (requires ≥ 2 person(s) per module)、approve (requires ≥ 1 person(s) per module)

Module Approval Details

module lgtm status approve status
repo-cann/atvoss ❌ (0/2)(You can also ask: 徐鲁威, jia0liang, 王瑞, 王林木, 周奇龙) ❌ (0/1)(You can also ask: 冯彤, 徐鲁威, jia0liang, 王瑞, 王林木)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)
likedislike
CANN-robot
CANN-robotCollaborators
Oct 19 Comments:

CLA Signature Pass

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

likedislike
CANN-robotCANN-robotCollaborators
Oct 19 Set zhou-qilong,wangrui_,rxtfeng,loov1,jia0liang,llimwang,gubaocheng as approver
CANN-robotCANN-robotCollaborators
Oct 19 Set zhou-qilong,wangrui_,rxtfeng,loov1,jia0liang,llimwang,gubaocheng as approver
eieiei
eieiei
Oct 19 Comments:

/compile

likedislike
CANN-robotCANN-robotCollaborators
Oct 19 Added label: ci-pipeline-running
CANN-robot
CANN-robotCollaborators
Oct 19 Comments:

流水线任务触发成功
任务链接 [af96d28668504dd7a72e4b5d75619885][流水线指导]

任务名称状态日志下载链接
codecheck ✅ SUCCESS >>>>>
antipoison ✅ SUCCESS >>>>>
Check_Pr ✅ SUCCESS >>>>>
Compile_Ascend_X86 ✅ SUCCESS >>>>> >>>>>
Compile_Ascend_ARM ✅ SUCCESS >>>>> >>>>>
pre_comment ✅ SUCCESS >>>>>
SCA ✅ SUCCESS >>>>>
cocheck_codestyle ✅ SUCCESS
precommit ✅ SUCCESS >>>>>
UT_Test ✅ SUCCESS
ST_Test ✅ SUCCESS
API_Check ✅ SUCCESS >>>>>

[2026-10-19 09:14:28]    CI执行结束

likedislike
CANN-robotCANN-robotCollaborators
Oct 19 Added label: api-check-pass
CANN-robotCANN-robotCollaborators
Oct 19 Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Oct 19 Added label: ci-pipeline-passed
eieieieieiei
Oct 22 Modify description of pull request