-
Notifications
You must be signed in to change notification settings - Fork 817
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
Supports Rust Alpha SDK #1717
Supports Rust Alpha SDK #1717
Conversation
/assign @roberthbailey |
Build Succeeded 👏 Build Id: 26463400-ef72-4203-aedc-822e8e27cf63 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:
|
Build Succeeded 👏 Build Id: 48d7e9f9-dc94-473c-bacd-7a760ab6c58c 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:
|
I am definitely a rust noobie and I think @markmandel has been writing some more rust lately so I'll let him take a look. |
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.
Yay! More Rust! 😄
Added some notes, but I think it's minor type cleanup stuff. Thanks for doing this work!
build/includes/sdk.mk
Outdated
@@ -165,7 +165,7 @@ run-sdk-conformance-test-go: | |||
$(MAKE) run-sdk-conformance-no-build SDK_FOLDER=go GRPC_PORT=9001 HTTP_PORT=9101 FEATURE_GATES=PlayerTracking=true TESTS=$(DEFAULT_CONFORMANCE_TESTS),$(ALPHA_CONFORMANCE_TESTS) | |||
|
|||
run-sdk-conformance-test-rust: | |||
$(MAKE) run-sdk-conformance-test SDK_FOLDER=rust | |||
$(MAKE) run-sdk-conformance-test SDK_FOLDER=rust FEATURE_GATES=PlayerTracking=true TESTS=$(DEFAULT_CONFORMANCE_TESTS),$(ALPHA_CONFORMANCE_TESTS) |
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.
This should probably follow what Go is doing - which is running one without the flag, and then one with:
Line 163 in 8b4c100
$(MAKE) run-sdk-conformance-test SDK_FOLDER=go GRPC_PORT=9001 HTTP_PORT=9101 |
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.
Thank you for the review.
OK. As far as I can see, it seems better not to duplicate ports between tests in each language.
I'll fix it like that.
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 fixed it.
@@ -112,6 +112,69 @@ fn run() -> Result<(), String> { | |||
sdk.set_label("test-label", &creation_ts.to_string()) | |||
.map_err(|e| format!("Could not run SetLabel(): {}. Exiting!", e))?; | |||
|
|||
println!("Setting player capacity..."); |
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.
We could do a simple string comparison to see if "PlayerTracking=true" is contained in the FEATURE_GATES environment variable as a way to determine whether to run these tests or not?
Keep things simple, WDYT?
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.
OK. It seems easy to implement so I'll fix.
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 fixed it.
…t variable contains PlayerTracking=true
Build Succeeded 👏 Build Id: eedfc6e8-4d95-4c56-86e3-16a95792517f 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:
|
/assign @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.
Looks great! love it!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: markmandel, yoshd 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:
Approvers can indicate their approval by writing |
New changes are detected. LGTM label has been removed. |
Build Succeeded 👏 Build Id: df14540a-632f-4177-b51b-187d2c6185ff 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:
|
* Supports Rust Alpha SDK Co-authored-by: Mark Mandel <markmandel@google.com>
What type of PR is this?
/kind feature
What this PR does / Why we need it:
Add Rust Alpha SDK. This makes it easy to use the feature gate for player tracking in the Rust SDK.
For example, GetPlayerCount can be called like this:
Special notes for your reviewer:
Relates to #1033