← Back to Pull requests

[cnv-4.22] Correct bot conflict resolution for clone-sourcer backport (#6820) #6821

Closed
unknown closed this pull request without merging on Nov 11, 2026 16:58 UTC
View on GitHub
unknown unknown commented on Nov 05, 2026 10:17 UTC
Author

##### What this PR does / why we need it:
Corrects the AI conflict resolution in https://github.com/RedHatQE/openshift-virtualization-tests/pull/6820 for cnv-4.22.

  • Adds CDI_CLONE_SOURCER_CLUSTER_ROLE to this branch's flat utilities/constants.py and keeps the source PR's RoleBinding behavior.

  • Removes the bot-added utilities/constants/storage.py, which belongs to main's split constants layout.

  • Restores latest_windows_data_source in the instance-type fixture. The original main PR only reformatted that fixture's signature; the bot changed its DataSource behavior.
  • ##### Which issue(s) this PR fixes:
    Supporting correction for https://redhat.atlassian.net/browse/CNV-96371. The release backport remains PR #6820.

    ##### Special notes for reviewer:
    Original main PR: https://github.com/RedHatQE/openshift-virtualization-tests/pull/6195

    The complete backport diff against cnv-4.22 changes only tests/fixtures/images/validation_os_images.py and utilities/constants.py once this correction is merged into PR #6820.

    The applicable pre-commit hooks and gitlint passed. Cluster tests were not run because no cluster is available. PR #6820 still needs its release Jira metadata corrected by a maintainer; this account cannot edit the bot-owned PR.

    ##### jira-ticket:
    NONE

    This supporting PR targets the bot's branch. Merging it should not close CNV-96371; PR #6820 is the release PR that will eventually target cnv-4.22.

    <details>
    <summary>Original main PR description</summary>

    ##### What this PR does / why we need it:
    From QE Storage lead I got comment it may be better to have more granular permissions: "view" + "cdi.kubevirt.io:clone-sourcer", as this is what we will recommend to customers. It would be good to have the same in the tests.

    Granular built-in ClusterRoles that together grant the least-privilege permissions to clone
    golden images across namespaces (the combination recommended to customers): read access to the
    source images (`view) plus permission to clone from the source PVCs (cdi.kubevirt.io:clone-source`).

    ##### Which issue(s) this PR fixes:
    CNV-96366

    ##### Special notes for reviewer:
    Co-Authored: Opus 4.8 <noreply@anthropic.com>

    ##### jira-ticket:
    NONE

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

    Summary by CodeRabbit

    Chores
    Updated validation environment access and resource lookups for Windows image testing.
    * No user-facing functionality changes.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    </details>

    ---
    _Generated by Codex · Agents: primary (/root) · Skills: backport-cnv-tests · Models: gpt-6-sol_

    Diff: 337 lines (+252 / -85) across 4 files Reviewer: RoniKishner Review duration: 9040m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 337 lines diff across 4 files
    0.42
    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.348
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #6821"
    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: 42.2% (MEDIUM) · Higher = larger blast radius
    42.2%
    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: 16.7% · Safe to merge
    16.7%