fix(iuo): treat EUS as CNV upgrade in cnv_upgrade fixture #6375
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
RoniKishner
##### What this PR does / why we need it:
test_nodes_labels_after_upgradefailed every time it ran during EUS upgrades (100% failure rate on builds wheretest_eus_upgrade_processcompleted successfully). Thecnv_upgradefixture returnedFalsefor--upgrade=eus, sonodes_labels_before_upgradecapturedkubevirt.iolabels before the upgrade. During EUS, CNV also upgrades across a major version boundary, so ~50 newcpu-feature.node.kubevirt.io/vmx-labels are added andcpu-model-migration.node.kubevirt.io/Opteron_G1is removed — all expected changes that caused the comparison to fail.The fix makes
cnv_upgradereturnTruefor bothcnvandeusupgrades. 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_processfailed first, causingtest_nodes_labels_after_upgradeto 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.pyline 447 already uses the equivalentin ("cnv", "eus")pattern for a similar guard, confirming this is the right approach.##### jira-ticket:
CNV-92757
---

!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 -->