已合并
workflow触发上游pytorch全量用例测试 #35958
kerer-sk创建于 5月18日
workflow触发上游pytorch全量用例测试 #35958
已合并
Pull Request已成功合入, 合并人@ascend-robot
(感谢 kerer-sk 的贡献)ascend-robot
5月18日 评论:
5月18日 评论:
ascend-robot
5月18日 评论:
5月18日 评论:
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-Ascend/pytorch | ✅ huangjingwei, liangsongwei (2/2) | ✅ liangsongwei (1/1) |
| test | ✅ huangjingwei, liangsongwei, sunyu-xuan (3/2) | ✅ liangsongwei (1/1) |
| test_upstream | ✅ liangsongwei, sunyu-xuan, huangjingwei (3/2) | ✅ liangsongwei (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
kerer-sk, thanks for your pull request. All authors of the commits have signed the CLA. 👍


5月18日 添加了label:ascend-cla/yes
ascend-robot
5月18日 评论:
5月18日 评论:
当前仓库存在以下 保护分支 :
| Protected Branch | Version | Release |
|---|---|---|
| master | ||
| v2.7.1 | ||
| v2.9.0 | ||
| v2.11.0 | ||
| v2.10.0 | ||
| v2.12.0 |
评论 /sync <branch1> <branch2> ... 可将当前 PR 修改同步到其它分支(创建同步 PR):
a) 如果当前 PR 是 Open 状态,同步操作将延迟到 PR 被合并时执行
b) 如果当前 PR 已经 Merged,将立即执行同步操作
注意:
- /sync 命令可以指定同步到多个分支,仅最后一个 /sync 命令生效
- 如果创建的同步 PR 不正确,可通过向同步 PR 的源分支提交轻量级 PR 完善,或使用 /close 命令关闭


此处折叠了92条消息 查看更多
5月19日 关联了issue:feat(ci): 新增workflow定时/手动触发 NPU 上游全量测试流水线
梁松伟
5月19日 评论:
5月19日 评论:
/approve
/lgtm


5月19日 添加了label:approvedlgtm
ascend-robot
5月19日 评论:
5月19日 评论:
Review Guide
This pull-request passes review.
Committers who wrote a comment of /approve are: liangsongwei.
Reviewers who wrote a comment of /lgtm are: liangsongwei, sunyu-xuan, huangjingwei.


5月19日 合入了pull request
【合入来源】
【修改方案】
一、触发层
触发方式:schedule(每日 UTC 11:00)+ workflow_dispatch(手动)
唯一的作用是接收触发事件,将参数(python_version、分片数、test_files 等)传递给下游主编排 workflow。本身不执行任何
job,只是一个可复用的参数入口。
二、编排层
类型:workflow_call(被 trigger 调用)
定义了 7 个 job 的执行顺序和条件分支:
┌──────────────────┬───────────────────────────┬────────────────────┐
│ Job │ 依赖 │ 条件 │
├──────────────────┼───────────────────────────┼────────────────────┤
│ prepare │ 无 │ 总是执行 │
├──────────────────┼───────────────────────────┼────────────────────┤
│ build_torch_npu │ prepare │ 总是执行 │
├──────────────────┼───────────────────────────┼────────────────────┤
│ collect_cases │ prepare + build │ test_files 为空 │
├──────────────────┼───────────────────────────┼────────────────────┤
│ test_distributed │ prepare + build + collect │ test_files 为空 │
├──────────────────┼───────────────────────────┼────────────────────┤
│ test_regular │ prepare + build + collect │ test_files 为空 │
├──────────────────┼───────────────────────────┼────────────────────┤
│ test_custom │ prepare + build │ test_files 不为空 │
├──────────────────┼───────────────────────────┼────────────────────┤
│ report │ 所有以上 job │ always(),汇总输出 │
└──────────────────┴───────────────────────────┴────────────────────┘
两个执行路径:
三、执行层 — Workflow
四、共享 Action
类型:composite action
被调用方:collect / test_distributed / test_regular / test_custom 四个 workflow
这是一个被多个测试 job 复用的环境准备步骤组合,包含:
五、脚本层
整体数据流
trigger.yml
│ schedule (每日) 或 workflow_dispatch (手动)
▼
_torch-npu-upstream-test.yml (编排层,路由到两条路径之一)
│
├─ [路径A: test_files为空] 全量测试
│ prepare → build → collect → test_distributed (matrix并行)
│ → test_regular (matrix并行)
│ │
│ ▼
│ report (汇总)
│
└─ [路径B: test_files指定] 指定文件测试
prepare → build → test_custom → report (汇总)
每个测试 job 都通过 setup-npu-test-env action 统一初始化环境(装 wheel、装依赖、打补丁),保证一致性。
【资料变更】
不涉及
【接口变更】
不涉及
【功能验证】
https://github.com/Ascend/pytorch/actions/runs/25964865787

【CheckList】