已合并
test: add Backend.Options API coverage #43164
test: add Backend.Options API coverage #43164
已合并
nwww创建于 28 天前
nwww
28 天前

【合入来源】

如有社区issue,请关联issue链接
请勿携带内部流程信息(需求链接、问题单、内部issue等)

关联社区 Issue:

https://gitcode.com/Ascend/pytorch/issues/3207

【修改方案】

请描述修改内容的具体实现,涉及哪些组件之间进行交互,可以用1、2、3、...进行罗列
如果是需求或者重构类的PR,需要补充详细设计文档(说明上下游组件关系、时序图、类图、DFX能力等内容)

本 PR 为 PyTorch 原生 API 一致性测试补齐,不涉及目标 API 功能实现修改。

目标 API:

torch._C._distributed_c10d.Backend.Options

新增测试文件:

test/distributed/test_backend_options.py

1. API 功能说明

torch._C._distributed_c10d.Backend.Options 是 PyTorch 分布式通信后端
Options 的基础配置类。

构造形式为:

Backend.Options(backend, timeout=default_timeout)

其中:

  1. backend 为必选参数,表示分布式通信后端名称;
  2. timeout 为可选参数,类型为 datetime.timedelta
  3. 未显式传入 timeout 时,默认值为 30 分钟;
  4. backend 为只读属性;
  5. _timeout 为可读写属性;
  6. PyTorch v2.12.0 中还包含可读写属性
    global_ranks_in_groupgroup_name

2. 修改内容

新增测试类:

TestBackendOptions

共新增以下 6 个测试方法:

2.1 test_init_with_default_and_explicit_timeout

验证:

  • 仅传入必选参数 backend
  • 返回对象类型为 Backend.Options
  • backend 属性与传入值一致;
  • 默认 _timeout 为 30 分钟;
  • timeout 支持位置参数;
  • timeout 支持关键字参数;
  • 显式超时与构造后的 _timeout 一致。

2.2 test_init_with_boundary_values

验证:

  • backend 为空字符串;
  • timeout 为零;
  • timeout 为负数;
  • 边界值构造后的属性值与传入值一致。

2.3 test_group_metadata_properties

验证 PyTorch v2.12.0 中的分组元数据属性:

  • global_ranks_in_group 默认值为空列表;
  • group_name 默认值为空字符串;
  • global_ranks_in_group 支持写入 rank 列表;
  • group_name 支持写入分组名称;
  • 写入后读取结果与设置值一致。

2.4 test_property_access_and_instance_independence

验证:

  • backend 为只读属性;
  • backend 赋值时抛出 AttributeError
  • _timeout 为可写属性;
  • 修改一个实例的 _timeout 不影响其他实例;
  • 不同构造调用产生相互独立的对象。

2.5 test_invalid_constructor_arguments

验证:

  • 缺少必选参数 backend
  • backend 传入 None、整数、列表或字典;
  • timeout 传入 None、整数、字符串、列表或字典;
  • 传入额外位置参数;
  • 传入未定义关键字参数。

2.6 test_invalid_timeout_assignment

验证:

  • _timeout 写入 None、整数、字符串、列表或字典时抛出
    TypeError
  • 非法赋值后,原有 _timeout 值保持不变。

3. 测试实现规范

新增测试符合以下要求:

  1. 使用 TestCaserun_tests
  2. 测试结果使用 self.assert* 系列方法验证;
  3. 异常行为使用 self.assertRaises 验证;
  4. 未使用 try-except 屏蔽测试失败;
  5. 未添加与测试无关的输出;
  6. 新增文件包含 Huawei Copyright;
  7. 新增文件包含 BSD 3-Clause License;
  8. 新增文件包含英文模块用途说明;
  9. 本 PR 仅新增
    test/distributed/test_backend_options.py

4. PyTorch 社区用例情况及新增必要性

已检查 PyTorch 官方社区测试代码。

官方源码和测试中存在以下间接相关内容:

  • 具体分布式后端 Options 类使用或继承相关基础配置;
  • 部分 DeviceMesh 测试使用 C10dBackend.Options 作为类型标注;
  • 部分测试使用具体后端 Options,例如
    ProcessGroupNCCL.Options

但是,现有社区测试未针对以下精确 API 提供直接、完整的 Python 行为
验证:

torch._C._distributed_c10d.Backend.Options

现有上游测试未充分覆盖:

  • backend 必选参数;
  • timeout 可选参数;
  • 默认超时;
  • 位置参数与关键字参数;
  • 空后端名称、零超时和负超时;
  • backend 只读行为;
  • _timeout 可写行为;
  • 不同实例之间的状态独立性;
  • global_ranks_in_group 的默认值及读写行为;
  • group_name 的默认值及读写行为;
  • 缺少参数、多余参数和非法参数类型;
  • _timeout 非法赋值后的状态保持行为。

现有继承关系、类型标注和间接使用不能替代目标 API 的直接一致性验证。

因此,有必要在 Ascend for PyTorch 的 test 目录新增独立专项测试。

5. 各版本差异说明

各分支测试范围根据对应 PyTorch 版本中
Backend.Options 的实际接口能力进行区分:

版本 测试方法数 接口差异
v2.7.1 5 包含 backend_timeout
v2.11.0 6 增加 global_ranks_in_groupgroup_name
v2.12.0 6 与 v2.11.0 一致
master 6 当前 PyTorch 2.13.0 的目标属性范围与 v2.11.0、v2.12.0 一致

具体说明:

  1. v2.7.1 中不存在 global_ranks_in_groupgroup_name,因此不包含
    test_group_metadata_properties
  2. v2.11.0 开始支持 global_ranks_in_groupgroup_name,因此增加
    分组元数据属性测试;
  3. v2.11.0 与 v2.12.0 的目标 API 能力一致,对应测试文件内容一致;
  4. 修正后的 master 测试范围也与当前 PyTorch 2.13.0 实际接口保持一致;
  5. 各分支测试差异来自 PyTorch 上游接口演进,不是测试覆盖遗漏。

【资料变更】

请确认是否涉及资料变更。如涉及,需要在PR中体现,并简要说明修改内容。如不涉及,需填写“不涉及”

不涉及资料文件修改。

已检查 Ascend for PyTorch master 分支下的原生 API 资料目录:

docs/zh/api/native_api

目标 API 位于:

torch._C._distributed_c10d

其中 torch._C_distributed_c10d 均属于 PyTorch 内部实现模块,
目标 API 属于 PyTorch 私有接口,不是客户可见的公开 API。

根据 Torch-NPU API 一致性任务要求,PyTorch 私有接口不需要在公开原生
API 支持清单中补充资料。

因此,本任务无需新增 Docs PR,也不修改资料目录。

【接口变更】

请确认是否涉及跨代码仓或者客户面可见的接口变更。如涉及,需要详细说明接口以及对应的变更内容,同时需要在资料中体现。如不涉及,需填写“不涉及”

不涉及。

本 PR 仅新增:

test/distributed/test_backend_options.py

用于验证:

torch._C._distributed_c10d.Backend.Options

本 PR 未修改目标 API 的:

  • API 名称;
  • 构造函数签名;
  • 输入参数;
  • 默认参数;
  • 属性定义;
  • 返回行为;
  • 异常行为;
  • Python 绑定;
  • 底层 C++ 实现。

本 PR 不涉及跨代码仓修改,也不涉及客户可见接口变更。

【功能验证】

说明测试场景,测试方法。如果本次测试方式与常规单元测试不同,请详细说明您的测试步骤
新增/变更内容是否已新增/适配UT测试用例看护,并补充测试自验证截图

1. 验证分支和提交

目标分支:

v2.12.0

测试分支:

test-backend-options-v2.12.0

测试提交:

2cfb1d2b750c980c055fe2d1632a592a42e29db0

验证前已确认本地与远端提交一致:

Local commit:
2cfb1d2b750c980c055fe2d1632a592a42e29db0

Remote commit:
2cfb1d2b750c980c055fe2d1632a592a42e29db0

本提交仅新增:

test/distributed/test_backend_options.py

2. 测试环境

本次验证使用与目标分支匹配的独立 Python 环境:

Python executable:
/workspace/venvs/api3205-v2_12_0/bin/python

Python:
3.11.13

torch:
2.12.0+cu130

Expected torch:
2.12.0

Torch version match:
True

其中:

+cu130

是当前安装的 PyTorch wheel 构建标识。

目标 API 不执行 CUDA 算子,本测试也不依赖 CUDA 设备。

3. NPU 适配说明

目标 API 是分布式后端配置对象,不接收 PyTorch Tensor,也不执行:

  • NPU 算子;
  • NPU Kernel;
  • CUDA 算子;
  • HCCL 集合通信;
  • CPU/NPU 数据迁移;
  • 与 dtype、shape 或 device 有关的计算。

因此,本测试不创建与目标 API 无关的 NPU Tensor,也不初始化 HCCL
进程组。

验证时设置:

TORCH_DEVICE_BACKEND_AUTOLOAD=0

用于避免在独立版本环境中自动加载与目标配置类无关的设备后端。

该设置不会跳过或替代 Backend.Options 的任何接口行为验证。

本次版本验证不依赖 torch_npu、CUDA 或 NPU 算子执行,验证对象为目标
API 的 Python 绑定及属性行为。

4. API 探针

实际环境探针结果:

version_label: v2.12.0
python: /workspace/venvs/api3205-v2_12_0/bin/python
torch: 2.12.0+cu130
expected_torch: 2.12.0
torch_version_match: True

options_type:
<class 'torch._C._distributed_c10d.Backend.Options'>

backend:
hccl

_timeout:
0:30:00

has_global_ranks_in_group:
True

has_group_name:
True

属性行为探针结果:

backend_assignment_result:
AttributeError property of 'Backend.Options' object has no setter

timeout_assignment_result:
0:00:07

timeout_changed:
True

global_ranks_in_group_default:
[]

global_ranks_in_group_updated:
[0, 2, 4]

group_name_default:
''

group_name_updated:
'api3207-test-group'

API probe exit code:
0

以上结果说明:

  1. 目标对象类型正确;
  2. 默认 backend_timeout 正确;
  3. backend 为只读属性;
  4. _timeout 支持修改;
  5. global_ranks_in_group 支持读写;
  6. group_name 支持读写;
  7. 目标 API 在 PyTorch 2.12.0 环境中真实存在并符合预期。

5. 测试方法检查

实际检测到以下 6 个测试方法:

test_init_with_default_and_explicit_timeout
test_init_with_boundary_values
test_group_metadata_properties
test_property_access_and_instance_independence
test_invalid_constructor_arguments
test_invalid_timeout_assignment

检查结果:

Expected test count: 6
Actual test count: 6
Test method inspection exit code: 0

6. Python 语法检查

执行命令:

PYTHONDONTWRITEBYTECODE=1 \
TORCH_DEVICE_BACKEND_AUTOLOAD=0 \
/workspace/venvs/api3205-v2_12_0/bin/python \
  -m py_compile \
  /tmp/api3207_all_versions_latest/v2_12_0/test_backend_options.py

执行结果:

py_compile exit code: 0

7. Git 差异检查

执行命令:

git diff --check \
  test-backend-options-v2.12.0^ \
  test-backend-options-v2.12.0 \
  -- test/distributed/test_backend_options.py

执行结果:

git diff --check exit code: 0

8. unittest 验证

执行命令:

cd /tmp

PYTHONPATH= \
TORCH_DEVICE_BACKEND_AUTOLOAD=0 \
PYTHONDONTWRITEBYTECODE=1 \
/workspace/venvs/api3205-v2_12_0/bin/python \
  /tmp/api3207_all_versions_latest/v2_12_0/test_backend_options.py \
  -v

实际结果:

test_group_metadata_properties ... ok
test_init_with_boundary_values ... ok
test_init_with_default_and_explicit_timeout ... ok
test_invalid_constructor_arguments ... ok
test_invalid_timeout_assignment ... ok
test_property_access_and_instance_independence ... ok

----------------------------------------------------------------------
Ran 6 tests in 1.2 s

OK

执行结果:

unittest exit code: 0

9. pytest 验证

执行命令:

cd /tmp

PYTHONPATH= \
TORCH_DEVICE_BACKEND_AUTOLOAD=0 \
PYTHONDONTWRITEBYTECODE=1 \
/workspace/venvs/api3205-v2_12_0/bin/python \
  -m pytest -q \
  /tmp/api3207_all_versions_latest/v2_12_0/test_backend_options.py

实际结果:

......                                                     [100%]
6 passed, 14 subtests passed in 4.345 s

执行结果:

pytest exit code: 0

10. 验证结果汇总

ENV_EXIT=0
METHOD_PARSE_EXIT=0
API_EXIT=0
COMPILE_EXIT=0
DIFF_EXIT=0
UNITTEST_EXIT=0
PYTEST_EXIT=0

最终结果:

RESULT: API #3207 v2.12.0 validation PASSED

屏幕截图 2026-08-01 211632.png
完整日志:

/workspace/api3207_all_versions_latest/v2_12_0.log

11. 四版本验证说明

本任务分别在以下目标版本环境执行测试:

v2.7.1
v2.11.0
v2.12.0
master

每个版本均使用对应分支、对应 PyTorch 版本和独立运行日志,不使用其他
版本的运行结果代替当前分支验证结果。

四版本汇总文件:

/workspace/api3207_all_versions_latest/all_versions_summary.md

【CheckList】

PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x]

likedislike
Pull Request已成功合入, 合并人@ascend-robot
(感谢 nwww 的贡献)
Nnwww
28 天前 创建了 pull request,commit 8055149a
atomgit-bot
atomgit-bot
28 天前 评论:

变更摘要

该 PR 为 NPU 平台新增了 torch._C._distributed_c10d.Backend.Options API 的单元测试文件,补充社区 PyTorch 中对该 API 缺乏直接验证的覆盖盲区。新增文件 test/distributed/test_backend_options.py(共 180 行),包含 6 个测试用例,覆盖 Backend.Options 的构造、属性读写、边界值及异常输入校验。

主要改动

  • 新增 TestBackendOptions 测试类:在 test/distributed/test_backend_options.py 中新增测试类,对 Backend.Options 进行系统化验证,所有测试用例继承自 torch.testing._internal.common_utils.TestCase
  • 构造函数参数验证test_init_with_default_and_explicit_timeout 验证默认超时(timedelta(minutes=30))、关键字参数和位置参数三种构造方式;test_init_with_boundary_values 覆盖空字符串 backend、零超时和负超时等边界情况。
  • 属性读写与实例独立性验证test_group_metadata_properties 验证 global_ranks_in_groupgroup_name 属性的读写;test_property_access_and_instance_independence 验证 backend 属性为只读(赋值抛出 AttributeError)、_timeout 可修改以及不同实例互不影响。
  • 非法输入类型校验test_invalid_constructor_arguments 覆盖传入 None、整数、列表、字典等非法 backend 和 timeout 类型时抛出 TypeError,以及多余参数和未知关键字参数的错误处理;test_invalid_timeout_assignment 验证对 _timeout 赋非法值同样抛出 TypeError
likedislike
atomgit-bot
atomgit-bot
28 天前 评论:

代码审查

审查结论

经过对 test/distributed/test_backend_options.py(新增 180 行)的逐行审查,我未发现任何需要报告的问题。

审查覆盖范围

维度 结论
逻辑正确性 所有断言与 Backend.Options API 的预期行为一致:默认超时 timedelta(minutes=30)、backend 只读、_timeout 可写、边界值(空字符串、零超时、负超时)均按 API 现有合约接受、非法参数类型抛出 TypeError
安全性 纯本地测试文件,无外部输入,无敏感信息。
导入与依赖 from torch._C._distributed_c10d import Backend 是 C 扩展模块的权威导入路径,与项目内其他文件一致。
测试结构 类与方法命名遵循 unittest 规范,subTest 使用正确,assertRaises 上下文管理器用法正确,run_tests() 入口正确。
规范 许可证头完整,文件级 docstring 清晰说明了测试目的。

各文件审查结果

  • test/distributed/test_backend_options.py:未发现问题。

综合风险评估

低风险。该变更为纯测试新增,覆盖了 Backend.Options 的构造、属性访问、实例独立性和非法参数处理,不涉及任何运行时行为变更。

⚠️ 已识别出整体风险,但无法提取行内评论,请参考整体评估。

likedislike
ascend-robotascend-robot成员
28 天前 添加了label:ascend-cla/yes
ascend-robot
ascend-robot成员
28 天前 评论:

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
test 楚浩田, chenrayray (2/2) 楚浩田 (1/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

nannan-2026, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
ascend-robotascend-robot成员
28 天前 添加了label:needs-issue
ascend-robot
ascend-robot成员
28 天前 评论:

Linking Issue Notice

@nannan-2026 , the pull request must be linked to at least one issue.
If an issue has already been linked, but the needs-issue label remains, you can remove the label by commenting /check-issue .

likedislike
ascend-robot
ascend-robot成员
28 天前 评论:

当前仓库存在以下 保护分支

Protected Branch Version Release
master
v2.9.0
v2.12.0-26.1.0
v2.11.0
v2.7.1
v2.12.0
v2.9.0-26.1.0
v2.11.0-26.1.0
v2.10.0
v2.7.1-26.1.0
v2.10.0-26.1.0
ci-test

评论 /sync <branch1> <branch2> ... 可将当前 PR 修改同步到其它分支(创建同步 PR):
a) 如果当前 PR 是 Open 状态,同步操作将延迟到 PR 被合并时执行
b) 如果当前 PR 已经 Merged,将立即执行同步操作

注意:

  1. /sync 命令可以指定同步到多个分支,仅最后一个 /sync 命令生效
  2. 如果创建的同步 PR 不正确,可通过向同步 PR 的源分支提交轻量级 PR 完善,或使用 /close 命令关闭
likedislike
nwww
28 天前 评论:

compile

likedislike
ascend-robotascend-robot成员
28 天前 添加了label:ci-pipeline-running
ascend-robotascend-robot成员
28 天前 删除了label:ci-pipeline-running
ascend-robot
ascend-robot成员
28 天前 评论:
流水线 PR-pipeline_pytorch#50770 [ commitID:2cfb1d2b ] 已终止运行
>>>代码风格自动修复执行成功(无修复内容)
阶段 任务名 状态 详情
编译构建 Build_X86 🕚 >>>
Build_ARM 🕚 >>>
Build_LibTorch_x86 🕚 >>>
Build_LibTorch_ARM 🕚 >>>
Build_X86_torchair 🕚 >>>
Build_ARM_torchair 🕚 >>>
patch_test 🕚 >>>
恶意代码检查 Antipoison 🟨 >>>
编码安全与规范检查 CodeCheck 🟨 >>>
check_error 🟨 >>>
CodeCheck_lintrunner 🟨 >>>
开源片段检查 SCA 🟨 >>>
开发者测试 UT_ARM_A3_Part_01 🕚 >>>
UT_ARM_A3_Part_02 🕚 >>>
UT_ARM_A2_Part_01 🕚 >>>
UT_ARM_A2_Part_02 🕚 >>>
UT_ARM_A2_Part_03 🕚 >>>
UT_inductor_Part_01 🕚 >>>
UT_inductor_Part_02 🕚 >>>
UT_inductor_Part_03 🕚 >>>
UT_inductor_Part_04 🕚 >>>
UT_DIST_ARM_Part_01 🕚 >>>
UT_DIST_ARM_Part_02 🕚 >>>
UT_DIST_ARM_Part_03 🕚 >>>
UT_DIST_ARM_Part_04 🕚 >>>
UT_ARM_A2_Select_Part_01 🕚 >>>
UT_ARM_A2_Select_Part_02 🕚 >>>
流水线 PR-pipeline_pytorch 🟨 >>>
此流水线已支持下列评论快捷指令,仅PR创建者和白名单成员[wujinyuan1, huangjingwei, liangsongwei, yashi999, culechan, Dring, wuyouqi1, L1919_snow, qq_52711437, WhiteNight12, nomiz, xiu_21, ffmh, wanglijun55, hss-shuai, husichao, smallsilly, lanshaozuishuai, jimmyisme1, lzy0920232, alpha-junh, Sunshine_Youngster, wei_zhuoyi, zhangyihuiben, zyw-hw, zzzkeke, rmch, yangch0324, LucciC, AACAES, renyujin, wjlflyer, senzhen-town, pengjingyou, qsc97, limuan, yule100, xiaoqi-zhou, kuhn7, chenxingying, hanye02, zichun_ye, anyrenwei, kkjocker, wangzili121, Lu_G, yvjc, puddingfjz, HandsoemLemon, bigprestigee1, huawuyi, zhenyu10, dairenjie, du-jin-hang, zou-jieyu, adelaideliu, TrHan, wanlinan, Windwindzzz, pengqihw, kisnwang, yuheng_wang, honghao_wang, jizewei, zhangguoguang, sunyu-xuan, chenrayray, hbhu_bin, liujunzhu, c_34, LiNuoh, maoyuanpeng1, zzhongmin, zhaoyu65, bellatan, jiabaolin, zhuofanshen, wencaiwen, lu_zhuge, caoshuyang, molly12, lyx324521, LQ1206, gitcode-chenjiao, cai-weiwei1989, CHDong, ogqin, yuanlipingGit, xuqinglin1, lqz2, zouwei1, chaoluoa, paradox325, jackzhang1116, yaoyao, akh, yujiacheng, dengjie0116, Hubert11111, Shine_Ws, wslhj555, longqiand, OYtao666, JiaqingQiang, luyyyy, Kingbelial, zhanghaiyu0101, wenxp1018, yanliu-luoluo, ksun_sekiro, liyong328, wgzheng, tangky, vivi_is_coding, aoiaoisola, weixin_44494597, wangmengmengwang65667, hid57809721, qq_35468730, comeonup, C547032, gcw_m5OQChA4, yao_yao_ling_xian, cnnbwcy, szqfes_12, cora_19, cann_lilin, can, shawnylee233, fanglanyue0916, hhz0, LiNuohang, taohuoquan, Jesse]评论有效
  • compile、compile_inductor、compile_torchair : 运行流水线
  • retry : 重试流水线所有失败子任务
  • retry <任务名> : 仅重试指定失败子任务
  • stop : 停止流水线
likedislike
ascend-robotascend-robot成员
28 天前 添加了label:ci-pipeline-running
ascend-robot
ascend-robot成员
28 天前 评论:

ascend docs pipeline is running...

likedislike
ascend-robotascend-robot成员
28 天前 添加了label:docs-ci-pipeline-running
ascend-robot
ascend-robot成员
28 天前 评论:

ascend docs pipeline is running...

likedislike
ascend-robot
ascend-robot成员
28 天前 评论:

✅ 跳过 docs ci 检查,没有需要检查的文档文件

likedislike
ascend-robotascend-robot成员
28 天前 删除了label:docs-ci-pipeline-running
ascend-robotascend-robot成员
28 天前 添加了label:docs-ci-pipeline-success
ascend-robot
ascend-robot成员
28 天前 评论:

✅ 跳过 docs ci 检查,没有需要检查的文档文件

likedislike
Nnwww
28 天前 修改了pull request 的描述
ascend-robotascend-robot成员
28 天前 删除了label:needs-issue
ascend-robotascend-robot成员
28 天前 删除了label:ci-pipeline-running
ascend-robotascend-robot成员
28 天前 添加了label:ci-pipeline-passed
ascend-robot
ascend-robot成员
28 天前 评论:
流水线 PR-pipeline_pytorch#50771 [ commitID:2cfb1d2b ] 已完成
>>>代码风格自动修复执行成功(无修复内容)
阶段 任务名 状态 详情
编译构建 Build_X86 >>>
Build_ARM >>>
Build_LibTorch_x86 >>>
Build_LibTorch_ARM >>>
Build_X86_torchair 🛑 >>>
Build_ARM_torchair 🛑 >>>
patch_test 🛑 >>>
恶意代码检查 Antipoison >>>
编码安全与规范检查 CodeCheck >>>
check_error >>>
CodeCheck_lintrunner >>>
开源片段检查 SCA >>>
开发者测试 UT_ARM_A3_Part_01 🛑 >>>
UT_ARM_A3_Part_02 🛑 >>>
UT_ARM_A2_Part_01 >>>
UT_ARM_A2_Part_02 >>>
UT_ARM_A2_Part_03 >>>
UT_inductor_Part_01 🛑 >>>
UT_inductor_Part_02 🛑 >>>
UT_inductor_Part_03 🛑 >>>
UT_inductor_Part_04 🛑 >>>
UT_DIST_ARM_Part_01 >>>
UT_DIST_ARM_Part_02 >>>
UT_DIST_ARM_Part_03 >>>
UT_DIST_ARM_Part_04 >>>
UT_ARM_A2_Select_Part_01 >>>
UT_ARM_A2_Select_Part_02 >>>
流水线 PR-pipeline_pytorch >>>
此流水线已支持下列评论快捷指令,仅PR创建者和白名单成员[wujinyuan1, huangjingwei, liangsongwei, yashi999, culechan, Dring, wuyouqi1, L1919_snow, qq_52711437, WhiteNight12, nomiz, xiu_21, ffmh, wanglijun55, hss-shuai, husichao, smallsilly, lanshaozuishuai, jimmyisme1, lzy0920232, alpha-junh, Sunshine_Youngster, wei_zhuoyi, zhangyihuiben, zyw-hw, zzzkeke, rmch, yangch0324, LucciC, AACAES, renyujin, wjlflyer, senzhen-town, pengjingyou, qsc97, limuan, yule100, xiaoqi-zhou, kuhn7, chenxingying, hanye02, zichun_ye, anyrenwei, kkjocker, wangzili121, Lu_G, yvjc, puddingfjz, HandsoemLemon, bigprestigee1, huawuyi, zhenyu10, dairenjie, du-jin-hang, zou-jieyu, adelaideliu, TrHan, wanlinan, Windwindzzz, pengqihw, kisnwang, yuheng_wang, honghao_wang, jizewei, zhangguoguang, sunyu-xuan, chenrayray, hbhu_bin, liujunzhu, c_34, LiNuoh, maoyuanpeng1, zzhongmin, zhaoyu65, bellatan, jiabaolin, zhuofanshen, wencaiwen, lu_zhuge, caoshuyang, molly12, lyx324521, LQ1206, gitcode-chenjiao, cai-weiwei1989, CHDong, ogqin, yuanlipingGit, xuqinglin1, lqz2, zouwei1, chaoluoa, paradox325, jackzhang1116, yaoyao, akh, yujiacheng, dengjie0116, Hubert11111, Shine_Ws, wslhj555, longqiand, OYtao666, JiaqingQiang, luyyyy, Kingbelial, zhanghaiyu0101, wenxp1018, yanliu-luoluo, ksun_sekiro, liyong328, wgzheng, tangky, vivi_is_coding, aoiaoisola, weixin_44494597, wangmengmengwang65667, hid57809721, qq_35468730, comeonup, C547032, gcw_m5OQChA4, yao_yao_ling_xian, cnnbwcy, szqfes_12, cora_19, cann_lilin, can, shawnylee233, fanglanyue0916, hhz0, LiNuohang, taohuoquan, Jesse]评论有效
  • compile、compile_inductor、compile_torchair : 运行流水线
  • retry : 重试流水线所有失败子任务
  • retry <任务名> : 仅重试指定失败子任务
  • stop : 停止流水线
likedislike
Nnwww
25 天前 修改了pull request 的描述
Nnwww
25 天前 修改了pull request 的描述
chenrayray
chenrayray成员
18 天前 评论:

/lgtm

likedislike
nwww
17 天前 评论:

compile

likedislike
ascend-robotascend-robot成员
17 天前 删除了label:ci-pipeline-passed
ascend-robotascend-robot成员
17 天前 添加了label:ci-pipeline-running
ascend-robot
ascend-robot成员
17 天前 评论:

ascend docs pipeline is running...

likedislike
ascend-robotascend-robot成员
17 天前 删除了label:docs-ci-pipeline-success
ascend-robotascend-robot成员
17 天前 添加了label:docs-ci-pipeline-running
ascend-robot
ascend-robot成员
17 天前 评论:

✅ 跳过 docs ci 检查,没有需要检查的文档文件

likedislike
ascend-robotascend-robot成员
17 天前 删除了label:docs-ci-pipeline-running
ascend-robotascend-robot成员
17 天前 添加了label:docs-ci-pipeline-success
ascend-robotascend-robot成员
17 天前 删除了label:ci-pipeline-running
ascend-robotascend-robot成员
17 天前 添加了label:ci-pipeline-passed
ascend-robot
ascend-robot成员
17 天前 评论:
流水线 PR-pipeline_pytorch#58431 [ commitID:2cfb1d2b ] 已完成
>>>代码风格自动修复执行成功(无修复内容)
阶段 任务名 状态 详情
编译构建 Build_X86 >>>
Build_ARM >>>
Build_LibTorch_x86 >>>
Build_LibTorch_ARM >>>
Build_X86_torchair 🛑 >>>
Build_ARM_torchair 🛑 >>>
patch_test 🛑 >>>
恶意代码检查 Antipoison >>>
编码安全与规范检查 codecheck_pre-commit >>>
check_error >>>
lintrunner >>>
开源片段检查 SCA >>>
开发者测试 UT_ARM_A3_Part_01 🛑 >>>
UT_ARM_A3_Part_02 🛑 >>>
UT_ARM_A2_Part_01 >>>
UT_ARM_A2_Part_02 >>>
UT_ARM_A2_Part_03 >>>
UT_inductor_Part_01 🛑 >>>
UT_inductor_Part_02 🛑 >>>
UT_inductor_Part_03 🛑 >>>
UT_inductor_Part_04 🛑 >>>
UT_DIST_ARM_Part_01 >>>
UT_DIST_ARM_Part_02 >>>
UT_DIST_ARM_Part_03 >>>
UT_DIST_ARM_Part_04 >>>
UT_ARM_A2_Select_Part_01 >>>
UT_ARM_A2_Select_Part_02 >>>
流水线 PR-pipeline_pytorch >>>
此流水线已支持下列评论快捷指令,仅PR创建者和白名单成员[wujinyuan1, huangjingwei, liangsongwei, yashi999, culechan, Dring, wuyouqi1, L1919_snow, qq_52711437, WhiteNight12, nomiz, xiu_21, ffmh, wanglijun55, hss-shuai, husichao, smallsilly, lanshaozuishuai, jimmyisme1, lzy0920232, alpha-junh, Sunshine_Youngster, wei_zhuoyi, zhangyihuiben, zyw-hw, zzzkeke, rmch, yangch0324, LucciC, AACAES, renyujin, wjlflyer, senzhen-town, pengjingyou, qsc97, limuan, yule100, xiaoqi-zhou, kuhn7, chenxingying, hanye02, zichun_ye, anyrenwei, kkjocker, wangzili121, Lu_G, yvjc, puddingfjz, HandsoemLemon, bigprestigee1, huawuyi, zhenyu10, dairenjie, du-jin-hang, zou-jieyu, adelaideliu, TrHan, wanlinan, Windwindzzz, pengqihw, kisnwang, yuheng_wang, honghao_wang, jizewei, zhangguoguang, sunyu-xuan, chenrayray, hbhu_bin, liujunzhu, c_34, LiNuoh, maoyuanpeng1, zzhongmin, zhaoyu65, bellatan, jiabaolin, zhuofanshen, wencaiwen, lu_zhuge, caoshuyang, molly12, lyx324521, LQ1206, gitcode-chenjiao, cai-weiwei1989, CHDong, ogqin, yuanlipingGit, xuqinglin1, lqz2, zouwei1, chaoluoa, paradox325, jackzhang1116, yaoyao, akh, yujiacheng, dengjie0116, Hubert11111, Shine_Ws, wslhj555, longqiand, OYtao666, JiaqingQiang, luyyyy, Kingbelial, zhanghaiyu0101, wenxp1018, yanliu-luoluo, ksun_sekiro, liyong328, wgzheng, tangky, vivi_is_coding, aoiaoisola, weixin_44494597, wangmengmengwang65667, hid57809721, qq_35468730, comeonup, C547032, gcw_m5OQChA4, yao_yao_ling_xian, cnnbwcy, szqfes_12, cora_19, cann_lilin, can, shawnylee233, fanglanyue0916, hhz0, LiNuohang, taohuoquan, Jesse, WSs_321]评论有效
  • compile、compile_inductor、compile_torchair : 运行流水线
  • retry : 重试流水线所有失败子任务
  • retry <任务名> : 仅重试指定失败子任务
  • stop : 停止流水线
likedislike
htchu成员
16 天前 评论:

/approve

likedislike
ascend-robotascend-robot成员
16 天前 添加了label:approvedlgtm
ascend-robotascend-robot成员
16 天前 合入了pull request
ascend-robot
ascend-robot成员
16 天前 评论:
流水线 pytorch_gitcode_PR_multiVersion#13822 [ commitID:2cfb1d2b ] 运行失败
likedislike