fix(seed): restore deterministic alerts for TestCooper/TestRocky (GRO-1962) #122

Merged
Flea Flicker merged 1 commits from fleaflicker/GRO-1962-deterministic-testcoopper-rocky into dev 2026-06-01 00:35:36 +00:00
Member

Summary

Restore deterministic alerts so TC-API-3.23/3.24 are no longer flaky:

  • TestCooper always gets a behavioral medical alert
  • TestRocky always gets a skin medical alert
  • All other pets follow the ~30% random distribution

Their deterministic alerts on 2 of 507 pets (~0.4%) do not meaningfully shift the overall 25-35% medicalAlerts distribution.

Files

  • — medicalAlerts logic (both insert and onConflictDoUpdate IIFEs)

Testing

  • CI validates lint, typecheck, tests
  • Manual: re-run seed, verify TestCooper has behavioral alert and TestRocky has skin alert on every run

cc @cpfarhood

## Summary Restore deterministic alerts so TC-API-3.23/3.24 are no longer flaky: - **TestCooper** always gets a behavioral medical alert - **TestRocky** always gets a skin medical alert - All other pets follow the ~30% random distribution Their deterministic alerts on 2 of 507 pets (~0.4%) do not meaningfully shift the overall 25-35% medicalAlerts distribution. ## Files - — medicalAlerts logic (both insert and onConflictDoUpdate IIFEs) ## Testing - CI validates lint, typecheck, tests - Manual: re-run seed, verify TestCooper has behavioral alert and TestRocky has skin alert on every run cc @cpfarhood
The Dogfather added 1 commit 2026-06-01 00:35:01 +00:00
fix(seed): restore deterministic alerts for TestCooper/TestRocky (GRO-1962)
CI / Test (pull_request) Successful in 12s
CI / Lint & Typecheck (pull_request) Successful in 17s
CI / Build & Push Docker Images (pull_request) Successful in 1m7s
97da5f332e
Restore deterministic alerts so TC-API-3.23/3.24 no longer flaky:
- TestCooper always gets a behavioral alert
- TestRocky always gets a skin alert
- Their deterministic alerts (~0.4% of total pets) do not shift
  the overall 25-35% medicalAlerts distribution

Co-Authored-By: Paperclip <noreply@paperclip.ing>
Flea Flicker merged commit b15a53a19b into dev 2026-06-01 00:35:36 +00:00
Sign in to join this conversation.