Back to articles
Your staging environment is lying to you
NewsDevOps

Your staging environment is lying to you

via Dev.toTudor Brad

I got a call from a client on a Tuesday morning. Their checkout flow was broken in production. Users couldn't complete purchases. Revenue was bleeding. The thing is, their staging regression suite had passed. Every test green. The deployment went through without a hitch. And yet real users were hitting a payment confirmation page that spun forever, because a third-party webhook URL had been updated in production but not in the staging environment config. Their regression tests checked that the checkout flow worked. They didn't check that the checkout flow worked with the actual production webhook endpoint, because staging had its own endpoint, and that one was fine. This is not a rare story. I run QA operations across teams in 24 countries, and this exact pattern shows up every few weeks. A team invests serious effort into staging regression tests, those tests pass, and production breaks anyway. Not because the tests were wrong, but because the tests were answering the wrong question.

Continue reading on Dev.to

Opens in a new tab

Read Full Article
2 views

Related Articles