CI/CD error

Error: Process completed with exit code 137.

Exit code 137 means the process was killed with SIGKILL (128 + 9). In CI that's nearly always the kernel's OOM killer stepping in because the job ran out of memory.

Published

Why this happens

How to fix it

  1. Cut parallelism first (fewer workers, one browser project per job) and see whether the kill goes away
  2. Move to a larger runner, or raise the container's memory limit
  3. Shard the suite across several jobs instead of running everything on one machine
  4. Check the step's duration too. If it stopped right at the timeout, this is a hang, not a memory problem

Example


              strategy:
  matrix:
    shard: [1, 2, 3, 4]
steps:
  - run: npx playwright test --shard=${{ matrix.shard }}/4 --workers=2