Co-authored-by: w30057661<wangshusheng7@h-partners.com> # message auto-generated for no-merge-commit merge: !46985 merge master into master [CI] add inductor version exclusion and 26.2.0 branch support for PR pipeline Created-by: WSs_321 Commit-by: w30057661 Merged-by: ascend-robot Description: ### 关联 Issue Closes #5079 ### 修改内容 - `check_inductor.yml`:新增版本排除判断,`base.ref` 包含 `v2.12.0` / `v2.13.0` / `v2.14.0` 子串(正则 `v2\.(12|13|14)\.0`)即跳过 inductor 测试,支持 `v2.12.0-26.0.0` 这类后缀分支 - `PR-pipeline_pytorch.yml`:UT_inductor_01~04 移除 `!startsWith(env.target_branch, 'v2.12.0')` 条件,排除逻辑统一下沉到 check_inductor - `find_torchair.yml`:支持 PR 评论 `compile_torchair` 快速触发,保留 torchair 标签查询兜底 - `PR-pipeline_pytorch.yml`:评论触发支持 `compile_inductor` / `compile_torchair`,新增 2.14.0 镜像 - `get_count.yml`:case 分支改为 `*-26.2.0` glob 匹配,覆盖所有 26.2.0 后缀分支 ### test patch 验证(新增) - `check_patch.yml`:检测 modify_files.txt 中 `test_upstream` 相关改动,输出 `need_patch` - `test_patch_job.yml`:下载对应版本 pytorch 包,校验 `test_upstream` 的 patch 是否可用,按 `apply_test_patch.sh` 是否存在选择新旧 patch 脚本 - `PR-pipeline_pytorch.yml`:stage_2 接入 check_patch,stage_3 在 `need_patch == 'yes'` 时触发 test_patch(x86 节点) ### 测试说明 - CI 流水线配置变更,验证依赖分支 PR 触发 See merge request: Ascend/pytorch!46985
43 lines
1.2 KiB
YAML
43 lines
1.2 KiB
YAML
name: check_patch
|
|
|
|
on:
|
|
workflow_call:
|
|
outputs:
|
|
need_patch:
|
|
description: "是否需要执行test patch验证"
|
|
value: ${{ jobs.patch.outputs.need_patch }}
|
|
|
|
jobs:
|
|
patch:
|
|
name: patch
|
|
select: selected_by_default
|
|
runs-on: [ self-hosted, x86, cpu=16 ]
|
|
container:
|
|
image: swr.cn-north-4.myhuaweicloud.com/pytorch_images_x86/pytorchx86:v_03
|
|
outputs:
|
|
need_patch: ${{ steps.check_patch.outputs.need_patch }}
|
|
steps:
|
|
- name: download modify_files.txt
|
|
uses: download-artifact
|
|
with:
|
|
name: modify_files.txt
|
|
path: ./
|
|
|
|
- name: run patch check
|
|
id: check_patch
|
|
run: |
|
|
cat modify_files.txt
|
|
need_patch="no"
|
|
if [ ! -f modify_files.txt ]; then
|
|
echo "check modify file exception!" >&2
|
|
else
|
|
while IFS= read -r modify_file; do
|
|
if echo "$modify_file" | grep -q -E 'test_upstream'; then
|
|
need_patch="yes"
|
|
break
|
|
fi
|
|
done < modify_files.txt
|
|
fi
|
|
echo "need_patch=${need_patch}" >> "$ATOMGIT_OUTPUT"
|
|
echo "need_patch=${need_patch}"
|