← Back to Pull requests

[Storage] Add CBT multi-incremental and multi-disk backup tests #6047

Closed
unknown closed this pull request without merging on Sep 08, 2026 17:52 UTC
View on GitHub
unknown unknown commented on Aug 19, 2026 11:40 UTC
Author

Implement TestMultipleIncrementalBackups and TestMultipleDiskBackup backup-success tests, replacing their STD placeholders.

##### What this PR does / why we need it:
Add backup-success coverage for sequential incremental backup chains and multi-disk VMs in both push and pull modes.

  • Add completed_push_backup_chain and ready_pull_backup_chain fixtures that perform a full backup followed by a configurable number of incremental backups, and use them (with incremental_count 0 or 1) in place of the now-removed single-purpose full/incremental fixtures.

  • Extend vm_with_cbt_label with an optional data_disk_count to attach and write test data to additional blank data disks before first boot.

  • Fix backup/staging PVC sizing to sum every VM dataVolumeTemplate instead of only the boot disk, so multi-disk VMs get correctly sized PVCs.

  • Add use_sudo to write_file_via_ssh for writing to guest paths (e.g. raw block devices) the unprivileged SSH user cannot access directly.
  • ##### Which issue(s) this PR fixes:

    ##### Special notes for reviewer:
    These tests are scoped to backup success (includedVolumes / type). The STP uses restore only as a QE integrity check, not as a product feature (known limitation: there is no restore API). Restore-based integrity validation for the implemented P0 scenarios is intentionally excluded from this PR and remains covered by remaining STD placeholders in the same file (Windows, hotplug, concurrent, live-migration). Follow-up tracking: https://redhat.atlassian.net/browse/CNV-61552

    ##### jira-ticket:
    https://issues.redhat.com/browse/CNV-61530

    Assisted-by: Claude Sonnet 5 <noreply@anthropic.com>

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

    Summary by CodeRabbit

    Tests
    Expanded CBT backup coverage for sequential incremental chains and virtual machines with multiple data disks.
    Added validation for backup status, included volumes, backup types, boot-disk handling, and export readiness.
    Added support for configurable blank data disks, generated incremental test data, and VM-wide storage sizing.
    Replaced placeholder restore checks with executable backup-success validation.

    Chores
    * Improved test file-writing support with optional elevated permissions and safer content handling.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 297 lines (+222 / -75) across 3 files Reviewer: dalia-frank Review duration: 29171m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 297 lines diff across 3 files
    0.40
    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.341
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #6047"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    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: 40% (MEDIUM) · Higher = larger blast radius
    40%
    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: 15.8% · Safe to merge
    15.8%