Repository navigation
test(issue-fix): bind lifecycle smoke to its fixture runtime - #8995
Conversation
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI · runtime_reported · reasoning_effort=max
Approval conclusion (author-owned PR; GitHub blocks formal self-approval)
评审提交 b07822d2cf5414c530e4085d3b38f48b691fa97f,基线 71b66f2980e199a5a26568bf7d11ceb7a343751e。精确差异
动机 / Motivation
维护 PR 生命周期检查的人,需要在迁移后保留两套本机状态时也能跑完整回归。基线创建了测试运行时,但第一条读取 PR 元数据的命令仍检查本机默认位置,两处都有状态就提前退出。候选把每条 smoke CLI 命令绑定到当前夹具,File 和 SQLite 都能完成生命周期及终态读回。验证范围限于本地真实 CLI、隔离状态和固定的 PR 元数据夹具。
改动思路 / Approach
run_cli 要求调用者提供已创建的 fixture runtime,统一使用现有 --runtime-root,并在子进程关闭用量上报。模拟 PR 元数据照常经过真实 CLI 解析。原生路由在未指定且两套默认均有状态时继续拒绝。CLI 启动
具体改动 / Changes
单一 smoke +8/-6。依据 既有生命周期观察协议,版本 71b66f2980e199a5a26568bf7d11ceb7a343751e。复验 明确运行时选择 时,在两处隔离默认目录放入状态。基线在首条元数据命令遇到默认路由冲突;候选的 28 次跟踪 CLI 调用都带运行时,两种 provider 的四条相关元数据命令也带同一个夹具根。两套默认目录的内容不变。
原生命周期验证 在 File 和 SQLite 均跑到终态、重放和 Todo 回读。另有 14 项路由测试通过,quick premerge 的 5 项直接与 4 项选中检查通过。元数据调用 状态回读
对主干的风险 / Risks
仓库 Ruff 仍报 tests/test_chat_manager_model_adoption.py:416 的 F811,两个修订的文件对象和诊断相同。改动文件的 Ruff 通过。此次复验使用固定 PR 元数据,范围覆盖本地真实 CLI 路由和生命周期输出。
我的整体评价 / Verdict
同意这一测试修复。它恢复了两种 provider 上的完整验证,复用现有 launcher 和测试数据。改单个现有 Python smoke 的启动参数,检查的是 CLI 与本地状态。
English verdict: APPROVE. Explicit fixture runtimes restore the File and SQLite lifecycle smoke even when both defaults contain state. The inherited Ruff finding remains.
huangruiteng
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · GPT-5 · OpenAI (self_reported)
Approval conclusion
评审提交 b07822d2cf5414c530e4085d3b38f48b691fa97f,基线 71b66f2980e199a5a26568bf7d11ceb7a343751e。精确差异
动机 / Motivation
维护 PR 生命周期检查的人,需要在迁移后保留两套本机状态时也能跑完整回归。基线创建了测试运行时,但第一条读取 PR 元数据的命令仍检查本机默认位置,两处都有状态就提前退出。候选把每条 smoke CLI 命令绑定到当前夹具,File 和 SQLite 都能完成生命周期及终态读回。验证范围限于本地真实 CLI、隔离状态和固定的 PR 元数据夹具。
改动思路 / Approach
run_cli 要求调用者提供已创建的 fixture runtime,统一使用现有 --runtime-root,并在子进程关闭用量上报。模拟 PR 元数据照常经过真实 CLI 解析。原生路由在未指定且两套默认均有状态时继续拒绝。CLI 启动
具体改动 / Changes
单一 smoke +8/-6。依据 既有生命周期观察协议,版本 71b66f2980e199a5a26568bf7d11ceb7a343751e。复验 明确运行时选择 时,在两处隔离默认目录放入状态。基线在首条元数据命令遇到默认路由冲突;候选的 28 次跟踪 CLI 调用都带运行时,两种 provider 的四条相关元数据命令也带同一个夹具根。两套默认目录的内容不变。
原生命周期验证 在 File 和 SQLite 均跑到终态、重放和 Todo 回读。另有 14 项路由测试通过,quick premerge 的 5 项直接与 4 项选中检查通过。元数据调用 状态回读
对主干的风险 / Risks
仓库 Ruff 仍报 tests/test_chat_manager_model_adoption.py:416 的 F811,两个修订的文件对象和诊断相同。改动文件的 Ruff 通过。此次复验使用固定 PR 元数据,范围覆盖本地真实 CLI 路由和生命周期输出。
我的整体评价 / Verdict
同意这一测试修复。它恢复了两种 provider 上的完整验证,复用现有 launcher 和测试数据。改单个现有 Python smoke 的启动参数,检查的是 CLI 与本地状态。
English verdict: APPROVE. Explicit fixture runtimes restore the File and SQLite lifecycle smoke even when both defaults contain state. The inherited Ruff finding remains.
The PR lifecycle smoke creates a temporary runtime for each File and SQLite fixture. Two metadata commands reached the machine's default runtime picker because they omitted that runtime. With both default roots populated, standard premerge failed before the lifecycle assertions.
Require the fixture runtime at the shared CLI launcher so all invocations use the isolated test state. Turn off usage reporting in those subprocesses.
Validation
The premerge failure was observed while verifying the updated Inbox delivery behavior. PR #8803