It was a Tuesday. The pull request was clean. Peer review: approved. Unit tests: green across the board. Staging smoke tests: passing. The deploy pipeline finished at 4:47 PM, and the whole engineering team logged off feeling quietly smug.

By Thursday morning, the SEO lead had filed a ticket with the subject line: "Organic traffic down 34% — please advise."

The culprit? A routing refactor that reorganized URL structures under /blog/. Clean code. Tested code. Code that never once touched the sitemap generation logic — or so we thought. The refactor silently invalidated 200+ canonical URLs that Google had been happily indexing for months. The sitemap still rendered. It just pointed to 404s. Green build. Red SEO.

This is the story of how we stopped trusting green checkmarks and started doing CI/CD pipeline SEO testing the right way.

The Real Problem: You're Testing the Code, Not the Output