Repository navigation
chore(deps): bump cloud-commitments-go; scale money on extended-support cuts - #2197
Conversation
…pport cuts Bump pkg and the AWS, Azure and GCP providers to go main 9b35837e, which brings the SP partial-upfront recurring fix, MemoryDB, EC2 Convertible pricing, computed break-even, the coverage drop reason and common.ResizeCount. - helpers_test: expect DropCoverageSizedToZero for --coverage (Closes #2195). - extended-support cut: use common.ResizeCount so the money fields scale with the reduced count instead of keeping the full recommendation's cost. - tests: expect the Convertible service specification and the new Savings Plan recurring figure. - docs: break-even formula, coverage rounding, EC2 platform engine matching, --regions on Savings Plans, region discovery from Cost Explorer. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Independent review (claude-opus-5-5) of f0ea822: APPROVE No blocking findings. Reviewed in a fresh clone at the head SHA (merge-base = current Non-blocking findings
Checks
CI flake diagnosis (
|
Closes #2195
What
pkgandproviders/{aws,azure,gcp}to cloud-commitments-go main9b35837e(go#365 SP partial-upfront recurring, go#374 MemoryDB, go#377 EC2 Convertible pricing, go#376 computed break-even, go#379 coverage drop reason, EC2 platform engine filter,common.ResizeCount).cmd/helpers_test.go:--coveragerounding to zero now expectsDropCoverageSizedToZero(--coverage-sized-to-zero).adjustRecommendationForExcludedVersionssetCountand kept the full recommendation's money. It now goes throughcommon.ResizeCount(resizeAfterExclusion); a count of 0 stays the caller's drop signal, and a resize the library refuses drops the row rather than keeping unscaled money.ServiceSpecification, and the Compute SP no-upfront recurring fixture is 1459.75 (was 1460.00).docs/cli/filtering.md: break-even formula and the drop of uncomputable break-even with an upfront;--coveragerounds down and drops rows that round to 0;--exclude-engines windowsdoes not match "Windows with SQL Server";--regionsis ignored for Savings Plans (--include-regionsworks); region discovery now comes from Cost Explorer (stale since cli#2194).Tests
TestAdjustRecommendationForExcludedVersions_ScalesMoneyWithCount(1 of 3 Aurora instances excluded: count 2, commitment 600 of 900, on-demand 400 of 600, savings 100 of 150, recurring 20 of 30). It fails with the oldrec.Count = newCountand passes now.go vetclean;go test ./cmdpasses (29s;TestQueryMajorEngineVersions_ErrorHandlingskipped locally because it hangs in this session independent of this change).Live dry run (read-only, payer-account credentials, no purchase flags)
--regions: 24 recommendations, total estimated savings 1472.70/mo; Cost Explorer with the CONVERTIBLE specification returns 24 recommendations totalling 1472.69/mo.--max-break-even-months 6on the SP run now filters: 3 of 3 dropped withbreak-even 9.5 / 8.1 / 8.5 months exceeds maximum 6 months, drop summarybreak-even: 3.🤖 Generated with Claude Code
Summary by CodeRabbit
Bug Fixes
Documentation