Skip to content

[CLI] Exclude unset service groups from requests - #4256

Merged
un-def merged 1 commit into
masterfrom
issue_4255_fix_cli_service_groups_compat
Sep 3, 2026
Merged

[CLI] Exclude unset service groups from requests#4256
un-def merged 1 commit into
masterfrom
issue_4255_fix_cli_service_groups_compat

Conversation

@un-def

@un-def un-def commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

ServiceConfigurationParams.groups was added in 0.21.3 (#4177) along with a model serializer that popped groups from every dump and re-emitted it as the legacy replicas: [{count: ...}] shape. Living on the model, it applied in both directions, so a 0.21.3 client never put groups on the wire.

PR #4248 removed that serializer in favor of a server-side patch gated on client_version < 0.21.3. That covers server -> old client, but nothing replaced client -> old server, so 0.21.4 clients always send configuration.groups and servers before 0.21.3 reject it as an extra field.

Exclude service groups when unset, as already done for TaskConfiguration.groups. This covers all three client paths that send a run_spec: get_plan, apply, and gpus/list.

Fixes: #4255

`ServiceConfigurationParams.groups` was added in 0.21.3 (#4177) along
with a model serializer that popped `groups` from every dump and
re-emitted it as the legacy `replicas: [{count: ...}]` shape. Living on
the model, it applied in both directions, so a 0.21.3 client never put
`groups` on the wire.

PR #4248 removed that serializer in favor of a server-side patch gated
on `client_version < 0.21.3`. That covers server -> old client, but
nothing replaced client -> old server, so 0.21.4 clients always send
`configuration.groups` and servers before 0.21.3 reject it as an extra
field.

Exclude service `groups` when unset, as already done for
`TaskConfiguration.groups`. This covers all three client paths that send
a `run_spec`: `get_plan`, `apply`, and `gpus/list`.

Fixes: #4255
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@un-def
un-def merged commit bb1dc7e into master Sep 3, 2026
26 checks passed
@un-def
un-def deleted the issue_4255_fix_cli_service_groups_compat branch September 3, 2026 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: 0.21.4 CLI is not compatible with servers < 0.21.3 (service groups)

1 participant