Skip to content

test(lark): restore lint for the imported transcript fixture - #8657

Merged
huangruiteng merged 1 commit into
mainfrom
codex/restore-lark-fixture-lint-20261113
Nov 13, 2026
Merged

huangruiteng merged 1 commit into
mainfrom
codex/restore-lark-fixture-lint-20261113

Conversation

@loopx-agent

Copy link
Copy Markdown
Collaborator

The transcript-replacement regression in #8653 uses the imported ordinary pytest fixture. Mark that fixture parameter with the file's existing Ruff convention so kernel-static-checks can proceed.

Validation

  • Reproduced F811 on the parent and passed the workflow's Ruff command after the change.
  • Ran the App projection tests in tests/test_lark_private_conversations.py.

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval conclusion (author-owned PR; GitHub blocks formal self-approval)

Reviewer: model_agent · gpt-6.1-sol · OpenAI · runtime_reported · max

本次评审对应提交 a32597fd74016b98163c001a3a3dc5d69587689c。

动机 / Motivation

运行 Python 仓库检查、维护 App 到 Lark 原对话投递的贡献者。原来的导入 fixture 仍能被 pytest 使用,但仓库的静态检查把新测试的 ordinary 参数报为 F811,后续验证因此受阻。新增标注只影响那一行的 F811;完整 Ruff 命令不再报错。父提交与新提交都通过原来的转录恢复测试,断言和生产路径没有变化。本次评审覆盖测试维护。使用实际本地 Chat 和 Lark 投递代码及合成 Provider,未验证安装版或真实群聊。

改动思路 / Approach

Ruff 仍按原 workflow 检查全部范围;仅让现有 pytest fixture 参数按同文件的方式接受局部标注,保留它的注入名字。

具体改动 / Changes

关键代码讲解

基准 56fc2a1,按 docs/development/testing-and-quality.md 的 KERNEL-STATIC-LINT 和 PRESERVED-RECOVERY-CHECK 核对。工作流 原封不动;这一行 只为导入的 ordinary 参数保留 F811 的例外。同一个测试 先隐藏原消息,再用原大小和时间戳恢复,核对同一私聊收据、再次对账无重复投递以及没有新的模型输入。实际读取入口 未改。解析后包含位置与类型注释的 Python AST 也完全相同。没有新增 smoke,原测试的 fixture、选取、断言和清理都继续由原模块承担。

对主干的风险 / Risks

父提交恰好在这一行报一条 F811;新提交按工作流同一命令全绿。适用范围只到这一条诊断。#8651 的新测试在另一文件,有独立评审,不会由此修复。

语义与 CI 对齐

本地 Ruff 的全部工作流范围通过;同一真实恢复测试在父提交与新提交均通过。完整目标模块 454 通过。五项直接 premerge 检查和 DCO 校验通过。没有查询托管 CI。

我的整体评价 / Verdict

无阻塞发现。可以保留现有针对转录替换的行为证据,同时恢复静态门禁。 仅改既有 Python 测试的 lint 注释,未改变展示路径。本次评审覆盖测试维护。使用实际本地 Chat 和 Lark 投递代码及合成 Provider,未验证安装版或真实群聊。

English verdict: APPROVE. Approve the fixture-only fix. The workflow's full Ruff scope passes, while the executable AST and actual transcript replacement regression are unchanged.

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.

2 participants