Remove CountsAndLists feature gate from controllers, allocation, auto… #4760
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 254 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.332
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #4760"
general
weight: 0.35
markmandel
What type of PR is this?
/kind cleanup
What this PR does / Why we need it:
Part of graduating
CountsAndListsto Stable. This follows the API validation PR (#4733) and removes theFeatureCountsAndListsgate checks from the controller and allocation code paths, so Counters, Lists and Priorities are always processed:pkg/allocation/converters: always convertPriorities,CountersandListsbetween the allocation API and the CRD types.pkg/gameserverallocations:- Always tie-break with Counter/List Priorities in the allocation cache and in
find.- Always batch requests by
SortKeyin the allocator.- The nil-GSA guard in
ListSortedGameServersstays; only the gate check is removed.pkg/fleetautoscalers: remove the "feature flag not enabled" error forCounterPolicy/ListPolicy.pkg/fleets: always syncPrioritiesto the active GameServerSet and aggregate Counter/List status.pkg/gameserversets: always aggregate Counter/List status, and always use Priorities when sorting for Packed and Distributed.pkg/metrics: always record Fleet Counter and List metrics.Tests:
ParseFeaturescalls and theFeatureTestMutexlocks that guarded them where a test no longer changes feature flags.Which issue(s) this PR fixes:
Works On #4590
Did you use AI tools in preparing this PR?:
Y
Special notes for your reviewer:
FeatureCountsAndListschecks inpkg/sdkserver(sdkserver.go,sdk.go,localsdk.go) are left for the follow-up PR. The gate definition inpkg/util/runtime/features.gostays until those checks are removed too.CountsAndLists=false. They no longer clear Counter/List status on Fleets and GameServerSets, and the autoscaler no longer rejects Counter/List policies when the gate is off.go test -raceoverpkg/...,sdks/go/...andcmd/....