Wiki: Deploy and Destroy: Testing Environments
For agents: Markdown version · Wiki index · Explore
- Speaker: Michael Arenzon
- Event: Reversim Summit 2019
- Video: https://www.youtube.com/watch?v=GXx2Fl2AtzA
- Transcript: /transcripts/2019/45-GXx2Fl2AtzA.md
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: DevOps, Microservices, Developer Experience, Infrastructure
Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.
Summary
The speaker discusses how rapid company growth leads to a decline in engineering velocity, which can be addressed by moving away from static staging environments toward dynamic, on-demand testing environments. The speaker introduces an internal platform built to spin up and destroy isolated microservice testing environments using simple configuration files and APIs. Ultimately, the audience learns how to treat internal development infrastructure as a product focused on developer experience.
Key points
- 1:12 Rapid company growth and the adoption of microservices often lead to a significant drop in engineering velocity.
- 3:18 Traditional static testing environments suffer from fuzzy version control, unclear ownership, and shared state issues that cause flaky tests.
- 5:27 Testing environments should be treated like cattle rather than pets, defined by human-readable schemas, and managed via APIs with proper isolation.
- 7:33 The speaker introduces an internal platform that allows developers to use JSON files to self-serve isolated testing environments containing services and resources.
- 14:08 DNS records and short names enable seamless service discovery and communication within a specific testing environment.
- 19:15 Integrating the environment creation platform directly with pull request workflows allows developers to automatically test UI and backend changes live.
- 23:53 Handling test data requires delegating snapshot creation to data owners and making logs and metrics highly visible to improve debugability.
- 26:05 Internal infrastructure tools must be built and maintained like products, prioritizing developer experience and smooth abstractions over raw technology.
Takeaways
- Replace static staging environments with dynamic, on-demand environments to eliminate shared-state conflicts and flaky tests.
- Define testing environments using human-readable configuration files like JSON or YAML to make them accessible to all engineers.
- Treat internal developer tools as products by focusing heavily on user experience, self-service APIs, and clear feedback loops.
Questions this talk answers
- How can we prevent developers from accidentally pointing their test environments to production databases?
- What is the best way to handle persistent test data when spinning up temporary environments on the fly?
- How do we design an internal infrastructure tool so that developers actually use it without needing constant DevOps support?
Technologies
Docker, Mesos, Marathon, Traefik, Consul, GitLab, Neo4j
Tags
deployment automation, developer experience, infrastructure as code, microservices, service discovery, testing environments