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

Remove simple-tcp and simple-udp #1992

Merged

Conversation

markmandel
Copy link
Member

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:

/kind breaking

/kind bug
/kind cleanup
/kind documentation
/kind feature
/kind hotfix

What this PR does / Why we need it:

This covers:

  • Moving the windows build scripts from simple-udp to simple-game-server
  • Moving all the documentation to use simple-game-server (tested this by
    hand)
  • Updated all the examples to use simple-game-servers
  • Removal of both simple-udp and simple-tcp

Which issue(s) this PR fixes:

Closes #1890

Special notes for your reviewer:

97% of this is replacing udp-server with simple-game-server

Release Notes: Make a note that we're no longer developing simple-udp and simple-tcp, but the previous versions of the example images will continue to be hosted.

This covers:
* Moving the windows build scripts from simple-udp to simple-game-server
* Moving all the documentation to use simple-game-server (tested this by
 hand)
* Updated all the examples to use simple-game-servers
* Removal of both simple-udp and simple-tcp

Closes googleforgames#1890
@markmandel markmandel added kind/documentation Documentation for Agones area/examples Examples. Usually found in the `examples` directory kind/breaking Breaking change labels Feb 11, 2021
@google-cla google-cla bot added the cla: yes label Feb 11, 2021
@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 6fcde9ac-bc35-429d-af85-3dc0a6053a50

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

@markmandel
Copy link
Member Author

e2e failure:

time="2021-02-11 05:38:50.166" level=info msg="Waiting for states to match" awaitingState=Ready currentState=RequestReady gs=udp-servers4z97
--- FAIL: TestGameServerWithPortsMappedToMultipleContainers (315.13s)
    gameserver_test.go:545: Could not get a GameServer ready: waiting for {udp-server [{gameport Dynamic <nil> 7654 0 UDP} {second-gameport Dynamic 0xc0003ec1d0 5000 0 UDP}] {false 0 0 0}  { 0 0} {{      0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] []  []} {[] [] [{udp-server gcr.io/agones-images/simple-game-server:0.1 [] []  [] [] [] {map[] map[]} [] [] nil nil nil nil   IfNotPresent nil false false false} {second-udp-server gcr.io/agones-images/simple-game-server:0.1 [] [-port 5000]  [] [] [] {map[] map[]} [] [] nil nil nil nil   IfNotPresent nil false false false}] []  <nil> <nil>  map[]   <nil>  false false false <nil> nil []   nil  [] []  <nil> nil [] <nil> <nil> <nil> map[] []}} <nil>} GameServer instance readiness timed out (): waiting for GameServer to be Ready 1613021550/udp-servers4z97: timed out waiting for the condition
FAIL

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 940557d8-4d84-4667-81b5-ce64d83a509e

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/googleforgames/agones.git pull/1992/head:pr_1992 && git checkout pr_1992
  • helm install ./install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.13.0-104c86d

Copy link
Member

@roberthbailey roberthbailey left a comment

Choose a reason for hiding this comment

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

There are a lot of website changes included in your change that aren't guarded to be part of the next release. Many of them seem ok to push now, but there are some that seem like they should wait until the release (e.g. removing references to the old images, since those exist in the current release).

@@ -21,8 +21,6 @@ These are full examples for each of the resource types of Agones

These are all examples of simple game server implementations, that integrate the Agones game server SDK.

- {{< ghlink href="examples/simple-udp" >}}Simple UDP{{< /ghlink >}} (Go) - simple server and client that send UDP packets back and forth.
Copy link
Member

Choose a reason for hiding this comment

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

Should this be deleted now or with the next release?

Copy link
Member Author

Choose a reason for hiding this comment

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

So I didn't see any specific reason not to delete it now, given that it is a duplicated example that has almost identical code already stored in the simple-game-server. But if you feel strongly we should keep it until next release, I'm happy to do so.

Copy link
Member

Choose a reason for hiding this comment

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

I think this was the main place I wanted to gate the change. In the rest of the site it seems ok to flip it over, but removing these links separate from a release (where we remove support for the code) didn't feel quite right.

@@ -34,7 +34,7 @@ def scaleUpFleet(self):
"apiVersion": "agones.dev/v1",
"kind": "Fleet",
"metadata": {
"generateName": "fleet-simple-udp",
"generateName": "simple-game-server",
Copy link
Member

Choose a reason for hiding this comment

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

simple-game-server-fleet?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure. 🤷 I don't think anyone is using this anyway.

Copy link
Member Author

Choose a reason for hiding this comment

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

Switched to "fleet-simple-game-server" since the previous version started with "fleet"

Copy link
Member

Choose a reason for hiding this comment

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

Since this is in the locust dir, I agree that it isn't being used actively (the old udp-server version was 0.5 whereas everywhere else it was 0.21).

Not a big deal, but it doesn't look like you actually pushed a change with the updated fleet name.

Copy link
Member Author

Choose a reason for hiding this comment

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

huh, I changed it here:
3152f31#diff-29dc460d65f66644f6c926f4f634a479e9167383eaeb8c8078f76090cd391fcbR174

Did I do the wrong file... 🤔 ?

Copy link
Member Author

Choose a reason for hiding this comment

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

OIC THE SPOT! Pushing up a fix.

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 458b55dc-4020-4df8-be60-3215972bdfad

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/googleforgames/agones.git pull/1992/head:pr_1992 && git checkout pr_1992
  • helm install ./install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.13.0-3152f31

@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

* Only remove example links on release (had to add `&zwnj;` because of strange markdown formatting issues)
* Update fleet_autoscaling.py fleet name
@google-oss-robot
Copy link

New changes are detected. LGTM label has been removed.

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: d95dde7c-355e-4ca3-8ffb-71a63033e326

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/googleforgames/agones.git pull/1992/head:pr_1992 && git checkout pr_1992
  • helm install ./install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.13.0-bae35f4

@markmandel markmandel merged commit c833e5d into googleforgames:main Feb 12, 2021
@markmandel markmandel deleted the cleanup/remove-simple-tcp-udp branch February 12, 2021 23:21
@markmandel markmandel added this to the 1.13.0 milestone Feb 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved area/examples Examples. Usually found in the `examples` directory cla: yes kind/breaking Breaking change kind/documentation Documentation for Agones size/XXL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecate and remove the udp-server and tcp-server images
4 participants