# CI gate: exit codes from DeepEval and promptfoo (28 Oct 2026, IST)

A two-case suite where one case passes and one fails on purpose, then an all-pass version. Deterministic checks only, no model, no API key, telemetry off. Box: Linux, Python 3.13.5; promptfoo on Node v22.23.4 (`npx -y -p node@22 -p promptfoo@latest`). Run ~11:10-11:20 IST.

| Tool (version) | Command | 1 pass + 1 fail | All pass |
|---|---|---|---|
| DeepEval 4.3.2 | `deepeval test run test_gate.py` | exit 1 ("1 failed, 1 passed") | exit 0 |
| promptfoo 0.125.1 (echo provider) | `promptfoo eval --no-cache --no-share -c promptfooconfig.yaml` | exit 100 | exit 0 |
| promptfoo 0.125.1 + `PROMPTFOO_PASS_RATE_THRESHOLD=50` | same | exit 0 at a 50.00% pass rate | - |

promptfoo's command-line docs (read 28 Oct 2026) say it returns exit code 100 "when there is at least 1 test case failure or when the pass rate is below the threshold". In our run, with the threshold set to 50 and a 50% pass rate, the failing case did not fail the step. If you set a threshold, test it in your own pipeline.
Node v20.19.2 printed EBADENGINE warnings (some promptfoo deps need Node >= 22.19).

Files: test_gate.py, test_gate_pass.py, promptfooconfig.yaml, promptfooconfig-pass.yaml, *-run.txt (raw output, ANSI colour codes stripped, each ends with EXIT_CODE=).
