Skip to content

fix(launcher): a container that never ran keeps its retry (#399) - #501

Open
mblaauw wants to merge 1 commit into
mainfrom
fix/399-launcher-termination-mapping
Open

mblaauw wants to merge 1 commit into
mainfrom
fix/399-launcher-termination-mapping

Conversation

@mblaauw

@mblaauw mblaauw commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

Closes #399.

Summary

Image pull and container config errors with no earlier termination
(ImagePullBackOff, ErrImagePull, InvalidImageName, CreateContainerConfigError,
CreateContainerError, RunContainerError) were mapped to worker_exited, so the
API failed the launch's executions without retry and ended the team run,
although nothing ran.

  • orbit-contracts: new WorkerTerminationReason::WorkerDidNotStart
    ("worker_did_not_start", audit worker.did_not_start) and
    ends_without_retry(), false only for it.
  • launcher mapping: such waiting errors without lastState now map to
    worker_did_not_start; CrashLoopBackOff and errors after a run keep their
    earlier cause. In a Deployment, a terminal pod (an evicted pod stays listed
    as Failed) no longer decides the status while a replacement is live.
  • API: for worker_did_not_start only executions still dispatched fail, marked
    retryable, and report_ended_execution keeps the team poller's queue retry.
    The legacy OOM text fallback matches "OOM"/"OOMKilled" as whole words, not
    "room" or "zoom".
  • Docs (launcher table, runtime contract, events, guides) and the execution
    page message describe the new reason.

Testing

  • cargo fmt --check, clippy --workspace -D warnings: clean
  • cargo test --workspace with a database: 0 failures (188 API integration tests)
  • Mapping fixtures: six waiting reasons without lastState → worker_did_not_start; CrashLoopBackOff and errors after a run unchanged; evicted pod beside a running/pending replacement, evicted alone, failing replacement. Contract test: only worker_did_not_start allows a retry. Whole-word OOM test.
  • pnpm api:generate --check, docs:check, web typecheck and test: passed

Not run on a cluster (scripts/smoke-worker-termination.sh); the evicted-pod case relies on fixtures. Pod phase Unknown / NodeAffinity handling is unchanged.

🤖 Generated with Claude Code

Image pull and container config errors with no earlier termination
(ImagePullBackOff, ErrImagePull, InvalidImageName, CreateContainerConfigError,
CreateContainerError, RunContainerError) were mapped to worker_exited, so the
API failed the launch's executions without retry and ended the team run,
although nothing ran.

- orbit-contracts: new WorkerTerminationReason::WorkerDidNotStart
  ("worker_did_not_start", audit worker.did_not_start) and
  ends_without_retry(), false only for it.
- launcher mapping: such waiting errors without lastState now map to
  worker_did_not_start; CrashLoopBackOff and errors after a run keep their
  earlier cause. In a Deployment, a terminal pod (an evicted pod stays listed
  as Failed) no longer decides the status while a replacement is live.
- API: for worker_did_not_start only executions still dispatched fail, marked
  retryable, and report_ended_execution keeps the team poller's queue retry.
  The legacy OOM text fallback matches "OOM"/"OOMKilled" as whole words, not
  "room" or "zoom".
- Docs (launcher table, runtime contract, events, guides) and the execution
  page message describe the new reason.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

Launcher termination mapping: image pull errors end runs without retry, and an evicted Deployment pod fails a launch whose replacement is running

1 participant