Repository navigation
fix(pool): workers now boot (AMI+IAM), no queue leak on failure, fault detail (#70) - #461
Merged
Merged
Conversation
…rface fault detail (#70) Found by a real-AWS smoke test: pool create launched workers with no AMI/IAM (RunInstances MissingParameter → never reached min-viable), left the SQS queue orphaned when provisioning failed, and reported no cause. All three fixed.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
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.
Three
spawn pool createfixes, all found by the first real-AWS smoke test of the pooled engine (2 × t3.micro in the dev account; instances torn down, leak-checked clean).1. Workers never booted —
MissingParameterprovisionPoolWorkersbuilt a rawaws.LaunchConfigand the taskcohort Actuator callsClient.Launch(RunInstances) directly — bypassing the AMI auto-detect and IAM-profile setup thatlauncher.Provisiondoes forspawn task run. With noImageId, every worker failedMissingParameterand the pool never reached min-viable. Fix: resolveGetRecommendedAMI+SetupSporedIAMRoleonce up front (workers are homogeneous) and launch with a complete config. Verified: workers now reachrunningwith the spored profile and correct tags.2. Failed create leaked the SQS queue
The queue is created before provisioning; on a provisioning failure there were no workers to drain it, so it lingered.
createnow deletes the queue on the failure path.3. Opaque failure
"failed to reach min viable" gave no cause. Now renders each worker's terminal fault (AWS code + phase from the cohort
Record), mirroringlaunchCohort. This is literally what turned #1 from "mystery" into "MissingParameter at launch-acked" in ~2 minutes.go build ./...,go vet ./cmd/, and the cmd SDK-import / flag-convention gates pass.Refs #70.