Skip to content

feat(exec): colorize and align pod name prefixes in multi-pod output#78

Merged
acmore merged 3 commits intomainfrom
feat/exec-colored-prefix
Apr 14, 2026
Merged

feat(exec): colorize and align pod name prefixes in multi-pod output#78
acmore merged 3 commits intomainfrom
feat/exec-colored-prefix

Conversation

@acmore
Copy link
Copy Markdown
Owner

@acmore acmore commented Apr 13, 2026

Summary

  • Pod name prefixes in okdev exec multi-pod output now use [pod-name] brackets instead of pod-name: for clearer visual separation.
  • All prefixes are right-padded to the same width so output columns align across pods with different name lengths.
  • When stdout is a terminal, each pod gets a distinct ANSI color from a rotating 8-color palette (cyan, yellow, green, magenta, blue, bright red, bright cyan, bright yellow).
  • Piped/redirected output stays plain text with alignment only — no ANSI codes.

Example output on a terminal:

[master-0 ] GPU 0: NVIDIA A100
[worker-0 ] GPU 0: NVIDIA H100
[worker-10] GPU 0: NVIDIA H100

Test plan

  • All CLI unit tests pass (go test ./internal/cli/)
  • Pre-commit formatting check passes
  • bash scripts/e2e_local_kind.sh passes
  • RUN_PYTORCHJOB=1 bash scripts/e2e_local_kind.sh passes

Made with Cursor

acmore and others added 3 commits April 14, 2026 07:34
Use bracketed prefixes [pod-name] instead of pod-name: for clearer
visual separation. Pad all prefixes to the same width so output
columns align. When stdout is a terminal, each pod gets a distinct
ANSI color from a rotating palette for easy scanning.

Made-with: Cursor
Multi-pod exec previously silently skipped pods not yet in Running phase,
causing incomplete execution on LWS workloads where followers start after
the leader. Now errors by default with pod status details and offers
--ready-only to opt into executing on only the ready subset.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
waitForCandidatePodReady previously returned as soon as the single
candidate pod was ready, leaving follower pods (e.g. LWS workers)
still starting. Now continues waiting for every discovered pod to
reach Ready before returning.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@acmore acmore merged commit 700b225 into main Apr 14, 2026
2 checks passed
@acmore acmore deleted the feat/exec-colored-prefix branch April 14, 2026 00:38
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