Closed
[Bug-Report|缺陷反馈]:CI pre-smoke 耗时太长,需要整改 #4484
chenqi317Add on  Aug 21Closed at  Sep 3
chenqi317Collaborators
Aug 21 Create

Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.

Describe the current behavior / 问题描述 (Mandatory / 必填)

CI pre-smoke 耗时太长,需要整改
以 该pr 为例https://gitcode.com/cann/ops-transformer/pull/8897/check,
门禁链接: https://www.openlibing.com/apps/pipelineDetail?pipelineId=3537b826c3c54622a4fd365051123f9e&pipelineRunId=e19bea30b1d1467fad28ca2f5ef130f9&projectId=300033&jobRunId=860076d9a5334771b9c6056d002718fa

PreSmoke_A900: 18m51s
1、用例多跑: 当修改的范围是built-in 的算子,触发了experimental 算子的example
2、无用的日志打印: 算子大量打屏 为例, 大量打印mean result[0] is: 0.000000 增加了耗时,需要删除无用的打印

[2026/08/17 10:31:54.926 GMT+08:00] + cat pr_filelist_mod.txt
[2026/08/17 10:31:54.926 GMT+08:00] M attention/flash_attention_score_grad/examples/test_aclnn_flash_attention_score_grad_v2.cpp
[2026/08/17 10:31:54.926 GMT+08:00] M attention/flash_attention_score_grad/examples/test_aclnn_flash_attention_score_grad_v4_fp16.cpp
[2026/08/17 10:31:54.926 GMT+08:00] M attention/flash_attention_score_grad/examples/test_aclnn_flash_attention_score_grad_v4_fp32.cpp
[2026/08/17 10:31:54.926 GMT+08:00] M attention/flash_attention_score_grad/examples/test_aclnn_flash_attention_score_grad_v4_sprase_mode.cpp
[2026/08/17 10:31:54.926 GMT+08:00] M attention/flash_attention_score_grad/examples/test_aclnn_flash_attention_score_grad_v4_varlen.cpp
[2026/08/17 10:31:54.926 GMT+08:00] M attention/flash_attention_score_grad/examples/test_aclnn_flash_attention_unpadding_score_grad.cpp
[2026/08/17 10:31:54.926 GMT+08:00] M attention/flash_attention_score_grad/examples/test_aclnn_flash_attention_unpadding_score_grad_v4_fp32.cpp
[2026/08/17 10:31:54.926 GMT+08:00] M attention/flash_attention_score_grad/op_host/arch22/flash_attention_score_grad_tiling_s1s2_bn2.cpp
[2026/08/17 10:31:54.926 GMT+08:00] M attention/flash_attention_score_grad/op_host/arch22/flash_attention_score_grad_tiling_s1s2_bn2gs1s2.cpp
[2026/08/17 10:31:54.926 GMT+08:00] M attention/flash_attention_score_grad/op_host/arch22/flash_attention_score_grad_tiling_s1s2_bn2gs1s2_basic.cpp
[2026/08/17 10:31:54.926 GMT+08:00] M attention/flash_attention_score_grad/op_host/arch22/flash_attention_score_grad_tiling_s1s2_bn2gs1s2_basic_det.cpp
[2026/08/17 10:31:54.926 GMT+08:00] M attention/flash_attention_score_grad/op_host/arch22/flash_attention_score_grad_tiling_s1s2_bn2gs1s2_sab.cpp

[2026/08/17 10:32:38.601 GMT+08:00] [2026-08-17 10:32:32][parse_changed_files.py:288] Trigger examples: flash_attention_score_grad;
[2026/08/17 10:32:38.601 GMT+08:00] [2026-08-17 10:32:32] Operators that need to run examples: flash_attention_score_grad;
[2026/08/17 10:32:38.601 GMT+08:00] [2026-08-17 10:32:32] Running example test for operator: flash_attention_score_grad
[2026/08/17 10:32:38.601 GMT+08:00] [2026-08-17 10:32:32] [2026-08-17 10:32:32] Start to run example,name:flash_attention_score_grad mode:eager
[2026/08/17 10:32:38.601 GMT+08:00] [2026-08-17 10:32:33] Start compile and run example file: ../experimental/attention/flash_attention_score_grad/examples/test_aclnn_flash_attention_unpadding_score_grad.cpp
[2026/08/17 10:32:38.601 GMT+08:00] [2026-08-17 10:32:33] pkg_mode:cust vendor_name:custom
[2026/08/17 10:32:38.602 GMT+08:00] [2026-08-17 10:32:35] mean result[0] is: 0.000000
[2026/08/17 10:32:38.602 GMT+08:00] [2026-08-17 10:32:35] mean result[1] is: 0.000000
[2026/08/17 10:32:38.602 GMT+08:00] [2026-08-17 10:32:35] mean result[2] is: 0.000000

Environment / 环境信息 (Mandatory / 必填)

A2

Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

CI pre-smoke 耗时太长,需要整改
以 该pr 为例https://gitcode.com/cann/ops-transformer/pull/8897/check,PreSmoke_A900: 18m51s
1、用例多跑: 当修改的范围是built-in 的算子,触发了experimental 算子的example
2、无用的日志打印: 算子大量打屏 为例, 大量打印mean result[0] is: 0.000000 增加了耗时,需要删除无用的打印

Describe the expected behavior / 预期结果 (Mandatory / 必填)

1、识别是否触发experimental 算子的example
2、删除无用日志打印

https://www.openlibing.com/apps/pipelineDetail?pipelineId=3537b826c3c54622a4fd365051123f9e&pipelineRunId=e19bea30b1d1467fad28ca2f5ef130f9&projectId=300033&jobRunId=860076d9a5334771b9c6056d002718fa

Special notes for this issue/备注 (Optional / 选填)

likedislike
Cchenqi317Collaborators
Aug 21 Added label: bug-report
Cchenqi317Collaborators
Aug 21 Change title to "[Bug-Report|缺陷反馈]:CI pre-smoke 耗时太长,需要整改", originally titled "[Bug-Report|缺陷反馈]: https://gitcode.com/cann/ops-nn/issues/4515".
weihao18Collaborators
Aug 21 Comments:

/assign @weihao18

likedislike
CANN-robotCANN-robotCollaborators
Aug 21 Assign weihao18 as responsible person
Wweihao18Collaborators
Aug 24 Associated pull request
weihao18Collaborators
Aug 25 Comments:

排除 experimental 目录避免 built-in 算子修改误触发 experimental example 修复pr已合入

likedislike
weihao18Collaborators
Sep 3 Comments:

experimental/attention/flash_attention_score_grad 算子 example 目前不会被误触发(只改 built-in 算子时),且近期会下掉这个算子,所以该问题解决,issue即将关闭

likedislike
Wweihao18Collaborators
Sep 3 changed custom state from 进行中 to 已完成
Wweihao18Collaborators
Sep 3 Close issue
CANN-robotCANN-robotCollaborators
Sep 3 Added label: resolved