-
Notifications
You must be signed in to change notification settings - Fork 428
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
✨ crd/gen: sort FindKubeKinds #679
Conversation
|
Welcome @gshirazi! |
Hi @gshirazi. 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/test-infra repository. |
@ahmetb kindly plz review |
Seems to be working reproducibly and sorting kinds as expected. Thanks. |
needs rebase after #682 is merged. |
@gshirazi could you please add a test for this? |
/retest |
at a high level, the Generate() function is largely untested, so I am not sure if it'll be a fair ask to add tests for this without while missing tests for the actual functionality. but there seems to be some integration tests, so maybe it's possible to write one that captures +output:stdout case. |
By "this" I meant for this functionality. The PR is based on an older version of the master branch where I think this was deterministic regardless of the sorting and it seems it got broken in 81d0342 If we don't add a test, this will just regress again sooner or later so there is no point in fixing it. |
I see,
I need to rebase this based on the latest master (map not slice). Then add some integration test. |
any objections to reverting 81d0342 ? |
Yes, it was added to de-duplicate. Please just copy the map keys into a slice and sort that slice rather than reverting anything. Also, we are not going to merge anything here until there are tests. |
@alvaroaleman @ahmetb added tests. please review, thanks. |
any feedback? |
Sorry, I'm not very initiated in this repository. I will defer to others. |
/ok-to-test |
@@ -20,6 +20,7 @@ import ( | |||
"fmt" |
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.
@gshirazi I can't comment on it, but you checked in a binary cmd/main
. Please remove that, other than that the change looks good to me.
/hold
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.
done.
/label tide/merge-method-squash |
/lgtm Thanks! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alvaroaleman, gshirazi 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 |
/cherrypick release-0.9 |
@alvaroaleman: new pull request created: #694 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. |
Fixes #675 by sorting
kubeKinds
inFindKubeKinds