Open
[L1] fix: .gitignore 规则锚定,修复 1 个在册构建配置文件被忽略 #90
eieieiAdd on Oct 19
[L1] fix: .gitignore 规则锚定,修复 1 个在册构建配置文件被忽略 #90
Open
Merged fromwsnidie1/atvossfix/gitignore-anchor-atvossintocann/atvossmaster
Merge blocked
atomgit-bot
Oct 19 Comments:
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),在收窄规则范围的同时维持原有忽略意图。


Incorrect?
atomgit-bot
Oct 19 Comments:
Oct 19 Comments:
Oct 19 Added label: cann-cla/yes
CANN-robot
Oct 19 Comments:
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
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)


CANN-robot
Oct 19 Comments:
Oct 19 Comments:
Oct 19 Set zhou-qilong,wangrui_,rxtfeng,loov1,jia0liang,llimwang,gubaocheng as approver
Oct 19 Set zhou-qilong,wangrui_,rxtfeng,loov1,jia0liang,llimwang,gubaocheng as approver
eieiei
Oct 19 Comments:
Oct 19 Comments:
/compile


Oct 19 Added label: ci-pipeline-running
CANN-robot
Oct 19 Comments:
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执行结束


Oct 19 Added label: api-check-pass
Oct 19 Removed label: ci-pipeline-running
Oct 19 Added label: ci-pipeline-passed
Oct 22 Modify description of pull request
描述
[L1] fix: .gitignore 规则锚定,修复 1 个在册构建配置文件被忽略。CI 流水线全 Job 通过(含 ruff check / ruff format / codespell / OAT 检查等),单提交、CLA yes。
变更类型
Bug 修复
关联的Issue
NA(代码质量修复,不涉及功能 Issue)
测试
文档更新
NA(无文档变更)
合入检查