← Back to Pull requests

fix(virtbench): use run-all for FIO result collection #143

Closed
unknown closed this pull request without merging on Oct 29, 2026 15:19 UTC
View on GitHub
unknown unknown commented on Oct 26, 2026 08:31 UTC
Author

Summary


  • Replace the harness FIO split (deploy → VMI Running/IP poll → gather-results) with Virtbench fio --action run-all.

  • Preserve plan collection retry/delay settings and the harness cancellation-safe cleanup defer.

  • Keep existing result collection, p99 parsing, catalog/threshold grading, and reporting unchanged.
  • Evidence


  • The split path reproduced No output collection failures on ocp-edge-112 and TLVBM.

  • Direct Virtbench run-all collected 3/3 results on ocp-edge-112 and Infinidat FC.

  • This branch completed the Infinidat FC harness run with 3/3 FIO results and zero collection errors; the report correctly evaluated both p99 SLAs (4.358 ms read, 4.293 ms write vs. <=3 ms).
  • Validation


  • GOPROXY=off make unittest

  • GOPROXY=off make vet

  • GOPROXY=off make build

  • GOPROXY=off make lint

  • Infinidat FC: 3 VMs, fedora-fc-refresh, infinidat-block-rwx-v3, 8x20s retries; all results collected and graded.
  • Follow-up / limitation


    Virtbench run-all currently has its own 5-minute VM-start limit and does not consume the harness vm_ready_timeout override (the checked-in 40-VM FIO plan uses 1200s). This draft validates the 3-VM certification path; a separate Virtbench timeout improvement should address the larger/slow-start case before treating this as universally merge-ready.

    Summary by Sourcery

    Consolidate FIO execution and result collection through Virtbench run-all while preserving harness cleanup and grading behavior.

    Bug Fixes:

  • Use Virtbench’s complete FIO workflow to improve reliability of VM result collection and avoid split-path collection failures.
  • Enhancements:

  • Preserve configurable collection retries and delays while retaining harness-managed cleanup, result processing, grading, and reporting.

  • Remove the harness-side VM readiness polling and consolidate FIO execution and collection through a single Virtbench action.
  • Tests:

  • Add coverage verifying run-all arguments, collection settings, and cleanup invocation.
  • Diff: 250 lines (+187 / -63) across 3 files Reviewer: tshefi Review duration: 4727m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 250 lines diff across 3 files
    0.39
    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.331
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #143"
    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: 39.0% (MEDIUM) · Higher = larger blast radius
    39.0%
    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.4% · Safe to merge
    15.4%