Repository navigation
ux(output): restate mode/test-filter tradeoffs and name the git-timeout knob (#4946) - #4953
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 34 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (6)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Code Review
This pull request improves user feedback, error messages, and documentation for the ripr check command. It introduces a warning notice when --no-unchanged-tests is active to explain its recall tradeoff, documents the performance characteristics of different analysis modes, and adds help text for the RIPR_REPO_EXPOSURE_LATENCY_TRACE environment variable. Additionally, git timeout errors are updated to suggest actionable repair routes, and a note regarding clean cancellation of runs is added to the configuration documentation. Relevant unit and smoke tests have been added to verify these changes. No review comments were provided, so there is no further feedback to address.
Four bot-review findings dispositioned on the candidate; all repaired: - the unchanged-tests note no longer fires on repo-scoped formats: their corpus walks never read include_unchanged_tests, so the smaller/faster- index claim was false there (analysis/workspace/select.rs narrows every diff-scoped mode when it is false; the inventory walks read only the corpus). The repair route now names the knob that owns the value — the CLI flag when passed, [analysis] include_unchanged_tests otherwise — because "drop the flag" is unreachable advice for the config-driven case (no positive CLI counterpart exists). Pinned by a config-driven smoke test (config knob + route present, flag advice absent) and a repo-badge-json absence control. - the shared git timeout error named only the CLI knobs (--git-timeout / RIPR_GIT_TIMEOUT); the same deadline wait serves the editor sidecar, whose deadline comes from the gitTimeoutMs initialization option. The repair route now names all three and the 0-disables escape; test pin extended to gitTimeoutMs. - CONFIGURATION.md's cancellation claim narrows to the files ripr writes itself: a shell-redirected stdout file is owned by the shell and can be truncated by an interruption; re-running rewrites it. Also merges origin/main (d09426d = #4955, plus #4954) for the coupled check.rs/CHANGELOG surfaces; the merged region was verified semantically (single progress wiring, #4946 note and #4945 disclosure coexist).
Sync for #4924: origin/main moved to ec4eee3 (human-output disclosure family #4936/#4942/#4953/#4955 and render progress plumbing #4945). Conflicts: app.rs/check.rs/render.rs semantically unioned (FindingDrillIn param + progress sink); 71 fixture bless CHANGELOGs unioned (both sides' Pending sections kept, numbering deduplicated); human-full goldens and human.rs/sections.rs/triage.rs/navigation.rs auto-merged.
What this does
Five disclosure gaps on diff-scoped
ripr checkruns and their help/docs (#4946): thegit_invocation_timeouterror names no knob or repair route,RIPR_REPO_EXPOSURE_LATENCY_TRACEis missing fromcheck --help's environment list, an active--no-unchanged-testsnever restates its recall/cost tradeoff where the user waits,--modehelp carries no cost-class orientation, and no surface documents cancellation-recovery semantics.Change: the timeout error names
--git-timeout/RIPR_GIT_TIMEOUTand the 0-disables escape, matchingdiff_scope_oversized's in-message repair route; the help env list gains the latency-trace entry and--modegains a one-line cost class; the active flag prints one stderr line naming the Reach recall given up for a smaller, faster index; CONFIGURATION.md states cancellation is clean (atomic writes, next run recovers). stdout, exit codes, and machine formats are unchanged.Verification
deadline_kills_and_reaps_a_hung_invocation)--git-timeout,RIPR_GIT_TIMEOUT,disable it with 0on a real hung childcheck_help_names_the_latency_trace_env_and_mode_cost_class)check_no_unchanged_tests_restates_the_recall_tradeoff_on_stderr)git_timeout_error_converts_to_a_committed_limited_snapshotpassescargo fmt --check,cargo clippy -p ripr --all-targets -- -D warningscargo xtask goldens checkStatus: pass, no violationsReview map
git.rspoll_child: the timed-out arm's message names both deadline knobs and the repair route;is_git_invocation_timeoutstill matches by prefix, and LSP surfaces bound/redact the longer text viabounded_message.cli/commands/check.rs: the note fires on the effective post-config setting beside the mode-fast notice, before the repo-scoped early returns (the shared index selection narrows repo runs too).cli/help/core.rsCHECK_HELP: the new env entry matches CONFIGURATION.md's description;--modegains one cost-class line.tests:git.rsmessage pin,cli/help.rshelp pin,tests/cli_smoke.rsstderr pin with negative control.Review repairs (f3806ab) and main merge
All four droid-review findings were confirmed against source and repaired on the candidate:
include_unchanged_tests(analysis/seam_inventory.rsreads only the corpus;analysis/workspace/select.rsnarrows every diff-scoped mode when it is false). The note now fires only on the paths that consume the setting (!format.is_repo_scope()), pinned by a repo-badge-json absence control plus the existing diff-scoped positive pin.explicit.include_unchanged_tests: flag case keeps "Drop the flag"; config case names[analysis] include_unchanged_tests = falsewith its own repair route. Pinned bycheck_config_driven_no_unchanged_tests_names_the_config_knob(knob + route present, flag advice absent).poll_childwait also serves the LSP sidecar (lsp/git_inputs.rspasses thegitTimeoutMs-derived deadline), so the repair route names all three knobs;deadline_kills_and_reaps_a_hung_invocationpinsgitTimeoutMs,is_git_invocation_timeoutstill matches by prefix, and the LSP conversion test stays green.The branch also merges
origin/main(d09426d = #4955, plus #4954) for the coupledcheck.rs/CHANGELOG surfaces; the merged region was verified semantically (singleCliProgressSinkwiring; the #4946 note and the #4945 disclosure coexist). All named gates re-run green on f3806ab: fmt,cargo clippy -p ripr --all-targets -- -D warnings, the timeout/help/stderr-note pins,cargo test -p ripr --test cli_progress13/13, andcargo xtask goldens check(pass).CI note: the advisory
cargo-denycheck is red on this head for the same inherited reason as #4955 — upstream yankedyoke-derive 0.8.3(0.8.4 is the fix);Cargo.lockis byte-identical toorigin/mainat the merge base. Not a required check; the lockfile repair routes as a separate dependency PR.