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 Down Scale on RollingUpdate #802

Merged
merged 2 commits into from
Jun 4, 2019

Conversation

aLekSer
Copy link
Collaborator

@aLekSer aLekSer commented May 31, 2019

rollingUpdateActive now returns valid target number of replicas with E2E test.

Fixing #800 Fleet does not scaled down after allocate and edit.

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 1eb92412-a018-4b9e-91eb-836427882de1

To get permission to view the Cloud Build view, join the agones-discuss Google Group.

@markmandel
Copy link
Collaborator

--- FAIL: TestAutoscalerWebhook (86.13s)
    fleetautoscaler_test.go:326: 
        	Error Trace:	fleetautoscaler_test.go:326
        	Error:      	Expected nil, but got: &errors.StatusError{ErrStatus:v1.Status{TypeMeta:v1.TypeMeta{Kind:"", APIVersion:""}, ListMeta:v1.ListMeta{SelfLink:"", ResourceVersion:"", Continue:""}, Status:"Failure", Message:"Operation cannot be fulfilled on fleetautoscalers.stable.agones.dev \"simple-fleet-st6tp-autoscaler\": the object has been modified; please apply your changes to the latest version and try again", Reason:"Conflict", Details:(*v1.StatusDetails)(0xc0003887e0), Code:409}}
        	Test:       	TestAutoscalerWebhook

Is that flakiness, or a result of the change you made?

@markmandel markmandel added kind/bug These are bugs. area/user-experience Pertaining to developers trying to use Agones, e.g. SDK, installation, etc labels May 31, 2019
@aLekSer
Copy link
Collaborator Author

aLekSer commented May 31, 2019

@markmandel make test-e2e succeed when I run it on test-cluster. Need to check one more time.

@markmandel
Copy link
Collaborator

Lemme know if you want me to hit retry 👍

@aLekSer aLekSer force-pushed the fleet-update-scale branch from ef999b9 to b865482 Compare May 31, 2019 21:04
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: f6469c5d-876e-41aa-9883-caab3b92ea94

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/802/head:pr_802 && git checkout pr_802
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.11.0-b865482

@aLekSer aLekSer marked this pull request as ready for review June 3, 2019 21:13
fltCopy.Spec.Template.Spec.Ports[0].ContainerPort++
flt, err = alpha1.Fleets(defaultNs).Update(fltCopy)
assert.Nil(t, err)
time.Sleep(5 * time.Second)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I have to ask 😄 - why do we need this Sleep? Maybe I can help you craft some kind of condition check here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I will think about the condition, simple wait until gss count == 2 did not work.

Copy link
Collaborator Author

@aLekSer aLekSer Jun 4, 2019

Choose a reason for hiding this comment

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

Switched from timer to wait.PollImmediate(). Test is failing on previous version of Fleets controller and reproduces the issue.

Return valid target number of replicas with E2E test.
@aLekSer aLekSer force-pushed the fleet-update-scale branch from b865482 to f3d8bf8 Compare June 4, 2019 10:42
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: ea029181-2534-4d61-850d-45c616976274

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/802/head:pr_802 && git checkout pr_802
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.11.0-f3d8bf8

Copy link
Collaborator

@markmandel markmandel left a comment

Choose a reason for hiding this comment

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

Nice! 👍

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: fb7dac65-418f-4a01-a55e-cf8fbfd61985

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/802/head:pr_802 && git checkout pr_802
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.11.0-2c1ef1a

@markmandel markmandel merged commit 9a528f7 into googleforgames:master Jun 4, 2019
@markmandel markmandel added this to the 0.11.0 milestone Jun 4, 2019
@aLekSer aLekSer deleted the fleet-update-scale branch June 5, 2019 09:56
@lftakakura
Copy link

Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/user-experience Pertaining to developers trying to use Agones, e.g. SDK, installation, etc kind/bug These are bugs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants