fix(auction): harden lifecycle and durable bid storage

Serialize lifecycle changes and make cancellation, deadlines, and match side effects recoverable and idempotent.

Archive accepted bids durably, quarantine invalid payloads, and preserve compatibility with empty round IDs. Synchronize HTTP polling and socket state with scoped resync events.

Add cancellation cleanup index migration and regression coverage. Validated with 744 API tests, 65 Redis integration tests, and 28 Mongo integration tests.
This commit is contained in:
dahyeon committed 2026-11-09 23:24:11 +09:00
1 parent f2eec479d9
commit f649490cd2
55 files changed
+5374 -522

No files matched your search

@@ -7,6 +7,26 @@ import {
const rosterMessage = "팀 배정 상태를 확인해야 해 경매를 완료하지 못했습니다.";
test("asks an outdated client to reload instead of claiming the player advanced", () => {
const message =
"경매 화면이 업데이트되었습니다. 새로고침한 뒤 다시 입찰해 주세요.";
assert.equal(
resolveAuctionRejectionMessage({
auctionRejectionReason: "BID_REJECTED_BECAUSE_CLIENT_UPDATE_REQUIRED",
message,
}),
message,
);
// An older bundle without the new reason mapping still displays the server message.
assert.equal(
resolveAuctionRejectionMessage({
auctionRejectionReason: "UNRECOGNIZED_NEW_CLIENT_REASON",
message,
}),
message,
);
});
test("shows the common error message when roster validation blocks completion", () => {
assert.equal(
resolveAuctionRejectionMessage({