← Back to Pull requests

net, kmp: wait for interface status in running_vm fixtures #7084

Open
unknown opened this pull request with 249 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 29, 2026 16:03 UTC
Author

Fix flakiness of TestKMPConnectivity bridged-interface tests, which
failed while secondary-network connectivity was still converging after
VM start. The setup now waits until the guest agent reports every VM
interface in the VMI status (the masquerade interface and each secondary
bridged interface with its expected IP address) before yielding the VM.

NOTE: wait_for_ifaces_status (libs/net/vmspec.py) cannot be reused
here: it consumes the typed libs.vm.vm.BaseVirtualMachine spec API
(vm.template_spec), while the KMP suite builds its VMs with the legacy
dict-based VirtualMachineForTests. A feature-local helper built on
lookup_iface_status (which accepts any ocp_resources VirtualMachine) is
therefore used instead.

Assisted-by: PI (rits/zai-org/glm-5-3) <noreply@pi.dev>

##### What this PR does / why we need it:
To rule-out KubeMacPool product issues on slower environments.

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

##### Special notes for reviewer:
This fix is inspired by the fix to a similar issue in the nmstate restart test.
##### jira-ticket:
<!-- full-ticket-url needs to be provided. This would add a link to the pull request to the jira and close it when the pull request is merged
If the task is not tracked by a Jira ticket, just write "NONE".
-->

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

Summary by CodeRabbit

Bug Fixes
Missing virtual machine interface status is now reported with clearer context, including the VM and interface involved.
Tests
Network test setup waits for virtual machines’ default and configured secondary interfaces to report their expected IP addresses before continuing, helping ensure network connectivity is ready before tests proceed.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Diff: 249 lines (+186 / -63) across 3 files Reviewer: RamLavi Review duration: 3254m
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.39) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 249 lines diff across 3 files
0.39
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.330
Real PR Conversation Timeline
1 comments
"Review active on #7084"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 46.7% 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: 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: 20.8% · Safe to merge
20.8%