Back To Posts
Production-grade e2e runner
Sanket Joshi · November 20, 2026

Most e2e suites don't fail because of bad tests. They fail because nobody owns the run.

We have about 1,000 Playwright tests across 10 business workflows in our utility billing platform: onboarding → meter readings → billing → invoicing → payments → collections.

Writing them was the easy part. AI agents now plan, generate and heal our specs. Running them reliably is the hard part.

Here's how we're setting up a production-grade e2e runner:

1. Measure before you buy
Before sizing any machine, we count every test, time every spec, record pass and flaky rates, and measure what one test lane uses in CPU and RAM. The hardware and the "3-hour nightly" target come from those numbers, not from guesses.

2. Selective on PR, full at night
↳ Each PR runs about 25 smoke tests plus the workflows its code touches.
↳ Every night, the full suite runs in parallel lanes on a dedicated machine, each lane restored from a clean snapshot.
↳ Every test runs at least once a day, and no PR waits hours.

3. Isolate everything
Each lane gets its own database, cache and mail trap (Mailpit). Payments and SMS run in test mode only. A test run can never email a real customer.

4. AI triage every morning
An AI agent reads the night's failures and sorts each one as an app defect, test fault, environment problem or flaky test. It drafts the tickets and fixes, and a human approves them. Forty red tests become a five-line summary.

5. Treat flaky tests as bugs
Quarantine holds at most 5 specs for at most 7 days. After that, fix the test or delete it.

The stack: Playwright (sharding and merge-reports), Allure Report for history and trends, Docker, a GitHub self-hosted runner, Mailpit. All open source. No Kubernetes, no paid test cloud.

The lesson: e2e is an operating routine, not a folder of tests. A nightly run nobody reads is worth nothing.

How does your team keep e2e trustworthy at scale?

#Playwright #E2ETesting #QA #TestAutomation #AI #DevOps

Originally posted on LinkedIn. Join the discussion there ↗