# O Que É um Post-Deployment Check? Verificando um Release ao Vivo

> Um post-deployment check verifica se um release está saudável depois de entrar no ar, detectando deploys ruins rapidamente. Saiba o que testam e como acionam o rollback.

Source: https://latchkey.dev/pt/learn/ci-explained/what-is-a-post-deployment-check  
Updated: 2026-06-26

Um post-deployment check verifica se um release recém-implantado está de fato saudável no ambiente ativo, detectando um deploy ruim antes que os usuários o façam.

Um job de deploy terminar com sucesso significa apenas que o comando de deploy rodou, não que a aplicação está funcionando. Um post-deployment check fecha essa lacuna: depois que um release entra no ar, ele sonda o sistema em execução para confirmar que está saudável. Se o check falhar, o pipeline sabe que o deploy foi ruim e pode acionar um rollback automaticamente.

## O que ele verifica

- O serviço está no ar e respondendo.
- Endpoints principais retornam resultados esperados (smoke tests).
- As health e readiness probes passam.
- As taxas de erro e a latência parecem normais.

## Por que "deploy bem-sucedido" não basta

Um deploy pode ser aplicado sem problemas e ainda assim deixar uma aplicação quebrada: uma config ruim, uma migration falha, um secret ausente. Só exercitando o sistema ativo você descobre se o release de fato funciona. O post-deployment check é esse exercício.

## Um exemplo rápido

Após o deploy, um check acessa `GET /health` e alguns endpoints críticos, confirma respostas 200 e observa a taxa de erro por dois minutos. Se algo parecer errado, ele falha e sinaliza um rollback.

## Acionando o rollback

O verdadeiro poder de um post-deployment check é a automação: um check falho pode acionar o job de rollback sem um humano no circuito, reduzindo de minutos para segundos o tempo em que um release ruim fica no ar.

## Checks e confiança

Post-deployment checks confiáveis permitem que as equipes façam deploy com mais frequência, porque cada release é verificado automaticamente. Eles transformam "faça o deploy e torça" em "faça o deploy e confirme", que é a base da entrega contínua segura.

## Applying this to your pipeline

- Measure before changing. Most CI optimisation targets the wrong step because the slow one is assumed rather than timed.
- Cache what is expensive to produce and cheap to validate, and key the cache to the exact tool version.
- Fail fast: run the cheapest checks that can reject a change first, so an expensive job never starts on code that cannot pass.
- Prefer determinism over speed when they conflict. A fast pipeline nobody trusts gets re-run, which is slower than a slow one that is believed.

## FAQ

### What is What is a Post-Deployment Check? verifying a live release?

A deploy job finishing successfully only means the deploy command ran, not that the application is working. A post-deployment check closes that gap: after a release goes live, it probes the running system to confirm it is healthy. If the check fails, the pipeline knows the deploy was bad and can trigger a rollback automatically.

### Why "deploy succeeded" is not enough?

A deploy can apply cleanly yet leave a broken app: a bad config, a failed migration, a missing secret. Only by exercising the live system do you learn whether the release actually works. The post-deployment check is that exercise.

### A quick example?

After deploying, a check hits GET /health and a couple of critical endpoints, confirms 200 responses, and watches the error rate for two minutes. If anything looks wrong, it fails and signals a rollback.

### Driving rollback?

The real power of a post-deployment check is automation: a failed check can trigger the rollback job without a human in the loop, shrinking the time a bad release is live from minutes to seconds.

---

Latchkey runs CI/CD that repairs its own failures. Agent entry points: https://latchkey.dev/agent.txt, https://latchkey.dev/openapi.json, https://latchkey.dev/llms.txt
