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

Show GameServer name in TestGameServerReserve flakiness fail #1292

Conversation

markmandel
Copy link
Member

Extra debugging, so we can dig into what is going wrong in this test.

Work on #1276

@markmandel markmandel added the area/tests Unit tests, e2e tests, anything to make sure things don't break label Jan 22, 2020
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: e9e7cfbb-9088-4609-94f5-fcd49c277e6f

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:

  • git fetch https://github.com/GoogleCloudPlatform/agones.git pull/1292/head:pr_1292 && git checkout pr_1292
  • helm install ./install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.3.0-be1edc3


// it should go back after 10 seconds
gs, err = framework.WaitForGameServerState(readyGs, agonesv1.GameServerStateReady, 15*time.Second)
assert.NoError(t, err)
assert.Equal(t, agonesv1.GameServerStateReady, gs.Status.State)

logrus.Info("SLEEPING")
time.Sleep(time.Minute)
Copy link
Member

Choose a reason for hiding this comment

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

Was the sleep for local development? I don't think we want to commit that.

Copy link
Member Author

Choose a reason for hiding this comment

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

🤦‍♂️

@@ -491,13 +491,16 @@ func TestGameServerReserve(t *testing.T) {
assert.Equal(t, "ACK: RESERVE\n", reply)

gs, err = framework.WaitForGameServerState(readyGs, agonesv1.GameServerStateReserved, time.Minute)
assert.NoError(t, err)
assert.Equal(t, agonesv1.GameServerStateReserved, gs.Status.State)
assert.NoError(t, err, readyGs.ObjectMeta.Name)
Copy link
Member

Choose a reason for hiding this comment

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

I'm not exactly sure how this prints, but something like fmt.Sprintf("ready game server name = %s", readyGs.ObjectMeta.Name) might make this easier to understand in the failure output.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done on both!

@roberthbailey roberthbailey self-assigned this Jan 23, 2020
Extra debugging, so we can dig into what is going wrong in this test.

Work on googleforgames#1276
@markmandel markmandel force-pushed the flaky/TestGameServerReserve-debug branch from be1edc3 to 4bc1400 Compare January 24, 2020 01:14
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 4a474fb4-ed49-4401-a65d-1e6c270b7eb3

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:

  • git fetch https://github.com/GoogleCloudPlatform/agones.git pull/1292/head:pr_1292 && git checkout pr_1292
  • helm install ./install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.4.0-4bc1400

@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: markmandel, roberthbailey

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:
  • OWNERS [markmandel,roberthbailey]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@roberthbailey roberthbailey merged commit 6fecfa9 into googleforgames:master Jan 24, 2020
@markmandel markmandel deleted the flaky/TestGameServerReserve-debug branch January 24, 2020 03:29
@markmandel markmandel added this to the 1.4.0 milestone Feb 26, 2020
ilkercelikyilmaz pushed a commit to ilkercelikyilmaz/agones that referenced this pull request Oct 23, 2020
…orgames#1292)

Extra debugging, so we can dig into what is going wrong in this test.

Work on googleforgames#1276
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved area/tests Unit tests, e2e tests, anything to make sure things don't break lgtm size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants