Repository navigation
feat(ec2): cluster placement group actions (#344) - #350
Merged
Merged
Conversation
Add CreatePlacementGroup / DescribePlacementGroups / DeletePlacementGroup and validate RunInstances' Placement.GroupName, so spawn's per-AZ MPI launch path (create → poll available → launch → delete on abandon) is testable end-to-end. - CreatePlacementGroup: GroupName + Strategy (default cluster); duplicate → InvalidPlacementGroup.Duplicate. - DescribePlacementGroups: GroupName.N filter; State=available. - DeletePlacementGroup: unknown → InvalidPlacementGroup.Unknown. - RunInstances: unknown Placement.GroupName → InvalidPlacementGroup.Unknown. New EC2PlacementGroup type + generatePlacementGroupID/ec2PlacementGroupStateKey. Regression test TestEC2_PlacementGroups covers the full lifecycle + error paths. make test (race) + lint clean. Closes #344
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.
Unblocks spawn's MPI/HPC launch path (per-AZ lazy cluster placement groups) against Substrate.
Added
CreatePlacementGroup—GroupName+Strategy(defaultcluster); repeat create →InvalidPlacementGroup.Duplicate.DescribePlacementGroups—GroupName.Nfilter; returnsState=available(spawn polls for this before launching).DeletePlacementGroup— removes by name; unknown →InvalidPlacementGroup.Unknown.RunInstances— validatesPlacement.GroupNameagainst known groups (unknown →InvalidPlacementGroup.Unknown), so the create → poll(available) → launch ordering is testable.New
EC2PlacementGrouptype +generatePlacementGroupID/ec2PlacementGroupStateKeyhelpers.Verification
TestEC2_PlacementGroupscovers the full lifecycle: create → duplicate error → describe(available) → launch-into → launch-into-unknown(error) → delete → describe(empty) → delete-again(error).make test(race) +make lintclean. AWS shapes (placementGroupSet>item, error codes,Placement.GroupName) verified against the EC2 API reference. All API-observable state — squarely in substrate's scope.Closes #344