Autonomous testing of services at scale
Meta built an integration testing framework for back-end services that reuses production containerization and routing to spin up ephemeral test environments, with per-service boundaries where requests go to local services, in-process Python mocks, in-memory replicas, production (read-only) or are blocked. An autonomous extension mirrors a service's Twine production spec, isolates it via application-level RPC filtering plus an LD_PRELOAD layer intercepting libc connect/sendto/sendmsg, and routes unknown RPCs to a universal mock, letting one-third of services run safely with no human setup. Thrift's reflective IDL lets it auto-generate fuzz harnesses and dependency mocks, and mutating sanitized recorded production requests helps fuzzing reach deep code paths past input validation.
Related posts
- BellJar: A new framework for testing system recoverability at scale
Meta Engineering mediumAdeptBellJar is Meta's framework for proving that infrastructure services can recover from a total outage. It builds ephemeral VM environments that are indistinguishable from production but have all network traffic blackholed by fault injection, loopback included. Operators then allowlist only the specific capabilities their recovery needs, such as DNS or a named storage cluster. Each test is written in a few lines of Python and combines the service, hardware, runbook steps, tooling, validation criteria and allowed dependencies into a Boolean recoverability check that can run in CI/CD. The tests also regenerate runbook documentation and expose hidden or circular dependencies. Combined across teams, they form a recovery graph that differs from the runtime graph seen in distributed tracing.
- Building an End to End load test automation system on top of Kubernetes
Zalando Engineering mediumAdeptZalando's payments team built an automated end-to-end load testing system in its Kubernetes test cluster. A Go service, the load-test-conductor, deploys production versions of services, scales Kubernetes and ECS to production configuration, drives distributed Locust workers, then scales down and cleans up. External dependencies are mocked with Hoverfly, chosen after comparing several tools, and Skipper header-based routing lets shared services switch to mocks for load-test traffic. A feedback algorithm adjusts Locust user count and hatch rate each minute to hit a target orders-per-minute KPI. Tests run on a CronJob or via an API call. Results are still judged manually from Grafana dashboards and SLO alerts, and keeping the test environment production-like took the most effort, including mid-test deployments and mismatched infrastructure.
- Achieving Test Reliability for Native E2E Testing: Beyond Fixing Broken Tests
Docker mediumAdeptPatching flaky native E2E tests one by one failed to improve reliability over more than a year. Historical failure analysis showed much of the noise came from unstable environments and shared test account state. The fix was infrastructure: isolated pre-prod or ephemeral environments, standardized containerized emulators, fresh test accounts per session, and mocked feature-flag and A/B responses. On the process side it recommends feature-based test ownership with a single point of contact per flow, remotely muting known-flaky tests, enriched alerts and tracked flakiness trends, plus a hybrid setup running Dockerized Android emulators on PRs and real device farms periodically.
- Functional tests with Testcontainers
Zalando Engineering mediumAdeptBlack-box functional tests for a Spring service can run against the service packaged as a Docker image, with PostgreSQL and other dependencies started as separate containers via Testcontainers. The setup uses a Maven multi-module layout where the functional-tests module has no dependency on service code. Tests talk to the service only through plain JSON over its public REST API, and a shared abstract base class starts containers once with health-check waits, log consumers, a remote debug port and a shutdown hook as a backstop to Ryuk. The approach gives strong confidence during deep refactoring and also verifies the Docker packaging. Its costs are slow container startup (about 4s for Postgres, up to 20s for Localstack), harder debugging, and the need to isolate test data because containers are shared across tests.
- Inside Bitso’s Branch-Based Workflow
Neon easyNovice
Bitso, with 250+ engineers and hundreds of Java microservices talking over Kafka, replaced unreliable shared dev and staging environments with RISE (Robust Isolated Staging Environment). Signadot sandboxes route requests for PR-modified services to isolated versions, and Neon copy-on-write Postgres branches give each sandbox its own production-like database when needed. Roughly half the services could keep sharing a database. Those needing schema changes, write-heavy tests or destructive migrations get per-sandbox branches that scale to zero or are deleted afterward, so the exact tested artifact is what ships to production.