precision-test 内嵌的 test_selector Python 包基于旧版本上游,repo 注册表 key 为 torch_npu,TorchNpuAdapter 通过 GitCode(gitcode-pr)拉取 PR diff。
torch_npu
gitcode-pr
上游 test_selector 近期更新:
pytorch
--repo
--github-pr pytorch/pytorch#N
repo_name
torch
product_code_prefix
torch/
precision-test 当前 src/ 与 dist/test_selector/ 仍为旧版本,action 入参契约(validators.js / action.yml)与上游 choices 不一致:用户传 repo-name: pytorch 会被 validators.js 拒绝,传 torch_npu 又会被 Python CLI choices 拒绝。
repo-name: pytorch
将 test_selector 上游更新平移到 precision-test,并适配入参契约与文档:
AVAILABLE_REPOS
repo-name
github-pr
github-pr: pytorch/pytorch#N
当前现状
precision-test 内嵌的 test_selector Python 包基于旧版本上游,repo 注册表 key 为
torch_npu,TorchNpuAdapter 通过 GitCode(gitcode-pr)拉取 PR diff。上游 test_selector 近期更新:
torch_npu改为pytorch,--repochoices 同步更新--github-pr pytorch/pytorch#N),repo_name改为torch、product_code_prefix改为torch/precision-test 当前 src/ 与 dist/test_selector/ 仍为旧版本,action 入参契约(validators.js / action.yml)与上游 choices 不一致:用户传
repo-name: pytorch会被 validators.js 拒绝,传torch_npu又会被 Python CLI choices 拒绝。改进方向
将 test_selector 上游更新平移到 precision-test,并适配入参契约与文档:
AVAILABLE_REPOS将torch_npu替换为pytorchrepo-name/github-pr/gitcode-pr描述更新(gitcode-pr保留为通用入口,与github-pr互斥)影响范围
repo-name合法值由torch_npu变为pytorch,使用旧值的工作流需更新验收标准