Repository navigation
test(cli): bound artifact and navigation smoke fixtures (#5090) - #7424
Conversation
|
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. 🎉 ℹ️ Recent review info
Summary by CodeRabbit
WalkthroughCLI smoke tests now run navigation and artifact-reuse scenarios against a temporary sample workspace. They check finding details and fixture paths, compare fresh and reused explanations without source-specific navigation lines, and verify that a changed discriminator appears in context output and causes a mismatch. ChangesCLI smoke test fixture and artifact reuse
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Other Merge Risk: ⚪ Minimal · up to The changes isolate smoke tests for navigation and artifact reuse without an evidenced production behavior change. No actionable merge blocker is established. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 1 system. Changed systems: Architecture concerns Review details
Pre-merge checks |
|
EffortlessSteven
left a comment
There was a problem hiding this comment.
Accountable exact-published-head review: local source/oracle and Ready-admission qualification earned; REVIEW_INCOMPLETE for merge pending hosted qualification. Reviewed d42541c, integration main6bd224b5ee898092a671cb10a2d2ee66b3609057, local accepted basis008242106199f9fd375275cab5747ee7f7253221.
Independent reviewer inspected the full one-file diff and app/navigation, app/check_artifact, source/packet serde and rendered consumers, then executed22 genuine CLI controls on verified current binary32adb2b5a7902bd80a20440b777319e87806cce709b69cdf3623312b165adfa9. Both-mode valid detail corruption reused successfully and failed full context/explanation parity; omitted ready mode rejected; captured navigation replayed from a decoy, relative mutations refused; empty diff could not satisfy pinned selector. Fixture source independently compiled with both integration tests passing. Every original assertion remains, with explicit nonempty owned error-path detail and permanent valid-artifact mutation control added. All6 final benchmark invocations and all4 canonical Cargo cases passed. The single tail-return Clippy repair is inspected and freshly qualified; oldbaadd receipts remain historical.
Root inspected actual final precommit schema0.2/native0: exact d425/base008, complete one-path change set, all policy and ripr+xtask all-target strict Clippy pass, no skips/limitations. Independently verified check-fast one-path selector and intentional six-gate test-only routing; explicit process policy passed. Final precommit log hashb01c2cb780972f81aaa2ceb4f1fd0b9880e2b1f76c36873756dfb9efceaaa7b2. Independent integration inspection found #7409 helper-only path unengaged and #7420 outside engaged consumers, no conflict/restack need. No production, workflow, gate, schema, dependency, support-tier or public-documentation change. Changelog exemption is recorded in the body.
No blocking source/oracle finding remains. No actionable current review threads at readback; CodeRabbit recent review generated no comments, but its incremental delta is not counted as independent full semantic review. Provider quota/pending output remains missing evidence. Linux-only local proof; current combined-tree hosted execution, native Windows qualification and whole-CI cost savings remain unestablished. This COMMENT records the author's accountable disposition and independent proof, not a GitHub approval or merge admission. Parent retains final merge and resource cleanup.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- include_str!("../examples/sample/example.diff") followed by .replace("crates/ripr/examples/sample/src/lib.rs","src/lib.rs") assumes the sample diff only references that one path. If the canonical example.diff grows additional crate-prefixed paths, the fixture would leak repository paths into the workspace and break the 'fresh foreign replay' assertion without a clear diagnostic. Defensive .contains guard or fixture-diff round-trip check would harden this.
- Drop semantics: SampleDiffFixture::drop calls ignore_remove_dir_all; if a test panics between mkdir and write, partial dirs linger. Existing tests have the same pattern, so not a regression, but fixture leaves no cleanup on early return inside the closure.
Verification questions
- Confirm check_write_artifact_then_explain_and_context_reuse adds a real artifact-detail mutation control: parse artifact JSON, locate the SAMPLE_DIFF_SELECTOR finding, mutate its missing[0] to marker, write back, run context --from, assert marker renders and that context_reuse_matches_fresh now rejects the altered stdout. This converts the prior substring oracle into a round-trip that fails on unpatched producer code if any of the find/replace/serialize steps regress.
- Confirm sAMPLE_DIFF_SELECTOR must match the rebuilt sample fixture's recorded finding id; selector drift silently turns all three tests into tautologies.
- Confirm detail-mutation control depends on context_reuse_matches_fresh actually enforcing whole-context equality; otherwise the mutation could pass undetected.
- Confirm sAMPLE_DIFF_SELECTOR hash literal couples this test to the exact bytes of examples/sample/example.diff.
- Confirm detail-mutation control uses missing[0]; if the sample ever ships zero or only-fake discriminator entries this will NoOp.
Parked follow-ups
- Hardcoded SAMPLE_DIFF_SELECTOR and literal probe expression/owner strings in assert_sample_diff_artifact are not auto-derived from example.diff; if the sample changes its finding identity, these tests will fail loudly, which is the desired discrimination but couples fixtures to a specific hash.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
- cargo-test sensor is scheduled-late (receipt-absent in initial wave). Without that witness, red/green on this exact head is inferred from PR-body claims and PR-thread snapshot, which lack the cargo-test JSON lines.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Disposition of UB review5486305417 at exact head d42541c:
- Additional future sample-diff paths are a non-blocking fixture-maintenance suggestion, not a current leaked-path defect. The committed examples/sample/example.diff has one file, crates/ripr/examples/sample/src/lib.rs, and SampleDiffFixture::new rewrites all occurrences of that path. assert_sample_diff_artifact requires the selected real error-path finding, owner, expression, actual fixture source path and nonempty missing detail; the real emitted navigation commands replay from a foreign checkout. Future sample drift must preserve these contracts or fail; no assertion has been removed.
- The early-return/panic cleanup claim is refuted by ownership. new constructs the RAII value before mkdir/write, so every subsequent ? drops it. The calling test retains the fixture outside its fallible closure; closure return also drops it at function exit, and normal panic unwinding invokes Drop. Drop uses the existing best-effort ignore_remove_dir_all convention. Filesystem removal failure/abort is not guaranteed cleanup, but is not newly introduced and does not show the claimed lack of Drop.
- The permanent mutation is the actual JSON round trip in check_write_artifact_then_explain_and_context_reuse_preserves_detail_and_source_navigation: selected missing.first_mut is mandatory (ok_or_else), write serialized valid JSON, invoke real context --from, require successful exit and rendered marker, then require context_reuse_matches_fresh to return Err. That helper compares the entire parsed packet after removing only witness.explain_command and separately checks --diff/--from source forms. Independent final-head controls also corrupt valid draft/ready artifacts and require both explanation and context comparisons to reject.
- Selector drift cannot silently pass: assert_sample_diff_artifact searches the actual artifact for the literal selector and errors if absent; all selected CLI consumers must succeed. Empty-diff independent controls produce zero findings and selected explain fails. Empty missing detail is rejected before mutation and missing.first_mut errors; there is no no-op branch. The pinned fingerprint depends on sanitized path, family, owner and normalized expression (analysis/probes/ids.rs::compute_fp8), not the exact byte stream of example.diff. Fixed expectations deliberately discriminate source/finding drift.
- The provider's rejected proof intent / initially absent cargo-test sensor is an instrument evidence gap, not a clean review. We do not claim that provider witness exists. The subsequent required job114650091642 has now completed: full native log shows checkout merge b6d1548 containing d425, all14469 tests passed (2 skipped), and the three actual target PASS lines at0.139s/0.100s/0.089s. Independent22 real CLI controls and canonical local Cargo receipts remain separately retained.
No source or oracle repair is warranted by these claims; future-path defensive diagnostics are parked as non-blocking. No inline threads exist to resolve. This is a source-backed COMMENT disposition, not an author approval. Parent retains merge.
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_READY for exact published head d42541c, PR #7424. Parent retains final protected merge; no auto-merge requested.
Independent reviewer completed the full source/oracle pass and final currentness continuation, reading actual precommit-v2, 22 final-head real CLI controls and full hosted logs. All original assertions and real CLI contracts remain; nonempty owned finding, mode/refusal, absolute scope and foreign navigation replay are load-bearing. No blocking source/oracle/platform/integration finding remains. UB5486305417 received source-backed disposition5486473489: RAII-before-setup refutes missing cleanup on ?/return/unwind, fixture future-path guard is non-blocking, selected mutation/full-context equality and failure-on-selector-drift are established. Threads read back empty; provider quota and pending Droid remain missing review, not clean review.
The single earned Ready qualification run38199660940 completed successfully. Worker114650091642 full native log directly shows checkout b6d1548 merging d425 into80094e5b8315ab71dcba73eea70a6274d09527ac; result114657064467 reports GitHub success and intentionally skipped unselected lanes. Workspace/all-target/all-feature checks, strict workspace Clippy and policy pass; nextest 14469passed/2skipped/18slow, execution919.890s after separately reported2m11s test compilation; doctests2passed/1ignored; goldens, wildcard, fixture and corpus gates pass. Actual target times navigation0.139s, artifact0.100s, ready0.089s are hosted observations, separate from controlled local measurements.
PR-evidence phase elapsed389.258s and every generation/check contract passed. It explicitly analyzed base6bd224b5/head d425, distinct from the hosted merge checkout. Individual canonical snapshot status/available fields were not printed; only nextest and wildcard artifacts were uploaded, separate CI artifacts empty. Those statuses are unobserved, and neither timeout nor complete is inferred from duration or contract success. This report visibility gap does not weaken the target CLI oracles or their direct execution proof.
Current-main applicability refreshed to4d0895ba0eab38ea360f6d8ed4b25fb432c25638: #7419 TS classification, #7416 gap-ledger/rerun and #7412 docs/warning changes do not engage these Rust check/explain/context fixtures; sample assets and engaged navigation/artifact owners unchanged. Only two separate rerun-ledger root bindings changed in shared cli_smoke. Source merge-tree succeeds without conflict (tree3f9bf53a35f2de815dc78cff1d4cd78cd20366e2); no latest-main combined execution is claimed.
CI/Windows/Wheel/Security/UB API statuses success; advisory native logs not separately qualified here. Exact local precommit native0, single-file selector and both-package strict Clippy inspected. Changelog exemption remains internal-test-only. No product/gate/workflow/protection change, no whole-CI savings claim, no new benchmark, dispatch, rerun or duplicate qualification. Raw decoded hosted logs, final-state record, compiler/test receipts, measured table and independent review retained under /workspace/5090-cli-proof; clean worktree/head under /workspace/5090-cli-fixtures, task-owned resources preserved for parent verification and post-merge cleanup.
Summary and scope
The three #5090 artifact/navigation smoke tests repeatedly analyze the full
repository to exercise contracts which need only the sample's findings. They now
create isolated, valid
ripr-sampleRust projects using the original source andintegration tests, with only the diff paths rewritten. Every original assertion
and real CLI call remains. Relative initiating scope, absolute printed scope,
foreign-directory replay, non-default ready mode, artifact identity, named mode
refusal and fresh/reused detail remain load-bearing.
The tests additionally bind a real nonempty error-path finding to its source,
owner, expression and discriminator detail. Default reuse compares explanation
detail and includes an actual artifact-detail mutation: CLI reuse succeeds,
renders the marker, and the retained whole-context oracle rejects the difference.
Changelog and documentation disposition
No fragment: internal test-fixture changes have no user behavior, API, output,
configured workflow or public-documentation impact, under docs/CHANGELOG_POLICY.md.
The helper documents fixture/config boundaries; existing named test/spec mappings
remain intact. No product documentation needs updating.
Proof and measurements
Exact head d42541c; one file only.
All 12 baseline/candidate benchmark invocations passed, each selecting exactly
one subject and filtering 439 other cli_smoke tests.
Compile dimensions: baseline no-run test build178.287s after prerequisite
bootstrap/checks; final candidate no-run build31.003s with existing admitted dependencies.
These are different cold/warm compiler states, not a compile-speedup claim.
First/repeat execution rounds do not establish cold filesystem caches.
Canonical Cargo execution passed all three affected tests plus the retained
space/apostrophe navigation replay. Explicit process policy and check-fast passed;
check-fast independently selected the one changed path, ran its six always-run
gates and intentionally skipped five source/fixture categories. Canonical
precommit on firsthead baadd caught Clippy let_and_return after RAII cleanup;
d425 removes only the redundant result binding. Owning-test strict Clippy passed.
The six measurements and22 independent CLI controls were rerun on final d425;
prior baadd evidence remains historical under /workspace/5090-cli-proof/baaddbe5a.
Final canonical precommit passed native0 at exact d425,723.639s; report schema0.2
binds d425/base008, the complete single-file change set, ripr+xtask all-target
strict Clippy, no skips/limitations. Log SHA256
b01c2cb780972f81aaa2ceb4f1fd0b9880e2b1f76c36873756dfb9efceaaa7b2;
precommit JSON SHA256
897c97bd0d9f19180984e10ecc99933268a05924c9cea14cbf645493f5570cc6.
Check-fast intentionally skipped source categories; precommit supplies the complete
policy and owning/reverse-dependent compile proof. Canonical four affected/replay
Cargo subjects and explicit process policy also passed again on final d425.
Independent published-head source/oracle and integration inspection cleared d425
against main6bd224b5: #7409's returned-ledger/inherent-helper path is absent from
this fixture and #7420 does not change engaged consumers. Main cli_smoke,
app/navigation, app/check_artifact and sample assets were unchanged. No restack.
Final published-head disposition: REVIEW_READY at d42541c. The single
required qualification38199660940
completed successfully. Full worker log binds synthetic merge b6d1548 containing
d425 and main80094e5;14469 tests passed,2 skipped; affected tests passed in
0.139/0.100/0.089s. These hosted concurrent observations remain separate from
the controlled local measurements above. Independent final review inspected
native logs, final local reports, fresh reviews and current-main4d0895ba source
applicability; no blocking finding or conflict remains. UB5486305417 received
source-backed disposition5486473489. Parent retains final protected merge.
PR-evidence phase389.258s passed its contracts on base6bd/head d425. Individual
canonical snapshot statuses were not printed or uploaded; they remain unobserved,
not inferred complete or timed_out. Current-main combined execution and pending
Droid review remain unverified; quota remains missing review. CI/Windows/Wheel/
Security/UB API statuses success, advisory native logs not separately qualified.
No additional benchmark, rerun, dispatch, duplicate qualification or merge.
Independent source/oracle review inspected the entire exact-head diff and raw
receipts. A separate reviewer ran22 genuine CLI controls: valid recorded-detail
mutations retain identity, reuse successfully and are detected by both detail
comparisons; omitted ready mode fails; relative navigation mutation fails from a
foreign directory; zero-finding input cannot satisfy the pinned selector. The
same isolated Rust1.95 fixture compiled and passed both integration tests.
Frozen reviewed product binary SHA256
32adb2b5a7902bd80a20440b777319e87806cce709b69cdf3623312b165adfa9;
independent control script SHA256
9729f5f073cdf166a9d66d27ab4e69ec997fc647ae506ac70d381172130f685b.
Raw build/execution/control evidence is retained at
/workspace/5090-cli-proof; hosted qualification passed as recorded above.
Commands: cargo test --locked -p ripr --test cli_smoke --no-run
--message-format=json; direct compiled harness --exact SUBJECT
--test-threads=1 --nocapture; cargo test --locked -p ripr --test cli_smoke
SUBJECT -- --exact --test-threads=1; cargo xtask check-process-policy;
cargo xtask check-fast; cargo xtask precommit.
Pinned Rust1.95.0, unchanged repository dev/test profiles, CARGO_BUILD_JOBS=1 and
one direct test-harness subject at a time. Compilation is logged separately.
Baseline and candidate each execute only these same three subjects first/repeat;
OS caches are not flushed and every candidate invocation creates a fresh fixture.
Historical concurrent job durations motivate the work, not a controlled comparator
or additive CI savings estimate. No full-suite benchmark is launched.
Claim boundary and rollback
Only bounded local execution cost and preservation of these CLI oracles may be
claimed. Whole-workflow latency, runner-minute savings, Windows qualification and
release readiness are unestablished. Revert this one-file change to restore the
prior fixtures. Parent retains final merge and post-merge cleanup.
Required qualification uses the existing single Draft-to-Ready transition after
earned local/source qualification; no duplicate/manual broad run or bypass.
Resource ownership
This task owns /workspace/5090-cli-fixtures (branch/worktree/target) and
/workspace/5090-cli-proof (395MiB compact receipts and two distinct frozen
candidate witnesses). Baseline is bound by immutable008 Git source, build/artifact
receipts and raw execution logs; priorbaadd and finald425 proof remain distinct.
No local task command remains active after session63041 native0. Target13GiB and
proof395MiB stay retained for parent qualification/merge and verified cleanup;
shared original checkout, target and toolchain remain outside cleanup ownership.
Observed17GiB free exceeds the preserved10GiB reserve; no global purge. Parent
retains merge and subsequent task-resource disposition.
Landed delivery and storage closeout
User merged exact qualified d425 as b54f0ae at2026-10-12T07:23:09Z.
Native landed-tree comparison matches qualified patch composition exactly;
stable patch ID0467209e98fd7684a88548c91841471c45cf2e33 matches both changes.
Task-only inactive worktree/targets/local branch released after verified restore
archive/bundle, reports and unique witnesses were retained. Released allocation
13,853,442,048 bytes; observed free-space gain13,854,875,648 bytes.
Canonical checkout/common Git store/shared dependencies/toolchain untouched.
Proof/restore instructions remain /workspace/5090-cli-proof/restore/RESTORE.md;
exact cleanup-receipt.json retained. #5090 parent economics work remains open.