fix: make cloud operational help a successful terminal action - #212
fix: make cloud operational help a successful terminal action#212seonghobae wants to merge 18 commits into
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: ✨ Finishing Touches📝 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 headc2863b3e26c0b35fd2f9798b2ed391e8ab74b586. -
Head SHA:
c2863b3e26c0b35fd2f9798b2ed391e8ab74b586 -
Workflow run: 32148571848
-
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["Workflow: test.yml"]
S1 --> I1["GitHub Actions review job"]
I1 --> R1["Review risk: Workflow: test.yml"]
R1 --> V1["actionlint plus required checks"]
Evidence --> S2["Changed file (3 files)"]
S2 --> I2["repository behavior"]
I2 --> R2["Review risk: Changed file (3 files)"]
R2 --> V2["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["Workflow: test.yml"]
S1 --> I1["GitHub Actions review job"]
I1 --> R1["Review risk: Workflow: test.yml"]
R1 --> V1["actionlint plus required checks"]
Evidence --> S2["Changed file (3 files)"]
S2 --> I2["repository behavior"]
I2 --> R2["Review risk: Changed file (3 files)"]
R2 --> V2["required checks"]
|
744b2b4 to
7f1ac61
Compare
|
@OpenCode review current head 7f1ac61. The only failed required check was Strix attempt 1; logs show Caido bootstrap could not connect to 127.0.0.1:48080 after 10 attempts (runner infrastructure), not a repository finding. The exact job rerun is queued as job 96570913837; please reassess this head after its result. |
|
Current head |
|
@OpenCode review current exact head |
Dismissing: this REQUEST_CHANGES was posted against commit c2863b3 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.
7f1ac61 to
2ff8b89
Compare
|
@OpenCode review current exact head |
|
@OpenCode review Independent exact-current-head review requested for SHA 779afa4 after the OAuth CLI contract and dead-entrypoint fixes. Verify changed-file behavior, tests, help/exit semantics, and security boundaries against this SHA only; publish a substantive Reviews API verdict. All prior head evidence is stale. |
|
Exact-head CLI repair |
Purpose
Make
disksage-icloud-sync-healthanddisksage-provider-oauthtreat a sole--help/-has a successful terminal action while preserving invalid-input failure, JSON success purity, and every cloud/OAuth/filesystem authority boundary.Exact current state
c2863b3e26c0b35fd2f9798b2ed391e8ab74b586.main:be418bac9bfbdc8aa41b1a698713833e3dbccfdc..github/workflows/test.yml;src-tauri/src/bin/disksage-icloud-sync-health.rs;src-tauri/src/bin/disksage-provider-oauth.rs;src-tauri/tests/cli_help_health_oauth_exit.rs.Test-first evidence
The process-level RED launched both real feature-gated binaries with HOME removed and proved protected main routed sole help through error behavior instead of a successful terminal path.
The current process contract requires:
--helpand-h=> exit 0, exact stable usage plus one newline on stdout, empty stderr;Narrow implementation
Both binaries now consume host arguments through
std::env::args_os()and convert eachOsStringexplicitly. A sole help flag is recognized before environment or domain execution and prints the existing usage synopsis to stdout. Invalid and non-UTF-8 input maps to each CLI's stable bounded diagnostic rather than interpolating host payloads.No iCloud health probing, database inspection, OAuth authorization/token exchange, connection-store behavior, capacity verification, disconnect behavior, cloud-root discovery, provider sync, or filesystem mutation authority changes.
Exact-head validation
On unchanged head
c2863b3e26c0b35fd2f9798b2ed391e8ab74b586:31871685690— success, including the operational cloud CLI help and non-UTF-8 contracts;31871685569— success across macOS, Ubuntu, and Windows build/stage verification;31871685646— success;31871685670— success.Conditional PR-inapplicable publication or attestation helpers are not represented as passing evidence. Predecessor, status-only, synthetic, or rate-limited evidence does not transfer.
Remaining integration blocker
Feature-local/current-head evidence is green, but repository-wide exact 100% owned-production region/statement-equivalent, branch, function, and line coverage remains materially unsatisfied on canonical owner #156. Ready-for-review status is not merge authorization.
Required before merge
Do not merge unless every applicable live required workflow and current finding passes on the unchanged exact head, every review thread is resolved, fresh protected-main ancestry remains current, the live review ruleset is satisfied, and repository-wide exact 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.