Repository navigation
fix(gcp/memorystore): list Redis SKUs from the Cloud Memorystore for Redis billing service - #483
Conversation
|
@coderabbitai review |
|
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 46 minutes for your next included review. View limit details
Comment |
|
…Redis billing service The hardcoded billing service ID returned 404 from the live Cloud Billing API, so Memorystore pricing could never load. Use services/5AF5-2C11-D467 via a named const and assert the ID passed to ListSKUs. Closes #380 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6b40833 to
c31c81f
Compare
Independent adversarial review: CLEAN at
|
|
Merged by squash at reviewed head
CR waived: quota, adversarial review + local verification + green CI. A retrospective CodeRabbit review will run when quota returns. Closes #380. |
Summary
listSKUsinproviders/gcp/services/memorystore/client.golisted SKUs ofservices/D559-82DA-3A56, which the issue reports returns 404 live, so every Memorystore pricing lookup failed and was only logged. It now usesservices/5AF5-2C11-D467(Cloud Memorystore for Redis) through a named const, followingcomputeServiceIDin computeengine.listSKUsis the onlyListSKUscall in the package; no other code references the old ID.Closes #380
Tests
TestListSKUs_UsesMemorystoreForRedisServiceID(newservice_id_test.go) uses a spyBillingServiceand asserts the service name passed toListSKUs.services/5AF5-2C11-D467, actualservices/D559-82DA-3A56. Passes after.Verification
make build,make vet,(cd providers/gcp && GOWORK=off go test -race -short ./...), pinned golangci-lint v2.10.1 (0 issues), gofmt and the commit/pre-push hooks pass.Evidence is fixture-based. No live Cloud Billing call was made, so the correctness of
5AF5-2C11-D467rests on the live observation recorded in the issue; nothing else in the repo corroborates it.Local review: one adversarial non-author pass, no actionable findings (mutation probe reverting the const fails the test; hunk does not overlap #433 or #471).
🤖 Generated with Claude Code