Repository navigation
feat(array): spawn array command group (#389) - #395
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
scttfrdmn
force-pushed
the
feat/389-spawn-array
branch
from
July 19, 2026 16:23
924fad5 to
b7a075c
Compare
First-class job-array reporting, discovered by grouping EC2 on the
job-array tags (no server-side record, unlike sweeps):
spawn array status <name> launched vs requested + MISSING indexes
spawn array collect <name> per-index members (+ gaps)
spawn array cancel <name> terminate members (--pending spares running)
`status` surfaces the sparse-index gap a --min-viable partial launch
leaves behind — {total} stays the requested count, so a dense-range
shard scheme silently skips the missing indexes. This is the reporting
the job-arrays docs now warn about.
Scoped deliberately: `logs` and `retry --failed` are not included.
`retry` would need the original launch config, which isn't faithfully
recoverable from tags (command >256 chars, AMI/subnet/SG/user-data are
not tagged). Tracked as follow-ups on #389 rather than shipping a
lossy relaunch.
Closes #389
TestFlagConventions requires any local --json to be MarkDeprecated'd (canonical is root -o/--output), and TestTier0_CommandCoverageGate requires every top-level command to be classified. Deprecate array status's --json and defer the array group to Tier 2/3 (its subcommands act on live instances by tag; the pure missingIndexes logic is unit-tested).
scttfrdmn
force-pushed
the
feat/389-spawn-array
branch
from
July 19, 2026 16:26
b7a075c to
b190e79
Compare
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.
Implements #389 (docs-review follow-up) — first-class job-array reporting.
What
Members are discovered by grouping EC2 on the
spawn:job-array-name/-idtags (the same tagsspawn list --job-array-namefilters on) — no server-side record, unlike sweeps.The headline is
statussurfacing the sparse-index gap: when a--min-viablelaunch brings up 6 of 8,{total}/JOB_ARRAY_SIZEstays 8 and the launched indexes are whatever subset succeeded (e.g. 0,1,2,4,5,7). A shard scheme assuming a dense0..7silently skips the missing work — exactly what the job-arrays docs now warn about, now visible from the CLI.Deliberately scoped
logsandretry --failedare not included (noted on #389):retrywould need the original launch config to relaunch a missing index, but that isn't faithfully recoverable from a surviving member's tags (spawn:commandonly rides when ≤256 chars; AMI/subnet/SG/user-data aren't tagged). Shipping a lossy relaunch would be worse than none.logsneeds SSH/SSM exec plumbing factored into a reusable helper;spawn connect <member> -- tail …covers it today.Tests
cmd/arraygroup_test.gotable-testsmissingIndexes(full / sparse / none / size-zero). The AWS-touching paths are thin wrappers overListInstances+Terminate; no live EC2 in tests.Notes
docs-gen/array.mdgenerated.go test ./cmd/clean.Closes #389