litellm/tests/logging_callback_tests
yuneng-jiang cc027a2b90 Fix flaky test_langsmith_queue_logging: poll instead of fixed sleep
The test waited a fixed 3s for async callbacks to populate log_queue.
Under xdist -n 4, CPU contention can delay the GLOBAL_LOGGING_WORKER
background task beyond 3s. Replace fixed sleeps with polling loops
(up to 10s) that break as soon as the expected condition is met.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-15 20:25:11 -07:00
..
gcs_pub_sub_body fix(tests): update gcs pubsub v1 fixture with new SpendLogsMetadata fields (#21779) 2026-02-21 10:40:26 -08:00
langfuse_expected_request_body Add JSON exact match test for vLLM embeddings 2026-02-26 16:49:34 +05:30
base_test.py
conftest.py Fix logging_testing: capture true defaults at conftest import time 2026-03-15 19:52:46 -07:00
create_mock_standard_logging_payload.py
gettysburg.wav
log.txt
test_alerting.py Replace deprecated model names in tests that were removed from remote model cost map 2026-03-12 14:12:07 -07:00
test_amazing_s3_logs.py
test_assemble_streaming_responses.py
test_azure_blob_storage.py
test_bedrock_knowledgebase_hook.py fix(tests): read CI_CD_DEFAULT_ANTHROPIC_MODEL env var instead of hardcoding model (#21781) 2026-02-21 10:46:49 -08:00
test_built_in_tools_cost_tracking.py
test_custom_callback_router.py
test_datadog_llm_obs.py
test_datadog.py
test_dynamic_otel_keys.py Litellm fix langfuse otel trace (#20382) 2026-02-03 22:40:19 -08:00
test_gcs_pub_sub.py Fix test_async_gcs_pub_sub_v1 2026-02-26 10:46:01 +05:30
test_generic_api_callback.py Add log_format parameter to GenericAPILogger (#18587) 2026-01-02 23:28:30 +05:30
test_humanloop_unit_tests.py
test_langfuse_e2e_test.py Add JSON exact match test for vLLM embeddings 2026-02-26 16:49:34 +05:30
test_langfuse_unit_tests.py
test_langsmith_unit_test.py Fix flaky test_langsmith_queue_logging: poll instead of fixed sleep 2026-03-15 20:25:11 -07:00
test_log_db_redis_services.py
test_logging_redaction_e2e_test.py Reapply "feat: add model_cost aliases expansion support" 2026-03-12 13:36:57 -03:00
test_moderations_api_logging.py
test_opentelemetry_unit_tests.py Use already configured opentelemetry providers 2026-01-01 19:06:55 -08:00
test_otel_logging.py fix(test): update Phoenix OTEL test for dedicated TracerProvider architecture 2026-02-26 06:40:24 -05:00
test_pagerduty_alerting.py
test_posthog.py posthog serilization fix (#20668) 2026-02-07 14:24:32 -08:00
test_spend_logs.py
test_sqs_logger.py
test_standard_logging_payload_excluded_fields.py feat: add standard_logging_payload_excluded_fields config option (#20831) 2026-02-10 22:16:41 -08:00
test_standard_logging_payload.py Fix azure model router 2026-03-12 12:40:37 +05:30
test_token_counting.py
test_unit_test_litellm_logging.py
test_unit_tests_init_callbacks.py fix(logging): avoid shared callback list references (#20984) 2026-02-13 18:32:41 +05:30
test_view_request_resp_logs.py