fix: make audit CLI help successful and bounded - #215
Conversation
|
Warning Review limit reachedNext included review available in 35 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 (3)
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 head05569ea9fe0cab608a37b268c78a81e047f5d991. -
Head SHA:
05569ea9fe0cab608a37b268c78a81e047f5d991 -
Workflow run: 32148583820
-
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 (3 files)"]
S1 --> I1["repository behavior"]
I1 --> R1["Review risk: Changed file (3 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 (3 files)"]
S1 --> I1["repository behavior"]
I1 --> R1["Review risk: Changed file (3 files)"]
R1 --> V1["required checks"]
|
05569ea to
931bdd0
Compare
|
Current head |
|
@OpenCode review current exact head |
…espace-v1' into HEAD
Purpose
Advance issue #210 with one bounded audit-oriented CLI batch: make
disksage-multipart-archive-auditanddisksage-incomplete-download-auditexpose a sole--help/-has a successful terminal action while keeping invalid input non-zero and preventing opaque argument payloads from being reflected in diagnostics.Exact current state
b1bfb158a88947a43a608163d625768fb197d615.main:be418bac9bfbdc8aa41b1a698713833e3dbccfdc.src-tauri/src/bin/disksage-incomplete-download-audit.rs;src-tauri/src/bin/disksage-multipart-archive-audit.rs;src-tauri/tests/cli_help_audit_batch_exit.rs.Test-first history and RCA
cb6b03c1b4aff843148bc85ab88f36b3233606c3first added the process-level contract.9a8d67cd6e81bdce2ca241146db407236c261abfrepaired the harness to build the real audit CLIs with the required feature set before launching them.--help/-hto exit 0 with stable usage on stdout and empty stderr; unknown and mixed help/invalid invocations remain non-zero and may not reflect an opaque payload.3b0bffd26b770f99b7bf02bc0721c229e84e6627implements the incomplete-download audit remedy.b1bfb158a88947a43a608163d625768fb197d615implements the multipart-archive audit remedy.Both production changes are deliberately narrow: only sole help becomes a successful terminal action and unknown-argument diagnostics become bounded. Existing audit limits, path admission, archive/incomplete-download inspection, private create-new evidence behavior, filesystem-read authority, and normal JSON stdout behavior remain unchanged.
Current exact-head validation
On unchanged exact head
b1bfb158a88947a43a608163d625768fb197d615:31739193059— completed successfully;31739193071— completed successfully;31739193110— completed successfully;31739193141— completed successfully.A fresh
@coderabbitai reviewrequest was issued on the unchanged exact head. CodeRabbit currently reports its review limit rather than a substantive review, finding, or approval. Rate-limited review evidence is not treated as passing.Scope / non-duplication
This line owns only the two audit CLI implementations and their focused process contract. Repository-wide exact production coverage remains owned by #156 and canonical acquisition documentation by #149; neither lane is raced here.
disksage-volume-snapshotis not included because protected main already models its help path as a successful terminal action with bounded unknown-argument behavior.Required before merge
Do not merge unless the unchanged exact head satisfies every applicable live required workflow and current finding, all review threads are resolved, fresh live-base/ancestry evidence remains current, and repository-wide exact 100% owned-production statement/branch/function/line coverage is satisfied 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 not passing.