Repository navigation
chore(deps): bump cloud-commitments-go to 9cec521 - #1466
Conversation
Move pkg, providers/aws, providers/azure and providers/gcp to the same pseudo-version v0.0.0-20261026094505-9cec521d6531. Azure recommendations carry their currency (go#625). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
computeengine.NewClient no longer takes a context (go#575), and provider.ProviderConfig is deprecated in favour of provider.Config (an alias, so behaviour is unchanged). Update the one call site and rename the type references so golangci-lint stays clean. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reached
This review includes 3 billable files and costs up to $0.75.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 39 minutes for your next included review. View limit details
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Dependency and provider factory configuration go.mod, internal/providerfactory/* |
The four dependencies now use the same pseudo-version. Azure and GCP provider factories and their test helper use provider.Config. |
Purchase configuration resolution and execution internal/purchase/execution.go, internal/purchase/*_test.go |
Purchase credential-resolution results and execution parameters use provider.Config. Related test matchers and calls use the updated type. A GCP test client call no longer passes ctx. |
API and scheduler provider factory calls internal/api/*_test.go, internal/scheduler/scheduler.go, internal/scheduler/*_test.go |
API test factories, scheduler provider construction, and related mock expectations use provider.Config. |
Priority:
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Other
Possibly related issues
LeanerCloud/cloud-commitments-go#624— The dependency update matches the requested platform dependency bump. This diff does not show whether the separate re-drive refusal was removed.LeanerCloud/cloud-commitments-go#623— The dependency update matches the requested platform dependency bump for Azure recommendation currency. This diff does not implement the USD-only plan-cap rule.
Suggested reviewers: iamjsd
Merge Risk: 
Minimal · up to bd33d
-
No actionable issue was established that should block merging this dependency and configuration-type update.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passedFull details: Docstring Coverage
-
Explanation
Docstring coverage is 77.78% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 18 functions across 18 files. (1 skipped: 1 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches: 💡 1
-
📝 Generate docstrings: 💡
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
|
Independent review 1 (cold, fresh context): VERDICT: REQUEST_CHANGES bd33dd3 Findings:
Attacked:
|
…er.Config rename
The guard only matched composite literals named ProviderConfig, so
provider.Config{Profile: ...} was no longer caught after the rename. Match
both names on the provider package, add a table test covering both and an
unrelated foo.Config, and update the guard messages.
Also correct two comments: since go#578 pkg/exchange refuses an unknown
mode instead of treating it as auto.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Independent review 1, delta (same cold reviewer): VERDICT: APPROVE b4851b4 Delta review of b4851b4 on top of bd33dd3. Three files changed: bypass_guard_test.go, api/handler.go (comment only), server/ri_exchange_four_eyes.go (comment only).
|
|
Independent review 2 (claude-fleet, cold): APPROVE at b4851b4 Blocking findings: none. Non-blocking findings:
Fail-closed table (library change / input / newly refused / platform-reachable / overlap / loud or silent / evidence):
Call-site adaptation: the only changes are the ProviderConfig to Config alias rename and the computeengine.NewClient ctx drop in one test. Both preserve behaviour. No library error is swallowed: PurchaseCommitment errors return through execution.go:1215-1230. The b4851b4 comment fixes match the probed behaviour: "auto" executes, any other unknown mode is refused, and 4-eyes downgrades every non-"manual" value. Probes:
Commands, all clean:
Reviewed by an independent agent with no author context (second reviewer). Review only: nothing was pushed, and the GitHub review state is unchanged. |
|
Local verification at
|
Bumps
pkg,providers/aws,providers/azureandproviders/gcpfrom cloud-commitments-go to main9cec521d6531(v0.0.0-20261026094505-9cec521d6531). All four now share one pseudo-version, and there are noreplacedirectives.What it brings:
Values the platform can store, checked against the stricter library:
autoandmanual. The DB default ismanual(migration 000010). An empty value is rewritten tomanualon write. The UI and the exchange handler allow onlymanualandauto. A free-form value sent throughPUT /api/config(fix(config): validate RIExchangeMode on PUT /api/config #1196, not yet validated) now fails closed instead of auto-executing.aws_payment.gonormalises every stored payment tono-upfront,partial-upfrontorall-upfront. Terms are sent as1yror3yr.1yror3yr, which the new parser accepts.Other library changes that refuse input (checked in the first review against what the platform stores or sends):
rec.UpfrontCost). The platform scales upfront cost with count, and a zero upfront skips the check.Product impact (all are explicit refusals, not wrong purchases):
PUT /api/confignow fails the scheduled reshape with a task error and no notification. Validating the mode is fix(config): validate RIExchangeMode on PUT /api/config #1196.Code changes: the second commit adapts to library API changes. No test expectation changed.
computeengine.NewClientdrops its ctx argument (go#575), so the one call in a test is updated.provider.ProviderConfigbecomesprovider.Config(40 SA1019 deprecation warnings; the old name was an alias).Local:
go build ./...andgo vet -tags integration ./...are clean.go test -race ./...has no failures.-tags integrationpasses on purchase, scheduler, api, config and analytics.🤖 Generated with Claude Code