Repository navigation
feat(sp): show recurring monthly cost in the table and audit log (CLI side) - #2186
Conversation
…Savings Plans Pins the CLI side of cli#2179: the audit line keeps estimated_cost as the upfront payment and adds recurring_monthly_cost. The behaviour comes from the cloud-commitments-go pkg bump (go#359); the go.mod bump lands once that merges. Refs #2179 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reached
This review includes 2 billable files and costs up to $0.50.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 11 minutes for your next included review. View limit details
Comment |
Brings the audit recurring_monthly_cost field and the Recurring$/mo table column. Refs #2179 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # go.mod # go.sum
|
Independent review (claude-opus-5-5) of ecace05: APPROVE ScopeAgainst main 8ddb891, the net diff is Pins and module hygiene
Merge resolution
Audit paths
Est.Cost semantics
Verification
Non-blocking findings
CI at review time: Build CLI, Lint Code, Lint Workflows, pre-commit, Security Scanning, Snyk and CodeRabbit pass. Unit Tests and Integration Tests are still pending, and gosec and Trivy are skipped. |
Closes #2179 (owner decision: keep upfront, add a separate recurring field).
What
Est.Cost/estimated_coststay the upfront payment. The terminal table gainsRecurring$/moand the audit JSONL gainsrecurring_monthly_cost(USD per month, omitted when unknown). Both come from cloud-commitments-go#359 (pkg/reporter,common.AuditRecord); this PR is the CLI regression test plus the pkg pin bump.Dependency (read before merging)
github.com/LeanerCloud/cloud-commitments-go/pkg(and the provider pins to the same commit) on this branch, re-run CI, then merge. Until then the new test does not compile against the pinned pkg (no field) and fails; I will push the bump when given the pseudo-version.No
replaceor go.work is committed.Evidence
TestWritePurchaseAuditRecord_SavingsPlanCarriesRecurringMonthlyCost: against the pinned pkg it FAILS (recurring_monthly_costexpected 1968.81, actual nil); against go#359 it PASSES. Fullgo test ./...passes with go#359 via an external go.work.--profile shift-prdcredentials, no--regions,--include-sp-types EC2Instance, 1yr no-upfront, 30d; built with the fix(sp): region auto-discovery run returns no EC2 Instance Savings Plan recommendations #2176/fix(sp): --include-sp-types / --exclude-sp-types do not narrow the fetch #2177/fix(sp): Savings Plan rows lose Region and instance family in table, CSV and audit #2178 fixes and go#359 locally):Equals hourly x 730 (0.491, 0.28, 2.697).
🤖 Generated with Claude Code