Merge main and move the Codex compatibility work onto main's tests/e2e/codex suite, replacing the parallel tests/e2e/client_apps suite and its harness tests. A makereport hook in codex/compat_results.py appends one JSON line per decided cell when CODEX_COMPAT_RESULTS_PATH is set, and codex/matrix_builder.py builds a table in the Claude Code matrix shape and exits 3 when a cell that passed no longer does. The row id comes from the test file name and the label from the class name, so a new row needs no other edit. The suite now pins @openai/codex 0.166.0 in its own package.json and lockfile, adds Gemini on Vertex AI as a setup, and adds prompt caching, reasoning effort, vision, structured output and web search rows. Web search carries strict xfails where Codex or LiteLLM leaves the search tool out, and auto-compaction now also expects Vertex AI to fail, for the same bridge gap Claude on Bedrock has
2.6 KiB
e2e harness tests
Tests of the harness under tests/e2e/ (the transport, the clients, the fixture bundle and replay edge, the stack lock, the IdP launcher, the coverage collector, the JUnit properties and the Claude Code driver), not of the product. They live outside tests/e2e/ because the Buildkite e2e run copies that folder into the runner image and runs every test in it, so a harness test in there counts as a product test in the nightly numbers. Nothing here needs a proxy, provider keys or the network
The layout mirrors tests/e2e/: test_e2e_http.py covers tests/e2e/e2e_http.py, logging/test_datadog_reader.py covers tests/e2e/logging/datadog_reader.py, claude_code/ covers the driver, builder and probe, cli_harness/ covers the version resolver, the CLI env lockdown and the rate limiter, and codex/ covers how the Codex driver reads the CLI's JSONL events and the compactions in a thread's rollout file, plus the results collector and the compatibility table builder. Put a new harness test under the folder that mirrors the suite folder whose module it covers
Run them from the repo root. e2e_config reads LITELLM_MASTER_KEY at import and any value will do, the CI lane sets a dummy:
LITELLM_MASTER_KEY=sk-harness uv run pytest tests/e2e_harness
pytest.ini here puts tests/e2e and the suite folders whose modules are under test on the path, so imports look exactly as they do inside the suite (from e2e_http import ..., from batch_cleanup import ...). claude_code/test_request_determinism.py drives the real claude CLI. Deselect it with -m "not cli_determinism" when the CLI is not installed
Rules: no e2e marker and no @meta, since nothing here drives the proxy. @pytest.mark.covers only where the test proves the collector or the JUnit properties read it. Inputs via arguments or env vars (setting an env var through pytest's monkeypatch fixture is fine, patching a function, class or module is not). And the same typing bar as the suite, make lint-e2e-basedpyright covers this folder and allows zero errors. The raw HTTP client ban (tests/code_coverage_tests/check_e2e_no_raw_requests.py) applies here too
CI: the python job in .github/workflows/test-linting.yml runs this folder whenever anything under tests/e2e/ (except ui/) or tests/e2e_harness/ changes, with the claude CLI installed. It also runs tests/code_coverage_tests/test_provider_replay_harness.py and tests/code_coverage_tests/test_provider_cache.py with --noconftest -o addopts= -o "pythonpath=tests/e2e tests/e2e_harness" -p no:rerunfailures; the replay test imports helpers from test_provider_edge.py