New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using size ranges for e2e storage drivers and tests #72275
Using size ranges for e2e storage drivers and tests #72275
Conversation
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
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 kubernetes/test-infra repository. I understand the commands that are listed here. |
Hi @srmocher. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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 kubernetes/test-infra repository. |
/check-cla |
/check-cla |
…o sridhar/dynamic-volume-size-ranges
@mkimuram Could you PTAL? I've updated the code per your comments. |
Thank you for your fix. I confirmed that my comments are reflected perfectly. While I reviewed this PR again, I started to think that it would be more useful Could you consider moving it from testpattern to testsuite? |
@mkimuram Sure, will update per your suggestion. |
/retest |
Apologies for the late turnaround, I will push in rest of the fixes shortly. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: srmocher If they are not already assigned, you can assign the PR to them by writing The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@srmocher: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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 kubernetes/test-infra repository. I understand the commands that are listed here. |
@srmocher: PR needs rebase. 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 kubernetes/test-infra repository. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closed this PR. In 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 kubernetes/test-infra repository. |
What type of PR is this?
/kind feature
/sig storage
What this PR does / why we need it:
Removes hardcoded sizes for volumes in tests and unifies the way sizes (or rather ranges) are defined for both the storage test drivers and the tests themselves. Both components specify a range of size to test (or in the case of the driver define what size range it supports). The intersection of the two ranges (the test and the driver's) are taken and the minimum of the result is chosen as the resource claim size.
Tests specify the size range as a property of
TestPattern
(is this the right way?). I'm not fully familiar with the size constraints on each storager driver yet (and in the tests - I've set some static values now, so added TODOs to remove them).In the tests, we use
getSizeRangesIntersection
method and pass in the range from theTestPattern
instance and thedriver
instance and take the intersection.Which issue(s) this PR fixes:
Fixes #72080
Special notes for your reviewer:
I'm unfamiliar with the parameters to be set for each driver and the tests themselves (compared to the static values existing currently). Happy to know any pointers on setting these parameters.
Does this PR introduce a user-facing change?:
NONE