Skip to content

ci: 新增 ops-packaging 门——全算子包化导入扫描进 CI - #20

Merged
TruNcat3 merged 2 commits into
mainfrom
ci/ops-packaging-gate
Oct 7, 2026
Merged

TruNcat3 merged 2 commits into
mainfrom
ci/ops-packaging-gate

Conversation

@TruNcat3

@TruNcat3 TruNcat3 commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator

自查

  • 包化回归绿: 本地预演 16/16(与 CI 脚本逐字一致)
  • 不影响现有两个 job(unit-tests / docs-and-syntax 未动)

说明

问题→思路→怎么用:
前一轮终态核验发现 CI 缺口——包化回归(#14/#16 建立的约定)此前只靠作者本机跑 ops/test_packaging.py,CI 无覆盖,属于"自律项"。本 PR 补上这道门:新增 ops-packaging job,CPU 环境扫描 ops/ 全部算子目录的 __init__.py 导入 + register_a1 导出。任何新算子漏包化入口,现在 push 时就会被 CI 拦下,不再依赖人眼。NPU/MLU 消费段仍需真机(CI 无 GPU,既有设计),不在本 job 范围。

同时补齐了我们平台(ascend910)的验证欠账:sdpa_math 合入后首次在本机全量回归——三层(kernel/op/framework)+ 黄金 175/175 + example 全绿(worst=3.9e-3 @ bf16 极端用例,与交付报告一致)。

wt added 2 commits October 7, 2026 13:13
审计整改的最后一环: 包化回归此前只靠本机 test_packaging.py 自律,
CI 无覆盖。新 job 在 CPU 环境扫 ops/ 全目录 __init__.py 导入+
register_a1 导出(16/16); NPU 消费段仍需真机, 不在 CI 范围。
本地预演与 CI 脚本逐字一致, 16/16 OK。

# wt <wangt635@ustc.edu.cn>
ops-packaging CI 门首跑即暴露: register.py eager 导入 triton 实现,
无 triton 环境(CI cpu-only)try 失败落进裸 'from kernel...' 再抛
No module named 'kernel'。改三层链: 包态→脚本态→torch 级兜底+
其余 impl 置 None 惰性, 注册守卫再探可用性。

双环境验证: 无 triton(sys.modules 占位)包化导入 OK; 有 triton
全回归绿(kernel/op/framework 三层 + CI 扫描 16/16)。

# wt <wangt635@ustc.edu.cn>
@TruNcat3
TruNcat3 merged commit 90b72e9 into main Oct 7, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant