net, kmp: wait for interface status in running_vm fixtures #7084
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
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
RamLavi
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 reusedhere: 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 -->