Skip to content

fix: bake batch-array-entrypoint.sh into the image - #470

Merged
eagmon merged 3 commits into
mainfrom
fix/batch-array-entrypoint-missing
Aug 17, 2026
Merged

fix: bake batch-array-entrypoint.sh into the image#470
eagmon merged 3 commits into
mainfrom
fix/batch-array-entrypoint-missing

Conversation

@AlexPatrie

Copy link
Copy Markdown
Collaborator

Summary

  • AWS Batch Array job dispatch (viva-api's new _submit_array path) fails on every commit: the job definition runs /opt/batch-array-entrypoint.sh, but that script was only ever baked into sms-cdk's own standalone Ray image, never into this repo's own per-commit workload image (the one _ensure_array_job_def actually swaps the job definition's image to).
  • Real failure, hit live on a pilot dispatch: CannotStartContainerError: stat /opt/batch-array-entrypoint.sh: no such file or directory.
  • Fix mirrors the existing ray-batch-entrypoint.sh convention exactly (this repo already hand-syncs that script from sms-cdk into docker/) — same treatment for its new sibling.

Test plan

  • docker/batch-array-entrypoint.sh added, synced verbatim from sms-cdk/scripts/batch-array-entrypoint.sh
  • Dockerfile COPY + chmod line added, identical pattern to the existing ray-batch-entrypoint.sh lines directly above it
  • Image build from this branch's commit + pilot Array-job re-dispatch (in progress)

🤖 Generated with Claude Code

…h-entrypoint.sh

The AWS Batch Array job definition (sms-cdk RayArrayJobDef) runs this
image's command as /opt/batch-array-entrypoint.sh, but only sms-cdk's own
standalone docker/ray.Dockerfile baked the script in -- the real per-commit
workload image (what _ensure_array_job_def actually swaps the job
definition's image to) never got it. Every array dispatch failed identically:
CannotStartContainerError: stat /opt/batch-array-entrypoint.sh: no such
file or directory.

Fix mirrors the existing ray-batch-entrypoint.sh convention exactly: a local
docker/ copy (synced from sms-cdk/scripts/batch-array-entrypoint.sh, same as
ray-batch-entrypoint.sh already is) + one COPY + chmod line.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@AlexPatrie
AlexPatrie requested a review from eagmon as a code owner August 7, 2026 02:44

@eagmon eagmon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bake batch-array-entrypoint.sh into the image. Additive, green CI. LGTM (pairs with sms-ecoli#37).

@eagmon
eagmon merged commit ed38bdc into main Aug 17, 2026
7 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.

3 participants