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

Fix for flaky TestSDKSetAnnotation #516

Merged

Conversation

markmandel
Copy link
Member

Pretty sure the new version annotation on GameServers made this test flaky.

This is a fix!

@markmandel markmandel added kind/cleanup Refactoring code, fixing up documentation, etc area/tests Unit tests, e2e tests, anything to make sure things don't break labels Jan 26, 2019
@markmandel markmandel added this to the 0.8.0 milestone Jan 26, 2019
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: b0b151ed-eb8e-4aaa-8b2a-5233be24aec7

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website will exist for the next 30 days:

To install this version:

  • git fetch https://github.com/GoogleCloudPlatform/agones.git pull/516/head:pr_516 && git checkout pr_516
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.8.0-dad7c7d

})

assert.Nil(t, err)
assert.NotEmpty(t, gs.ObjectMeta.Annotations["stable.agones.dev/sdk-timestamp"])

assert.NotEmpty(t, gs.ObjectMeta.Annotations[annotation])
Copy link
Contributor

Choose a reason for hiding this comment

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

I distinctly remember seeing failures where "sdk-timestamp" was set but version was not.

Copy link
Contributor

Choose a reason for hiding this comment

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

Can you try:

go test -count=100 -timeout 90s agones.dev/agones/test/e2e -run TestSDKSetAnnotation

Copy link
Member Author

Choose a reason for hiding this comment

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

That would be strange, as the version annotation is set via a mutation webhook.

Ran this 50 times (in batches to fit under the timeout - also added a defer to delete the gameserver), no errors 🤷‍♂️

(Nice trick with -count=100 didn't know that one, will steal it 👍 )

Pretty sure the new version annotation on
GameServers made this test flaky.

This is a fix!
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 5ae0ad36-29fc-408e-93dc-777031c42e13

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website will exist for the next 30 days:

To install this version:

  • git fetch https://github.com/GoogleCloudPlatform/agones.git pull/516/head:pr_516 && git checkout pr_516
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.8.0-d30d3b4

Copy link
Collaborator

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

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

LGTM

@cyriltovena cyriltovena merged commit 37b8567 into googleforgames:master Jan 28, 2019
@markmandel markmandel deleted the flaky/TestSDKSetAnnotation branch January 28, 2019 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/tests Unit tests, e2e tests, anything to make sure things don't break kind/cleanup Refactoring code, fixing up documentation, etc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants