test(sports): cover 57P03 from personForIdentity sportsPlayer.findMany (BIT-32474) #278

Merged
spark merged 1 commits from fix/BIT-32474-sports-57p03-personforidentity into main 2026-11-18 22:17:06 +00:00
Owner

Context

BIT-32474 reports a 57P03 (database shutting down) error escaping at personForIdentity → sportsPlayer.findMany, one call deeper than the path covered by BIT-32470. BIT-32470 already added 57P03 matching to isPrismaServerUnreachable, and the syncEventSquads catch covers this path (the error propagates through linkSquadPerson without a catch). This PR adds the missing regression test proving that coverage.

No production code change — the fix is already in main from BIT-32470.

Paperclip-Issue: BIT-32474

## Context BIT-32474 reports a 57P03 (database shutting down) error escaping at `personForIdentity` → `sportsPlayer.findMany`, one call deeper than the path covered by BIT-32470. BIT-32470 already added 57P03 matching to `isPrismaServerUnreachable`, and the `syncEventSquads` catch covers this path (the error propagates through `linkSquadPerson` without a catch). This PR adds the missing regression test proving that coverage. No production code change — the fix is already in `main` from BIT-32470. Paperclip-Issue: BIT-32474
spark added 1 commit 2026-11-18 22:06:03 +00:00
test(sports): cover 57P03 from personForIdentity sportsPlayer.findMany (BIT-32474)
ci / rust (pull_request) Successful in 4m19s
ci / typescript (pull_request) Successful in 9m29s
b1f0df9662
BIT-32470 added 57P03 to isPrismaServerUnreachable and proved it for
linkSquadPerson's person.findFirst (FPA licence lookup), but the error
loop reported the same 57P03 one call deeper at personForIdentity's
sportsPlayer.findMany — the path taken when a squad player has no
externalId and is matched by birthDate/fullName. The same
syncEventSquads catch covers it (the error propagates through
linkSquadPerson without a catch), but no test exercised that path.
Add a regression test that makes sportsPlayer.findMany throw 57P03 on
the personForIdentity call and asserts the info-level stop-and-return
zeros behaviour.

Paperclip-Issue: BIT-32474
spark merged commit 9f5456dfc1 into main 2026-11-18 22:17:06 +00:00
Sign in to join this conversation.