You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rtk pipe without -f reads plain go test output as find/grep results #4692
rtk pipe with no -f picks a filter from the first 1 KB. Plain-text go test ./... output matches the grep and find heuristics, so the report is rewritten as search results, and on a failing run the FAIL lines disappear.
Failing run (Go 1.24.6: 25 ok packages, a failing TestX, a package that does not compile), go test ./... 2>&1 | rtk pipe:
No FAIL line, no package status. A green run comes out as 26 files in 2 dirs: with the package names split into a tree. With stdout only, the failing run passes through raw, because its first lines do not match.
The JSON branch is a substring test too (starts_with('{') && contains("\"Action\"")), so any JSON object with an Action key goes to the go-test filter: a pretty-printed IAM policy, or a go build -json stream, which prints Go test: No tests found.
Reproduced on develop 5538d72. rtk pipe -f go-test itself is handled in #4455.
The same detection also misses go test -json streams that have go command output in front of the first event. Go 1.27.1, go test -json ./broken ./fails 2>&1 | rtk pipe, where broken does not compile and fails has a failing test, with GODEBUG=gotestjsonbuildtext=1 so the build error comes first as text (Go 1.23 and older print it this way by default):
Activity
rtk-wshm-sync-bot commentedon Oct 20, 2026
🔍 Automated Triage
bughighSummary
rtk pipewithout -f mis-detects plaingo testoutput as find/grep or JSON-go-test results, silently dropping FAIL/compile-error lines on failing runs.📁 Relevant files
src/pipe/detect.rssrc/pipe/filters/grep.rssrc/pipe/filters/find.rssrc/pipe/filters/go_test.rsSuggested Actions
FAIL/okpackage lines), not just substrings in first 1KBstarts_with('{') && contains("Action")Triaged automatically by wshm · This is an automated analysis, not a human review.
KuSh commentedon Nov 2, 2026
The same detection also misses
go test -jsonstreams that have go command output in front of the first event. Go 1.27.1,go test -json ./broken ./fails 2>&1 | rtk pipe, wherebrokendoes not compile andfailshas a failing test, withGODEBUG=gotestjsonbuildtext=1so the build error comes first as text (Go 1.23 and older print it this way by default):rtk pipeoutput:The
TestBadandTestSubBadfailures and the package results are gone.rtk pipe -f go-testsummarizes the same stream.Two other leading lines leave the stream unfiltered (output identical to input, nothing lost):
warning: no packages being tested depend on matches for pattern …, fromgo test -json -coverpkg=<pattern> ./… 2>&1go: finding module for package …/go: found …, from aGOFLAGS=-mod=modrun that resolves a missing requirementSame output on v1.1.0, on develop 22812af and with #4455, which skips only blank lines and
go: downloadinglines before the first event.