Skip to content

Fix crucible-kueue fit, readiness, hardware, and lifecycle bugs - #549

Merged
wseaton merged 1 commit into
mainfrom
kueue-status-hardware-fixes
Dec 2, 2026
Merged

wseaton merged 1 commit into
mainfrom
kueue-status-hardware-fixes

Conversation

@wseaton

@wseaton wseaton commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Batch 3 of the crucible-kueue audit:

  • H-9 (kueue::fit and wire serde): treat omitted/null borrowingLimit inside a non-empty cohort as unlimited borrowing (WaitsForQuota), read flavors_reservation when populated, and accept explicit JSON null for Kueue wire slices/maps.
  • H-10 (LLMInferenceService readiness and refit): separate decode and prefill ready pod counts in llm_service_readiness, ignore spec.prefill: null, and evaluate all PerPod sets in refit.
  • H-11 and report hardening: exclude Terminating pods from pod_ready and problem, remove transient ErrImagePull from STUCK_REASONS, treat Succeeded batch pods as having reached Running, and validate kubectl.kubernetes.io/default-container against pod.spec.containers.
  • H-12 (hardware::describe): require node Ready=True, check NoSchedule/NoExecute taints against flavor tolerations/node_taints, filter allocatable accelerators by flavor provides resources, and ignore empty product/driver label values.
  • Lifecycle bugs: call set_active(false) before annotating task_cancelled in cancel_task, patch all Workloads in set_active (for multi-replica LeaderWorkerSet), and guard workload_status service reporting with args.kind.takes_service().

- Treat omitted borrowingLimit inside a non-empty cohort as unlimited
  borrowing in kueue::fit, read flavors_reservation when present, and
  accept explicit JSON null for Kueue wire slices and maps.
- Separate decode and prefill ready counts in llm_service_readiness,
  ignore null spec.prefill, and evaluate all PerPod sets in refit.
- Exclude Terminating pods from pod_ready and problem, remove transient
  ErrImagePull from STUCK_REASONS, treat Succeeded batch pods as having
  reached Running, and validate kubectl.kubernetes.io/default-container.
- Filter hardware::describe by node Ready=True, NoSchedule/NoExecute
  taints vs flavor tolerations/node_taints, and flavor provides
  resources, ignoring empty product/driver labels.
- Deactivate Workload before annotating cancelled in cancel_task, patch
  all Workloads in set_active, and report service in workload_status
  based on kind.takes_service().

Assisted-by: Claude
@wseaton
wseaton enabled auto-merge December 1, 2026 23:47
@wseaton
wseaton added this pull request to the merge queue Dec 2, 2026
Merged via the queue into main with commit 1a1d372 Dec 2, 2026
10 of 11 checks passed
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.

1 participant