AI Help

Why does an AI-generated patch pass locally but fail in CI?

Compare the exact commands, runtime versions, dependencies and environment inputs used locally and in CI.

Steps to follow

  1. Find the first substantive error in the CI job and record its commit, command and working directory.
  2. Compare runtime, lockfile installation, environment variables, file casing, timezone and service dependencies with the local run.
  3. Reproduce the CI command in a matching clean environment and fix the underlying difference. Recheck the same commit.

Example in practice

Illustrative example. A macOS import works with the wrong filename casing but fails on a Linux CI runner, revealing a path mismatch.

Related AI help

Official guidance

OpenAI documentation