Repository navigation
fix: add -y and optional --ami to spawn launch (#18) - #19
Merged
Merged
Conversation
Two launch-command flag fixes surfaced by a run against a head node still on spawn 0.36.6: - -y (auto-approve cost estimate): defensive. On spawn 0.36.9 the pipe-mode JSON-parse bug is already fixed by spawn#34 (explicit --instance-type → flags mode, stdin never read), so this is not a 0.36.9 bugfix — but it guards against any cost-approval prompt ever becoming reachable from our non-TTY ProcessBuilder invocation. On 0.36.6 (which the reporting head node ran) it also avoids the live pipe bug. - --ami from ext.ami (optional): real fix. Without an explicit AMI, spawn auto-detects via ssm:GetParameter on /aws/service/ami-amazon-linux-latest, which requires the instance/caller role to hold that SSM permission (spawn#38). Passing ext.ami sidesteps that dependency; omitting it keeps spawn's own auto-detect behavior. buildLaunchCommand gains an ami param (threaded from ext.ami in submit()). Spock specs assert -y is always present and --ami is passed iff ext.ami is set.
This was referenced Jun 3, 2026
Merged
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.
Two launch-command flag fixes from #18. The reported "silent exit-0 launch failure" was traced to the head node running spawn 0.36.6 (pre-#34, where the pipe-mode JSON-parse bug was live); on 0.36.9 it doesn't reproduce. Both flags are still correct to land.
Changes
-y(auto-approve) — defensive. spawn only reads stdin for cost approval on a TTY, so it's a no-op for our pipe invocation on 0.36.9, but it guards against any cost-approval path ever becoming reachable from aProcessBuilder(and fixes the live 0.36.6 behavior).--amifromext.ami(optional) — real fix. Without an explicit AMI, spawn auto-detects viassm:GetParameteron/aws/service/ami-amazon-linux-latest/..., which needs the instance/caller role to hold that SSM permission (spawn#38). Passingext.amisidesteps that; omitting it preserves spawn's auto-detect.buildLaunchCommandgains anamiparam, threaded fromext.amiinsubmit().Test
Spock specs assert
-yis always present and--amiis passed iffext.amiis set../gradlew testgreen (6 tests).Fixes #18