Automating chaos in CI/CD for continuous verification?
Operationalizing chaos as a gate.
Run codified experiments against staging or canary with pass/fail on steady-state SLIs; prerequisites are observability, automated abort, and isolation.
WHAT THIS TESTS Whether you can elevate chaos from occasional manual exercises to an automated, repeatable verification that prevents resilience from silently regressing release over release.
A GOOD ANSWER COVERS Codify experiments as version-controlled definitions, declaring the fault, the target, the steady-state hypothesis, guardrail metrics, and abort criteria, so they live alongside code. In the pipeline, after deploying to a production-like staging environment or a canary, run the experiment automatically and assert the steady-state hypothesis as a programmatic pass or fail: if the SLIs stay healthy under fault, the check passes and promotion proceeds; if not, the deploy is blocked or rolled back. Prerequisites for safety: reliable observability to evaluate the hypothesis objectively, an automated abort and rollback that fires on breach, strong environment isolation or a tightly bounded blast radius if running against production canaries, and stable, low-flakiness steady-state metrics so the gate is trustworthy rather than noisy. The primary benefit is continuous verification: resilience is validated on every change, so regressions, a removed timeout, a broken fallback, are caught automatically and early instead of being discovered during a real incident.
COMMON WRONG ANSWERS Gating production deploys on chaos without a reliable abort, risking a blocked or harmful pipeline. Using flaky steady-state metrics that make the gate non-deterministic. Running destructive faults against shared environments with no isolation. Treating it as one-time rather than continuous. Ignoring observability, so pass or fail cannot be judged.
LIKELY FOLLOW-UPS Where in the pipeline does it run, pre-merge, staging, or canary. How do you avoid flaky gates. How does this differ from a manual game day. What do you do on a failed gate.
ONE CONCRETE EXAMPLE A pipeline stage deploys the new build to a canary, then runs a codified experiment that kills one downstream replica and injects 100ms latency. It asserts the canary's error rate stays under 0.1 percent and p99 under 250ms for two minutes, with an auto-abort and rollback on breach. A change that removed a retry causes the canary error rate to spike, the gate fails, and promotion is blocked, catching the regression before it ever reaches production traffic.
Read the original → cloud.google.com
Get five bites like this every day.
Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.