Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

test(e2e): rename load to perf and consolidate the opt-in into E2E_PERF_TESTS (#46077)

devin-ai-integration[bot]2717b5f5971f
diff --git a/.github/workflows/test-e2e-redis-chaos.yml b/.github/workflows/test-e2e-redis-chaos.yml
index c7412a63334..8f351a7a647 100644
--- a/.github/workflows/test-e2e-redis-chaos.yml
+++ b/.github/workflows/test-e2e-redis-chaos.yml
@@ -91,12 +91,12 @@ jobs:
- name: Run the Redis chaos load test
env:
- E2E_REDIS_CHAOS: "1"
+ E2E_PERF_TESTS: "1"
LITELLM_PROXY_URL: http://localhost:4000
REDIS_HOST: 127.0.0.1
REDIS_PORT: "6379"
run: |
- uv run --no-sync pytest tests/e2e/load/test_redis_chaos_e2e.py -v --tb=short -rA -s
+ uv run --no-sync pytest tests/e2e/perf/test_redis_chaos_e2e.py -v --tb=short -rA -s
- name: Show proxy log on failure
if: failure()
diff --git a/.github/workflows/weekly_load_anomaly.yml b/.github/workflows/weekly_load_anomaly.yml
index 3e1fca89645..0ba4df89cc4 100644
--- a/.github/workflows/weekly_load_anomaly.yml
+++ b/.github/workflows/weekly_load_anomaly.yml
@@ -63,7 +63,7 @@ jobs:
- name: Start the proxy
run: |
- nohup uv run --no-sync litellm --config tests/e2e/load/weekly_anomaly_config.yml --port 4000 > proxy.log 2>&1 &
+ nohup uv run --no-sync litellm --config tests/e2e/perf/weekly_anomaly_config.yml --port 4000 > proxy.log 2>&1 &
for _ in $(seq 1 90); do
if curl -fs http://localhost:4000/health/liveliness > /dev/null; then
exit 0
@@ -78,7 +78,7 @@ jobs:
env:
E2E_WEEKLY_ANOMALY: "1"
run: |
- uv run --no-sync pytest tests/e2e/load/test_weekly_session_anomaly_e2e.py -v --tb=short -rA
+ uv run --no-sync pytest tests/e2e/perf/test_weekly_session_anomaly_e2e.py -v --tb=short -rA
- name: Show proxy log on failure
if: failure()
diff --git a/pyrightconfig.json b/pyrightconfig.json
index 0b2d7897c85..2264c29be37 100644
--- a/pyrightconfig.json
+++ b/pyrightconfig.json
@@ -5,7 +5,7 @@
"executionEnvironments": [
{
"root": "tests/e2e_harness",
- "extraPaths": ["tests/e2e", "tests/e2e/batches", "tests/e2e/guardrails", "tests/e2e/load", "tests/e2e/logging"]
+ "extraPaths": ["tests/e2e", "tests/e2e/batches", "tests/e2e/guardrails", "tests/e2e/perf", "tests/e2e/logging"]
}
],
"pythonVersion": "3.12",
diff --git a/tests/e2e/AGENTS.md b/tests/e2e/AGENTS.md
index 3fd2fb9b9a6..8b9132cf05a 100644
--- a/tests/e2e/AGENTS.md
+++ b/tests/e2e/AGENTS.md
@@ -44,7 +44,7 @@ Each subdirectory under `tests/e2e/` is one suite, scoped to an endpoint family
- `logging/` - logging-integration delivery (datadog and friends)
- `security/` - secret handling and log-leak protection
- `router/` - routing and reliability behavior (fallbacks, cooldowns) plus the memory tests (`test_reliability_memory_e2e.py`: every worker's RSS as read at collection time, before any test traffic, must sit under a fixed idle budget, the release-gate check for a DB-backed boot that idles near the pod limit the way v1.100.x did, and a few hundred failing requests with retries and fallbacks must not grow proxy RSS past a fixed budget nor store a request snapshot past a fixed size, the release-gate check for the v1.100.0 retry-breadcrumb leak)
-- `load/` - performance-category tests, kept OUT of the main suite: throughput/load SLO tests are a different testing category from functional e2e (variance-driven, historically flaky) and live outside this suite until re-implemented as their own pipeline (LIT-5163). Do not add a live load test that runs in the default collection. What lives here: the weekly session-anomaly test (`test_weekly_session_anomaly_e2e.py`, Claude Code-shaped multi-turn sessions against real providers with ceilings on error rate, cache read/write, turn time, and spend, marked `weekly` and deselected unless `E2E_WEEKLY_ANOMALY` is set, driven by `.github/workflows/weekly_load_anomaly.yml`), the Redis chaos test (`test_redis_chaos_e2e.py`, locust load against mock deployments split round robin over `/chat/completions` and `/v1/messages`, one endpoint per simulated user, with `CLIENT PAUSE ALL` on the proxy's Redis mid-run to simulate it being down outright, asserting zero failed requests on every endpoint, budgeting RSS and CPU-per-request as ratios against the same run's healthy phase, and holding p50/p90/p99 latency and log-bytes-per-request to flat ceilings (a ratio cannot bound those two: an open breaker skips Redis instead of waiting on it, so the chaos phase can measure cheaper than baseline while still being far slower than a user should see), needs a proxy booted from `gateway/redis_chaos_ci_config.yml` on the same host with `E2E_PROXY_PID` and `E2E_PROXY_LOG` set, marked `redis_chaos`, deselected unless `E2E_REDIS_CHAOS` is set and excluded from the per-PR selector like the rest of `load/`, driven by `.github/workflows/test-e2e-redis-chaos.yml` and by the Buildkite `e2e-redis-chaos` step in project-releaser, which runs the proxy, Postgres and Valkey co-located with pytest in one pod and sets the opt-in). Its aggregation logic (locust, process usage, session anomaly) is covered by `tests/e2e_harness/load/`
+- `perf/` - performance-category tests, kept OUT of the main suite: throughput/load SLO tests are a different testing category from functional e2e (variance-driven, historically flaky) and live outside this suite until re-implemented as their own pipeline (LIT-5163). Do not add a live load test that runs in the default collection. What lives here: the weekly session-anomaly test (`test_weekly_session_anomaly_e2e.py`, Claude Code-shaped multi-turn sessions against real providers with ceilings on error rate, cache read/write, turn time, and spend, marked `weekly` and deselected unless `E2E_WEEKLY_ANOMALY` is set, driven by `.github/workflows/weekly_load_anomaly.yml`), the Redis chaos test (`test_redis_chaos_e2e.py`, locust load against mock deployments split round robin over `/chat/completions` and `/v1/messages`, one endpoint per simulated user, with `CLIENT PAUSE ALL` on the proxy's Redis mid-run to simulate it being down outright, asserting zero failed requests on every endpoint, budgeting RSS and CPU-per-request as ratios against the same run's healthy phase, and holding p50/p90/p99 latency and log-bytes-per-request to flat ceilings (a ratio cannot bound those two: an open breaker skips Redis instead of waiting on it, so the chaos phase can measure cheaper than baseline while still being far slower than a user should see), needs a proxy booted from `gateway/redis_chaos_ci_config.yml` on the same host with `E2E_PROXY_PID` and `E2E_PROXY_LOG` set, marked `redis_chaos`, deselected unless `E2E_PERF_TESTS` is set and excluded from the per-PR selector like the rest of `perf/`, driven by `.github/workflows/test-e2e-redis-chaos.yml` and by the Buildkite `e2e-redis-chaos` step in project-releaser, which runs the proxy, Postgres and Valkey co-located with pytest in one pod and sets the opt-in). New perf tests go here too, marked `perf`, behind the same `E2E_PERF_TESTS` opt-in
- `other/` - the holding-pen suite for the `other.*` registry cluster with no home of its own yet: the master-key auth gate, JWT auth (access tokens issued by a real Keycloak realm, `idp.py` plus `idp_realm.json`, whose JWKS the proxy's `JWT_PUBLIC_KEY_URL` points at, see CONTRIBUTING.md for the start command and config block), and the process-lifecycle health probes (liveness, public readiness, authenticated readiness diagnostics). Promote a cluster out once it is large/stable enough for its own suite
- `secret_manager/` - the gateway's `key_management_system` against a real secret manager: deployment keys resolved from it (`os.environ/<name>` where the name exists only in the manager) and virtual keys written to and deleted from it. The tests are backend-agnostic and each backend is its own lane, because the setting is global to the proxy: `E2E_SECRET_MANAGER=<system>` opts in and picks the backend from `secret_backends.BACKENDS`, the proxy is booted from `gateway/secret_manager_<system>_ci_config.yml` against the live manager, and the tests reach that manager through the backend's `SecretStore` (`secret_store_<system>.py`). A test needing something not every backend does carries `requires_capability(...)` and is deselected on lanes that lack it. `secret_manager/backend.sh up <system>` runs a backend in Docker and writes the proxy's and the tests' env. Marked `secret_manager`, deselected unless `E2E_SECRET_MANAGER` is set, and kept out of the per-PR selector. Backends today: `hashicorp_vault` and `cyberark` (CyberArk Conjur, which cannot delete, so the delete test is Vault-only)
- `gateway/` - proxy configuration only (`litellm-config.yml`). No tests
@@ -150,7 +150,7 @@ def test_bare_key_blocks_over_its_own_budget(...) -> None: ...
`route` is the endpoint the test is checking: `TEAM_MANAGEMENT` for a `/team/update` test, `SPEND_REPORTING` for a `/spend/logs` test, `MESSAGES` for a test of spend on `/v1/messages`. A test whose chat call only triggers the behavior under test, like the budget block above, leaves it unset, since its steps already name the call
-Every pytest test under `tests/e2e/` declares a `Subject` with at least its `domain`, except the `load/` suite, which is kept out of the default collection. The harness's own tests in `tests/e2e_harness/` carry none, since they drive nothing. The fields themselves stay optional, since a test that makes no LLM call has no provider, model or mode to name. Every field is a closed enum, so a typo is a basedpyright error at the call site rather than a property that silently never appears. `providers`, `models` and `capabilities` are tuples even with one member, because one test node routinely drives several: the claude_code matrix runs haiku, sonnet and opus in a single body, and a spend test calls two providers on one key. Declare every provider and every model the test drives, fallbacks included. The three are independent sets with no positional pairing between them (one provider x three models is the common case), and each is deduped and sorted at declaration so the committed run artifacts diff cleanly. `models=("gpt-5.5")` is a str and not a tuple, so anything but a tuple raises a `TypeError` where the decorator runs and shows up as a collection error naming the file. `Subject` is serialized with `dataclasses.asdict`, so a new scalar field needs no serializer edit. Empty fields emit no `<property>` at all. A declared model names the constant the test drives (`CHEAP_ANTHROPIC_MODEL`, the file's own `BACKEND`), never a copy of its value, so the property cannot claim one model while an env override runs another. `e2e_metadata` and its call sites never import litellm, only the stdlib, pytest and pydantic: `Provider` mirrors litellm's `LlmProviders` values instead of importing them, because tests/e2e is shipped to the runner image on its own and a `from litellm...` at module scope would make the litellm package a hard dependency of COLLECTING the suite. `TestProviderMirrorsLitellm` in `tests/code_coverage_tests/test_e2e_metadata.py` fails on drift wherever litellm is importable and skips where it is not, so adding a provider is one line in `e2e_metadata`
+Every pytest test under `tests/e2e/` declares a `Subject` with at least its `domain`, except the `perf/` suite, which is kept out of the default collection. The harness's own tests in `tests/e2e_harness/` carry none, since they drive nothing. The fields themselves stay optional, since a test that makes no LLM call has no provider, model or mode to name. Every field is a closed enum, so a typo is a basedpyright error at the call site rather than a property that silently never appears. `providers`, `models` and `capabilities` are tuples even with one member, because one test node routinely drives several: the claude_code matrix runs haiku, sonnet and opus in a single body, and a spend test calls two providers on one key. Declare every provider and every model the test drives, fallbacks included. The three are independent sets with no positional pairing between them (one provider x three models is the common case), and each is deduped and sorted at declaration so the committed run artifacts diff cleanly. `models=("gpt-5.5")` is a str and not a tuple, so anything but a tuple raises a `TypeError` where the decorator runs and shows up as a collection error naming the file. `Subject` is serialized with `dataclasses.asdict`, so a new scalar field needs no serializer edit. Empty fields emit no `<property>` at all. A declared model names the constant the test drives (`CHEAP_ANTHROPIC_MODEL`, the file's own `BACKEND`), never a copy of its value, so the property cannot claim one model while an env override runs another. `e2e_metadata` and its call sites never import litellm, only the stdlib, pytest and pydantic: `Provider` mirrors litellm's `LlmProviders` values instead of importing them, because tests/e2e is shipped to the runner image on its own and a `from litellm...` at module scope would make the litellm package a hard dependency of COLLECTING the suite. `TestProviderMirrorsLitellm` in `tests/code_coverage_tests/test_e2e_metadata.py` fails on drift wherever litellm is importable and skips where it is not, so adding a provider is one line in `e2e_metadata`
Declared fields ride out as JUnit `<property>` entries behind the fixed prefix, the same way steps do: each scalar under its field name, and each plural value as a repeated property under its SINGULAR name (`provider`, `model`, `capability`). The results JSON downstream regroups them under the plural key, so `providers`, `models` and `capabilities` are arrays there, `[]` when empty
diff --git a/tests/e2e/conftest.py b/tests/e2e/conftest.py
index 4477b9584aa..3bb4ab0d3be 100644
--- a/tests/e2e/conftest.py
+++ b/tests/e2e/conftest.py
@@ -33,10 +33,10 @@ from e2e_config import (
OTEL_TLS_OPT_IN_ENV,
OTEL_V2_OPT_IN_ENV,
OWNED_GATEWAY_OPT_IN_ENV,
+ PERF_TESTS_OPT_IN_ENV,
PROMPT_CACHING_OPT_IN_ENV,
PROVIDER_EDGE_HOST_OPT_IN_ENV,
PROXY_BASE_URL,
- REDIS_CHAOS_OPT_IN_ENV,
SAGEMAKER_NOVA2_LITE_OPT_IN_ENV,
SAGEMAKER_NOVA_OPT_IN_ENV,
SECRET_MANAGER_OPT_IN_ENV,
@@ -69,7 +69,8 @@ OPT_IN_MARKERS: Final = MappingProxyType(
"weekly": WEEKLY_ANOMALY_OPT_IN_ENV,
"managed_files": MANAGED_FILES_OPT_IN_ENV,
"prompt_caching_stack": PROMPT_CACHING_OPT_IN_ENV,
- "redis_chaos": REDIS_CHAOS_OPT_IN_ENV,
+ "redis_chaos": PERF_TESTS_OPT_IN_ENV,
+ "perf": PERF_TESTS_OPT_IN_ENV,
"cli_determinism": CLI_DETERMINISM_OPT_IN_ENV,
"mcp_oauth_live": MCP_OAUTH_LIVE_OPT_IN_ENV,
"provider_edge_host": PROVIDER_EDGE_HOST_OPT_IN_ENV,
@@ -139,7 +140,8 @@ def pytest_configure(config: pytest.Config) -> None:
)
config.addinivalue_line(
"markers",
- "load: heavy throughput/load test; collected last so it never perturbs latency-sensitive suites",
+ "perf: performance test (throughput, latency, memory) against mocked deployments; collected last so it "
+ "never perturbs latency-sensitive suites, and deselected unless E2E_PERF_TESTS is set",
)
config.addinivalue_line(
"markers",
@@ -161,7 +163,7 @@ def pytest_configure(config: pytest.Config) -> None:
config.addinivalue_line(
"markers",
"redis_chaos: load test that pauses the proxy's Redis outright mid-run; needs a proxy booted from "
- "gateway/redis_chaos_ci_config.yml on the same host, and is deselected unless E2E_REDIS_CHAOS is set",
+ "gateway/redis_chaos_ci_config.yml on the same host, and is deselected unless E2E_PERF_TESTS is set",
)
config.addinivalue_line(
"markers",
@@ -251,7 +253,7 @@ def pytest_collection_modifyitems(config: pytest.Config, items: list[pytest.Item
standard report and these properties for package rollups and coverage
drill-down. See junit_properties.py.
- Also sort `load`-marked items last so a whole-tree run drives heavy throughput
+ Also sort `perf`-marked items last so a whole-tree run drives heavy throughput
traffic only after the latency-sensitive suites have finished."""
deselected = [item for item in items if _needs_unset_opt_in(item)]
if deselected:
@@ -264,7 +266,7 @@ def pytest_collection_modifyitems(config: pytest.Config, items: list[pytest.Item
items[:] = [item for item in items if item.get_closest_marker("migration_startup") is None]
if deselected:
deselected[0].config.hook.pytest_deselected(items=deselected)
- items.sort(key=lambda item: item.get_closest_marker("load") is not None)
+ items.sort(key=lambda item: item.get_closest_marker("perf") is not None)
@pytest.hookimpl(tryfirst=True)
diff --git a/tests/e2e/e2e_config.py b/tests/e2e/e2e_config.py
index fd5c0bae27b..8fc7e50d95c 100644
--- a/tests/e2e/e2e_config.py
+++ b/tests/e2e/e2e_config.py
@@ -205,7 +205,7 @@ LOAD_MIN_CONCURRENCY_EFFICIENCY = float(os.environ.get("E2E_LOAD_MIN_CONCURRENCY
WEEKLY_ANOMALY_OPT_IN_ENV = "E2E_WEEKLY_ANOMALY"
MANAGED_FILES_OPT_IN_ENV = "E2E_MANAGED_FILES_STACK"
PROMPT_CACHING_OPT_IN_ENV = "E2E_PROMPT_CACHING_STACK"
-REDIS_CHAOS_OPT_IN_ENV = "E2E_REDIS_CHAOS"
+PERF_TESTS_OPT_IN_ENV: Final = "E2E_PERF_TESTS"
CLI_DETERMINISM_OPT_IN_ENV = "E2E_CLI_DETERMINISM"
MCP_OAUTH_LIVE_OPT_IN_ENV: Final = "E2E_MCP_OAUTH_LIVE"
PROVIDER_EDGE_HOST_OPT_IN_ENV: Final = "E2E_PROVIDER_EDGE_HOST_REACHABLE"
diff --git a/tests/e2e/load/conftest.py b/tests/e2e/perf/conftest.py
similarity index 100%
rename from tests/e2e/load/conftest.py
rename to tests/e2e/perf/conftest.py
diff --git a/tests/e2e/load/load_client.py b/tests/e2e/perf/load_client.py
similarity index 100%
rename from tests/e2e/load/load_client.py
rename to tests/e2e/perf/load_client.py
diff --git a/tests/e2e/load/locust_load.py b/tests/e2e/perf/locust_load.py
similarity index 100%
rename from tests/e2e/load/locust_load.py
rename to tests/e2e/perf/locust_load.py
diff --git a/tests/e2e/load/locustfile.py b/tests/e2e/perf/locustfile.py
similarity index 100%
rename from tests/e2e/load/locustfile.py
rename to tests/e2e/perf/locustfile.py
diff --git a/tests/e2e/load/phase_budget.py b/tests/e2e/perf/phase_budget.py
similarity index 100%
rename from tests/e2e/load/phase_budget.py
rename to tests/e2e/perf/phase_budget.py
diff --git a/tests/e2e/load/proxy_usage.py b/tests/e2e/perf/proxy_usage.py
similarity index 100%
rename from tests/e2e/load/proxy_usage.py
rename to tests/e2e/perf/proxy_usage.py
diff --git a/tests/e2e/load/session_anomaly.py b/tests/e2e/perf/session_anomaly.py
similarity index 100%
rename from tests/e2e/load/session_anomaly.py
rename to tests/e2e/perf/session_anomaly.py
diff --git a/tests/e2e/load/test_redis_chaos_e2e.py b/tests/e2e/perf/test_redis_chaos_e2e.py
similarity index 99%
rename from tests/e2e/load/test_redis_chaos_e2e.py
rename to tests/e2e/perf/test_redis_chaos_e2e.py
index 9a9e8082e5b..feb87f97e0a 100644
--- a/tests/e2e/load/test_redis_chaos_e2e.py
+++ b/tests/e2e/perf/test_redis_chaos_e2e.py
@@ -28,7 +28,7 @@ Needs the proxy on the same host, since RSS and CPU come from psutil on its proc
a multi-worker proxy serves /metrics from the prometheus multiprocess collector, which drops
the process collector's memory and CPU series. Log bytes are read from the file the proxy's
stdout/stderr was redirected to, so the same host requirement covers that too. Deselected
-unless E2E_REDIS_CHAOS is set.
+unless E2E_PERF_TESTS is set.
"""
from __future__ import annotations
diff --git a/tests/e2e/load/test_weekly_session_anomaly_e2e.py b/tests/e2e/perf/test_weekly_session_anomaly_e2e.py
similarity index 96%
rename from tests/e2e/load/test_weekly_session_anomaly_e2e.py
rename to tests/e2e/perf/test_weekly_session_anomaly_e2e.py
index d4ef883702e..64a000810fd 100644
--- a/tests/e2e/load/test_weekly_session_anomaly_e2e.py
+++ b/tests/e2e/perf/test_weekly_session_anomaly_e2e.py
@@ -3,7 +3,6 @@ from __future__ import annotations
from dataclasses import dataclass
import pytest
-
from e2e_config import (
ANOMALY_MAX_ERROR_RATIO,
ANOMALY_MAX_KEY_SPEND_USD,
@@ -21,7 +20,7 @@ from models import KeyGenerateBody, LiteLLMParamsBody
from proxy_client import ProxyClient
from session_anomaly import run_concurrent_sessions, settled_spend, summarize
-pytestmark = [pytest.mark.e2e, pytest.mark.load, pytest.mark.weekly]
+pytestmark = [pytest.mark.e2e, pytest.mark.weekly]
@dataclass(frozen=True, slots=True)
@@ -67,9 +66,7 @@ class TestWeeklySessionAnomaly:
model_name = f"weekly-anomaly-{route.route_id}-{unique_marker()}"
model_id = client.proxy.create_model(model_name, route.params)
resources.defer(lambda: client.proxy.delete_model(model_id))
- key = client.proxy.generate_key(
- KeyGenerateBody(models=[model_name], key_alias=model_name)
- )
+ key = client.proxy.generate_key(KeyGenerateBody(models=[model_name], key_alias=model_name))
resources.defer(lambda: client.proxy.delete_key(key))
turns = run_concurrent_sessions(
diff --git a/tests/e2e/load/weekly_anomaly_config.yml b/tests/e2e/perf/weekly_anomaly_config.yml
similarity index 100%
rename from tests/e2e/load/weekly_anomaly_config.yml
rename to tests/e2e/perf/weekly_anomaly_config.yml
diff --git a/tests/e2e/pytest.ini b/tests/e2e/pytest.ini
index ff81a593fe8..da3dd72d795 100644
--- a/tests/e2e/pytest.ini
+++ b/tests/e2e/pytest.ini
@@ -7,12 +7,12 @@ markers =
e2e: live test that requires a running proxy and real provider keys
meta: typed e2e_metadata.Subject describing what this test drives (domain/route/providers/models/capabilities/mode); attach it with @meta(Subject(...)), never as a bare pytest.mark
replayable: edge-wired test whose provider traffic replays from a fixture bundle, so it makes zero provider calls in replay mode; the record/replay CI lane selects it with -m replayable
- load: heavy throughput/load test; collected last so it never perturbs latency-sensitive suites
+ perf: performance test (throughput, latency, memory); collected last so it never perturbs latency-sensitive suites, and deselected unless E2E_PERF_TESTS is set
weekly: real-provider anomaly load test that spends real money; deselected unless E2E_WEEKLY_ANOMALY is set
managed_files: needs a proxy running with require_managed_files enabled; deselected unless E2E_MANAGED_FILES_STACK is set
prompt_caching_stack: needs a proxy running with router_settings.optional_pre_call_checks including prompt_caching; deselected unless E2E_PROMPT_CACHING_STACK is set
cli_determinism: drives the real claude CLI for several seconds; deselected unless E2E_CLI_DETERMINISM is set
- redis_chaos: load test that pauses the proxy's Redis outright mid-run; needs a proxy booted from gateway/redis_chaos_ci_config.yml on the same host, and is deselected unless E2E_REDIS_CHAOS is set
+ redis_chaos: load test that pauses the proxy's Redis outright mid-run; needs a proxy booted from gateway/redis_chaos_ci_config.yml on the same host, and is deselected unless E2E_PERF_TESTS is set
quiet_stack: measures the proxy itself, so it runs while no other test on this host is hitting the stack; every other test waits for it to finish
mcp_oauth_live: real Linear OAuth consent via a captured browser session; deselected unless E2E_MCP_OAUTH_LIVE is set
provider_edge_host: routes provider traffic through the pytest host's edge in every fixture mode, so the gateway must reach the pytest host; deselected unless E2E_PROVIDER_EDGE_HOST_REACHABLE is set
diff --git a/tests/e2e_harness/AGENTS.md b/tests/e2e_harness/AGENTS.md
index ef4a11802c9..65a3b32df96 100644
--- a/tests/e2e_harness/AGENTS.md
+++ b/tests/e2e_harness/AGENTS.md
@@ -1,6 +1,6 @@
# 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, the load aggregation helpers 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
+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`, and `claude_code/` covers the driver, builder, probe and version resolver. Put a new harness test under the folder that mirrors the suite folder whose module it covers
diff --git a/tests/e2e_harness/load/test_locust_load.py b/tests/e2e_harness/load/test_locust_load.py
deleted file mode 100644
index af3e1483099..00000000000
--- a/tests/e2e_harness/load/test_locust_load.py
+++ /dev/null
@@ -1,232 +0,0 @@
-from __future__ import annotations
-
-from pathlib import Path
-from typing import Final
-
-from locust_load import (
- LoadError,
- LoadResult,
- LocustStatEntry,
- aggregate_stats,
- percentile_seconds,
- read_errors,
- read_generator_warnings,
-)
-
-_FAILURES_HEADER = "Method,Name,Error,Occurrences,First Seen,Last Seen\n"
-
-
-def _entry(
- *,
- num_requests: int,
- name: str = "/chat/completions",
- num_failures: int = 0,
- start_time: float = 1000.0,
- last_request_timestamp: float = 1010.0,
- response_times: dict[int, int] | None = None,
-) -> LocustStatEntry:
- return LocustStatEntry(
- name=name,
- num_requests=num_requests,
- num_failures=num_failures,
- start_time=start_time,
- last_request_timestamp=last_request_timestamp,
- response_times=response_times if response_times is not None else {50: num_requests},
- )
-
-
-def _result(
- *,
- errors: tuple[LoadError, ...] = (),
- generator_warnings: tuple[str, ...] = (),
-) -> LoadResult:
- return LoadResult(
- requests=10,
- failures=10,
- requests_per_second=1.0,
- p50_seconds=0.05,
- p90_seconds=0.08,
- p99_seconds=0.1,
- endpoints=(),
- errors=errors,
- generator_warnings=generator_warnings,
- )
-
-
-class TestPercentiles:
- def test_median_is_the_middle_sample_not_the_mean_a_slow_tail_would_drag(self) -> None:
- # Nine fast requests and one very slow one: the mean is 1.99s, the median is 20ms.
- entry = _entry(num_requests=10, response_times={20: 9, 20000: 1})
-
- assert percentile_seconds([entry], 0.5) == 0.02
-
- def test_the_tail_percentiles_reach_the_slow_samples_the_median_hides(self) -> None:
- # 100 samples: 89 fast, 10 slow, 1 very slow. p50 sits in the fast bucket, p90 in the
- # slow one, and p99 lands on the single very slow sample.
- entry = _entry(num_requests=100, response_times={20: 89, 500: 10, 20000: 1})
-
- assert percentile_seconds([entry], 0.5) == 0.02
- assert percentile_seconds([entry], 0.9) == 0.5
- assert percentile_seconds([entry], 0.99) == 0.5
- assert percentile_seconds([entry], 1.0) == 20.0
-
- def test_percentiles_merge_the_histograms_of_every_stats_entry(self) -> None:
- # Per entry the median would be 10ms and 90ms; merged, the middle of the five samples is 90ms.
- entries = [
- _entry(num_requests=2, response_times={10: 2}),
- _entry(num_requests=3, response_times={90: 3}),
- ]
-
- assert percentile_seconds(entries, 0.5) == 0.09
-
- def test_an_even_split_takes_the_lower_middle_sample_as_locust_itself_does(self) -> None:
- entry = _entry(num_requests=4, response_times={10: 2, 90: 2})
-
- assert percentile_seconds([entry], 0.5) == 0.01
-
- def test_no_samples_reports_zero_rather_than_dividing_by_an_empty_histogram(self) -> None:
- assert percentile_seconds([], 0.5) == 0.0
-
-
-class TestAggregate:
- def test_throughput_spans_the_whole_window_and_latency_comes_from_the_histogram(self) -> None:
- entry = _entry(
- num_requests=180,
- start_time=1000.0,
- last_request_timestamp=1060.0,
- response_times={57: 180},
- )
-
- result = aggregate_stats([entry], (), ())
-
- assert result.requests_per_second == 3.0
- assert result.p50_seconds == 0.057
- assert result.p99_seconds == 0.057
- assert result.failure_ratio == 0.0
-
- def test_tail_percentiles_come_from_the_slow_end_of_the_histogram(self) -> None:
- entry = _entry(num_requests=100, response_times={20: 89, 500: 10, 3000: 1})
-
- result = aggregate_stats([entry], (), ())
-
- assert result.p50_seconds == 0.02
- assert result.p90_seconds == 0.5
- assert result.p99_seconds == 0.5
- assert result.latency_summary() == "p50 0.020s, p90 0.500s, p99 0.500s"
-
- def test_throughput_spans_from_the_earliest_start_when_locust_reports_several_entries(self) -> None:
- entries = [
- _entry(num_requests=60, start_time=1000.0, last_request_timestamp=1030.0),
- _entry(num_requests=60, start_time=1020.0, last_request_timestamp=1060.0),
- ]
-
- result = aggregate_stats(entries, (), ())
-
- assert result.requests_per_second == 2.0
-
- def test_a_run_that_drove_no_traffic_reports_a_total_failure_ratio(self) -> None:
- result = aggregate_stats([], (), ())
-
- assert result.requests == 0
- assert result.requests_per_second == 0.0
- assert result.failure_ratio == 1.0
- assert result.endpoints == ()
-
-
-class TestPerEndpoint:
- def test_each_route_keeps_its_own_requests_failures_and_median(self) -> None:
- entries: Final = (
- _entry(name="/chat/completions", num_requests=100, response_times={20: 100}),
- _entry(name="/v1/messages", num_requests=40, num_failures=3, response_times={900: 40}),
- )
-
- result: Final = aggregate_stats(entries, (), ())
-
- assert tuple((one.name, one.requests, one.failures, one.p50_seconds) for one in result.endpoints) == (
- ("/chat/completions", 100, 0, 0.02),
- ("/v1/messages", 40, 3, 0.9),
- )
-
- def test_several_stats_entries_for_one_route_fold_into_a_single_row(self) -> None:
- entries: Final = (
- _entry(name="/v1/messages", num_requests=10, response_times={30: 10}),
- _entry(name="/v1/messages", num_requests=30, num_failures=1, response_times={30: 30}),
- )
-
- result: Final = aggregate_stats(entries, (), ())
-
- assert tuple((one.name, one.requests, one.failures) for one in result.endpoints) == (("/v1/messages", 40, 1),)
-
- def test_a_route_that_never_ran_is_absent_so_a_one_sided_run_cannot_pass_unnoticed(self) -> None:
- result: Final = aggregate_stats((_entry(name="/chat/completions", num_requests=10),), (), ())
-
- assert tuple(one.name for one in result.endpoints) == ("/chat/completions",)
-
- def test_the_summary_names_every_route_with_its_counts(self) -> None:
- entries: Final = (
- _entry(name="/chat/completions", num_requests=2, response_times={20: 2}),
- _entry(name="/v1/messages", num_requests=1, num_failures=1, response_times={500: 1}),
- )
-
- result: Final = aggregate_stats(entries, (), ())
-
- assert result.endpoint_summary() == (
- "/chat/completions 2 requests, 0 failures, p50 0.020s, /v1/messages 1 requests, 1 failures, p50 0.500s"
- )
-
-
-class TestErrorBreakdown:
- def test_locust_failure_rows_become_the_error_breakdown(self, tmp_path: Path) -> None:
- failures_csv = tmp_path / "locust_failures.csv"
- failures_csv.write_text(
- _FAILURES_HEADER
- + 'POST,/chat/completions,"LocustBadStatusCode(code=401)",381,2026-07-30 12:42:01,2026-07-30 12:45:00\n'
- )
-
- assert read_errors(failures_csv) == (
- LoadError(name="/chat/completions", error="LocustBadStatusCode(code=401)", occurrences=381),
- )
-
- def test_a_run_with_no_failures_writes_no_csv_and_reports_no_errors(self, tmp_path: Path) -> None:
- assert read_errors(tmp_path / "locust_failures.csv") == ()
-
- def test_diagnosis_leads_with_the_most_common_error(self) -> None:
- result = _result(
- errors=(
- LoadError(name="/chat/completions", error="ConnectionRefused", occurrences=12),
- LoadError(name="/chat/completions", error="LocustBadStatusCode(code=503)", occurrences=43675),
- )
- )
-
- assert result.diagnosis().startswith("43675x /chat/completions: LocustBadStatusCode(code=503)")
-
- def test_diagnosis_caps_the_list_and_says_how_many_it_left_out(self) -> None:
- result = _result(
- errors=tuple(
- LoadError(name="/chat/completions", error=f"error-{index}", occurrences=index) for index in range(1, 9)
- )
- )
-
- assert result.diagnosis().count("x /chat/completions") == 5
- assert "and 3 more distinct errors" in result.diagnosis()
-
- def test_diagnosis_says_so_when_locust_recorded_nothing(self) -> None:
- assert _result().diagnosis() == "locust recorded no error breakdown"
-
-
-class TestGeneratorSaturation:
- def test_repeated_cpu_warnings_collapse_to_one_and_reach_the_diagnosis(self) -> None:
- stderr = (
- "[2026-07-31 12:47:01] WARNING/locust.runners: CPU usage above 90%!\n"
- "[2026-07-31 12:47:02] INFO/locust.main: Run time limit reached\n"
- "[2026-07-31 12:47:03] WARNING/locust.runners: CPU usage above 90%!\n"
- )
-
- warnings = read_generator_warnings(stderr)
-
- assert len(warnings) == 1
- assert "CPU usage above 90%!" in warnings[0]
- assert "CPU usage above 90%!" in _result(generator_warnings=warnings).diagnosis()
-
- def test_ordinary_locust_chatter_is_not_reported_as_a_warning(self) -> None:
- assert read_generator_warnings("[2026-07-31] INFO/locust.main: Shutting down (exit code 0)\n") == ()
diff --git a/tests/e2e_harness/load/test_phase_budget.py b/tests/e2e_harness/load/test_phase_budget.py
deleted file mode 100644
index ea9e56afb0d..00000000000
--- a/tests/e2e_harness/load/test_phase_budget.py
+++ /dev/null
@@ -1,105 +0,0 @@
-from __future__ import annotations
-
-from typing import Final
-
-from phase_budget import AbsoluteBudget, RatioBudget, violations
-
-
-def _budget(*, baseline: float, degraded: float, ceiling: float = 2.0) -> RatioBudget:
- return RatioBudget(
- name="p99 RSS", baseline=baseline, degraded=degraded, ratio_ceiling=ceiling, unit=" MB", decimals=0
- )
-
-
-class TestRatioBudget:
- def test_growth_within_the_ceiling_is_not_a_violation(self) -> None:
- assert _budget(baseline=100, degraded=199).violation() is None
-
- def test_growth_exactly_at_the_ceiling_is_allowed(self) -> None:
- assert _budget(baseline=100, degraded=200).violation() is None
-
- def test_growth_past_the_ceiling_reports_both_values_and_the_ratio(self) -> None:
- violation: Final = _budget(baseline=100, degraded=250).violation()
-
- assert violation is not None
- assert "100 MB" in violation
- assert "250 MB" in violation
- assert "2.5x" in violation
- assert "2.0x allowed" in violation
-
- def test_shrinking_is_never_a_violation(self) -> None:
- assert _budget(baseline=100, degraded=10).violation() is None
-
- def test_a_missing_baseline_is_a_violation_rather_than_a_silent_pass(self) -> None:
- # The trap this guards: 0 as a baseline would make every ratio a division by zero, and
- # treating it as "no growth" would pass a run that measured nothing at all.
- violation: Final = _budget(baseline=0, degraded=4000).violation()
-
- assert violation is not None
- assert "nothing to compare" in violation
-
- def test_the_unit_and_decimals_carry_into_the_message(self) -> None:
- violation: Final = RatioBudget(
- name="p99 latency", baseline=0.16, degraded=9.5, ratio_ceiling=8.0, unit="s", decimals=3
- ).violation()
-
- assert violation is not None
- assert "0.160s" in violation
- assert "9.500s" in violation
-
-
-class TestAbsoluteBudget:
- def test_a_value_under_the_ceiling_is_not_a_violation(self) -> None:
- assert AbsoluteBudget(name="p99 latency", measured=1.2, ceiling=5.0, unit="s", decimals=3).violation() is None
-
- def test_a_value_exactly_at_the_ceiling_is_allowed(self) -> None:
- assert AbsoluteBudget(name="p99 latency", measured=5.0, ceiling=5.0, unit="s", decimals=3).violation() is None
-
- def test_a_value_past_the_ceiling_reports_the_measurement_and_the_ceiling(self) -> None:
- violation: Final = AbsoluteBudget(
- name="p99 latency", measured=9.5, ceiling=5.0, unit="s", decimals=3
- ).violation()
-
- assert violation is not None
- assert "9.500s" in violation
- assert "5.000s allowed" in violation
-
- def test_a_flat_ceiling_fails_a_degraded_phase_that_is_cheaper_than_its_baseline(self) -> None:
- # The whole reason this shape exists: once the breaker opens, requests skip Redis instead
- # of waiting on its socket timeout, so the chaos phase can measure faster than the healthy
- # one. A ratio against that baseline passes; the user still waited 9.5s.
- assert _budget(baseline=20.0, degraded=9.5, ceiling=2.0).violation() is None
- assert AbsoluteBudget(name="p99 latency", measured=9.5, ceiling=5.0, unit="s").violation() is not None
-
- def test_a_zero_measurement_is_not_a_violation(self) -> None:
- assert AbsoluteBudget(name="log bytes per request", measured=0, ceiling=12_000, unit=" B").violation() is None
-
-
-class TestViolations:
- def test_every_blown_budget_is_reported_not_just_the_first(self) -> None:
- blown: Final = violations(
- (
- _budget(baseline=100, degraded=500),
- _budget(baseline=100, degraded=120),
- RatioBudget(name="CPU per request", baseline=10, degraded=90, ratio_ceiling=6.0, unit=" ms"),
- )
- )
-
- assert len(blown) == 2
- assert blown[0].startswith("p99 RSS")
- assert blown[1].startswith("CPU per request")
-
- def test_both_budget_shapes_report_together(self) -> None:
- blown: Final = violations(
- (
- _budget(baseline=100, degraded=500),
- AbsoluteBudget(name="p99 latency", measured=9.5, ceiling=5.0, unit="s", decimals=3),
- )
- )
-
- assert len(blown) == 2
- assert blown[0].startswith("p99 RSS")
- assert blown[1].startswith("p99 latency")
-
- def test_a_run_inside_every_budget_reports_nothing(self) -> None:
- assert violations((_budget(baseline=100, degraded=150),)) == ()
diff --git a/tests/e2e_harness/load/test_proxy_usage.py b/tests/e2e_harness/load/test_proxy_usage.py
deleted file mode 100644
index 915c564de50..00000000000
--- a/tests/e2e_harness/load/test_proxy_usage.py
+++ /dev/null
@@ -1,71 +0,0 @@
-from __future__ import annotations
-
-from typing import Final
-
-from proxy_usage import UsageSample, UsageWindow
-
-_MB: Final = 2**20
-
-
-def _window(*points: tuple[float, int, float]) -> UsageWindow:
- return UsageWindow(
- samples=tuple(
- UsageSample(elapsed_seconds=elapsed, rss_bytes=rss, cpu_seconds=cpu) for elapsed, rss, cpu in points
- )
- )
-
-
-class TestRssPercentiles:
- def test_the_tail_percentiles_reach_the_peak_the_median_hides(self) -> None:
- # 100 one-second samples: 89 flat, 10 elevated, 1 spike. The median stays flat, p90 sees the
- # elevated plateau, and only the max reaches the spike.
- window: Final = _window(
- *((float(i), 100 * _MB, float(i)) for i in range(89)),
- *((float(89 + i), 300 * _MB, float(89 + i)) for i in range(10)),
- (99.0, 900 * _MB, 99.0),
- )
-
- assert window.rss_percentile(0.5) == 100 * _MB
- assert window.rss_percentile(0.9) == 300 * _MB
- assert window.rss_percentile(0.99) == 300 * _MB
- assert window.rss_percentile(1.0) == 900 * _MB
-
- def test_an_empty_window_reports_zero_rather_than_indexing_nothing(self) -> None:
- assert _window().rss_percentile(0.5) == 0
-
-
-class TestCpuUtilization:
- def test_utilization_is_the_counter_delta_over_the_interval_not_the_counter_itself(self) -> None:
- # The counter climbs 0.5 CPU seconds per second, then 4.0 per second: half a core, then four.
- window: Final = _window((0.0, _MB, 0.0), (1.0, _MB, 0.5), (2.0, _MB, 1.0), (3.0, _MB, 5.0))
-
- p50, p90, p99 = window.cpu_utilization_percentiles()
-
- assert (p50, p90, p99) == (0.5, 4.0, 4.0)
- assert window.cpu_seconds_consumed() == 5.0
-
- def test_a_single_sample_has_no_interval_and_reports_zero(self) -> None:
- window: Final = _window((0.0, _MB, 3.0))
-
- assert window.cpu_utilization_percentiles() == (0.0, 0.0, 0.0)
- assert window.cpu_seconds_consumed() == 0.0
-
- def test_cost_per_request_separates_runs_that_cores_busy_reports_identically(self) -> None:
- # Both windows pin 4 cores for 10 seconds, so utilization cannot tell them apart. The
- # second one served a tenth of the traffic for the same CPU, which is the regression shape.
- window: Final = _window(*((float(i), _MB, 4.0 * i) for i in range(11)))
-
- assert window.cpu_utilization_percentiles()[0] == 4.0
- assert window.cpu_seconds_per_request(4000) == 0.01
- assert window.cpu_seconds_per_request(400) == 0.1
-
- def test_no_requests_reports_zero_cost_rather_than_dividing_by_zero(self) -> None:
- assert _window((0.0, _MB, 0.0), (1.0, _MB, 1.0)).cpu_seconds_per_request(0) == 0.0
-
- def test_summary_reports_every_percentile_in_human_units(self) -> None:
- window: Final = _window((0.0, 200 * _MB, 0.0), (1.0, 200 * _MB, 1.5), (2.0, 200 * _MB, 3.0))
-
- assert window.summary() == (
- "RSS p50 200 MB, p90 200 MB, p99 200 MB; "
- "CPU cores busy p50 1.50, p90 1.50, p99 1.50; 3.0 CPU seconds consumed"
- )
diff --git a/tests/e2e_harness/load/test_session_anomaly.py b/tests/e2e_harness/load/test_session_anomaly.py
deleted file mode 100644
index 7062587352b..00000000000
--- a/tests/e2e_harness/load/test_session_anomaly.py
+++ /dev/null
@@ -1,141 +0,0 @@
-from __future__ import annotations
-
-from itertools import count, repeat
-
-import pytest
-
-from e2e_http import NetworkError, Success
-from session_anomaly import (
- SessionMessagesResponse,
- TurnMetric,
- retried,
- settled_spend,
- summarize,
-)
-
-
-def _ok_turn(turn_index: int) -> TurnMetric:
- return TurnMetric(
- turn_index=turn_index,
- ok=True,
- latency_seconds=1.0,
- uncached_input_tokens=10,
- cache_read_tokens=100,
- cache_creation_tokens=5,
- failure=None,
- )
-
-
-def _failed_turn(turn_index: int) -> TurnMetric:
- return TurnMetric(
- turn_index=turn_index,
- ok=False,
- latency_seconds=1.0,
- uncached_input_tokens=0,
- cache_read_tokens=0,
- cache_creation_tokens=0,
- failure="NetworkError()",
- )
-
-
-class TestSummarizePlannedTurns:
- def test_session_aborted_on_first_turn_counts_all_its_planned_turns_as_failed(
- self,
- ) -> None:
- completed_session = tuple(_ok_turn(index) for index in range(1, 7))
- aborted_session = (_failed_turn(1),)
-
- report = summarize((*completed_session, *aborted_session), planned_turns=12)
-
- assert report.attempted_turns == 7
- assert report.failed_turns == 6
- assert report.error_ratio == 0.5
-
- def test_all_planned_turns_completing_reports_zero_failures(self) -> None:
- report = summarize(
- tuple(_ok_turn(index) for index in range(1, 7)), planned_turns=6
- )
-
- assert report.failed_turns == 0
- assert report.error_ratio == 0.0
-
-
-class TestRetried:
- def test_transient_failures_then_success_returns_the_success(self) -> None:
- outcome = Success[SessionMessagesResponse](status_code=200, data=SessionMessagesResponse())
- calls = iter(
- (NetworkError(message="overloaded"), NetworkError(message="overloaded"), outcome)
- )
-
- result = retried(lambda: next(calls), attempts=3, sleep=lambda _: None)
-
- assert result is outcome
-
- def test_exhausted_attempts_return_the_last_failure(self) -> None:
- last_attempt = NetworkError(message="still overloaded")
- never_reached = NetworkError(message="a fourth attempt would break the budget")
- calls = iter(
- (NetworkError(message="overloaded"), last_attempt, never_reached)
- )
-
- result = retried(lambda: next(calls), attempts=2, sleep=lambda _: None)
-
- assert result is last_attempt
- assert next(calls) is never_reached
-
- def test_first_try_success_never_sleeps(self) -> None:
- def sleep_means_retry(_: float) -> None:
- raise AssertionError("slept after a successful attempt")
-
- result = retried(
- lambda: Success[SessionMessagesResponse](status_code=200, data=SessionMessagesResponse()),
- attempts=3,
- sleep=sleep_means_retry,
- )
-
- assert isinstance(result, Success)
-
-
-class TestSettledSpend:
- def test_partial_total_between_batch_flushes_is_not_accepted_as_final(self) -> None:
- reads = iter((0.1, 0.1, 0.1, 0.35, 0.35, 0.35, 0.35, 0.35))
- ticks = count(0.0, 2.5)
-
- spend = settled_spend(
- lambda: next(reads),
- poll_interval=5.0,
- settle_seconds=10.0,
- timeout_seconds=100.0,
- now=lambda: next(ticks),
- sleep=lambda _: None,
- )
-
- assert spend == 0.35
-
- def test_spend_that_never_stabilizes_raises(self) -> None:
- reads = (0.1 * step for step in count(1))
- ticks = count(0.0, 2.5)
-
- with pytest.raises(AssertionError, match="spend anomaly"):
- settled_spend(
- lambda: next(reads),
- poll_interval=5.0,
- settle_seconds=5.0,
- timeout_seconds=10.0,
- now=lambda: next(ticks),
- sleep=lambda _: None,
- )
-
- def test_spend_that_never_becomes_nonzero_raises(self) -> None:
- reads = repeat(0.0)
- ticks = count(0.0, 2.5)
-
- with pytest.raises(AssertionError, match="spend anomaly"):
- settled_spend(
- lambda: next(reads),
- poll_interval=5.0,
- settle_seconds=5.0,
- timeout_seconds=10.0,
- now=lambda: next(ticks),
- sleep=lambda _: None,
- )
diff --git a/tests/e2e_harness/pytest.ini b/tests/e2e_harness/pytest.ini
index dd629f0bc26..54d2630acc6 100644
--- a/tests/e2e_harness/pytest.ini
+++ b/tests/e2e_harness/pytest.ini
@@ -3,7 +3,7 @@
# (`from e2e_http import ...`, `from batch_cleanup import ...`) exactly as the suites
# do, so tests/e2e and each suite folder that owns a module under test go on the path.
addopts = --strict-markers --strict-config -p no:cacheprovider
-pythonpath = ../e2e ../e2e/batches ../e2e/guardrails ../e2e/load ../e2e/logging
+pythonpath = ../e2e ../e2e/batches ../e2e/guardrails ../e2e/logging
markers =
covers(cell_id, *, exercised_on=()): coverage-registry cell(s) a test covers; exercised here only to prove the collector and the JUnit properties read it
cli_determinism: drives the real claude CLI for several seconds