Repository navigation
feat(commitmentopts): use AWS SP probe in Validate path (closes #134) - #825
Merged
Merged
Conversation
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.
Summary
commitmentopts.Validatethat described Savings Plans as "not commitment-capable in our probe set" -- PR feat(commitmentopts): probe Savings Plans offerings live (closes #108) #569 addedSavingsPlansProbertoDefaultProbers, making that comment incorrect.Validatetests covering SP service keys (savings-plans-compute,-ec2instance,-sagemaker,-database) to close the coverage gap that the chunk-0 bucket-A verification flagged.Precedence chain
probe snapshot present for service key-> reject invalid combosservice key absent from snapshot-> permissive fallback (plan type not offered in region)ErrNoData (cold store / no AWS account)-> permissive fallback (never block saves)What PR #569 left incomplete vs claimed
The probe code and
DefaultProberswiring were complete. The gap was:Validatestill implied SP was unprobed.Validatepath with the real SP service keys, so the probe-first behavior was unverified.The
Validatelogic itself was already correct post #569 --Getroutes throughprobeAndPersistwhich fans out allDefaultProbersincludingSavingsPlansProber. This PR closes the documentation and test coverage gap.Test plan
go test github.com/LeanerCloud/CUDly/internal/commitmentopts/...-- 83 pass (79 pre-existing + 4 new)go vet ./internal/commitmentopts/...-- cleanSummary by CodeRabbit
Bug Fixes
Tests