litellm/tests/e2e/batches
yuneng-jiang 4a8fa7c60a
test(e2e): run the batch lifecycle with a key that only reaches its own deployment (#51857)
test_batch_lifecycle[azure-provider_fallback] has failed in most scheduled
e2e runs since the suite moved from 8 to 12 xdist workers. Batch create
returned 404 Resource not found from Azure after a successful upload.

A batch call that names a provider and no model takes its credentials from
the first deployment of that provider the key may use. The test used an
all-models key, so on the shared proxy that was whichever Azure deployment
got registered first. With 12 workers the realtime suite starts in the same
instant as the batches suite, and its session-long azure-realtime deployment
carries api_version 2025-08-28. When it registers before azure-batch, the
batch create goes out with that api_version and Azure answers 404. The
upload still works because the file-create route overrides the borrowed
credentials with files_settings. The file delete on cleanup does not, so the
model_param and provider_fallback cleanups were also sent with the wrong
api_version and their 404 was read as already deleted.

The lifecycle key now belongs to a team that may only use the batch
deployment under test, so provider-only calls resolve that deployment in any
registration order.
2026-11-14 16:55:01 -08:00
..
batch_cleanup.py test(e2e): tag router, batches and mcp tests with Subject metadata and record client steps (#44964) 2026-10-07 10:32:58 -07:00
batch_client.py fix(batches): return real batch token counts next to OpenAI's batch usage fields (#47740) 2026-10-29 18:29:30 -07:00
capabilities.py chore: move LiteLLM's configs and e2e tests off gpt-4o and gpt-4.1 before their 2027-01-14 shutdown (#51800) 2026-11-14 10:50:59 -08:00
conftest.py chore: merge litellm_internal_staging into litellm_e2e_reliability_module_cells 2026-09-12 13:05:02 -07:00
COVERAGE.md test(e2e): run the batch lifecycle with a key that only reaches its own deployment (#51857) 2026-11-14 16:55:01 -08:00
test_batches_e2e.py test(e2e): run the batch lifecycle with a key that only reaches its own deployment (#51857) 2026-11-14 16:55:01 -08:00
test_managed_files_enforcement_e2e.py chore: move LiteLLM's configs and e2e tests off gpt-4o and gpt-4.1 before their 2027-01-14 shutdown (#51800) 2026-11-14 10:50:59 -08:00