system-tests: update sriov-pod-level-bond.go for IPv6 single stack#1345
system-tests: update sriov-pod-level-bond.go for IPv6 single stack#1345yprokule merged 3 commits intorh-ecosystem-edge:mainfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughConsolidates pod-level bond test orchestration and TCP verification in one file; enforces IPv4/IPv6 per-family IP/mask consistency; builds Multus IP requests only for configured families; selects a single failover target IP (IPv4-preferred); and fixes several log/error message texts. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (1)
tests/system-tests/rdscore/internal/rdscorecommon/sriov-pod-level-bond.go (1)
1329-1341: FailovertargetIPselection reads well; minor nit on dead code.IPv4-first preference with a clear failure when neither family is configured is the right behavior for single-stack and dual-stack configs alike. Nit:
Fail(...)panics, so the trailingreturnon line 1340 is unreachable — harmless but you can drop it if you want to match the style used elsewhere.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@tests/system-tests/rdscore/internal/rdscorecommon/sriov-pod-level-bond.go` around lines 1329 - 1341, The switch that selects targetIP (using RDSCoreConfig.PodLevelBondDeploymentTwoIPv4 and PodLevelBondDeploymentTwoIPv6) calls Fail(...) on the default branch which panics, making the subsequent "return" unreachable; remove the trailing "return" after the Fail(...) in the default branch to eliminate the dead code and match surrounding style while keeping the IPv4/IPv6 selection logic intact.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@tests/system-tests/rdscore/internal/rdscorecommon/sriov-pod-level-bond.go`:
- Around line 1118-1122: The By description for the IPv6 server→client test is
wrong; update the call to expectTCPPass(serverPodObj, clientIPv6, ...) so the
human-readable step string reads "Send data from the server container to the
IPv6 address used by the client container" (matching the IPv4 counterpart) to
accurately reflect the direction being tested.
- Around line 1267-1270: The doc comment for
VerifyPodLevelBondWorkloadsOnSameNodeSamePF is incorrect: it says "different
PFs" while the function calls runPodLevelBondTopologyCase(true, true) which is
same node, same PF; update the comment above the
VerifyPodLevelBondWorkloadsOnSameNodeSamePF function to accurately describe that
it verifies TCP traffic on the same node and the same PF (or otherwise match the
boolean arguments passed to runPodLevelBondTopologyCase), leaving the function
name and call unchanged.
---
Nitpick comments:
In `@tests/system-tests/rdscore/internal/rdscorecommon/sriov-pod-level-bond.go`:
- Around line 1329-1341: The switch that selects targetIP (using
RDSCoreConfig.PodLevelBondDeploymentTwoIPv4 and PodLevelBondDeploymentTwoIPv6)
calls Fail(...) on the default branch which panics, making the subsequent
"return" unreachable; remove the trailing "return" after the Fail(...) in the
default branch to eliminate the dead code and match surrounding style while
keeping the IPv4/IPv6 selection logic intact.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 076ceed0-10e9-4539-b18a-1de60e41f3ae
📒 Files selected for processing (1)
tests/system-tests/rdscore/internal/rdscorecommon/sriov-pod-level-bond.go
✅ Actions performedReview triggered.
|
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@tests/system-tests/rdscore/internal/rdscorecommon/sriov-pod-level-bond.go`:
- Around line 577-584: The concatenated strings in the klog.V(100).Infof call
and the subsequent fmt.Errorf inside the function that checks bond active
interfaces produce ";current" without a space; update the message concatenation
used in klog.V(100).Infof and fmt.Errorf (the lines referencing
clientPod.Definition.Name, clientPod.Definition.Namespace, newInterfaceName,
interfaceName) so there is a space between the semicolon and "current" (either
add a trailing space to the first literal or a leading space to the second
literal) to ensure the log and error messages read correctly.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 774ec2f6-fcc9-4b18-9ed0-8aabe304acd1
📒 Files selected for processing (1)
tests/system-tests/rdscore/internal/rdscorecommon/sriov-pod-level-bond.go
fd9cbde to
2867890
Compare
Summary by CodeRabbit
New Features
Bug Fixes
Refactor