已合并
fix: CI检查脚本跳过experimental目录下的example运行 #2561
songkai111创建于 4月29日
fix: CI检查脚本跳过experimental目录下的example运行 #2561
已合并
S
songkai111成员
4月29日
4月29日
## 描述
在 `scripts/ci/check_example.sh` 中增加了对 `experimental/` 目录下文件的跳过逻辑。当 PR 变更文件路径以 `experimental/` 开头时,直接跳过该文件,不进行后续的算子目录匹配和 example 运行。
### 改动原因
CI 流水线在运行 example 检查时,会将所有变更文件与算子目录进行匹配。`experimental/` 目录下的算子为实验性质,不应纳入 CI 的 example 运行范围,此前缺少对该目录的过滤判断。
### 改动方法
在文件遍历循环中,紧跟 `.md` 文件跳过逻辑之后,新增 `experimental/` 前缀匹配判断,命中则 continue 跳过。
## 关联的Issue
- #1443
## 测试
该修改仅涉及 CI 脚本逻辑判断,通过以下方式验证:
- 确认 `experimental/` 前缀匹配逻辑正确,不影响其他目录文件的正常处理流程
- 非 `experimental/` 目录下的文件仍按原有逻辑进行匹配和 example 运行
## 文档更新
无
## 类型标签
- [x] Bug修复
- [ ] 新特性
- [ ] 性能优化
- [ ] 文档更新
- [ ] 其他,请描述:


Pull Request已成功合入, 合并人@CANN-robot
(感谢 songkai111 的贡献)4月29日 创建了 pull request,commit 233015fe
CANN-robot
4月29日 评论:
4月29日 评论:
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
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| repo-cann/ops-math | ✅ 王林木, wangrui_ (2/2) | ✅ 王林木 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
songkai111, thanks for your pull request. All authors of the commits have signed the CLA. 👍


4月29日 添加了label:cann-cla/yes
4月29日 将zhou-qilong,wangrui_,rxtfeng,loov1,zhangzijie,jia0liang,llimwang,gubaocheng设为评审人
4月29日 将zhou-qilong,wangrui_,rxtfeng,loov1,zhangzijie,jia0liang,llimwang,gubaocheng设为审查人
songkai111
4月29日 评论:
4月29日 评论:
compile


4月29日 添加了label:ci-pipeline-running
CANN-robot
4月29日 评论:
4月29日 评论:
流水线任务触发成功
任务链接 [e7aa68cc89b34d6eb4bb84c9a1441785][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| Compile_Ascend_X86 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_mobile_station | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_experimental | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_experimental | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_single | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_X86_A5 | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_Ascend_ARM_A5 | ✅ SUCCESS | >>>>> | >>>>> |
| pre_comment | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_ubuntu24 | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_mobile_station_ubuntu24 | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_experimental_ubuntu24 | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_X86_A5_ubuntu24 | ✅ SUCCESS | >>>>> | |
| harmony-infer | ✅ SUCCESS | ||
| Compile_Ascend_ARM_ubuntu24 | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_ARM_experimental_ubuntu24 | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_single_ubuntu24 | ✅ SUCCESS | >>>>> | |
| Compile_Ascend_ARM_A5_ubuntu24 | ✅ SUCCESS | >>>>> | |
| Compile_X86_monitor_910b | ✅ SUCCESS | >>>>> | >>>>> |
| Compile_X86_monitor_910c | ✅ SUCCESS | >>>>> | >>>>> |
| UT_Test | ✅ SUCCESS | ||
| UT_Test_experimental | ✅ SUCCESS | ||
| UT_Test_kernel | ✅ SUCCESS | ||
| PreSmoke_A900 | ✅ SUCCESS | >>>>> | |
| API_Check | ✅ SUCCESS | >>>>> | |
| ATK_Test_A2 | ✅ SUCCESS |
[2026-04-29 16:30:07] CI执行结束


CANN-robot
4月29日 评论:
4月29日 评论:
流水线任务触发成功
任务链接 [b1405097b8554990960b8de22247e8f5][流水线指导]
| 任务名称 | 状态 | 日志 | 下载链接 |
|---|---|---|---|
| codecheck | ✅ SUCCESS | >>>>> | |
| SCA | ✅ SUCCESS | >>>>> | |
| anti_virus | ✅ SUCCESS | >>>>> | |
| Check_Pr | ✅ SUCCESS | >>>>> | |
| StaticCheck_codespell_check | ✅ SUCCESS | ||
| StaticCheck_link_validity_check | ✅ SUCCESS | ||
| StaticCheck_resource_existence_check | ✅ SUCCESS | ||
| StaticCheck_tag_closed_check | ✅ SUCCESS | ||
| StaticCheck_markdownlint | ✅ SUCCESS | ||
| cocheck_codestyle | ✅ SUCCESS | ||
| precommit | ⚠️ WARNING | >>>>> | >>>>> |
[2026-04-29 16:22:54] CI执行结束


4月29日 添加了label:api-check-pass
4月29日 删除了label:ci-pipeline-running
4月29日 添加了label:ci-pipeline-passed
4月29日 修改标题为 “fix: CI检查脚本跳过experimental目录下的example运行”,原标题为“修改example运行时,跳过experimental”
4月29日 修改了pull request 的描述
4月29日 添加了label:lgtmapproved
CANN-robot
4月29日 评论:
4月29日 评论:
4月29日 关闭了关联的issue
4月29日 合入了pull request