---
title: "How can we catch bugs that pass CI but break in production? | Proofline"
description: "Find an assumption the test environment shares with the new code and production may violate."
url: https://proofline.sh/learn/ci-passes-production-fails/
---

[Learning center](/learn/)

# How can we catch bugs that pass CI but break in production?

Find an assumption the test environment shares with the new code and production may violate. Common examples include a database upgraded ahead of production, an empty test dataset, or a rollout in which old and new workers overlap.

Deployment failures The Proofline team November 19, 2026 1 min read

## Reproduce the sequence CI skips

Suppose CI creates a fresh database, applies every migration, then starts only the newest worker. A migration can remove a column and pass that test even though a previous worker still selects it. Start the previous worker against the migrated schema and exercise the query it uses during the overlap.

If the query fails, you have established a compatibility defect for those versions. To decide whether this release is exposed, find the deployed worker version and when the migration runs. Add the missing compatibility case to CI when the team supports that overlap. After deployment, verify which revision actually started. [Try the PostgreSQL rollback exercise](/learn/postgres-migration-rollback/) · [Google Cloud Deploy verification](https://docs.cloud.google.com/deploy/docs/verify-deployment)

## One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. [Eligibility and fair-use terms](/free-code-review/).

[Start free with GitHub](https://proofline.sh/orgs/plan?offer=free_month)

## Related reading

-   ### [How can we catch database migrations that might break a running service?](/learn/migration-running-service/)
    
    Breaking migrations The Proofline team November 19, 2026 1 min read
    
-   ### [What AI tools can verify that a deployment is working after it goes live?](/learn/ai-post-deploy-verification/)
    
    Deployment failures The Proofline team November 19, 2026 1 min read
