Repository navigation
fix: keyless status over SSM (#222) + --command >256 via user-data (#214/#246) + hibernate help (#79) - #250
Merged
Merged
Conversation
#246), hibernate help (#79) Pre-epic bug batch. #222 — `spawn status` hard-failed "no SSH key configured" on keyless/SSM-only instances (lagotto/cohort-launched), but status needs only Describe + SSM. It now falls back to `spored status` over SSM RunShellScript when no local key resolves, and propagates spored's --check-complete exit code via the new SSMRunResult.ResponseCode (GetCommandInvocation.ResponseCode). connect already injects a key over SSM, so the status path was the gap. #214/#246 — `--command` >256 chars failed RunInstances because the command rode the spawn:command EC2 tag (256-char cap). The plain --command is now embedded in user-data (/etc/spawn/command via BootstrapConfig.Command; ~16KB) and the bootstrap prefers the embedded file over the tag. The tag is still written for short commands + the parameter-sweep path (cmd/sweep.go sets a short per-instance tag), but buildTags no longer writes an oversized tag (which would fail the launch). Non-sweep launches embed; sweeps keep the tag. #79 — --hibernate-on-idle help said "instead of terminate"; the default idle action is stop (reversible), not terminate. Corrected. Tests: bootstrap command-embed (long command round-trips, written-before-read); no-embed when empty; buildTags drops oversized command but keeps short. make check green. Fixes #222, #214, #246, #79.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
This was referenced Jun 25, 2026
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.
Pre-epic bug batch — three contained fixes, one PR.
#222 —
spawn statuson keyless/SSM-only instancesA lagotto/cohort-launched instance is keyless (SSM-only by design, #130), so
statushard-failed withno SSH key configured— but status needs only Describe + SSM, never SSH. It now falls back tospored statusover SSM (RunShellScript) when no local key resolves, and propagates spored's--check-completeexit code via the newSSMRunResult.ResponseCode(fromGetCommandInvocation.ResponseCode).connectalready injects a key over SSM, sostatuswas the remaining gap.#214 / #246 —
--command>256 charsThe command rode the
spawn:commandEC2 tag, which EC2 caps at 256 chars → any non-trivial command failedRunInstances. The plain--commandis now embedded in user-data (/etc/spawn/commandviaBootstrapConfig.Command, ~16 KB headroom); the bootstrap prefers the embedded file over the tag. The tag is still written for short commands and the parameter-sweep path (short per-instance step refs), butbuildTagsno longer writes an oversized tag.#79 — hibernate help text
--hibernate-on-idlesaid "instead of terminate"; the default idle action is stop (reversible), not terminate. Corrected so users don't avoid the flag thinking the alternative is destructive.Tests
buildTags: oversized command not tagged; short command still taggedmake checkgreenFixes #222, #214, #246, #79.
Part of the pre-epic cleanup; will batch into one release with the already-merged #247/#248.