← Back to Pull requests

fix(iuo): treat EUS as CNV upgrade in cnv_upgrade fixture #6375

Closed
unknown closed this pull request without merging on Sep 28, 2026 13:12 UTC
View on GitHub
unknown unknown commented on Sep 22, 2026 12:00 UTC
Author

##### What this PR does / why we need it:

test_nodes_labels_after_upgrade failed every time it ran during EUS upgrades (100% failure rate on builds where test_eus_upgrade_process completed successfully). The cnv_upgrade fixture returned False for --upgrade=eus, so nodes_labels_before_upgrade captured kubevirt.io labels before the upgrade. During EUS, CNV also upgrades across a major version boundary, so ~50 new cpu-feature.node.kubevirt.io/vmx- labels are added and cpu-model-migration.node.kubevirt.io/Opteron_G1 is removed — all expected changes that caused the comparison to fail.

The fix makes cnv_upgrade return True for both cnv and eus upgrades. This causes the fixture to capture non-kubevirt.io labels instead (which must not change during EUS), preserving meaningful test coverage while eliminating the spurious failures.

##### Which issue(s) this PR fixes:

Fixes https://redhat.atlassian.net/browse/CNV-92757

##### Special notes for reviewer:

The failure was masked in earlier EUS builds because test_eus_upgrade_process failed first, causing test_nodes_labels_after_upgrade to be skipped via pytest dependency. Once the EUS upgrade process was fixed and completed successfully, this pre-existing bug was exposed. Historical result when the test actually executed: 2/2 = 100% failure rate.

Root conftest.py line 447 already uses the equivalent in ("cnv", "eus") pattern for a similar guard, confirming this is the right approach.

##### jira-ticket:

CNV-92757

---

![Compound Engineering](https://github.com/EveryInc/compound-engineering-plugin)
!Claude Sonnet 4.6 (1M)

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

Summary by CodeRabbit

Bug Fixes
* Updated upgrade-mode handling so both CNV and EUS modes are evaluated correctly.

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

Diff: 258 lines (+193 / -65) across 3 files Reviewer: RoniKishner Review duration: 8712m
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 · 258 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.332
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #6375"
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.2% (MEDIUM) · Higher = larger blast radius
39.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: 15.5% · Safe to merge
15.5%