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
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 main2026-11-18 22:17:06 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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 toisPrismaServerUnreachable, and thesyncEventSquadscatch covers this path (the error propagates throughlinkSquadPersonwithout a catch). This PR adds the missing regression test proving that coverage.No production code change — the fix is already in
mainfrom BIT-32470.Paperclip-Issue: BIT-32474