Docs menu

Docs

Deploys and regressions

Codela compares production before and after each deploy, using the same rules for every team. Here is exactly what it checks.

What counts as a deploy

Set per repo in Settings:

  • Automatic (default): uses the deployments GitHub reports (from Vercel, Railway, Render, GitHub Actions and others) once any arrive for the repo. Until then, each pull request merged into the main branch counts as a deploy, assumed live 5 minutes after merging.
  • Only deployments: only deployments GitHub reports. Merges are ignored.
  • Merges: every merge into the main branch is a deploy.

With deployments, you can pick one environment, e.g. production. By default, every environment except previews is checked.

Deploys that only change tests, docs, CI config or Codela's lesson files are skipped: they can't change how production behaves.

When it checks

Codela waits for real traffic before judging a deploy. From 3 minutes after it goes live, it checks every 2 minutes until 200 requests have arrived, for at most 30 minutes. It then compares that window with an equal window just before the deploy.

When a deploy is a regression

Any one of these:

CheckRule
Slowerp95 latency up more than 50% and by at least 25 ms, so a fast service wobbling from 3 ms to 10 ms doesn't count.
More errorsError rate up more than 1 percentage point.
New errorAn error message seen at least 5 times after the deploy and never before it.
One endpoint slowerAt least 100 requests in each window; p95 up more than 50% and by at least 25 ms; the typical request (p50) up at least 20%; and the endpoint carries at least 2% of traffic, or slowed by 100 ms or more.
One endpoint failingAt least 50 requests in each window, error rate up more than 2 percentage points, and at least 5 failed requests after the deploy.

Health checks never count. At most 3 endpoints are reported, worst first.

If your tool only has logs (no tracing), Codela still catches new errors after a deploy. Slowdowns need request timings.

What a lesson contains

For a regression, Codela reads the change that was deployed and the production evidence, and writes a lesson with:

  • a one-line rule for the index, with a severity (high, medium or low)
  • what went wrong and why it matters, with the before and after numbers
  • when the rule applies, and when it doesn't
  • ways to fix it

If the same mistake happens again, the existing lesson counts it instead of adding a duplicate.

Try it on a past deploy

In Settings, under Try it on a past deploy, enter when an earlier deploy went out. Codela compares production before and after it and writes a lesson if it got worse. It takes about a minute.

Pull request checks

When a pull request is opened or updated, Codela compares the change with your lessons and comments if it repeats one. It also adds free production context when the change touches one of your slowest endpoints, slowest functions, chatty downstream calls or recurring errors. Checks run for pull requests from your team (owners, members and collaborators), not from forks, and a pull request is re-checked at most every 12 hours.