Skip to content

cleanup: remove PlayerTracking from the Rust SDK - #4768

Merged
markmandel merged 2 commits into
agones-dev:mainfrom
markmandel:remove-player-tracking-rust
Oct 8, 2026
Merged

markmandel merged 2 commits into
agones-dev:mainfrom
markmandel:remove-player-tracking-rust

Conversation

@markmandel

Copy link
Copy Markdown
Member

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.

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

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

@github-actions github-actions Bot added kind/cleanup Refactoring code, fixing up documentation, etc size/M labels Oct 5, 2026
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>
@markmandel
markmandel force-pushed the remove-player-tracking-rust branch from 8ebb989 to 41e860f Compare October 5, 2026 02:41
@markmandel
markmandel requested a balanced review from Copilot October 5, 2026 02:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

@markmandel
markmandel requested a review from a team October 5, 2026 03:18
@agones-bot

Copy link
Copy Markdown
Collaborator

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:

git fetch https://github.com/googleforgames/agones.git pull/4768/head:pr_4768 && git checkout pr_4768
helm install agones ./install/helm/agones --namespace agones-system --set agones.image.registry=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.62.0-dev-41e860f

@markmandel
markmandel enabled auto-merge (squash) October 8, 2026 22:00
@agones-bot

Copy link
Copy Markdown
Collaborator

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:

git fetch https://github.com/googleforgames/agones.git pull/4768/head:pr_4768 && git checkout pr_4768
helm install agones ./install/helm/agones --namespace agones-system --set agones.image.registry=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.62.0-dev-37f3791

@markmandel
markmandel merged commit 453d191 into agones-dev:main Oct 8, 2026
4 checks passed
@markmandel
markmandel deleted the remove-player-tracking-rust branch October 8, 2026 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/cleanup Refactoring code, fixing up documentation, etc size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants