-
Notifications
You must be signed in to change notification settings - Fork 570
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
✨ Remove sorting from instance keys when creating input tag specifications #5063
base: main
Are you sure you want to change the base?
✨ Remove sorting from instance keys when creating input tag specifications #5063
Conversation
Welcome @AlexVulaj! |
Hi @AlexVulaj. Thanks for your PR. I'm waiting for a kubernetes-sigs 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-sigs/prow repository. |
/ok-to-test |
48073c7
to
23b7f2e
Compare
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.
It's been a while since I've been deep into coding world, but just saw two things that immediately stood out to me as potential problems down the road. Not sure if the one about the for loop matters in this case because I don't specifically remember the conditions in which it's "bad" but figured I'd bring it up.
790646f
to
5cf1138
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
5cf1138
to
1f7cd24
Compare
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.
/lgtm
@r4f4: changing LGTM is restricted to collaborators 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-sigs/prow repository. |
Co-authored-by: Kirk Bater <[email protected]>
1f7cd24
to
e43aba9
Compare
I rebased my PR today - not sure I understand the error in the PR Verify check but if anyone can point out what I need to do it'd be appreciated, thanks! |
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-sigs/prow repository. |
@AlexVulaj: 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-sigs/prow repository. I understand the commands that are listed here. |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Currently when generating input tag specifications, we sort all of the keys from the given
*infrav1.Instance
before appending them toinput.TagSpecifications
. From the comments, this is done "for tests to work". This currently comes at the performance cost of iterating through all of the tags to grab the keys, and then sorting them before iterating the list again to add them to our input.By utilizing a custom
gomock.Matcher
, we can transfer that performance hit from our production code to our tests.Checklist:
Release note: