| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
refactor(ci): 精简依赖安装动作优化用例执行速度 Co-authored-by: wangsike<wangsike@huawei.com> # message auto-generated for no-merge-commit merge: !36940 merge v2.7.1_fast_test into v2.7.1 refactor(ci): 精简依赖安装动作优化用例执行速度 Created-by: kerer-sk Commit-by: wangsike Merged-by: ascend-robot Description: ## 变更说明 精简 CI 工作流中的 setup-npu-test-env 复合动作,去除冗余的 checkout、pip cache、PyTorch 安装步骤。这些依赖已在 Docker 镜像中预装,重复执行导致测试启动耗时过长。同时统一工作流中的仓库引用为 Ascend/pytorch。 ## 变更内容 - **精简 setup-npu-test-env**:移除 checkout 仓库、pip cache、PyTorch 卸载/重装步骤,仅保留下载 torch_npu wheel、解压测试源码、应用 patch 的核心逻辑 - **统一仓库引用**:将所有 workflow 中的仓库引用和 action 调用替换为 Ascend/pytorch - **同步适配测试工作流**:所有调用 setup-npu-test-env 的 workflow 同步更新参数接口 - **辅助脚本优化**:collect_all_cases.py 和 run_npu_test_shard.py 配套更新 - **简化 torch_env_patch.sh**:精简参数解析逻辑 - **更新 CI 测试用例列表**:添加 test_ops_jit.py、test_jit.py 到白名单,修正 test_alias_analysis.py.patch import 风格 ## 影响范围 15 files, +802/-776 ## 关联 Issue - Fixes https://gitcode.com/Ascend/pytorch/issues/2136 ## 测试计划 - [x] CI 流水线正常触发 - [x] prepare → build → collect → test 全链路通过 - [x] regular / distributed / custom 三类测试均正常运行 See merge request: Ascend/pytorch!36940 | 3 个月前 | |
enhancement(ci): 自动检测变更 patch 并优化 NPU 测试流水线 Co-authored-by: wangsike<wangsike@huawei.com> # message auto-generated for no-merge-commit merge: !37907 merge v2.7.1_patch_test into v2.7.1 enhancement(ci): 自动检测变更 patch 并优化 NPU 测试流水线 Created-by: kerer-sk Commit-by: wangsike Merged-by: ascend-robot Description: ## 变更说明 优化 NPU 上游测试 CI 流水线,实现 PR 级别的自动增量测试触发,修复 JUnit XML 解析缺陷,调整资源参数。 ## 变更内容 ### 新增 - .github/scripts/detect_changed_patches.sh:自动对比 PR base/head commit,识别 test_upstream/ 下变更的 patch/diff 文件,推导对应测试文件 ### 修复 - .github/scripts/run_npu_test_shard.py:正确处理 pytest.xfail 类型的 skipped 测试;修复 skipped/failure/error 只读 message 属性遗漏元素文本的问题 ### 优化 - .github/workflows/torch-npu-upstream-test-trigger.yml:重构 trigger 工作流,使用 detect job 自动检测变更 - .github/workflows/_torch-npu-upstream-build.yml、prepare.yml:checkout 改用 github.sha,移除硬编码 repository - .github/workflows/_torch-npu-upstream-test-custom.yml:runner 升级至 16 卡,新增 --max-workers 16 - .github/scripts/collect_all_cases.py:--distributed-shards 默认值从 2 调整为 5 - .github/workflows/_torch-npu-upstream-test.yml、_torch-npu-upstream-collect.yml:distributed_shards 默认值同步调整 - .github/workflows/_torch-npu-upstream-test-regular.yml:移除调试环境变量 dump 步骤 ## 关联 Issue Fixes https://gitcode.com/Ascend/pytorch/issues/2320 See merge request: Ascend/pytorch!37907 | 3 个月前 | |
fix: prepare/build checkout ref 改为条件判断,兼容 master 定时任务和 PR 场景 Co-authored-by: wangsike<wangsike@huawei.com> # message auto-generated for no-merge-commit merge: !38401 merge fix/checkout-ref-conditional-clean into v2.7.1 fix: prepare/build checkout ref 改为条件判断,兼容 master 定时任务和 PR 场景 Created-by: kerer-sk Commit-by: wangsike Merged-by: ascend-robot Description: ## 变更说明 master 定时任务通过 reusable workflow 调用 prepare/build 时, checkout ref 使用 github.sha 导致拉取 master 代码而非 v2.7.1 代码。 改为条件表达式:master 触发时 checkout v2.7.1,PR 场景保持 github.sha。 ## 变更内容 - .github/workflows/_torch-npu-upstream-prepare.yml: checkout ref 改为条件表达式 - .github/workflows/_torch-npu-upstream-build.yml: checkout ref 改为条件表达式 ## 关联 Issue Fixes https://gitcode.com/Ascend/pytorch/issues/2377 See merge request: Ascend/pytorch!38401 | 3 个月前 |