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

Updates to the C++ SDK along with the simple example that exercises it. #934

Merged
merged 1 commit into from
Jul 25, 2019

Conversation

roberthbailey
Copy link
Member

Part of #703.

I ran clang-format on examples/cpp-simple/server.cc which accounts for many of the changes. The only code changes were modifying stable::agones::... to agones::....

Both #855 and #904 broke the cpp-simple example code (which points to the need for us to have sdk conformance tests for C++):

  • In the former, include/agones/sdk.grpc.pb.h was no longer being installed with the sdk, which caused the sample code to no longer compile. I've restructured the cmake files a bit to make sure that it's now put into the expected place. /cc @dsazonoff

  • In the latter, the client context for the healthcheck calls was allocated on the stack in the constructor, but the healthchecks were continuously being called via the Health SDK function, which caused the program to abort abnormally due to a check failure. The code is now leaking a single client context, which we could clean up in the destructor if we wanted to be especially thorough (but in generally, since it has the same lifetime of the SDK and we expect the SDK to have the lifetime of the game server, this seemed not so bad compared to leaking one on each SDK call). /cc @devjgm

Note that I haven't pushed the 0.6 version of the container yet, since I have some questions about whether the updates I made to the SDK are correct.

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 90149902-db47-4d2d-b32d-921a0af8479d

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

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: ad053951-a78b-435e-b73a-f82b7c656c53

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

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 8a753719-6659-41f4-a950-8c1451073da3

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/934/head:pr_934 && git checkout pr_934
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.12.0-5e7c02f

examples/cpp-simple/README.md Outdated Show resolved Hide resolved
examples/cpp-simple/server.cc Outdated Show resolved Hide resolved
examples/cpp-simple/server.cc Outdated Show resolved Hide resolved
examples/cpp-simple/server.cc Show resolved Hide resolved
examples/cpp-simple/server.cc Outdated Show resolved Hide resolved
examples/cpp-simple/server.cc Outdated Show resolved Hide resolved
examples/cpp-simple/server.cc Show resolved Hide resolved
sdks/cpp/src/agones/sdk.cc Outdated Show resolved Hide resolved
@roberthbailey roberthbailey force-pushed the cpp-simple branch 2 times, most recently from 6705608 to 287f70d Compare July 22, 2019 18:47
Copy link
Contributor

@devjgm devjgm left a comment

Choose a reason for hiding this comment

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

Thanks for the updates.

examples/cpp-simple/README.md Outdated Show resolved Hide resolved
examples/cpp-simple/server.cc Outdated Show resolved Hide resolved
examples/cpp-simple/server.cc Show resolved Hide resolved
sdks/cpp/src/agones/sdk.cc Outdated Show resolved Hide resolved
@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: f5f8a44c-b985-402f-a535-0e1483b41a88

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

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 301075d8-e263-4888-9f57-d15257250a6a

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

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 0910b584-4dc4-4d2b-a4bb-d80636422d16

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

@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: aa4d4d4b-f5e8-4988-a217-0918622d397f

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

@roberthbailey roberthbailey force-pushed the cpp-simple branch 2 times, most recently from 749fc1b to 9187db9 Compare July 23, 2019 04:18
@agones-bot
Copy link
Collaborator

Build Failed 😱

Build Id: 5f9f7585-188a-4f32-9eea-d73e9f45e2b1

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

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 0ad35a03-0620-489d-88af-82a835479654

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/934/head:pr_934 && git checkout pr_934
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.12.0-9187db9

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 9c293644-93ab-464c-bc51-c8a9f83d70cd

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/934/head:pr_934 && git checkout pr_934
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.12.0-7d214d3

@roberthbailey roberthbailey force-pushed the cpp-simple branch 2 times, most recently from d9be549 to 5f7931b Compare July 23, 2019 18:04
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 51026958-41e9-4102-bf91-36d94d145342

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/934/head:pr_934 && git checkout pr_934
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.12.0-d9be549

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 98c5f88d-e480-4f80-940f-d1210a86e00c

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/934/head:pr_934 && git checkout pr_934
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.12.0-5f7931b

Copy link
Contributor

@devjgm devjgm left a comment

Choose a reason for hiding this comment

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

Overall, looks good. Thanks for the updates to the docs -- very helpful for me. A few small questions/comments.

examples/cpp-simple/server.cc Outdated Show resolved Hide resolved
examples/cpp-simple/server.cc Show resolved Hide resolved
examples/cpp-simple/server.cc Outdated Show resolved Hide resolved
examples/cpp-simple/server.cc Outdated Show resolved Hide resolved
examples/cpp-simple/server.cc Outdated Show resolved Hide resolved
@roberthbailey
Copy link
Member Author

@devjgm - this is ready for review.

@roberthbailey
Copy link
Member Author

Comments addressed; new version pushed.

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 65d22200-e323-421b-ba1e-27828153505c

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/934/head:pr_934 && git checkout pr_934
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.12.0-f02db01

@roberthbailey
Copy link
Member Author

There was a compile error in the version where the build just succeeded, which makes it pretty clear that our CI doesn't compile the example code.

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 753425f5-6d84-4296-80ce-fd601db9de76

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/934/head:pr_934 && git checkout pr_934
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.12.0-dd8e8cc

Copy link
Contributor

@devjgm devjgm left a comment

Choose a reason for hiding this comment

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

Code changes LGTM. Thanks.

Copy link
Member

@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.

Lgtm, just some docs questions.

examples/cpp-simple/README.md Outdated Show resolved Hide resolved
examples/cpp-simple/README.md Outdated Show resolved Hide resolved
examples/cpp-simple/README.md Outdated Show resolved Hide resolved
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: fe4927fa-41af-411b-9b52-774013a68d93

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/934/head:pr_934 && git checkout pr_934
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.12.0-cc468a8

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 09414444-8319-4c6a-8e52-eb13cd9a1a59

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/934/head:pr_934 && git checkout pr_934
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.12.0-fd35fd0

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 96a13ffb-1f0b-400b-97d6-ce22d80f7a8c

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/934/head:pr_934 && git checkout pr_934
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.12.0-128890d

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: d43e6adb-5616-4750-a90c-9d9a045a40ac

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/934/head:pr_934 && git checkout pr_934
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.12.0-a5ffbd0

it. Create a tutorial to show how to build / run the simple C++ example.
@roberthbailey
Copy link
Member Author

I've fixed the output buffering issues in the latest version. This should now be ready for another review pass.

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 981d47d3-bd16-42a5-8fb9-7eec92660f39

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/934/head:pr_934 && git checkout pr_934
  • helm install install/helm/agones --namespace agones-system --name agones --set agones.image.tag=0.12.0-d7a7b97

Copy link
Member

@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.

This is great!

@markmandel markmandel merged commit 5ec9dfa into googleforgames:master Jul 25, 2019
@roberthbailey
Copy link
Member Author

I've built gcr.io/agones-images/cpp-simple-server:0.9 from the new master branch and pushed it.

@roberthbailey roberthbailey added this to the 0.12.0 milestone Jul 26, 2019
@markmandel markmandel added area/examples Examples. Usually found in the `examples` directory kind/cleanup Refactoring code, fixing up documentation, etc kind/documentation Documentation for Agones kind/feature New features for Agones labels Aug 1, 2019
@roberthbailey roberthbailey deleted the cpp-simple branch August 1, 2019 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/examples Examples. Usually found in the `examples` directory kind/cleanup Refactoring code, fixing up documentation, etc kind/documentation Documentation for Agones kind/feature New features for Agones
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants