← Back to Pull requests

OCPBUGS-138157: handle KubeVirt images from multiple streams #1642

Open
unknown opened this pull request with 234 lines diff across 2 files
View on GitHub
unknown unknown commented on Nov 09, 2026 09:20 UTC
Author

Summary

  • Parse named CoreOS boot-image streams while preserving the legacy single-stream fallback.

  • Collect each stream's KubeVirt image and generate deterministic, distinct destinations.

  • During disk-to-mirror, use a legacy archive source only when its cached manifest digest matches the requested stream; never substitute a different stream's image.

  • Add synthetic tests for stream parsing, legacy-archive fallback, digest mismatches, multiple architectures, and delete mode.
  • Fixes OCPBUGS-138157.

    Validation

    Passed: focused release/API tests with race detection, 37 KubeVirt tests, tagged vet, gofmt, lint with no new findings, CGO_ENABLED=0 make build, and make sanity.

    Full repository unit/integration/verify suites, e2e, and a real payload test were not run. This remains a draft pending full validation and CI.

    ---
    AI-generated. Review for accuracy.

    Automated by scheduled task cid_bug_cve_triage (instructions: config/groups/openshift-core/personas/cid_internal/scheduled_tasks/cid_bug_cve_triage.md, run: 5cd4c202568f48f2b612bea3be342bc6, commit: 2cb413a6a)

    Chai persona: CID Assistant (Internal)

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

    Summary by CodeRabbit

    New Features
    Boot image configuration supports named stream collections alongside the existing single-stream format.
    Images can be collected across named streams and architectures, with predictable destination names.
    Bug Fixes
    Duplicate image references are included only once, while legacy single-stream images remain supported.
    Cached images are reused for stream destinations only when their digests match.
    * Invalid stream names and collections without matching KubeVirt images return errors.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 234 lines (+175 / -59) across 2 files Reviewer: redhat-chai-bot Review duration: 1674m
    All Vouch review confidence checks passed
    Residual risk 0.35 = Change Risk (0.65) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.65 · 234 lines diff across 2 files
    0.65
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.327
    Sensitive Paths sensitive_paths
    0.065
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #1642"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% 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: 65.3% (HIGH) · Higher = larger blast radius
    65.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: 46.7% · Lower = rushed or shallow review
    46.7%
    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: 34.8% · Safe to merge
    34.8%