litellm/tests/openai_endpoints_tests
yuneng-jiang 4fc0975d22 Fix flaky e2e batch test: set batch_processed=True on completion in retrieve_batch
The retrieve_batch endpoint sets batch status to "complete" but never set
batch_processed=True, permanently blocking file deletion. CheckBatchCost
(the safety net) also excluded completed batches from its primary query,
so batch_processed was never set by either path.

Three fixes:
1. update_batch_in_database sets batch_processed=True when status reaches
   "complete", with old-schema fallback retry
2. CheckBatchCost primary query no longer excludes complete/completed
   (batch_processed=False filter prevents reprocessing)
3. retrieve_batch early-return now includes "complete" (DB-normalized
   spelling) to avoid unnecessary provider re-polls

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 18:18:32 -07:00
..
bedrock_batch_completions.jsonl [QA] E2E - Testing for bedrock batches api (#14525) 2025-09-12 19:31:19 -07:00
input_azure.jsonl [Feat] Add support for returning images with gemini/gemini-2.5-flash-image-preview with /chat/completions (#13983) 2025-08-27 16:16:19 -07:00
input.jsonl rename folder to test openai endpoints 2025-03-13 15:13:48 -07:00
openai_batch_completions.jsonl rename folder to test openai endpoints 2025-03-13 15:13:48 -07:00
openai_fine_tuning.jsonl rename folder to test openai endpoints 2025-03-13 15:13:48 -07:00
out_azure.jsonl rename folder to test openai endpoints 2025-03-13 15:13:48 -07:00
out.jsonl rename folder to test openai endpoints 2025-03-13 15:13:48 -07:00
test_batch_rate_limiting_integration.jsonl [Feat] Add support for Batch API Rate limiting - PR1 adds support for input based rate limits (#16075) 2025-10-29 18:28:52 -07:00
test_bedrock_batches_api.py [QA] E2E - Testing for bedrock batches api (#14525) 2025-09-12 19:31:19 -07:00
test_e2e_openai_responses_api.py claude-sonnet-4-5-20250929 fix 2025-10-31 18:20:52 -07:00
test_openai_batches_endpoint.py Fix flaky e2e batch test: set batch_processed=True on completion in retrieve_batch 2026-03-15 18:18:32 -07:00
test_openai_files_endpoints.py rename folder to test openai endpoints 2025-03-13 15:13:48 -07:00
test_openai_fine_tuning.py feat: read from custom-llm-provider header (#15528) 2025-10-18 22:04:53 -07:00
test_responses_websocket_proxy_e2e.py test(responses): add end-to-end test for responses API WebSocket mode 2026-03-02 17:24:39 +05:30