Deploy Safety: Reducing customer impact from change
Slack's Deploy Safety Program cut customer impact hours from change-triggered incidents by 90% from the 2024 peak, after finding that 73% of customer-facing incidents came from Slack's own changes, mostly code deploys. The program set North Star goals of automated detection and remediation within 10 minutes, manual remediation within 20 minutes, and catching bad deploys before they reach 10% of the fleet. It tracked progress with a trailing metric: hours of customer impact from high-severity and selected medium-severity incidents. The largest gains came from metrics-based deploys with automatic rollback for Webapp backend, a pattern later extended through a centralised deployment orchestration system. Lessons include waiting through a 3-6 month lag before results show, keeping the metric consistent, and making rollback tooling routine through frequent use and training.
Related posts
- The Scary Thing About Automating Deploys
Slack Engineering mediumAdeptSlack's ReleaseBot automates deploys of its monolithic Webapp, shipping 30-40 times a day with a median of 3 PRs per deploy. It replaced rotating human Deploy Commanders after running in parallel with them for a quarter and catching issues faster. The core idea is that deploy monitoring is about anomalies, not absolute thresholds: z scores over a 3-hour window (usually a threshold of ±3) flag statistical spikes. Static and dynamic thresholds serve as lower-confidence signals. Practical tips cover handling zero standard deviation, one-sided thresholds, snoozing expected shifts, and watching unusual metrics such as status-page traffic, log volume and Envoy panic routing.
- Slowing Down to Speed Up – Circuit Breakers for Slack’s CI/CD
Slack Engineering mediumAdeptSlack added orchestration-level circuit breakers to Checkpoint, its CI/CD orchestration service, to stop cascading failures between internal systems such as GitHub Enterprise, Jenkins, test environments, Flannel, Vitess and search. CI/CD request volume grew about 10% month over month, and vertical and horizontal scaling had stopped keeping up. Checkpoint's background jobs query dependent-service health in Prometheus through Trickster. When thresholds are exceeded, the breakers open, deferring or shedding test jobs, and they close again when the services recover. The Hacklang implementation drops the half-open state because job retries and cached TTL queries handle recovery, fails closed when metric lookups error, and notifies engineers whenever a breaker changes state.
- Balancing Safety and Velocity in CI/CD at Slack
Slack Engineering mediumAdeptSlack restructured CI for its Webapp monorepo from mostly pre-merge end-to-end testing into three tiers: a small pre-merge set (<1% of e2e tests) that blocks merges, a post-merge set (<10%) that blocks deploys, and a bi-hourly batched regression pipeline for low-criticality features. The move was driven by the arithmetic of flakiness: even a 1% per-suite flake rate across 60+ suites meant most PRs hit a flaky failure. Consecutive-failure alerts based on a state machine, per-business-area triage channels with test ownership, and a Slack bot that spins up escalation channels with the right liaisons kept the change safe. Afterwards p95 test turnaround fell over 40% to under 18 minutes, per-PR flakiness dropped over 90% to under 5%, and customer-reported defects showed no measurable increase.
- Continuous Load Testing
Slack Engineering mediumAdeptSlack moved to running its Koi Pond load-testing clients continuously, 24/7, against an organization 4x the size of its largest customer. Performance regressions get caught on every deploy without the cost of spinning up test environments. Making this safe required an Automatic Shutdown service that polls Prometheus via Trickster and stops tests when thresholds are breached (e.g. API success below 95% for five minutes), partial shutdown and Emergency Stop controls, DynamoDB-backed persistence so the Keeper survives pod restarts, and automated token generation via cron, job queues, exponential-backoff retries and encrypted S3 storage. A gradual rollout from 5,000 to 500,000 clients with cross-team communication produced zero off-hours pages in six months, and an ad-hoc test that once took a day of effort now takes minutes.
- How River takes security work from a fix to merge
Shopify Engineering mediumAdeptRiver, Shopify's Slack-based AI agent, drives dependency and application vulnerability fixes from patch to verified closure. It revalidates each ledger entry against the live repository head, PR state and vulnerability tracker before editing. It replays upgrades on the current head, grafts changes into the current lockfile, and ignores CI results from superseded commits. When it reaches a decision it cannot make, it hands owners one narrow question. After merge it confirms the default branch no longer carries the vulnerability. In the first 11 days the dependency backlog fell about 70%, and security merges through the freshness-gated merge queue rose from about 10% to 80%. The key lesson is that prompts can express judgment, but guarantees such as enumeration, deduplication and current-head identity must be enforced in code.