Repository navigation
Route all job arrays through cohort, delete legacy loop (MPI cohort Stage 2) - #373
Merged
Merged
Conversation
…tage 2) Job-array launches (--count > 1) now always use the cohort reconciler: - --mpi → launchMPICohort (NewMPICohort, all-or-nothing: a missing rank makes the cluster useless). - plain → launchPlainArrayCohort (NewPartialCohort, --min-viable members, default 1 = independent; one member's terminal failure no longer drains the rest). Both share launchCohort (intents + AZ chain + reconcile + render). - Delete the hand-rolled launchJobArray goroutine loop. runLaunchBatch stays (shared with the sweep path); renderJobArrayResult stays (shared output). - Add --min-viable (default 1); clamp to [1, count] in buildCohort. - --reconciler is now a hidden deprecated no-op (warns if passed) — removed in a later stage. - e2e: repurpose the cohort twin to cover the --mpi path (both paths are cohort now); add unit tests for buildCohort (MPI vs partial, min-viable clamping). Stage 2 of the cohort MPI integration (plan: majestic-enchanting-kernighan).
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
…t model MPI setup) The --mpi path runs EFA/placement-group validation against real EC2 APIs the substrate fake doesn't model (and t3.small isn't MPI-capable), so the twin now exercises the plain-array cohort with explicit all-or-nothing --min-viable=count. The --mpi path is covered by the real-AWS MPI tier (Stage 5).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stage 2 of the cohort MPI integration. Makes cohort the only engine for job-array launches and retires the hand-rolled goroutine loop.
What
spawn launch --count > 1now always routes through the cohort reconciler:--mpi→launchMPICohort(NewMPICohort, all-or-nothing — a missing rank makes the cluster useless).launchPlainArrayCohort(NewPartialCohort) with the new--min-viableflag (default1= independent members; one member's terminal failure no longer tears down the rest, unlike the old loop). Set=--countfor strict all-or-nothing.Both share a
launchCohortcore (per-index intents + AZ chain + reconcile + render).Removed / deprecated
launchJobArray(the hand-rolled parallel loop with best-effort cleanup).runLaunchBatchstays — it's shared with the sweep path.renderJobArrayResultstays — shared output contract.--reconcileris now a hidden no-op that warns if passed; removed in a later stage.Tests
TestBuildCohort— MPI is alwaysMinViable=len; plain array uses clamped--min-viable; partial cohorts areNoAssembly.TestBuildAZChain_PlacementGroupGate,TestOrderAZs(from Stage 1) still pass.--mpipath (both paths are cohort now); base job-array test covers the plain path.go build ./...,cmdtests, gofmt clean; no new lint in changed files.Depends on Stage 1 (#371, merged). Part of the cohort MPI integration; the plan's central PG↔AZ-fallback work is Stage 3.