← Back to Pull requests

test: verify migration disk backups and associated InstallPlans #58

Closed
unknown closed this pull request without merging on Oct 07, 2026 15:59 UTC
View on GitHub
unknown unknown commented on Oct 01, 2026 17:35 UTC
Author

Summary

  • Capture associated InstallPlans in disk backups while excluding unrelated plans; keep backup snapshots isolated and files private.

  • Add unit tests for backup contents, optional resources, and filesystem/list failure paths.

  • Add a fixture E2E target for successful backup, non-fatal disk-write failure, and a deletion denial proving files are written before OLMv0 resources are removed. Collect CLI coverage and run the target in fixture CI.

  • Update the migration E2E guide and test plan.
  • PR59 compatibility

    Rebased onto main after PR59. A non-fatal InstallPlan-list failure now emits a typed backup warning with its error attached, so text and JSONL CLI output use the shared progress format. The warning test checks its step, status, and error.

    Validation

  • go test ./migration/... -count=1

  • go test -tags=e2e ./test/e2e/migration -run ^$

  • make lint

  • git diff --check
  • The cluster-backed backup E2E target is wired into CI and compiles locally; it was not run locally after this rebase.

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

    New Features
    Migration backups now include the current InstallPlan and other InstallPlans associated with the installed CSV. Duplicate plans are saved once, while same-name plans from different namespaces are kept separate.
    Bug Fixes
    InstallPlan listing and backup write failures now generate warnings without stopping migration. Backups are written before source resources are deleted.

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 199 lines (+149 / -50) across 2 files Reviewer: nader-ziada Review duration: 8543m
    All Vouch review confidence checks passed
    Residual risk 0.23 = Change Risk (0.59) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.59 · 199 lines diff across 2 files
    0.59
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.317
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.059
    Real PR Conversation Timeline
    1 comments
    "Review active on #58"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 59.3% (MEDIUM) · Higher = larger blast radius
    59.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 23.4% · Safe to merge
    23.4%