Repository navigation
Conversation
KuSh
force-pushed
the
fix/cargo-d2-nextest
branch
from
November 13, 2026 12:16
5ce4790 to
43619bb
Compare
This was referenced Nov 13, 2026
`filter_cargo_nextest` returned an empty string when it found no summary and no test status line, so `rtk cargo nextest list`, `show-config`, `help`, `-V` and `archive` printed nothing, and so did a `run` that fails to compile, `run --no-run`, a `run` with a rejected option and a `run` killed before its summary (the compiler error or usage message was lost, only the exit code remained). A coloured run (`--color always`, `CARGO_TERM_COLOR=always`) printed nothing either: the escape codes around `PASS`, `FAIL` and `Summary` kept them from matching at the start of a line. The filter now strips the escape codes before matching (only when the text has one), and returns the output unchanged when it has no summary and no failure block to show. A run killed after a `FAIL` line still shows its failure blocks; a run killed after only `PASS` lines is shown as nextest printed it. The summary and starting-line regexes are compiled once. The runner joins stdout and stderr to give a filter its input, so a filter that hands the text back would have printed all of it on stdout: the `Finished` line of `rtk cargo nextest list --message-format json | jq` would have broken the pipe, and nextest's stderr-only text (a compile error, `archive`'s report) would have moved to stdout. When a filter returns exactly the text it was given, the runner now prints the command's stdout on stdout and its stderr on stderr, each exactly as captured. A stdout-only filter is not compared with the joined text and is unaffected. Output handed back this way is printed in full, so there is nothing to recover: no recall entry is stored and no recovery hint is added, also when the command failed. A filter's own output is not affected. The exit code was already forwarded. A test run, passing or failing, is summarised as before; a test killed by a signal is counted in the summary but not listed, which is unchanged. The hook does not rewrite `cargo nextest`, so this only changes an explicit `rtk cargo nextest …`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
KuSh
force-pushed
the
fix/cargo-d2-nextest
branch
from
November 17, 2026 01:03
43619bb to
30d8ece
Compare
This was referenced Nov 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
rtk cargo nextest list,show-config,help,-Vandarchiveprinted nothing, and so did arunthat fails to compile,run --no-run, arunwith a rejected option, arunkilled before its summary and a coloured run: the nextest filter returned an empty string whenever it found no summary and no test status line.The filter now strips escape codes before matching and hands the output back unchanged when it has no summary and no failure block to show. When a filter hands back exactly the text it was given, the runner prints the command's stdout on stdout and its stderr on stderr, as captured, so
rtk cargo nextest list --message-format json | jqworks and nextest's stderr-only text (a compile error,archive's report) stays on stderr. That output is shown whole, so no recall entry is stored for it.Behaviour changes
FAILline shows its failure blocks; one killed after onlyPASSlines is shown as printed.cargo nextest, so only an explicitrtk cargo nextest …changes.Test plan
cargo fmt --all,cargo clippy --all-targets,cargo test --all --no-fail-fast(5597 passed)LC_ALL=C: every operation above matches raw nextest stream for stream and exit code; passing and failing runs are summarised as on develop🤖 Generated with Claude Code