← Back to Pull requests

Promote CountsAndLists to Stable: SDK proto + codegen (PR 4) #4765

Closed
unknown closed this pull request without merging on Oct 10, 2026 20:59 UTC
View on GitHub
unknown unknown commented on Oct 04, 2026 15:50 UTC
Author

What type of PR is this?
/kind cleanup

What this PR does / Why we need it:

Adds the six Counter/List RPCs and their messages to the stable SDK protocol, preserving the existing beta definitions. Stable gRPC methods and unversioned REST routes share the existing server handlers with the beta service.

Regenerates SDK artifacts using make -C build gen-all-sdk-grpc. The C++ generator and build manifest include the Google API annotation dependencies introduced by the stable protocol. The Swagger generation step preserves the existing sdkDuration schema name for Reserve, and the REST generator strips trailing whitespace only from stable outputs. A small Go server adapter is necessary because the stable and beta services have identically named methods with different generated message types.

Which issue(s) this PR fixes:
Work on #4590 (PR 4 — SDK proto + codegen).

Did you use AI tools in preparing this PR?:
Yes. GPT-6.1Sol(Ultra) assisted with implementation, regression testing, SDK code generation, and verification. Claude was used for review.

Special notes for your reviewer:

1. Protocol review: all six Counter/List RPCs and nine messages are copied from beta with field numbers unchanged. proto/sdk/beta/beta.proto, generated beta Go files, and existing beta implementations remain unchanged.
2. Stable REST routes follow the existing stable SDK convention: /counters/... and /lists/...; beta routes keep /v1beta1/....
3. Server review: the adapter delegates to existing handlers and forwards existing stable methods. Counter wrapper presence, explicit zero values, list values, field masks, and errors are preserved. The three stable registration sites use the adapter; beta registration is unchanged.
4. Scope review: Feature gate removal belongs to PR 3. This PR does not change gates, per-language SDK wrappers and deprecations assigned to PRs 5–8, dependencies, vendor, charts, or release documentation.
5. Regression review: two new test functions exercise all six stable RPCs, shared state with beta, explicit zero-valued counters, omitted update fields, list update masks, error propagation, and stable/beta REST bindings. Existing beta-only tests cannot cover the new stable service and routes.
6. Generation review: C++ annotation dependencies are generated through the repository script and included in CMake. The original Reserve OpenAPI schema, operation, and all existing paths remain unchanged. Whitespace normalization is limited to stable REST outputs, leaving alpha/beta outputs unchanged.
7. Toolchain review: Go checks use the repository's Docker Go 1.26.5 image with -race. The SDK base uses gRPC v1.83.0; Go/C++/Python generated version headers match the baseline. Node uses the prescribed grpc-tools@1.11.3 in AMD64 Docker with a temporary Debian entrypoint base. No Node/C# Dockerfile or dependency versions were changed.

Native AMD64 Google Cloud validation of the original C# image:

| Item | Actual configuration / result |
| --- | --- |
| Execution service | Compute Engine |
| Region / zone | us-central1 / us-central1-a |
| Machine | e2-standard-4: 4 vCPUs, 16 GB RAM, native x86_64 / linux/amd64 |
| Host / disk | Official Debian 13 image; 100 GB balanced persistent boot disk |
| Runtime limit | 10,800 seconds (3 hours), automatic STOP |
| Source verification | SHA-256 verified for all 46 uploaded repository files against the current staged/worktree content before execution |
| Build environment | Original repository gRPC base Dockerfile (gRPC v1.83.0) and original C# Dockerfile; original build.sh, project file and package versions |
| Toolchain observed | Debian 13 AMD64; .NET SDK 8.0.425, runtime 8.0.31 |
| Validation start / success | 2026-10-04 14:09:39 / 15:15:09 UTC (New York 10:09:39 / 11:15:09) |
| Actual elapsed time | 65 minutes 30 seconds, including the original gRPC base build |
| Publish output | sdks/csharp/sdk/bin/Release/netstandard2.0/publish/AgonesSDK.dll |
| Result | Original-image Release publish passed; published DLL existence independently verified from disk and after downloading the artifact |

Exact cloud build command:

make -C build build-sdk SDK_FOLDER=csharp WITH_ARM64=0   VERSION=1.62.0-dev-5366fb7   common_mounts='-v /workspace:/go/src/agones.dev/agones'

Successful cloud validation sequence:

1. Verified SHA-256 hashes for all 46 uploaded repository files against the current staged/worktree content.
2. On the native AMD64 Google Compute Engine VM, built the repository's original gRPC base (v1.83.0) and original C# image using the unchanged Dockerfiles, build scripts and package versions.
3. Executed the existing dotnet publish -c Release through make -C build build-sdk SDK_FOLDER=csharp. Project restore, protobuf code generation, compilation and Release publish completed successfully.
4. Confirmed AGONES_PR4_PUBLISH_VERIFIED and AGONES_PR4_RESULT SUCCESS at 2026-10-04 15:15:09 UTC. Independently verified the published DLL from disk and after downloading it. The complete successful log and artifact were retained locally.
5. Removed the temporary VM, boot disk, source bucket, service account and its temporary logging role binding after preserving the validation evidence.

Local validation (Docker on a macOS ARM64 host):

| Check | Command / environment | Result |
| --- | --- | --- |
| Full SDK generation | make -C build gen-all-sdk-grpc; two complete runs after the Stable-only REST whitespace correction | All 308 SDK file SHA-256 hashes matched |
| Required Go lint and tests | make -C build lint test-go WITH_ARM64=0 DOCKER_RUN_ARGS='-e GOMAXPROCS=3'; repository Go 1.26.5 Docker image | Passed; 0 lint issues; -race enabled |
| Stable/Beta regression coverage | Included in the Go suite above: all six Stable RPCs, Beta shared-state compatibility, explicit Counter zero values, omitted fields, List field masks, error propagation, and Stable/Beta REST routes | Passed |
| C++ SDK | make -C build build-sdk SDK_FOLDER=cpp | Build, install, archive and format verification passed; format inputs are handwritten sdk.cc / sdk.h, and generated protobuf sources are compiled |
| C# supplementary ARM64 build | make -C build build-sdk SDK_FOLDER=csharp SDK_IMAGE_TAG=agones-pr4-csharp-native:8.0.425; official native ARM64 .NET 8.0.425 image with the unchanged repository build script and package versions | Release publish passed |
| Rust SDK | make -C build test-sdk SDK_FOLDER=rust DOCKER_RUN_ARGS='-e CARGO_BUILD_JOBS=3' | 4 tests passed |
| Node SDK | make -C build test-sdk SDK_FOLDER=node DOCKER_RUN_ARGS='--platform linux/amd64'; prescribed grpc-tools@1.11.3, original Node Dockerfile, temporary Debian entrypoint base | 78 specs passed |
| Python SDK | make -C build test-sdk SDK_FOLDER=python | 31 tests passed |
| Static compatibility checks | git diff --check; Beta protocol/generated Go and Alpha/Beta REST outputs compared with the baseline; existing Reserve OpenAPI operation and sdkDuration schema compared with the baseline | Passed / unchanged |

The cloud run performed the existing C# build/publish validation. The Go regression suite, C++ checks, Rust/Node/Python tests and code-generation reproducibility checks listed above ran locally in Docker. No additional runtime test suites were introduced for cloud revalidation. Repository source files, Dockerfiles and dependency versions were unchanged during the cloud run.

Diff: 650 lines (+487 / -163) across 8 files Reviewer: markmandel Review duration: 8949m
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
0.52
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.388
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #4765"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 52% (MEDIUM) · Higher = larger blast radius
52%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 20.5% · Safe to merge
20.5%