The Real Fullstack

The Failed Production Release

The tests were green and the rollback button exists. Why is production still down after pressing it?

Arquiteto15 minLaboratório de depuraçãoSimulador de linha do tempo
kubernetesgithub-actionspostgresqlopenapiflyway

Este desafio ainda não foi traduzido para Português (Brasil). Você está lendo a versão em inglês.

Missão:Stop the bleeding (DevOps), restore compatibility and safe rollbacks (Backend), make sure this can't reach production undetected again (Reliability), then resolve everything as one team (Fullstack).Contexto · Objetivos de aprendizagem ▾

Brightcart's release 5.0 renamed orders.address to shipping_address in a Flyway migration that ran before the rollout. Old pods failed immediately, Android 3.2 crashed on the missing field, and rolling back the image didn't help because the old code needs a column that no longer exists.

Missão: Stop the bleeding (DevOps), restore compatibility and safe rollbacks (Backend), make sure this can't reach production undetected again (Reliability), then resolve everything as one team (Fullstack).

Objetivos de aprendizagem

  • Understand why schema changes make rollbacks one-way.
  • Apply expand/contract and backward-compatible APIs.
  • Shift detection left with contract tests.
SimulaçãoSimulado
CI/CDCheckout podsPostgreSQLAndroid 3.2
Executar simulação
  • 09:00INFOpipelinerelease 5.0: Flyway V88__rename_address.sql (ALTER TABLE orders RENAME COLUMN address TO shipping_address) then rollout
  • 09:02ERRORcheckout v4 podsPSQLException: column "address" does not exist (pods not yet replaced)
  • 09:03ERRORandroid 3.2JSON parse error: required field "address" missing
  • 09:05WARNon-callkubectl rollout undo → v4 pods crash on the same missing column
  • ciINFOpipelineunit + integration tests green (run against the new schema only); no consumer contract tests