Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

incident.io 7 min read Case study mediumAdept

Building On-call: Continually testing with smoke tests

incident.io runs an end-to-end smoke test suite for its On-call paging product every minute against production and staging, and also on every pull request and deploy using containers on a single machine. The suite covers core journeys such as alert ingestion and escalation paging, plus edge cases like malformed user JavaScript in alert parsing. Lessons drawn from building it: have each test begin by tearing down leftover state from earlier runs, set up data through the application's own abstractions rather than direct database or ORM writes, and assert on user-visible timing rather than database rows alone. Running continuous traffic also exposed hidden scaling assumptions, such as migrations that slowed down and batch operations that needed rethinking.

Related posts

  • End-to-end test probes with Playwright

    Zalando Engineering mediumAdept

    Zalando turned its end-to-end tests into production probes: a small set of Playwright scenarios covering critical customer journeys runs every 30 minutes and pages on-call when it fails. The trigger was an incident in which bad headless CMS content broke React hydration on product pages, which neither the Cypress pre-release tests (about 95% reliable after hardening) nor existing alerting caught. Playwright's auto-wait, web-first assertions, fixtures, expect.toPass retry loops and :visible pseudo-class selectors made the simplified tests resilient. The tests first ran for a few weeks in a low-priority email-only 'shadow' mode to remove flakiness, and after paging was enabled they fired only once, during a real outage. The main advice is to keep probes focused on critical journeys, write good selectors, and iterate in shadow mode before paging.

  • Continuous Load Testing

    Slack Engineering mediumAdept

    Slack 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.

  • Customers over control: how we measure On-call reliability

    incident.io mediumAdept

    incident.io measures On-call reliability with two customer-centric SLIs, alert ingestion availability and notification delivery latency under 5 minutes, both targeted at 99.99% monthly. Ingestion is measured at the GCP load balancer as good minutes (under 10% error rate) over total minutes, which tolerates self-healing blips. Notification latency stops only when any provider acknowledges, backed by active-active telecom providers added after an October 2025 AWS outage. User-configured delays such as grouping windows, working-hours escalation and staged notification rules are subtracted so intentionally delayed pages still count.

  • How we page ourselves if incident.io goes down

    incident.io mediumAdept

    incident.io dogfoods its own paging product and covers the case where its alerting platform itself fails with a dead man's switch. Every alert is also sent to a separate backup provider with a one-minute delay, and the backup alert is acknowledged automatically once an engineer acks the page in incident.io, including a 10-15 second retry grace period for backup alerts that haven't arrived yet. If incident.io fails to page someone, or nobody acks within a minute, the backup provider pages instead. Occasional slow acks exercise the backup path for real, and a game day that pushed 100x normal load into alert ingestion shows the kind of degradation it guards against.

  • Building Investigations: what it takes to build an AI SRE

    incident.io mediumAdept

    Building a reliable AI SRE took incident.io two years, far longer than the first promising prototype suggested, and the hard work sat in four areas around the model. Accuracy is measured by backtesting against past incidents frozen in time, where the main difficulty is keeping future information (fix PRs, post-mortems, root-cause messages) from leaking into the inputs. The harness fans out across data sources and uses an adversarial agent to challenge each hypothesis; its findings data model went through five versions, from free-form essays to evidence-backed, discountable records written in waves. Heads-up messages must pass layered mechanical checks, 'vibe' checks and tone tuning, and are LLM-graded for novelty and accuracy. Telemetry queries are summarized and graphed for the agent, and a nightly 'Explore' process re-validates stored memories so they stay correct as the organization changes.

The quest for software engineering knowledge.

Look:
Layout: