acoustic-carpenter-78188
07/20/2026, 9:53 PM<jobSetName>-workers-0-<podIdx>-<suffix> exceeded the 63-char DNS-1035 label limit). The plugin retried the identical, always-invalid object forever, leaving the execution stuck in RUNNING.
What changes were proposed in this pull request?
• clustered/util.go: Add buildJobSetName, which sanitizes and truncates the generated name (appending an FNV hash for uniqueness) so the longest pod name JobSet derives stays within 63 chars. The bound reserves room for the worst-case pod index so the name is derivable from the generated name alone.
• clustered/build.go + plugin.go: Use buildJobSetName on both the create (BuildResource) and lookup/abort (BuildIdentityResource) paths so they always agree on the name.
• plugin_manager.go – addObjectMetadata: Only default the object name to the generated name when the plugin didn't set one, instead of unconditionally clobbering it (which would undo the bounded JobSet name).
• plugin_manager.go – launchResource: Fast-fail on IsInvalid admission errors (InvalidResource) instead of looping via UnknownTransition — a generic safety net so any deterministic validation rejection surfaces as a failure rather than hanging in RUNNING.
How was this patch tested?
• go test ./flyteplugins/go/tasks/plugins/k8s/clustered/...
• TestBuildJobSetName_LongNameFitsPodLimit: a ~140-char name keeps the longest pod name ≤63 and DNS-1035-valid across replica counts 1…100000 (validated with jobset's own placement.GenPodName +
validation.IsDNS1035Label).
• TestBuildResourceAndIdentityNameMatch: create and lookup paths produce the identical (truncated) name for a long generated name.
• Plus sanitization, uniqueness, and trailing-separator cases.
• go test ./executor/pkg/plugin/k8s/...
• Covers the addObjectMetadata name-preservation and launchResource IsInvalid fast-fail behavior.
• To verify end-to-end: run a composed clustered task whose nesting produces a long action name; confirm the JobSet is admitted, pods schedule, and the execution progresses past RUNNING (previously it hung).
Setup process
Screenshots
Check all the applicable boxes
• I updated the documentation accordingly.
• All new and existing tests passed.
• All commits are signed-off.
Related PRs
Stack
If you do use git town to manage PR Stacks, the stack relevant to this PR
will show below. Otherwise, you can ignore this section.
Docs link
flyteorg/flyteacoustic-carpenter-78188
08/07/2026, 11:27 PM