Repository navigation
fix(review): admit large workspaces by default in review-comments (#12940) - #14956
Conversation
…2940) Raise the review-guidance index ceiling from 1,200 to 5,000 files and the default --timeout-ms from 120 s to 600 s, matching ripr check. The old ceiling predates #13919, which bounds the second stage that drove the #3768 and #12940 memory failures. Measured on ripr-swarm (2,646 indexed files, 4 vCPU): diffs of 3, 45, 87 and 238 files complete in 43 to 381 s at 0.99 to 1.87 GB peak RSS; at 120 s the 87-file diff timed out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLUPPQwtwWxdZWL1DMD
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
No actionable comments were generated in the recent review. Summary by CodeRabbit
Walkthrough
ChangesReview-comments limits
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related issues
Merge Risk:
|
… smoke test, traceability and xtask wrapper (#12940) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLUPPQwtwWxdZWL1DMD
EffortlessSteven
left a comment
There was a problem hiding this comment.
VERDICT: APPROVE 34f0a5c — no blocking findings on this head. One non-blocking finding: this repository's own PR-evidence lane re-imposes a 60 s budget, so the dogfood case is not fixed there even though the CLI default is.
Identity. 8 files, +50/-29, at 34f0a5c9ec; base main at be64de5421; merge-base 6bad9f4fa4 (the branch is behind, which moves nothing here). I read the two constants, every reader of them, the xtask wrapper, the workflow step that invokes it, and the three changed tests.
What the change does, and what I confirmed. DEFAULT_REVIEW_COMMENTS_TIMEOUT_MS (crates/ripr/src/cli/commands/review_comments.rs:43) and REVIEW_GUIDANCE_MAX_INDEX_FILES_DEFAULT (:49) are the only defaults the parse path uses (:1165, :1249), so every consumer that does not pass --timeout-ms or the env lever inherits 600 s and 5,000 files. That covers the generated advisory workflow (it invokes ripr review-comments with no timeout flag), ripr gate check (which drives the same producer in process, cli/commands/gate.rs:301), and the ci-packet hand-off documented at cli/commands/ci_packet.rs:2224. The ceiling still fails closed before the guidance dispatch spends memory: GuidancePayloadCeiling::enforce runs ahead of the dispatch and the receipt names the exceeded axis and its env lever. The byte axis (256 MiB) is untouched and independent. Help text, docs/CLI_REFERENCE.md, SPEC-0012 and the changelog state the same two numbers, and no stale 1,200 or 120000 survives in the touched surfaces.
Non-blocking finding: this repository's own lane is still capped at 60 s.
.github/workflows/rust-gates.yml:594setsRIPR_REVIEW_COMMENTS_TIMEOUT_SECS: "60"for the step that runscargo xtask ripr-review-commentsat:651-652.xtask/src/reports/review_comments.rs:598-605turns that into the child's budget and:547passes it as an explicit--timeout-ms; with the variable unset the wrapper falls back to:22 DEFAULT_TOOL_TIMEOUT_SECS = 120, which was the old CLI default.- Effect: the new 600 s default is unreachable on that path, and the new 5,000-file ceiling now admits ripr-swarm (2,646 files) into a lane that kills the analysis at 60 s. The step writes a
status: "error"packet with receipt categoryanalysis_timeoutand repair routeperf/review-comments-phase-budget, where the same step used to stop at the ceiling withreview_guidance_oversizedand the ceiling env lever. Neither packet carries guidance, so nothing regresses functionally, but the second half of #12940's reproduction ("with the ceiling lifted, a medium diff then times out") still reproduces here, at 60 s instead of 122 s, and every PR now pays up to 60 s of gate time for a packet no consumer can use. - The changelog sentence "(and the PR comment and CI packet paths built on it)" is true for the generated workflow and false for the CI this repository runs. Repair seam, if the dogfood lane is meant to work: raise
RIPR_REVIEW_COMMENTS_TIMEOUT_SECSinrust-gates.ymlandDEFAULT_TOOL_TIMEOUT_SECSin the wrapper together (or stop passing--timeout-mswhen the variable is unset, so the CLI default governs), and pin the two numbers to each other. If that is deliberately a separate change, narrow the changelog sentence and name the consumers that still cap lower.
Non-blocking: the admission test lost its old-scale pin. guidance_payload_default_admits_this_workspace_but_refuses_past_the_ceiling now admits 2,646 and 5,000 and refuses 5,001, with total_bytes equal to the file count. The previous assertion that the 1,600-1,700 external failure shape is refused is gone. That is correct for a raised default, but the ceiling's justification now rests entirely on #13919 bounding the second stage, and nothing here would notice if that bound regressed: the test exercises the count axis only, at a synthetic byte total, so it cannot detect a memory-shape regression at 2,646 files. A separate test that measured the shape (or simply kept a low-ceiling refusal case for the 1,700 shape with the env lever) would make the ratchet durable.
Evidence boundary. There is no hosted run at 34f0a5c9ec: the PR carries no labels, so routed-rust.yml never triggered, and the rollup is CodeRabbit, GitGuardian and Graphite only. The 43-381 s and 0.99-1.87 GB figures, and the local test results, are the author's claims; I did not build or run the suite on this box. The 1.87 GB peak was measured on a 4 vCPU box, not on a hosted runner, and the ceiling remains input admission rather than an RSS bound, which the docs already say.
Next action. None required for source readiness on this seam; the CI-lane observation is for the Coder's judgment, either as a follow-up that raises the wrapper and workflow budgets or as a narrower changelog claim.
…narrow the changelog (#12940) The lane caps review-comments at 60 s; with the CLI's new 5,000-file default it would admit this workspace and spend 60 s per PR to reach analysis_timeout instead of refusing in under a second. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UNUoLUPPQwtwWxdZWL1DMD
EffortlessSteven
left a comment
There was a problem hiding this comment.
SOURCE_REVIEW_READY
Exact head 7fdff8b.
Since review 5931114562 (at 34f0a5c)
- Both of that review's non-blocking findings are addressed:
- 60 s lane.
rust-gates.ymlnow pinsRIPR_REVIEW_GUIDANCE_MAX_INDEX_FILES=1200next toRIPR_REVIEW_COMMENTS_TIMEOUT_SECS=60, with a comment saying the two move together. This repository's PR-evidence lane keeps refusing in under a second, instead of admitting the workspace and spending 60 s per PR to reachanalysis_timeout. Raising the lane to 600 s would add up to 10 minutes to every PR, which is a separate CI-cost decision. - Changelog. It now names the callers that get the new defaults: the generated advisory workflow,
gate checkandci-packet. It also says that callers passing their own budget or ceiling keep those values.
- 60 s lane.
- The xtask wrapper's unset default is now 600 s. Its receipt fallback is derived from the same constant.
- A fresh-context subagent review found two stale references, both fixed:
- the
cli_smokehelp assertion (Default: 5000); - the
docs/CONFIGURATION.mdrow.
- the
- All three Devin threads were confirmed, fixed, replied to and resolved: CONFIGURATION row, traceability rename, and wrapper budget.
- On the lost old-scale pin: the ceiling's justification is now the #13919 bound, measured on this workspace (in the PR body). No unit test can see a memory-shape regression. That stays a measurement claim, not a gate.
Proof at this head
cargo xtask precommitexit 0.cargo xtask check-workflowspass.cargo test -p ripr --test cli_smoke review_comments_help: 1 passed.- Earlier on this branch:
cargo test -p ripr --lib -- review_comments guidance_payload help, 973 passed; CLI reference blessed. - Grep found no other crate or xtask test binding the changed phrases.
- The release-binary measurements in the PR body were taken on main 6bad9f4 with the overrides set, which are exactly the values this PR makes default.
Not established: hosted qualification on this head.
Generated by Claude Code
EffortlessSteven
left a comment
There was a problem hiding this comment.
VERDICT: APPROVE 7fdff8b — no blocking findings on this head.
Identity. Head 7fdff8b0e65c3ed7de53fbb12c09b9ee35da4e5e, base main at be64de5421. This is a delta on top of my 34f0a5c9 review (5931114562), which still covers the production default change; the delta touches CI configuration, docs, traceability and the xtask wrapper.
What moved. Both non-blocking findings from 5931114562 are addressed:
.github/workflows/rust-gates.yml:592-601now pinsRIPR_REVIEW_GUIDANCE_MAX_INDEX_FILES=1200besideRIPR_REVIEW_COMMENTS_TIMEOUT_SECS=60, with a comment that the two move together. This repository's PR-evidence lane keeps refusing under the 1,200-file ceiling instead of admitting the 2,646-file workspace and spending the 60 s budget to reachanalysis_timeout. That is a deliberate CI-cost choice; the CLI default remains 5,000 files and 600 s.- The changelog now names the generated advisory workflow,
gate checkandci-packetas the callers that inherit the new defaults, and says callers that pass their own budget or ceiling keep those values. xtask/src/reports/review_comments.rs:22raises the wrapper's unset default to 600 s, and the receipt fallback derives from it (:989), matching the CLI default.docs/CONFIGURATION.md:358states the new 5,000 default and the measurement history;cli_smoke.rs:37477expectsDefault: 5000; the traceability test name matches the renamed test atreview_comments.rs:3820.
Proof on this head. I read the workflow step, the xtask wrapper, the changed docs and the three changed tests. Hosted Rust gates are still running at this head (shards 1-4 and the Rust gates job); Admit PR Candidate, Detect Docs-Only Surface, Route Ripr Rust Small, Graphite and GitGuardian pass. Source review is affirmative; the queue owns the hosted Rust qualification.
Not checked. I did not build or run tests on this head. The 1,200-file ceiling is an input limit, not an RSS bound; the PR body's measurement claim remains a measurement, not a gate.
Summary
ripr review-commentsstill refuses ripr-swarm itself. The repo has 2,646 indexed files, over the 1,200-fileRIPR_REVIEW_GUIDANCE_MAX_INDEX_FILESceiling. When the ceiling is lifted, a medium diff then times out at the 120 s default budget. Both block ripr review-comments times out on a large-workspace diff that edits tests related to thousands of seams (typed limited_timeout, no guidance; was: refuse at 1200 files / OOM) #12940's acceptance: "review-comments scales likecheckfor a small diff, or degrades instead of refusing/timing out."--timeout-msto 600,000 ms, matchingripr check's 600 s analysis default.Swarm / Source Boundary
ripr-swarmSource-of-truth Links
Proposal: #12940 (original report)
Spec: docs/specs/RIPR-SPEC-0012-pr-test-guidance.md
ADR: n/a
Plan item: n/a
Governing issue or accepted claim: #12940
Acceptance delta (one sentence):
ripr review-commentson ripr-swarm completes with default settings for diffs of 3 to 238 files instead of refusing at the 1,200-file ceiling or timing out at 120 s.Candidate Relationships
Candidate branch (GitHub PR head is authoritative after publication): claude/project-thread-csn0a6
Stack parent or prerequisite PR (if any): #13919 (merged)
Proposed replacement of PR (if any; not yet accepted): none
Acceptance retained from a replaced candidate (if any): n/a
Accepted winner and losing candidate disposition (when decided): n/a
Scope
cli/commands/review_comments.rs, plus the help, command catalog, CLI reference, spec, migration doc and changelog that state them.Scope Classification
Production delta:
REVIEW_GUIDANCE_MAX_INDEX_FILES_DEFAULTgoes from 1200 to 5000.DEFAULT_REVIEW_COMMENTS_TIMEOUT_MSgoes from 120_000 to 600_000.Evidence/support delta:
=5000.default 600000ms.docs/CLI_REFERENCE.mdis re-blessed. The spec,FROM_CARGO_MUTANTS.mdand a changelog fragment are updated.Single acceptance criterion:
review-commentscompletes on ripr-swarm for the measured diffs.Non-goals:
Support-tier Impact
Policy Impact
Proof
Release binary built from main 6bad9f4 (sha256 3eee8fe3…1afc36), run on a ripr-swarm checkout of the same commit. Host: 4 vCPU, 15 GB, Linux.
review_guidance_oversized: 2646 closure input files exceed … =1200Every completed receipt is
complete, with no limitations.Claim Boundary
Rollback
Static Language Check
killed,survived,untested,proven, andadequate.Engineering Check
panic,unwrap,expect,todo, orunimplementedin production code.panic,unwrap,expect,todo, orunimplementedin tests.Generated by Claude Code