OCPBUGS-83807: Fix issues in NodeNetworkConfiguration topology view#220
OCPBUGS-83807: Fix issues in NodeNetworkConfiguration topology view#220pcbailey wants to merge 1 commit into
Conversation
|
@pcbailey: This pull request references Jira Issue OCPBUGS-83807, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (5)
✅ Files skipped from review due to trivial changes (2)
🚧 Files skipped from review as they are similar to previous changes (3)
WalkthroughThree files add network/interface-identifying constants and update node-topology creation to use them (including expanded interface-type levels and visibility rules). Separately, a small typing change was made to a policy UI component and an E2E test's post-create assertion was adjusted. ChangesNetwork Interface Constants and Topology Enhancement
Policy UI typing change
E2E test post-create assertion
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 14 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (14 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 |
5ccfd4e to
29c4fee
Compare
|
/jira refresh |
|
@pcbailey: This pull request references Jira Issue OCPBUGS-83807, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@pcbailey: This pull request references Jira Issue OCPBUGS-83807, which is valid. 3 validation(s) were run on this bug
Requesting review from QA contact: DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@cypress/e2e/NewPolicy.spec.cy.ts`:
- Around line 52-55: The test visits the list page and asserts the policy link
exists but calls deletePolicyFromDetailsPage(testPolicyName) which expects to be
on the policy details page; update the flow to navigate into the details view
first by clicking the policy link (use the existing selector cy.contains('a',
testPolicyName) and invoke .click() or an equivalent navigation helper) and wait
for the details page to load before calling
deletePolicyFromDetailsPage(testPolicyName) so the details-page modal/actions
are present.
🪄 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: Repository: openshift/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 3ca73ec9-3687-4eba-9f37-690fd8410b7d
📒 Files selected for processing (5)
cypress/e2e/NewPolicy.spec.cy.tssrc/utils/constants.tssrc/views/nodenetworkconfiguration/utils/constants.tssrc/views/nodenetworkconfiguration/utils/utils.tssrc/views/policies/list/components/CreatePolicyButtons.tsx
✅ Files skipped from review due to trivial changes (2)
- src/views/nodenetworkconfiguration/utils/constants.ts
- src/utils/constants.ts
🚧 Files skipped from review as they are similar to previous changes (1)
- src/views/nodenetworkconfiguration/utils/utils.ts
| cy.visit('/k8s/cluster/nmstate.io~v1~NodeNetworkConfigurationPolicy'); | ||
| cy.contains('a', testPolicyName); | ||
|
|
||
| deletePolicyFromDetailsPage(testPolicyName); |
There was a problem hiding this comment.
Navigate to policy details before calling details-page delete helper.
After visiting the list page, the test only checks the link exists, but then calls deletePolicyFromDetailsPage(...), which expects details-page actions/modal elements. This can break cleanup and fail the test.
Suggested fix
- cy.visit('/k8s/cluster/nmstate.io~v1~NodeNetworkConfigurationPolicy');
- cy.contains('a', testPolicyName);
+ cy.visit('/k8s/cluster/nmstate.io~v1~NodeNetworkConfigurationPolicy');
+ cy.contains('a', testPolicyName).should('be.visible').click();
deletePolicyFromDetailsPage(testPolicyName);📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| cy.visit('/k8s/cluster/nmstate.io~v1~NodeNetworkConfigurationPolicy'); | |
| cy.contains('a', testPolicyName); | |
| deletePolicyFromDetailsPage(testPolicyName); | |
| cy.visit('/k8s/cluster/nmstate.io~v1~NodeNetworkConfigurationPolicy'); | |
| cy.contains('a', testPolicyName).should('be.visible').click(); | |
| deletePolicyFromDetailsPage(testPolicyName); |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@cypress/e2e/NewPolicy.spec.cy.ts` around lines 52 - 55, The test visits the
list page and asserts the policy link exists but calls
deletePolicyFromDetailsPage(testPolicyName) which expects to be on the policy
details page; update the flow to navigate into the details view first by
clicking the policy link (use the existing selector cy.contains('a',
testPolicyName) and invoke .click() or an equivalent navigation helper) and wait
for the details page to load before calling
deletePolicyFromDetailsPage(testPolicyName) so the details-page modal/actions
are present.
There was a problem hiding this comment.
Seems like the humans are having a chat. I'll hop back into my burrow for now. If you need me again, just tag @coderabbitai in a new comment, and I'll come hopping out!
|
/retest |
|
/hold Revision 29c4fee was retested 3 times: holding |
29c4fee to
c621164
Compare
|
/hold cancel |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: avivtur, lkladnit, pcbailey The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
2 similar comments
|
/retest |
|
/retest |
|
/retest |
|
@pcbailey: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |


This PR makes the following changes to the NodeNetworkConfiguration topology view.
ovs-interfaceinterfaces aboveovs-bridgeinterfacesinfinibandinterfaces at the bottom-most level next toethernetinterfacesovs-bridgeinterfaces on the same level aslinux-bridgeinterfaces--
ovn-k8s-mp0-- Interfaces starting with
genev-sys--
br-intJira: https://redhat.atlassian.net/browse/OCPBUGS-83807
Screenshots
Before
After
Summary by CodeRabbit