Repository navigation
test(cli): use a nonempty fixture for diff progress controls (#5090) - #6679
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
🔗 Linked repositories identifiedCodeRabbit considers these linked repositories for cross-repo context during reviews:
Limit details: You’ve used all 10 included reviews currently available. Summary by CodeRabbit
WalkthroughCLI progress tests now use an isolated Rust fixture with a changed predicate. They verify findings in JSON, SARIF, and GitHub output, retain loud-versus-quiet checks, and test progress reporting during artifact-write failures. The specification adds corresponding evidence requirements. ChangesCLI Progress Test Coverage
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~12 minutes Change: Other Merge Risk: ⚪ Minimal · up to This change only updates CLI progress tests and the related spec, with no production behavior change. No concrete merge-blocking risk was found. CI will confirm that the new fixture runs. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 38.46% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 13 functions across 1 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
A rabbit checks the diff at dawn Comment |
There was a problem hiding this comment.
Confirmed findings
- PR claims cargo-test as a 'late' sensor with no published receipt, and the prior 'historical candidate' run 37247695692 took ~398s while the new baseline is ~370s summed — yet the PR explicitly disclaims a latency claim. Any reviewer using the new numbers to argue for #5090 is reading past the spec, so this is an overclaim-risk, not a test correctness issue.
- crates/ripr/tests/cli_progress.rs:86 — The added GitHub/JSON/SARIF assertions assume the loader emits a relative 'src/lib.rs' (or percent-encoded) URI and that probe.file uses the same encoding. The PR does not pin this contract here and only references it in the spec. On Windows runners or with a non-default cargo target-dir, either of these strings can drift and the new loud/quiet tests will fail for reasons unrelated to progress discrimination. Either pin the canonicalization helper used by ripr to produce these URIs and reuse it from the test, or skip the new file-uri assertion on non-unix targets.
Verification questions
- Confirm diffFixture::new appends '\n[workspace]\n' to Cargo.toml and writes a single test file referencing crate 'ripr_cli_progress_{tag}' but never creates src/lib.rs or a Cargo crate root; ripr check --root fixture reads the change.diff, not a Cargo workspace. The empty [workspace] guard only matters if ripr also looks at ancestors, which cargo does but ripr may not. Unused defense or necessary isolation: cannot confirm without reading ripr's analysis-root logic; if ripr never walks ancestors the [workspace] line is dead defensive code, not a test-strength issue.
- Confirm diffFixture::new appends '\n[workspace]' to whatever Cargo.toml exists, so if repo_fixture_root pre-creates a non-empty manifest, the resulting TOML is invalid and tests would silently degrade to a missing-fixture finding.
- Confirm windows path: assert_fixture_json_findings percent-encodes backslashes but not other path components; a Windows checkout could yield 'src\lib.rs' in probe.file or a drive-letter prefix that breaks the Some(expected_file.as_str()) comparison.
- Confirm diffFixture is the sole path that constructs a fixture-rooted
ripr checkinvocation in cli_progress.rs; all five touched tests share the same struct, so lifecycle/cleanup regressions would uniformly degrade the diff-format/artifact-error progress controls. - Confirm the new assertions bind to a specific fixture-local predicate (
amount >= threshold) and a specific lib path (src/lib.rs); the SARIF URI assertion hardcodes the relative fragmentsrc/lib.rs, while the JSON assertion percent-encodes the absolute path - sibling encoding/canonicalization paths in the producer for both surfaces may diverge and are not validated by this test.
Refuted
- Concurrent test threads sharing DiffFixture could race on filesystem creation/drop across the process boundary.; refuted because: Each test calls DiffFixture::new() with a unique pid+AtomicU64 sequence tag, creating independent directories; the loud/quiet pair explicitly shares one fixture but accesses it sequentially within the same test body. No cross-test sharing.
- No JS-backed memory, worker, SharedArrayBuffer, postMessage, or Transferable surface exists in the changed Rust test code; worker-handoff UB class is inapplicable to this diff.
- Concern that
assert_fixture_json_findingspercent-encodes viareplace('%', "%25")is wrong becauseto_string_lossydoes not percent-encode; the order-of-operations therefore under-encodes any path that contains both a backslash and a percent in its non-lossy form. Why it did not hold: PathBuf is consumed throughto_string_lossywhich never introduces%; on the OS temp paths used in this fixture (forward slashes, no literal%), the only transformation actually applied is the backslash->forward-slash replacement. The%25line is dead defense, not a bug, and the test passes for the current fixture shape.; refuted because: Rejected as false-premise: under realistic TempDir roots on the host the percent-encoding step is a no-op; flagging it as a bug would over-claim without a concrete failing path. - Fixture writes [workspace] into its own Cargo.toml to block ancestor lookup; if the temp parent lives under the repo (cargo tempfile default under target/tmp) the fixture still escapes real workspace resolution.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Reviewed head: 2ab0d2afecce212d9decc1b7f399e29ff51fdc5a (tree b24c85e7dca2873e84d517d7c4e2615d41b02c9c). Disposition: REVIEW_INCOMPLETE. No blocking changed-source findings remain; corrected-head positive and genuine producer-removal RED are observed. The inherited red Golden contracts gate and current integration qualification still block merge.
The independent review followed the explicit fixture root through source discovery, configuration boundaries, actual predicate production, canonical JSON/SARIF/GitHub renderers and artifact-error projection. All 13 progress symbols, original assertion tokens, eight unaffected test bodies and eight real CLI calls remain. The guarded fixture-local [workspace] stops ancestor configuration lookup. Existing workspace-root cli_smoke coverage remains in place.
- Positive: 37249477670, actual checkout
2ab0d2a: 12,223 passing tests, 2 ordinary skips, all 13 progress cases passing. The nonempty JSON predicate, located SARIF/GitHub finding, byte/quiet behavior and post-analysis artifact failure assertions actually executed. - Removal: 37251245172, actual checkout
bffc2bda1166d515119a1c710681ba5abefc9007, a direct child changing onlyprogress_sinktoNone: canonicalcheck_github_stdout_is_unchanged_by_progressfails atcli_progress.rs:295for missingloading_input [diff]. Its earlier success-status and stdout-equality assertions passed by execution-order evidence; no raw child stdout transcript is retained. Fail-fast executed 8,391/12,223 subjects (8,390 pass/1 fail), leaving 3,832 global subjects and 12 progress siblings unrun. The post-Summary repeat is a failure recap, not another execution or retry. - Timing: baseline 37246574891 at
6487826cversus the corrected positive: the same five cases sum 369.950s to 0.358s. Source/pinned inputs/default command/profile/toolchain match. This single pair on distinct hosted VMs records concurrent test elapsed durations, not CPU, runner-minutes, whole-job/workflow wall savings or a latency envelope.
Baseline and corrected positive both fail the same three error_path_operand_error_lexeme golden surfaces (check.json, human.txt, human-full.txt) after successful tests and doctests. Later fixture-contract and PR-evidence steps are skipped. #6665/#5638 own that prerequisite; this PR does not duplicate or bless it. Refresh normal integration proof and exact-head review after the canonical repair lands. No merge is armed while the required gate is red.
No local Cargo/rustc/build/product execution was used. This is hosted Linux mechanism proof; native Windows, installed human/fresh-agent first-hour acceptance, release readiness and broader #5090 economics remain unqualified.
The premises in UB review 5409188144 were checked against the committed owners:
- Fixture source exists:
repo_fixture_rootwrites both the package manifest and the three-linesrc/lib.rs.DiffFixture::newcalls it before guarded additions. Appending a distinct empty[workspace]after[package]is valid TOML; missing-fixture analysis cannot satisfy the actual changed-file/predicate assertions. riprdoes walk config ancestors:config.rssearches ancestors and stops when the parsed manifest contains a workspace table. The boundary is consumed by the real configuration loader.- JSON deliberately expects the fixture's absolute
src/lib.rspath, including any drive prefix.stable_path_textnormalizes backslashes and escapes reserved percent on both platform branches;display_pathuses that spelling. GitHub/SARIF intentionally use the root-relative location contract. These are distinct format assertions; no non-Unix skip is warranted. Native/unusual-temp-path runtime qualification remains an explicit gap. - The roughly 398-second historical sum belongs to #6301, not run
37247695692. The latter is the first fixture candidate's 0.119s observation. The current corrected-head pair is 369.950s to 0.358s, with the concurrent-duration/VM limitations above. The PR does not describe cargo-test as a late sensor or claim whole-CI savings.
These source-refuted premises require no test weakening or production repair. The independently observed golden/integration blocker remains open.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
EffortlessSteven
left a comment
There was a problem hiding this comment.
Reviewed head: 6e2437dc8135fb78f9e0f1eb6369bda8b6c8da3c, tree 00c86a373e151322a05c14774e5b2474f8f3d425. Disposition: REVIEW_READY for the bounded test/spec leaf and ordinary protected squash. No blocking changed-source, oracle or required-gate findings remain. This author inspection uses a COMMENT event, not a formal approving review.
The root and independent reviewer inspected the complete two-file change (+138/-18), original assertion tokens and all 13 progress symbols; both changed blobs remain byte-identical to mechanism candidate 2ab0d2a. Eight other test bodies and eight real built-CLI calls are retained. The review followed explicit fixture roots into source discovery, actual ancestor configuration lookup, predicate production, progress production and JSON/SARIF/GitHub/artifact projection. The live three-line source matches the valid diff's new side. Fixture-local [workspace] blocks actual configuration and Cargo ancestor lookup; the owned drop guard cleans after child completion/unwind. JSON requires the actual changed predicate, SARIF a located result, GitHub a file-bearing finding, and artifact failure building_output before failed. Empty subjects cannot satisfy these controls. Existing workspace-root smoke workloads remain unchanged.
Current normal qualification: run 37255375535, attempt 1, event pull_request, worker 111591223686. Both reviewers directly read the bounded official log: actual checkout 60e97075775f24436c325c54809091b534f4ec1c, parents [e7fa8d0a,6e2437dc], candidate-matching tree 00c86a373e151322a05c14774e5b2474f8f3d425; 12,227 tests executed/passed, 2 ordinary skips, all 13 progress controls actually PASS. Formatting, policy/evidence/skills/dependency/process/network, workspace/all-target check, strict Clippy, default nextest, doctests, Golden outputs, fixture contracts and PR evidence all SUCCESS. Required Ripr Rust Small Result (111596710509) is SUCCESS. Official log: 2,771,199 bytes, SHA-256 6e57b9a96975ab2006294ce44ec6d728d235bda72a278f33fcc414d7af62b5da. No local Cargo/rustc/build/product execution, filter, retry, runner change or gate reduction was used.
The discriminating historical mechanism receipts are retained separately. Positive 37249477670 actually checked out 2ab0d2a and passed 12,223 tests/2 ordinary skips/all 13 controls. Removal 37251245172 actually checked out direct child bffc2bda1166d515119a1c710681ba5abefc9007, changing only the actual producer's sink argument to None. Its canonical GitHub control fails at cli_progress.rs:295 for missing loading_input [diff] after success-status/stdout-equality preconditions by assertion-order evidence; no child stdout transcript is retained. Fail-fast executed 8,391 of 12,223 selected subjects: 8,390 PASS/1 FAIL, 2 ordinary skips, 3,832 global subjects and 12 progress siblings unrun. The post-Summary failure recap is the same execution, not a retry. This is authentic producer-removal evidence for the unchanged owned test blobs, not a claim that a fresh full negative suite ran on 6e2437dc.
Historical timing is scoped to baseline 6487826c 37246574891 versus 2ab0d2a: five concurrent test elapsed durations sum 369.950s to 0.358s. The historical pair's pinned inputs, production source, default command/profile and Linux toolchain match; distinct hosted VM load/cache state is uncontrolled. No CPU, runner-minute, job/workflow critical-path wall saving or latency envelope is established. Intermediate 8b586523 and #6301 observations remain separate.
The inherited Golden wording failure is resolved by landed #6681, squash e7fa8d0a3285092a8d789db8b4d034ba80446c6f. The ordinary prerequisite merge created 6e2437dc with parents [2ab0d2a,e7fa8d0a], preserving the fixture/spec blobs. Its current normal run qualifies that combined tree and includes successful downstream fixture/PR-evidence stages. Historical failed runs retain their failures; neither old passes nor broader #5638 state substitute for this completed qualification.
Main currentness was independently assessed through 766cb473e7eedea736368736d6caa51f78adfedf: all 19 intervening file patches from #6627/#6611 and all six newer patches from #6678 were inspected. #6627 touches an analyzer owner, but valid Predicate mapping, RA spans/text, "predicate" wire spelling and historical string sort/dedup remain; unknown-kind handling is outside this isolated valid fixture/cache. #6611 changes a separate canonical receipt-presence lifecycle not exercised by these check-format/artifact-error paths. #6678 confines its production change to agent-repair premise inventory and refusal recording/narration, separate from check analysis/progress/output. None changes the fixture/progress/nonempty-output/configuration contracts. This source assessment supports bounded currentness; it does not claim runtime qualification of every later main or eventual squash tree. Fresh remote main/head/policy/thread guards still precede the protected transaction.
Current provider findings and paginated threads were inspected. Exact-head Devin's bare no-issues COMMENT is supporting provider output, not the semantic review. CodeRabbit's template metadata request is reconciled in the published body; its other advisory output is not acceptance. Gemini quota and UB workflow status are not approving reviews. The old UB premises were source-refuted in 5409387065; the same owners/blobs remain. No unresolved review thread remains. Independent semantic source/oracle/official-evidence review supplies the allowed review route; green CI and zero threads alone do not.
Residual limits: hosted Linux mechanism proof only; unusual/native Windows temp-path execution, installed human/fresh-agent first-hour acceptance, package/release readiness and broader #5090 economics are unqualified. No product behavior, schema/status authority, dependency, workflow, protection, credential or publication change comes from this leaf. Rollback is the isolated test/spec patch. Normal expected-head protected squash, landed-patch verification, parent acceptance reconciliation and bounded owned-resource closeout remain the delivery steps.
The five diff-format/artifact-error progress tests currently index this repository's source and tests. Give those output/progress controls a tiny isolated Rust crate and a valid
>to>=diff, while keeping all original assertions and eight realripr checkinvocations. JSON must report the changed predicate, SARIF a located result, and GitHub a file-bearing finding annotation, so empty analysis cannot satisfy the controls. Artifact failure must reachbuilding_outputbefore it projectsfailed.This is the next bounded economics leaf of #5090 after #6301. There is no production, dependency, workflow, gate, schema, status or support-tier change. The five tests' original oracle tokens and all eight other test bodies are preserved. Existing workspace-root sample finding/index tests in
cli_smoke.rsretain their workload and assertions; the worktree, repo, pilot, missing-input and help progress controls are unchanged.The fixture root is shared within each loud/quiet pair, has process/sequence/timestamp isolation and is removed by an owned drop guard. An empty fixture-local
[workspace]stops Cargo workspace and real configuration ancestor lookup even when temporary files are inside the checkout. Its live source matches the complete three-line patch's new side. Above/below-threshold fixture tests intentionally omit equality, leaving a real actionable finding for the annotation surfaces. JSON uses its canonical flattenedprobe.fileandprobe.expressionfields; GitHub/SARIF retain their repository-relative location contracts.2ab0d2a: all 12,223 tests and all 13 progress controls PASS; 2 ordinary skipsloading_input [diff]bffc2bda, run 37251245172: canonical GitHub test actually FAILS atcli_progress.rs:295for missingloading_input [diff]. 8,390 pass/1 fail; 12 progress siblings unrun after fail-fast6487826cversus corrected candidate 37249477670 at2ab0d2a: same 13 progress cases PASS; five summed test elapsed 369.950s to 0.358s6e2437dcnormal run 37255375535 is SUCCESS: actual combined checkout60e97075, candidate-matching tree00c86a37, 12,227 PASS, 2 ordinary skips and all 13 progress controls PASS. Golden/fixture/PR evidence and normalized required Result also PASS. Current-head independent semantic review has no blocking findings; final disposition is recorded in the PR inspectionThe producer-removal child changes only the actual
app::check_with_progresssink argument toNone. Its fixture, tests, assertions and workflow are identical to the positive. Compilation, strict Clippy and policy pass before its intended test failure. The canonical test reaches the preserved missing-stage assertion after both success-status checks and stdout equality; this is execution-order evidence, not a retained child stdout byte transcript. Nextest selected 12,223 subjects but fail-fast executed 8,391 (8,390 pass/1 fail), left 3,832 global subjects unrun, and reported 2 ordinary skips. Only the canonical progress case executed in the control; the other 12 are unrun. Its post-summary failure recap repeats the same test and is not a second execution or retry.Observed local validation:
git diff --check, direct pinned Rust 1.95.0rustfmt --edition 2024 --check, and the private source-only preservation/fixture check pass. No local Cargo, rustc, compilation or product execution was performed. Hosted proof uses the existingRouted Rust Smallroute andcargo nextest run --workspace --profile ci; no runner/workflow changes or gate reductions are proposed.Historical #6301 evidence reports the five concurrent test elapsed durations as 101.737, 99.286, 92.068, 58.644 and 46.886 seconds (sum 398.621). The first fixture candidate
8b586523subsequently passed all 12,223 tests (2 skipped), including all 13 progress controls, in run 37247695692. Its five summed test elapsed durations were 0.119s against this leaf's fresh 369.950s baseline. That observation is historical evidence for8b586523; it does not qualify the corrected[workspace]stimulus. These concurrent durations are not CI wall time, CPU time or a 400-second wall-saving claim. Small worktree/repo/pilot controls exercise different workloads and do not establish this change's speedup. One pair does not promise a latency envelope or overall CI saving.The baseline, historical candidate and corrected candidate all failed Golden output contracts after successful tests and doctests. Official diagnostics show the same inherited
error_path_operand_error_lexemewording drift incheck.json,human.txtandhuman-full.txt, already owned by #6665 and #5638. This PR does not duplicate or bless that repair. The golden failure skips later fixture-contract and PR-evidence steps; passing tests do not make the overall required path green. Those historical runs retain their failed overall conclusions. The exact prerequisite landed in #6681, squashe7fa8d0a3285092a8d789db8b4d034ba80446c6f, changing only the three wording surfaces and fixture changelog. GitHub's cached PR merge still used pre-repaire9c8b211, so an ordinary merge brought this material prerequisite into the existing candidate. Current head6e2437dchas parents2ab0d2aande7fa8d0a; both test/spec blobs are byte-identical to reviewed2ab0d2a. The normal Ready-triggered combined qualification completed successfully at actual60e97075, tree00c86a37. Protected merge still requires the exact published-head REVIEW_READY inspection and current protection/thread state. No administrative bypass, gate reduction or force push is used.Governing contract: RIPR-SPEC-0185. Current integration head:
6e2437dc8135fb78f9e0f1eb6369bda8b6c8da3c; tree00c86a373e151322a05c14774e5b2474f8f3d425; ordinary-merge parents2ab0d2afecce212d9decc1b7f399e29ff51fdc5aand landed maine7fa8d0a3285092a8d789db8b4d034ba80446c6f. Historical mechanism candidate:2ab0d2afecce212d9decc1b7f399e29ff51fdc5a, treeb24c85e7dca2873e84d517d7c4e2615d41b02c9c, full-change base6487826cb1e33c739e8a7264575ec989e4b79f9d. Exact JSON/SARIF/GitHub/fixture assertions and all 13 cases remain unchanged. Actual delta: two files, 138 additions and 18 deletions. Rollback is this isolated test/spec change. No further successor is selected by this PR; #5090 stays open for its broader economics acceptance.Current disposition: authentic
2ab0d2apositive, direct-childbffc2bdaremoval RED and scoped timing remain preserved. Their exact-head inspection remains an honest historical REVIEW_INCOMPLETE record. Current6e2437dchas its own completed normal combined qualification: 12,227 PASS/2 ordinary skips, all 13 progress controls, every required stage and Result SUCCESS. The official worker log is 2,771,199 bytes, SHA-2566e57b9a96975ab2006294ce44ec6d728d235bda72a278f33fcc414d7af62b5da. Current review separately assesses source/currentness and provider findings; UB status, quota notices, zero threads and bare no-issues comments do not substitute for semantic approval. Main subsequently advanced through #6627/#6611/#6678; source review follows the known Predicate representation/wire/sort mappings, separate receipt-lifecycle path and agent-repair premise/refusal path. The latter does not alter check analysis, progress or output consumers. The runtime receipt qualifiese7fa8d0aplus6e2437dc, not every later main or squash tree. No historical pass is promoted into current-head gate success. For the historical6487826cto2ab0d2atiming pair, pinned inputs, production source, default workspace command/profile, Linux route and toolchain match, but distinct hosted VM load/cache state is uncontrolled. The five summed concurrent durations do not measure CPU, runner-minutes or overall workflow/critical-path wall savings. Hosted Linux mechanism evidence does not qualify native Windows, installed human/fresh-agent acceptance, package/release readiness or the broader parent.Swarm / Source Boundary
EffortlessMetrics/ripr-swarm.Source-of-truth Links and Candidate Relationships
test/minimal-progress-fixture-5090, exact published head above. Material prerequisite: landed fix(goldens): align error_path_operand_error_lexeme with the b2f2a2154 observation_unconfirmed sentence #6681. No proposed replacement; test(cli): deduplicate GitHub progress check (#5090) #6301's distinct landed assertion consolidation remains retained.Scope Classification, Support-tier Impact and Policy Impact
Spec-Test-Code Traceability
crates/ripr/tests/cli_progress.rs, all 13 retained controls.Static Language Check and Engineering Check
panic,unwrap,expect,todoorunimplemented. Fixture-only setup usesexpectwith operation context; a no-new-test-expectclaim is not made. RAII cleanup follows child completion/unwind.CI Economics
Gates
git diff --check, pinnedrustfmt --edition 2024 --check, preservation/fixture parsing and symbol inspection.cargo nextest run --workspace --profile ci, doctests, golden outputs, fixture contracts and PR evidence all SUCCESS; required Result SUCCESS.cargo test --workspaceis not substituted for the actual nextest command.cargo doc --workspace --no-deps, package/list/publish commands and editor npm commands: not run by this packet, n/a to the changed surface. No package, publication, editor or native gate is claimed from overall hosted green.