STOR-2841: add LSO localvolume fsType tests#632
Conversation
|
@radeore: This pull request references STOR-2841 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the sub-task to target the "5.0.0" version, but no target version was set. 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. |
WalkthroughE2E tests for ChangesE2E LocalVolume fsType/volumeMode test expansion
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Important Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional. ❌ Failed checks (1 error, 3 warnings)
✅ Passed checks (11 passed)
✨ 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 |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: radeore The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@radeore: all tests passed! 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. |
| // Main LocalVolume LVDL / symlink reconciliation flow, | ||
| // on a dedicated disk after fsType subtests complete. | ||
| selectedDisk := nodeEnv[0].disks[lvdlDiskIndex] | ||
| matcher.Expect(selectedDisk.path).ShouldNot(gomega.BeZero(), "device path should not be empty") |
There was a problem hiding this comment.
So these tests validate whether setting fsType works for LocalVolume and some checks for SC and PV paths by the looks of it.
I am not sure if putting a big table of tests in the middle of the other tests is a good idea. This makes the code harder to understand and parse. Also since side effect from one test appears to flow into others, this is especially tricky.
There was a problem hiding this comment.
The fsType cases are isolated by dedicated disk index + storage class, scsi-8 cleanup runs before them, and LVDL uses disk-4. How about refactoring test into three named helpers with top-level t.Run boundaries (shared-byid-reproducer, fstype subtests, lvdl-symlink-reconciliation) and move the case table out of the main flow so the test reads as explicit phases rather than one long script?
Summary
Adds fsType/volumeMode subtests (from PR #574) and restructures the LocalVolume E2E so fsType tests and the existing LVDL flow run on separate disks without interfering.
Summary by CodeRabbit