-
Notifications
You must be signed in to change notification settings - Fork 825
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
Fix for flaky TestGameServerAllocationMetaDataPatch #726
Fix for flaky TestGameServerAllocationMetaDataPatch #726
Conversation
Build Succeeded 👏 Build Id: df1bce84-2f7b-4f6f-8625-3e32a2a01094 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
assert.Equal(t, v1alpha1.GameServerAllocationAllocated, gsa.Status.State) | ||
} | ||
err = wait.PollImmediate(time.Second, 30*time.Second, func() (bool, error) { | ||
gsa, err = framework.AgonesClient.AllocationV1alpha1().GameServerAllocations(defaultNs).Create(gsa.DeepCopy()) |
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.
i believe this will cause panic if "err" is ever returned, because "gsa" will be set to nil and next iteration will use nill.DeepCopy()
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.
Good catch. Fixed!
Cache eventual consistency in the controller means that this test can be flaky. Implemented a polling request as allocatioon will work eventually. Closes googleforgames#725
a232f5d
to
44f5fae
Compare
Build Succeeded 👏 Build Id: 3f997e56-8d5f-43d7-b467-a4059d71c29d The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
Gentle bump - on a mission to de-flake the CI system, and this keeps rearing it's head. |
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
Build Succeeded 👏 Build Id: 6db77cad-5706-46fc-ba6a-ccf01d624958 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
Cache eventual consistency in the controller means that this test can be flaky. Implemented a polling request as allocation will work eventually.
Closes #725