Repository navigation
fix(server): ladder multi-account skip test + naming/comment follow-ups (closes #1370) - #1371
Conversation
…ccount skip test - handler_ladder.go ~256: rename `cap` to `capability` (shadows builtin) - handler_ladder.go ~437: correct comment -- unknown cadence surfaces in ladderConfigToEngine (pre-persist, fail-loud), not during Allocate - handler_ladder_test.go: add TestHandleLadderRun_MultiAccountSkip_CountedAndIsolated which asserts SkippedMultiAccount==1 for a foreign-ExternalID config, nothing persisted for it, and a co-present healthy config still plans
|
Important Review skippedNo new commits to review since the last review. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughThe ladder handler renames a capability variable, clarifies cadence validation behavior, and adds coverage ensuring mismatched multi-account configurations are skipped and isolated while matching configurations continue successfully. ChangesLadder run eligibility
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
Merged to main (closes #1370): positive multi-account skip test (proven to fail when the account comparison is inverted), cap->capability builtin-shadow rename, corrected cadence comment. CodeRabbit clean, functional CI green. |
What
Closes #1370 (follow-ups from the #1362 pre-merge review):
TestHandleLadderRun_MultiAccountSkip_CountedAndIsolated: a config whose ExternalID does not match the resolved caller account is visibly countedSkippedMultiAccount==1, persists nothing, and a healthy config still processes (isolation). Verified the test fails when the account comparison is inverted.cap->capability(builtin shadow).ladderConfigToEngine, pre-persist, fail-loud).Gates all exit 0: build, vet,
go test ./internal/server/...(402), gocyclo.Part of LeanerCloud/cloud-commitments-platform#70. Tracker LeanerCloud/cloud-commitments-go#27.
Summary by CodeRabbit