You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
--count/--mpi job arrays ship DOUBLE-gzipped user-data: cloud-init runs nothing, members never enroll, and the failed cohort leaves instances running #671
No job-array/MPI instance boots its bootstrap.cmd/launch_jobarray.go:88-112 base64-decodes instanceConfig.UserData. Since encodeUserData (launch_config.go:357) that value is gzip, not text. The code then appends "\n" + mpiScript to the compressed bytes and calls encodeUserData again. What ships is gzip( gzip(bootstrap) + "\n" + mpiScript ).
cloud-init unwraps one gzip layer, finds binary, and skips it:
→ gchp-spawn-smoke-{0,1}: terminal/PhaseBudgetExceeded at phase=enrolled after 2 rung(s) (~5.5 min), plus could not delete abandoned placement group ... InvalidPlacementGroup.InUse.
Second bug, same run: the failed cohort leaves its instances RUNNING
After "job array launch failed (2/2 members)", both c8g.48xlarge were still running ($7.66/hr each). That's also why the PG was "in use". Since spored never installed, nothing on-instance enforces spawn:ttl either. Only the reaper Lambda stands between this and indefinite billing, if the account has it (#624). I terminated them by hand after 7.4 min ($1.9). A cohort that goes terminal must terminate the members it launched before returning, and then delete the PG.
Fix
Build the combined script from the plain-text base script, i.e. keep the unencoded script on the config, or gunzip before appending. Then encode once.
Add a test that decodes the final UserData once (base64 → gunzip) and asserts it starts with #! and contains both the bootstrap and the MPI block.
Add an e2e/smoke check that a --count 2 --mpi member reaches enrolled. This has evidently been broken since user-data gzip landed.
On cohort terminal failure: terminate the members, then delete the PG.
Activity
fix(jobarray): single-gzip the user-data, and always drain a failed c…
fix(jobarray): make the failed-cohort drain actually drain, and unbin…