-
Notifications
You must be signed in to change notification settings - Fork 819
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
Improved Fleets - controller tests #1547
Improved Fleets - controller tests #1547
Conversation
Build Failed 😱 Build Id: e7ad7ca8-bc06-4257-9313-998a8e50ea45 To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
|
||
gsSet := f.GameServerSet() | ||
// make gsSet.Spec.Template and f.Spec.Template different in order to make 'rest' list not empty | ||
gsSet.Spec.Template.ClusterName = "qqqqqqqqqqqqqqqqqqq" |
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.
gsSet.Spec.Template.ClusterName = "qqqqqqqqqqqqqqqqqqq" | |
gsSet.Spec.Template.ClusterName = strings.Repeat("q", 19) |
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 see it is not resolved
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.
Can we use a const for this and above?
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.
Yes, it's not resolved because I prefer to keep it as is. Honestly, I don't see any difference between a pure string and strings.Repeat(). In my implementation, it's easier to notice that this is an invalid value.
According to constants - I prefer to avoid them in tests and this is just a random "invalid" sequence of characters. This is not that type of stuff which is worth much attention, in my opinion.
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.
Yes, it might be not crucial here. Just it looks nicer.
bf1e487
to
eabeb25
Compare
Build Succeeded 👏 Build Id: b9050cbd-26ea-414c-b592-889f54778958 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:
|
eabeb25
to
7ee5c1f
Compare
Build Failed 😱 Build Id: 306ea29a-8241-4e24-9ea9-5c743b47f36d To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
7ee5c1f
to
23d72ef
Compare
Build Succeeded 👏 Build Id: 9bf1055f-6eb1-47f0-924f-2d9160fcc95e 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:
|
23d72ef
to
3a52b1d
Compare
Build Succeeded 👏 Build Id: bf964757-57b7-4be0-a3e5-05c5dc1ce0c8 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:
|
5156ef4
to
a100d3f
Compare
Build Failed 😱 Build Id: 637711b3-52fe-4c26-a2dc-9cb9cdb90b80 To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
@@ -408,10 +408,10 @@ func (c *Controller) recreateDeployment(fleet *agonesv1.Fleet, rest []*agonesv1. | |||
func (c *Controller) rollingUpdateDeployment(fleet *agonesv1.Fleet, active *agonesv1.GameServerSet, rest []*agonesv1.GameServerSet) (int32, error) { | |||
replicas, err := c.rollingUpdateActive(fleet, active, rest) | |||
if err != nil { | |||
return replicas, err | |||
return 0, err |
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.
Curious, what's the impetus for this change?
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.
left a comment here
#1531 (comment)
a100d3f
to
0932d24
Compare
Build Succeeded 👏 Build Id: fd0864a8-ed18-4b8a-b503-3a57cbe9b143 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:
|
0932d24
to
5fe60db
Compare
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.
Left some comments. Overall looks good.
TestControllerCreationMutationHandler, TestControllerCreationValidationHandler, TestControllerUpsertGameServerSet more tests more tests review notes
5fe60db
to
c221f96
Compare
Build Failed 😱 Build Id: 4bfd14dc-5e58-4dcc-bb43-d4b7fd76b0b5 To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
c221f96
to
60b12dc
Compare
Build Succeeded 👏 Build Id: 53686a4f-4717-4abf-8724-d986b53f7ac4 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:
|
@aLekSer @markmandel |
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.
Thanks for updates
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: akremsa, aLekSer The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
New changes are detected. LGTM label has been removed. |
Build Succeeded 👏 Build Id: e65426df-fa6e-4391-8dae-34789df566fa 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:
|
@markmandel I think this PR is ready, can you please look one more time? |
Build Succeeded 👏 Build Id: 638ab1bf-ab55-4293-82db-1b5fd67003bb 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:
|
* added syncFleet tests Co-authored-by: Alexander Apalikov <alexander.apalikov@globant.com>
What type of PR is this?
What this PR does / Why we need it:
Added more tests to fleets - controller_test.go
Special notes for your reviewer:
BEFORE:
AFTER: