Repository navigation
Conversation
|
Obayo Tian seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
|
Thank you for the careful writeup of the pytest truth-preservation problem, the failure modes you catalogued are real. Most of what this PR builds on has since been rebuilt on develop: commit 86b34df from 2026-07-22 moved |
title: RTK pytest 结果真实性修复合并过程
status: source_ready
owner: Camus
template_id: report.merge_process.v1
template_source: team-ai-pack/templates/merge-process-template.md
related_prd: not_applicable
related_technical_plan: not_applicable
related_test_plan: not_applicable
related_test_set: not_applicable
last_updated: 2026-08-10
合并过程:RTK pytest 结果真实性修复
产品汇报(与 Multica 正文对齐)
需求对象与用户价值
目标边界
origin/develop的 RTK pytest wrapper。当前进度判断
RCA / 解决判断
No tests collected;摘要缺失、格式未识别和捕获截断都会进入这条分支。collected数量或真实退出码的判定上下文。collected 0 + pytest exit 5才输出 no-tests,其余降级为无法解析并保留退出码与失败位置。完整改动逻辑
pytest进入捕获 runner,过滤器只从摘要计数推断结果;所有零计数都被压成 no-tests。rtk pytest ...时,既有 runner 把真实子进程退出码传给 pytest 解析器;管道输入继续复用兼容入口。main继续消费真实返回码,pipe_cmd继续消费无退出码兼容入口。没有新增旁路 writer 或业务状态文件。交付物、现阶段结论与下一步
src/cmds/python/pytest_cmd.rs;outputs/rtk-pytest-truth/pytest-regression-final3.log;python-consumers-final2.log;clippy-final3.log;all-tests-final.log。Discovery Gate
src/cmds/python/pytest_cmd.rs;src/core/runner.rs;src/core/stream.rs;src/cmds/system/pipe_cmd.rs;CLAUDE.mdoutputs/rtk-pytest-truth/Change Summary
No tests collected;直接 pytest 解析获得真实退出码,并保留 collected、子测试和失败位置。src/cmds/python/pytest_cmd.rs、src/core/stream.rs的 stdout 截断观测字段、src/core/runner.rs的 pytest 专用 capture-aware 入口与本合并过程记录。Validation Evidence
cargo fmt --all -- --check;cargo clippy --all-targetspassed。outputs/rtk-pytest-truth/pytest-regression-final3.log/private/tmp/...py:2; empty directory real pytest exit 5。all-tests-serial-isolated.log。Review Evidence
Merge Readiness
git rev-parse HEAD)developMerge Result And Handoff
RCA 与风险