The Scary Thing About Automating Deploys
Slack'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.
Related posts
- Deploy Safety: Reducing customer impact from change
Slack Engineering easyNoviceSlack'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.
- 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.
- 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.
- 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.
- Reducing our pager load
incident.io mediumAdeptincident.io pages on every Sentry error, and cut the resulting noise with four quick changes instead of switching to error-rate alerting. Go Slack helpers return a separate warning for expected failures such as archived channels or missing scopes, with staticcheck deprecating the raw client. Best-effort code paths set a context-level Urgency so only Urgency=page errors wake anyone. Pub/Sub handlers page only after more than three failed attempts, and errors from sales demo accounts no longer page; one engineer spent about a week and pager load dropped sharply.