Skip to content

fix(cli): baseline warnings on stderr; human_path for the resolved-root notice (#9806) - #9824

Merged
EffortlessSteven merged 1 commit into
mainfrom
fix/cli-output-consistency-9604
Oct 22, 2026
Merged

EffortlessSteven merged 1 commit into
mainfrom
fix/cli-output-consistency-9604

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Governing issue or accepted claim: #9806 (CLI output-consistency audit follow-up from #9604; items 1 and 2 of 3)

Acceptance delta (one sentence): ripr baseline create/update warnings can no longer be silently lost by piping stdout, and ripr check's resolved-root notice prints a path Windows users can actually type.

What changed

Baseline warnings ride stderr. baseline.rs:78-84 (create) and baseline.rs:187-192 (update) printed Warnings: ... to stdout while every comparable advisory surface in the CLI (gate.rs:83, all check.rs notices, progress output) uses stderr — so ripr baseline create ... > log.txt dropped exactly the advisory the code comment says must reach the operator. Both now use eprintln!; Wrote/Entries/Migrated confirmations stay on stdout.

Resolved-root notice uses human_path. check.rs:374-381 rendered the raw canonicalized path — on Windows an untypable \?\C:\... verbatim prefix. It now routes through output::path::human_path, the same renderer the adjacent skipped-closer-config warning (check.rs:391-402) and ripr init (init.rs:669) already use.

The cli_smoke assertion that pinned warnings on stdout now pins stderr for the warning and stdout for the write confirmation.

Item 3 of #9806 (one shared renderer for every Wrote ... confirmation across ~15 sites) is a follow-up pass.

Validation

  • cargo test -p ripr --test cli_smoke -- baseline: 10 passed.
  • cargo check -p ripr --lib clean; fmt clean. No allow/expect attributes added.

Rollback

Revert; output-stream and path-rendering change only, no persisted state.

…h human_path (#9806)

Two output-consistency fixes from the #9604 CLI audit:

- ripr baseline create and baseline update printed their operator
  warnings to stdout while every comparable advisory surface (gate,
  check notices, progress) uses stderr; piping stdout silently dropped
  exactly the warning the code says must reach the operator. Warnings
  now ride stderr; the smoke test pins stdout to the write confirmation
  and stderr to the warning.
- ripr check's "resolved workspace root to ..." notice rendered the
  raw canonicalized path, which on Windows carries an untypable \?  verbatim prefix; it now routes through output::path::human_path, the
  same renderer the adjacent skipped-config warning and ripr init use.
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Oct 22, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 45 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 114 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 914ef7b2-0b01-443c-9025-fa3cbde556d0
📥 Commits

Reviewing files that changed from the base of the PR and between d0d12d1 and 44636d6.

📒 Files selected for processing: 3
  • crates/ripr/src/cli/commands/baseline.rs
  • crates/ripr/src/cli/commands/check.rs
  • crates/ripr/tests/cli_smoke.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@github-actions github-actions 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.

Decision

  • Needs verification checks before upstream.

Verification questions

  • Confirm no changed-behavior test shown covers baseline update moving its warning count from stdout to stderr.
  • Confirm no direct test shown proves resolved-root notices use human_path and omit Windows verbatim path prefixes such as \?\C:.
  • Confirm the changed test directly proves baseline-create warning stderr separation, but this diff does not directly assert baseline-update warning routing or the humanized resolved-root notice.
  • Confirm the update warning output was changed to stderr, but no changed test assertion in the patch proves its stream contract.
  • Confirm human_path removes platform-specific verbatim prefixes, but the patch contains no Windows-specific assertion for the resolved-root notice.

Refuted

  • Rendering the canonicalized workspace root through human_path changes which directory is resolved.; refuted because: The same canonical Path is passed to a display adapter; no assignment, canonicalization, or routing behavior changed.
  • The fix should introduce a shared renderer or broader output abstraction to keep both branches consistent.; refuted because: Both changed branches already use direct stderr primitives, and the renderer refactor is explicitly deferred. Adding a new helper here would exceed the smallest complete fix.
  • Using human_path is likely to alter the structured or machine-consumed meaning of the resolved-root notice.; refuted because: The changed call occurs inside an existing terminal_safe notice and matches the adjacent warning's established renderer; the diff does not redirect the notice stream or alter root resolution.

Parked follow-ups

  • Baseline update's warning-count print was changed to stderr, but the PR's modified smoke assertion exercises only baseline create.

Evidence gaps

  • Model proof intent was rejected by deterministic validation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant