Repository navigation
cleanup: remove PlayerTracking from the Rust SDK - #4768
Conversation
Remove the PlayerTracking methods from the Rust SDK while keeping the Alpha client as a stub for future alpha features, following the same approach as the Python and Node.js SDK removals. - Remove the seven player-tracking methods (get_player_capacity, set_player_capacity, player_connect, player_disconnect, get_player_count, is_player_connected, get_connected_players) from src/alpha.rs, leaving the gRPC client stub in place. - Replace the player tracking unit tests (a hand-rolled MockAlpha and its lifecycle test) with a stub test that verifies the Alpha client's gRPC channel is constructed. - Remove the player tracking steps (and their now-unused functions) from the Rust SDK conformance test client, for both the sync and async code paths. Work on agones-dev#4491 Signed-off-by: Mark Mandel <mark@compoundtheory.com>
8ebb989 to
41e860f
Compare
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The focused cleanup consistently removes the deprecated Rust APIs and their test usages.
Review effort: Balanced
Findings: None
What changed in this PR
Removes deprecated PlayerTracking APIs from the Rust SDK while retaining the Alpha client stub.
Changes:
- Removes seven Alpha PlayerTracking methods and related tests.
- Removes synchronous and asynchronous conformance-test flows.
- Adds a construction test for the retained Alpha client.
| File | Description |
|---|---|
sdks/rust/src/alpha.rs |
Retains an Alpha stub without PlayerTracking methods. |
test/sdk/rust/src/main.rs |
Removes PlayerTracking conformance paths. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Build Succeeded 🥳 Build Id: 3c2c64a7-9431-4eb0-b34e-171e806e09c5 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: b66095dd-146a-446a-ba74-80e30c77efa0 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: |
What type of PR is this?
/kind cleanup
What this PR does / Why we need it:
Remove the PlayerTracking methods from the Rust SDK while keeping the Alpha client as a stub for future alpha features, following the same approach as the Python and Node.js SDK removals.
Which issue(s) this PR fixes:
Work on #4491
Did you use AI tools in preparing this PR?:
Y
Special notes for your reviewer:
N/A