Repository navigation
fix(check): preserve artifacts on unsupported input (#8212) - #8230
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
WalkthroughThe check command now writes a requested artifact only after a successful analysis outcome. Unsupported input still produces an incomplete report and direct-input navigation. CLI tests and documentation cover destination preservation and unchanged valid and advisory partial artifact behavior. ChangesUnsupported check artifact publication
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~12 minutes Change: Bug fix · Severity of issue fixed: Low Merge Risk: ⚪ Minimal · up to
|
|
Independent published-head inspection: no actionable findings emitted. Disposition: REVIEW_INCOMPLETE for merge; no blocking source/oracle defect found in this bounded repair. Reviewed head Observed independently on Linux/Bash, Rust 1.95.0, default features:
The same Current composition inspected: clean merge-tree Evidence retained in this review environment: Residuals: no native Windows run or full hosted/package/merge qualification. Observed the associated CI Rust-only job's test step succeed; skipped lanes do not establish their coverage. No source, PR state, policy or CI changes requested by this review. |
|
Ready-admission receipt for unchanged head Admission verifier Owner exact-head check-fast and precommit passed, with complete eight-path selection, selected strict Clippy obligations and no skipped precommit obligations. Current CodeRabbit review reports no actionable comments; its docstring percentage is a non-required advisory, not an identified contract failure. Gemini quota remains missing provider review. No inline review threads or new material finding/hold was found. Actual GitHub merge ref independently read: efcd0a0860cfac7ce70e2956673325f996be7e62, parents current main Live configured required context remains Parent-authorized disposition supersedes the delivery handoff's Keep Draft instruction for this PR: request normal Ready-triggered qualification once, without manual dispatch or retries. REVIEW_INCOMPLETE remains for later hosted/integration qualification, not incomplete substantive review. After Ready verify actual Rust job checkout/parents/tree and monitor the single required run. No REVIEW_READY, merge, release or protection bypass is claimed. |
|
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
- No test pins stderr substring as anchored at line start; a stderr formatter change could silently drop the 'unsupported_input' marker while tests still pass on stdout parity alone. Minor oracle brittleness, not a behavior regression.
Verification questions
- Confirm stderr substring 'unsupported_input' oracle may be too narrow; library could emit a different rendered message and still exit 2.
- Confirm outcome=='unknown_input' or other non-unsupported failure outcome is not exercised at the artifact-write gate; only 'unsupported_input' is enumerated in the source filter.
- Confirm three new regression tests cover garbage/truncated/mixed x new/sentinel/absent-parent + valid preservation + partial advisory reuse. Symlink and directory destinations are NOT covered in this PR. The PR body references a 9-case frozen-CLI challenge but no automated test pins those cases; subsequent fix to that surface is unanchored.
Refuted
- Changing analysis_outcome_exit_result? to outcome_exit? could diverge machine output for non-unsupported outcomes because the helper is now called twice in the same fn.; refuted because: Helper is pure: it depends only on analysis_outcome; second call site replaces the first and yields identical behavior for every non-unsupported outcome. No new allocation, no ordering change.
Parked follow-ups
- Spec claims existing valid/partial write and reuse behavior unchanged, but this PR does not add a focused unit/clippy gate ensuring the reusable_artifact binding is not silently inverted to Some(_) again. Refactor risk is asymmetric given the gate is a single boolean binding at one call site.
|
Returning to Draft: required run 38863530464, attempt 1 failed PR evidence because its Actual hosted checkout and reusable workflow: Failure diagnostic artifact, SHA256 |
Merge convergence blocked: required check fails on an inherited analyzer hang (issue #8255)
This is deterministic, not runner noise, and not caused by this PR's changes:
Full probe table and reproduction commands: #8255. What is needed to land this PR: an |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
Summary
ripr check --write-artifactwrote or replaced a reusable v1 artifact even when malformed diff input producedunsupported_inputand exit 2.context --fromcould then accept those findings without the producer's failure limitation. Use the existing outcome-to-exit decision to suppress that publication and keep direct-input drill-in commands in the original incomplete report.Closes #8212. Valid and advisory partial writes/reuse retain their existing behavior. IDs, schema, analyzer, artifact loader, and admission policy do not change. Older v1 artifacts cannot identify their producing outcome; regenerate them if that history is unknown.
Scope and relationships
Ordinary product repair in
EffortlessMetrics/ripr-swarm, one behavior owned bycli/commands/check.rs. No stack or replacement; #7887 baseline parsing, #8193 discovery assertions, and #8201 native output sets remain separate. Scope is the CLI publication boundary and its regressions/docs/traceability, with no workflow, dependency, permission, release, or validator-policy change.Spec: RIPR-SPEC-0140. Changelog:
changelog.d/8212-unsupported-check-artifact.md, checked againstchangelog.d/README.md: Fixed marker,-bullet, trailing (#8212). Rollback is this bounded source/test/spec slice.Acceptance and proof
New native CLI controls cover garbage, truncated hunk and mixed input; exact stdout/stderr parity with ordinary unsupported check; new destinations, absent parents and existing sentinel preservation; downstream refusal for an absent artifact; preserved valid artifact/context; successful valid and advisory partial writes/reuse.
Exact source: head
7e7c526c2ebcaf336855feec292d4c4d02aa2446, tree0fe69785067d6a5e68904b6fdd512a94c977dde2, based08c77d144c016078364fcc1fcf2fa593d21cefc. Linux/Bash, Rust/Cargo 1.95.0, default features, one Cargo job, incremental disabled, dev/test debug info disabled. The root's admitted generation budget was 12 GiB additional growth with an 8 GiB reserve; recorded free-space observations stayed above that reserve.All five commands above exited 0. Committed-head check-fast passed 14 gates, including actual workspace/all-target strict Clippy exit 0; fixture contracts were its one skipped gate. The independently resolved eight-path selector and merge base match the report. Committed-head runtime controls passed 26/26 artifact tests (including the three new regressions) and 4/4 unsupported-exit tests. Precommit v2 reports pass for this exact head/base, a complete eight-path inventory, both selected strict Clippy obligations (
ripr --all-targets,xtask --all-targets), no skipped obligations and no limitations. Its policy aggregate also passed fixture contracts. Capability-check output retains historical reference disagreements; no fresh efficacy run is claimed.Precommit structured report digest:
sha256:ee9919cf7d2c780056e78d65d5edc721e80286fbd1f2df3dee93ea895a8a1d14; JSON file SHA256:36a9cc51fef43b8af1dc4f6f4a43014fbd881403c59a195dc2d1e63d7b3991b7.Unchanged-base worktree doctor, six applicable check-fast gates (zero paths independently verified against identical main/base), and
cargo check --locked -p ripr --all-targetspassed before mutation. Candidate proof is not relabelled baseline proof or full hosted qualification.The unchanged-base regression run reached the real producer: 1 control passed / 2 intended failures at artifact creation and replacement. An earlier test-wrapper return-type mismatch was a compile/setup error and is not counted as behavioral red evidence.
Claim boundary and continuation
This prevents new unsupported-input artifact publication; it does not retrospectively classify old v1 artifacts or promote artifacts into gate/proof evidence. No support-tier change. No full workspace/golden/package/release matrix or native Windows execution is claimed unless listed in the final receipts.
Independent review before publication inspected all eight committed files, the sole writer and navigation consumers, outcome authority, schema/legacy limitations, and the raw red/green receipts. It found no blocking source/oracle defect. Its independent frozen-CLI challenge passed nine cases: human/human-full/JSON × symlink/directory/nonexistent destination, each preserving bytes and direct-input navigation with exit 2. Skipping only the writer would fail navigation parity; blocking every incomplete result would fail the partial-input control. Disposition: REVIEW_INCOMPLETE for merge, no source blocker to Draft publication after local gates.
Frozen exact-head binary SHA256
ecaaf606b2f645d0aa83e199e8306c0b96d2752513f6ae92e61e8b2c7e9f721d;--versionidentifies the head above. Retained local receipts (not uploaded hosted artifacts):/workspace/scratch/json-failure-audit/,/tmp/json-artifact-*.log, and/tmp/ripr-artifact-review-6k05_k14/review-results.json. Original audit witness and bundle remain distinct retained baseline evidence.Publication recheck: no equivalent all-state claim PR found. Current main
e660a99480dc13a4ed93b131042d11506fd484b6adds #8161 oracle-row/hidden-finding rendering and #8164 first-run help; neither changes this owner, outcome helper, loader or navigation. Independent review inspected the delta: the one-finding/no-related-tests controls remain applicable. A clean local merge-tree produces tree68a1faad8987d73c1a71201d2b301ab02c9afdc9; this is composition inspection, not combined-tree execution or qualification. The receipts above retain their original d08 basis. No behind-only restack or repeated qualification was performed.Keep Draft. No Ready transition or explicit hosted-CI request. Parent owns later current published-head review, hosted/integration judgment and any protected incorporation; no merge-readiness claim.