Repository navigation
Conversation
Require each package to end with a package-level pass, fail, or skip event before summarizing the run. Preserve the original stream when a package result or JSON record is incomplete so failure diagnostics are not hidden by a partial success count. Add real Go output fixtures, parser regression coverage, and pipe CLI tests. Fixes rtk-ai#4693 Assisted-by: OpenAI Codex
|
|
📊 Automated PR Analysis
SummaryFixes a Go test JSON filter bug where truncated Review Checklist
Linked issues: #4693 Analyzed automatically by wshm · This is an automated analysis, not a human review. |
|
Thanks for the contribution! Before we can review and merge this, the CLA needs to be signed. The CLAassistant bot left the link above, it only takes a minute. Once it's signed we'll pick the review up. |
Summary
A truncated
go test -jsonstream can already contain--- FAIL: TestXand its diagnostic but still be summarized asGo test: 1 passed in 2 packages, because only terminal test events are counted.pass,fail, orskipbefore summarizing. Preserve the original stream if a package is unfinished or a JSON record is malformed, including a cut-off record after an otherwise completed package.rtk pipe -f go-testtests. Completed pass/fail/skip runs retain the existing summaries.Fixes #4693.
Test plan
Go test: 1 passed in 2 packages; the fixed CLI preserves the truncated stream byte-for-byte.cargo fmt --all --checkcargo fmt --manifest-path proxy/Cargo.toml --all --checkcargo clippy --all-targets --lockedcargo test --all --locked— 5,036 passed, 0 failed, 8 ignored.Validation ran locally on Linux with Rust 1.99.1 and debug symbols disabled.
AI disclosure: OpenAI Codex was used to investigate, implement, and validate this contribution.