Skip to content

ux(output): restate mode/test-filter tradeoffs and name the git-timeout knob (#4946) - #4953

Merged
EffortlessSteven merged 3 commits into
mainfrom
ux/4946-disclosure-restatements
Sep 30, 2026
Merged

EffortlessSteven merged 3 commits into
mainfrom
ux/4946-disclosure-restatements

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

What this does

Five disclosure gaps on diff-scoped ripr check runs and their help/docs (#4946): the git_invocation_timeout error names no knob or repair route, RIPR_REPO_EXPOSURE_LATENCY_TRACE is missing from check --help's environment list, an active --no-unchanged-tests never restates its recall/cost tradeoff where the user waits, --mode help carries no cost-class orientation, and no surface documents cancellation-recovery semantics.

Change: the timeout error names --git-timeout / RIPR_GIT_TIMEOUT and the 0-disables escape, matching diff_scope_oversized's in-message repair route; the help env list gains the latency-trace entry and --mode gains 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

Check Result
timeout message pin (deadline_kills_and_reaps_a_hung_invocation) names --git-timeout, RIPR_GIT_TIMEOUT, disable it with 0 on a real hung child
help pins (check_help_names_the_latency_trace_env_and_mode_cost_class) latency-trace entry and cost class present
stderr note (check_no_unchanged_tests_restates_the_recall_tradeoff_on_stderr) present with flag, absent without (negative control)
LSP conversion over the longer message git_timeout_error_converts_to_a_committed_limited_snapshot passes
touched filters, cargo fmt --check, cargo clippy -p ripr --all-targets -- -D warnings 14 passed, clean
cargo xtask goldens check Status: pass, no violations

Review map

  • git.rs poll_child: the timed-out arm's message names both deadline knobs and the repair route; is_git_invocation_timeout still matches by prefix, and LSP surfaces bound/redact the longer text via bounded_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.rs CHECK_HELP: the new env entry matches CONFIGURATION.md's description; --mode gains one cost-class line.
  • tests: git.rs message pin, cli/help.rs help pin, tests/cli_smoke.rs stderr pin with negative control.

Devin Review

Review repairs (f3806ab) and main merge

All four droid-review findings were confirmed against source and repaired on the candidate:

  • Repo formats claimed an index narrowing they do not perform. The repo walks never read include_unchanged_tests (analysis/seam_inventory.rs reads only the corpus; analysis/workspace/select.rs narrows 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.
  • Config-driven exclusion got unreachable advice. The note branches on explicit.include_unchanged_tests: flag case keeps "Drop the flag"; config case names [analysis] include_unchanged_tests = false with its own repair route. Pinned by check_config_driven_no_unchanged_tests_names_the_config_knob (knob + route present, flag advice absent).
  • Editor timeouts got CLI-only knobs. The shared poll_child wait also serves the LSP sidecar (lsp/git_inputs.rs passes the gitTimeoutMs-derived deadline), so the repair route names all three knobs; deadline_kills_and_reaps_a_hung_invocation pins gitTimeoutMs, is_git_invocation_timeout still matches by prefix, and the LSP conversion test stays green.
  • Cancellation claim over-covered shell redirection. CONFIGURATION.md scopes the atomicity claim to the files ripr writes itself and names the redirect case as shell-owned (truncation possible; re-run rewrites).

The branch also merges origin/main (d09426d = #4955, plus #4954) for the coupled check.rs/CHANGELOG surfaces; the merged region was verified semantically (single CliProgressSink wiring; 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_progress 13/13, and cargo xtask goldens check (pass).

CI note: the advisory cargo-deny check is red on this head for the same inherited reason as #4955 — upstream yanked yoke-derive 0.8.3 (0.8.4 is the fix); Cargo.lock is byte-identical to origin/main at the merge base. Not a required check; the lockfile repair routes as a separate dependency PR.

@coderabbitai

coderabbitai Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 91a23111-e40b-405b-9c1e-1452e8af042d

📥 Commits

Reviewing files that changed from the base of the PR and between d09426d and f3806ab.

📒 Files selected for processing (6)
  • crates/ripr/src/cli/commands/check.rs
  • crates/ripr/src/cli/help.rs
  • crates/ripr/src/cli/help/core.rs
  • crates/ripr/src/git.rs
  • crates/ripr/tests/cli_smoke.rs
  • docs/CONFIGURATION.md
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 4 potential issues.

Devin Review

Comment thread crates/ripr/src/cli/commands/check.rs Resolved
Comment thread crates/ripr/src/cli/commands/check.rs Resolved
Comment thread crates/ripr/src/git.rs Resolved
Comment thread docs/CONFIGURATION.md Resolved
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).
@EffortlessSteven
EffortlessSteven merged commit be76d45 into main Sep 30, 2026
39 of 40 checks passed
@EffortlessSteven
EffortlessSteven deleted the ux/4946-disclosure-restatements branch September 30, 2026 14:59
EffortlessSteven added a commit that referenced this pull request Sep 30, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant