Pull Request已成功合入, 合并人@CANN-robot
(感谢 cui_jiahao 的贡献)变更摘要
本 PR 主要围绕冒烟测试耗时优化,将原本单次的 A2 冒烟流程拆分为两个并行分片(PreSmoke_A2_part1 与 PreSmoke_A2_part2)。在 tests/run_st.sh 中通过新增的 ST_PART 环境变量对用例进行分组控制,使两个分片分别执行不同子集;流水线中取消了原先通过 manifest-management-plugin 的 DEPLOY/CRUSH 部署方式,改为在容器内直接调用 pre_smoke.sh 并传入 ST_PART,同时注释掉 CodeCheck 任务及 pre_smoke.sh 中的目录创建步骤以缩短流程耗时。
主要改动
-
冒烟用例按
ST_PART分片执行: 在tests/run_st.sh中为每个python3 tests/script/run_st.py用例前后新增if [ -z "$ST_PART" ] || [ "$ST_PART" = "1"/"2" ]判断,将 A3 用例划分为两部分,未设置ST_PART时仍执行全部用例。 -
流水线拆分为两个并行 PreSmoke 任务: 将
PreSmoke_A2改为PreSmoke_A2_part1和PreSmoke_A2_part2两个 job,分别设置export ST_PART=1和export ST_PART=2后调用pre_smoke.sh,以并行缩短冒烟耗时。 -
改用容器内直接执行冒烟脚本: 两个 PreSmoke job 移除了
manifest-management-plugin的DEPLOY/CRUSH及 tar 打包、wget下载等步骤,改为在容器内通过bash pre_smoke.sh直接运行,并保留obs-upload上传slog.tar.gz日志。 -
调整运行环境与资源标签: PreSmoke job 的
runs-on标签由['self-hosted','arch=arm','smoke=204']调整为['self-hosted','npu=1','smoke=204'],并新增container.image指向pre_smoke镜像。 -
注释跳过部分耗时步骤: 在
PR-pipeline_pto-isa.yml中注释掉JOB_codecheck任务,并在.gitcode/scripts/pre_smoke.sh中注释掉mkdir -p /home/taskspace && cd /home/taskspace,减少冒烟流程中的额外耗时环节。


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 |
|---|---|---|
| .gitcode/** | ✅ Larry_liuyi, csjlchen, tanghaoran7 (3/2) | ✅ Larry_liuyi (1/1) |
| repo-cann/pto-isa | ✅ zhangjian_hz11, csjlchen (2/2) | ✅ zhangjian_hz11 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
cui_jiahao, thanks for your pull request. All authors of the commits have signed the CLA. 👍


compile


/approve


compile


/approve


/lgtm


/lgtm


描述
关联的Issue
测试
文档更新
类型标签