Repository navigation
feat(sp): add --sp-account-scope to choose linked or payer recommendations - #2185
Merged
Merged
Conversation
…tions Pass the new RecommendationParams.SPAccountScope through to the provider. Default stays linked. Requires cloud-commitments-go#357; the go.mod bump lands once that is merged. Closes #2180 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Warning Review limit reached
This review includes 6 billable files and costs up to $1.50.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 22 minutes for your next included review. View limit details
Comment |
Brings RecommendationParams.SPAccountScope and its provider support. Refs #2180 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
|
Independent review (claude-opus-5-5) of bbeec06: APPROVE Dependency pin
Behaviour against the library
Local verification
Non-blocking findings
CI at review time: every check passes except Unit Tests, which is still pending, so the CI Success gate has not reported yet. |
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.
Closes #2180
What
New
--sp-account-scope linked|payerflag (defaultlinked, so current behaviour is unchanged). Validated up front (validateSPAccountScope), carried inConfig.SPAccountScope, and passed to the provider asRecommendationParams.SPAccountScope. Documented in docs/cli/README.md. RI recommendations are not affected; whether they need the same is tracked in #2181.Dependency (read before merging)
Depends on LeanerCloud/cloud-commitments-go#357, which adds
RecommendationParams.SPAccountScope. This branch does not build against the currently pinned library, so CI will fail until the go.mod bump to the merged library commit is pushed to this branch. Order: merge go#357, then bumpgithub.com/LeanerCloud/cloud-commitments-go/{pkg,providers/aws}here, re-run CI, then merge this PR. Noreplaceor go.work change is committed.Evidence
Built against the go#357 branch via a go.work kept outside the repo.
TestFetchRecommendationsForRegion_PassesSPAccountScope: without the cmd/multi_service_helpers.go line, FAIL (expected "payer" actual ""); with it PASS.TestValidateSPAccountScopecovers empty/linked/payer/PAYER and rejectsorg. Fullgo test ./...passes (1353);go vetclean.--services savingsplans --include-sp-types Compute --term 1 --payment no-upfront --rec-lookback-period 30d --coverage 100:--sp-account-scope payer: 1 recommendation, HourlyCommitment 2.787, $166.80/mo, 3.2%, matchingaws ce ... --account-scope PAYER.🤖 Generated with Claude Code