Skip to content
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

Sort map keys for deterministic testing #45

Merged
merged 1 commit into from
Apr 3, 2018

Conversation

seans3
Copy link
Contributor

@seans3 seans3 commented Apr 3, 2018

Sort the map keys to ensure deterministic testing.
Fixes possible flaky test.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Apr 3, 2018
@seans3
Copy link
Contributor Author

seans3 commented Apr 3, 2018

/assign apelisse

@seans3
Copy link
Contributor Author

seans3 commented Apr 3, 2018

/assign seans3

@seans3
Copy link
Contributor Author

seans3 commented Apr 3, 2018

/assign mbohlool

@@ -440,7 +452,7 @@ func (g openAPITypeWriter) generateExtensions(CommentLines []string) error {
}
}
// Next, generate extensions from "tags".
for tagKey := range tagToExtension {
for _, tagKey := range sortedMapKeys(tagToExtension) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is going to sort by tag, not extension.

I'm not trying to make a point, I'm just making sure it's obvious :-)

@apelisse
Copy link
Member

apelisse commented Apr 3, 2018

@mbohlool Can you please merge that?

@mbohlool
Copy link
Contributor

mbohlool commented Apr 3, 2018

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 3, 2018
@mbohlool mbohlool merged commit 9ccd017 into kubernetes:master Apr 3, 2018
sttts pushed a commit to sttts/kube-openapi that referenced this pull request Nov 5, 2020
Fixes kubernetes#45

Signed-off-by: Igor Zibarev <zibarev.i@gmail.com>
sttts pushed a commit to sttts/kube-openapi that referenced this pull request Nov 5, 2020
Fix typos in comments to DeepCopyInto methods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants