POST-MORTEM · SHAREABLEinc-1025CCCopperfield Contractors
Copperfield dispatch-app: error spike after deploy v4.19.0
GitHub deploy correlated within 4m with Sentry TypeError and Datadog SLO burn on Copperfield's dispatch-app. Rolled back in 24 min.
Time to resolve
23m
People involved
4
Tools correlated
5
Impact
Copperfield · dispatch.copperfield.ca — ~1,100 failed job assignments
Root cause
The new assignment normalization layer assumed every job had a foremanId, but emergency-callout jobs don't populate foreman until dispatch. On production traffic the code path fired on ~1,100 jobs in 4 minutes before the page.
Resolution
Rolled back to v4.18.3 via GitHub Actions workflow_dispatch. Latency and error rates returned to baseline within 6 minutes of rollback.
Action items
- rachel.wu (Copperfield) · PR with regression test for empty-foreman emergency-callout — due in 2 days
- Northern Edge SRE · Upload source maps in CI so future Sentry issues resolve to line numbers — due this week
- Copperfield eng-mgmt · Pilot progressive rollout for dispatch-app changes — due next sprint
Tools involved
GGitHub AuditSySentryDdDatadogPPagerDutySSlack
Timeline
- Deploy to production · dispatch-appCommit c9f4a2 by rachel.wu merged to main and deployed via GitHub Actions. 14 files, 322 lines changed.
- New issue: TypeError in dispatch.assignJob'Cannot read properties of undefined (reading foremanId)'. First seen on release v4.19.0. 411 events in 4 minutes.
- Monitor: p99 latency /api/dispatch > 3s (10m)Latency spiked from 420ms to 4.8s after the deploy. Error rate jumped 0.2% → 11.6%.
- PagerDuty page — Copperfield on-callSLO burn rate: 14x fast. On-call paged; ack in 2m.
- Slack incident channel created — #copperfield-inc-1025Auto-invited on-call + rachel.wu (deploy author). Card links Sentry issue + Datadog dashboard + GitHub diff.
- Rollback deploy · dispatch-app → v4.18.3workflow_dispatch triggered by rachel.wu. Rollback deploy completed in 3m.
- Monitor resolved: p99 latency /api/dispatchp99 back to 470ms. Error rate 0.3%. Recovery confirmed.