fix: make duplicate-audit help a successful terminal action - #208
Conversation
|
Warning Review limit reachedNext included review available in 49 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthrough중복 감사 CLI가 OS 인자를 원본 형태로 처리합니다. 비UTF-8 경로를 허용하고 숫자 인자의 변환 실패를 오류로 반환합니다. 도움말, 런타임 실행, 오류 출력, 프라이빗 출력의 JSON 계약과 파일 권한을 통합 테스트로 검증합니다. Changes중복 감사 CLI
Estimated code review effort: 3 (Moderate) | ~25 minutes Merge Risk: 🟡 Moderate · up to The CLI help behavior change is localized, but the pull request is not merge-ready while the required test, release, security, and static-analysis checks remain queued; merge should wait for successful exact-head results. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai review |
|
There was a problem hiding this comment.
Pull request overview
OpenCode cannot approve yet because required coverage evidence did not pass.
Review outcome
1. HIGH .github/workflows/opencode-review.yml:1 - Coverage evidence did not prove required test/docstring evidence
-
Problem: The required coverage-evidence job result was
failure, so OpenCode cannot establish approval sufficiency for this head. -
Root cause: Automated approval is only valid when the same-head coverage-evidence job proves supported repository test suites passed and configured docstring gates passed or were advisory, or reports not applicable because no supported source files or package manifests exist. Missing, failed, skipped, unavailable, or unsupported-tooling test evidence is a blocker.
-
Fix: Install or configure the repository test/docstring evidence tooling when source files or package manifests exist, rerun the current-head coverage-evidence job, and approve only after it reports
successwith required evidence or explicit no-source not-applicable evidence. -
Regression test: Keep the approval branch checking
needs.coverage-evidence.result == successbefore posting APPROVE, and publish REQUEST_CHANGES when coverage-evidence blocker states such as cancelled, skipped, failed, unsupported-tooling, or below-100 evidence are present. -
Result: REQUEST_CHANGES
-
Reason: coverage-evidence result was
failure, so required test/docstring evidence was not proven for current headf63c0533b566aa32db307fe2d49cf512d08d879b. -
Head SHA:
f63c0533b566aa32db307fe2d49cf512d08d879b -
Workflow run: 32132454745
-
Workflow attempt: 1
Coverage evidence
Coverage Decision
- Result: FAIL
- Test evidence: not proven passing
- Docstring evidence: not proven passing when configured
- Failure count: 1
Changed-File Evidence Map
flowchart LR
PR["PR changed files"] --> Evidence["OpenCode bounded evidence"]
Evidence --> S1["Changed file (2 files)"]
S1 --> I1["repository behavior"]
I1 --> R1["Review risk: Changed file (2 files)"]
R1 --> V1["required checks"]
OpenCode Review Overview
Pull request overviewOpenCode cannot approve yet because required coverage evidence did not pass. Review outcome1. HIGH .github/workflows/opencode-review.yml:1 - Coverage evidence did not prove required test/docstring evidence
Coverage evidenceCoverage Decision
Changed-File Evidence Mapflowchart LR
PR["PR changed files"] --> Evidence["OpenCode bounded evidence"]
Evidence --> S1["Changed file (2 files)"]
S1 --> I1["repository behavior"]
I1 --> R1["Review risk: Changed file (2 files)"]
R1 --> V1["required checks"]
|
There was a problem hiding this comment.
Pull request overview
OpenCode cannot approve yet because required coverage evidence did not pass.
Review outcome
1. HIGH .github/workflows/opencode-review.yml:1 - Coverage evidence did not prove required test/docstring evidence
-
Problem: The required coverage-evidence job result was
failure, so OpenCode cannot establish approval sufficiency for this head. -
Root cause: Automated approval is only valid when the same-head coverage-evidence job proves supported repository test suites passed and configured docstring gates passed or were advisory, or reports not applicable because no supported source files or package manifests exist. Missing, failed, skipped, unavailable, or unsupported-tooling test evidence is a blocker.
-
Fix: Install or configure the repository test/docstring evidence tooling when source files or package manifests exist, rerun the current-head coverage-evidence job, and approve only after it reports
successwith required evidence or explicit no-source not-applicable evidence. -
Regression test: Keep the approval branch checking
needs.coverage-evidence.result == successbefore posting APPROVE, and publish REQUEST_CHANGES when coverage-evidence blocker states such as cancelled, skipped, failed, unsupported-tooling, or below-100 evidence are present. -
Result: REQUEST_CHANGES
-
Reason: coverage-evidence result was
failure, so required test/docstring evidence was not proven for current headf63c0533b566aa32db307fe2d49cf512d08d879b. -
Head SHA:
f63c0533b566aa32db307fe2d49cf512d08d879b -
Workflow run: 32138827759
-
Workflow attempt: 1
Coverage evidence
Coverage Decision
- Result: FAIL
- Test evidence: not proven passing
- Docstring evidence: not proven passing when configured
- Failure count: 1
Changed-File Evidence Map
flowchart LR
PR["PR changed files"] --> Evidence["OpenCode bounded evidence"]
Evidence --> S1["Changed file (2 files)"]
S1 --> I1["repository behavior"]
I1 --> R1["Review risk: Changed file (2 files)"]
R1 --> V1["required checks"]
Dismissing: this REQUEST_CHANGES was posted against commit f63c053 where coverage-evidence failed. The PR's current head has coverage-evidence passing (verified via gh pr checks). No unresolved review threads remain. Re-request review to re-validate.
Pull request was converted to draft
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Pull request was converted to draft
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Pull request was converted to draft
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Purpose
Make
disksage-duplicate-audittreat a sole--help/-has a successful terminal action while preserving exact-duplicate discovery, bounded argument validation, private evidence publication, integrity validation, filesystem-read authority, and create-new evidence semantics.Exact current state
7eb7c7f50eaef0aadff66351e871cc9af208dcb8main:93aa7477629753187da101a8af0e7276480f1a86src-tauri/src/bin/disksage-duplicate-audit.rsplussrc-tauri/tests/duplicate_audit_help_exit.rs32319389359, Release32319389333, Security Scan32319389374, and SAST Semgrep32319389332are queued and therefore non-passingTest-first implementation
The original RED process regression launches the real feature-gated binary. The implementation:
std::env::args_os();duplicate-audit-argument-invalidinstead of panicking;Duplicate scanning, bounds, report integrity, private create-new evidence publication, root/path admission, JSON success output, and filesystem-read authority are unchanged.
Integration dependency
Canonical coverage/release-evidence owner #156 now consumes this exact head by merge ancestry rather than duplicating the implementation. That is required because #156's corrected Release smoke now rejects nonzero or stderr-emitting
--helpbehavior instead of masking it with2>&1 || true.Historical successful workflows on predecessor
f63c0533b566aa32db307fe2d49cf512d08d879bdo not transfer. Earlier OpenCode REQUEST_CHANGES reviews are also anchored to that predecessor and its failed coverage-evidence result; they must be re-evaluated on this new exact head.Required before merge
Do not merge unless the unchanged exact head satisfies every applicable live required workflow and current finding, every review thread is resolved, protected-main ancestry remains current, the live review ruleset is satisfied, and repository-wide exact 100% owned-production region/statement-equivalent, branch, function, and line coverage is proven without exclusions or threshold weakening. Pending, queued, skipped-required, neutral-required, failed, stale, predecessor, synthetic, diagnostic-only, status-only, model-only, rate-limited, or infrastructure-only evidence is non-passing.
Summary by CodeRabbit
버그 수정
테스트