-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
test/utils: Remove NotDeleted() and NotDeletedVMs() #11850
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR @assafad.
AFAIU, NotDeleted()
and NotDeletedVMs()
are unrelated.
Could you please split the change to two commits? (one for each function move)
Please consider renaming Same for Please also consider removing the named return values from their signatures. |
orelmisan updated. |
Move NotDeleted() to libreplicaset, as it's used by replicaset test only. Signed-off-by: assafad <aadmi@redhat.com>
Rename NotDeleted() to FilterNotDeletedVMIs() and remove its named returned value Signed-off-by: assafad <aadmi@redhat.com>
Move NotDeletedVMs() to pool_test.go as it's the only place it's used in. Signed-off-by: assafad <aadmi@redhat.com>
Improve by removing named returned value and integrate both NotDeletedVMs() functions. Signed-off-by: assafad <aadmi@redhat.com>
@assafad: The following test failed, say
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @assafad
@xpivarc Hi, the PR started with 1 commit, then 2 commits, and finally, per @orelmisan's request, I split it to 4 commits. |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: xpivarc 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 |
Required labels detected, running phase 2 presubmits: |
What this PR does
NotDeleted()
to/libreplicaset
(since it's used only by replicaset test), rename it toFilterNotDeletedVMIs()
and remove its named returned value.NotDeletedVMs()
topool_test.go
(the only file it's used in), and improve by integrating it withinnotDeletedVMs()
function, which was renamed tofilterNotDeletedVMIsOwnedByPool()
./sig code-quality