litellm/tests/e2e/quota_management/spend_tracking
yuneng-jiang b18188dee2
test(e2e): retire the quiet_stack lock and batch the claude_code model registration (#49984)
* test(e2e): retire the quiet_stack lock

quiet_stack held an exclusive host-wide lock for six tests, draining every
other xdist worker while they ran. On the full e2e lane that left 35-38% of
worker time idle. Each of those tests now lives where it can run without
pausing the suite

- the two memory tests move to perf/ behind the perf marker, so the perf lane
  runs them on its own fresh stack. Their refusing deployments use a literal
  key because the perf stack carries no provider keys
- the stored-request size check from the memory test becomes an integration
  test on an owned proxy that stores prompts
- the discount and margin spend-row tests are dropped from e2e. Their
  breakdown assertions join the existing integration pricing test, which
  already owns the discount and margin repricing flow
- the Bedrock guardrail cost test stays in e2e without the pricing reset
  fixture, since nothing else on the stack writes pricing config now
- the MCP semantic tool filter test turns on a proxy-wide setting, so it gets
  a new proxy_wide_config opt-in marker and runs after the main run

* test(e2e): register the claude_code deployments as one batch

The claude_code session fixture registered its 24 deployments one at a time on every xdist worker, and each one waited out the 15 s propagation window on its own, about 6 minutes per worker. ProxyClient.register_models posts the whole batch, polls each model until every replica serves it, then waits out propagation once from the last write. A model that fails to post or never becomes servable comes back as ModelNotRegistered, and an unservable one is deleted, so the fixture keeps reporting per-deployment failures the way it did
2026-11-04 09:55:53 -08:00
..
conftest.py test(e2e): every spend row a virtual key writes joins its token across all write paths 2026-09-09 14:34:12 -07:00
cost_rows.py test(e2e): cover persisted pricing spend (#41566) 2026-10-10 16:06:48 -07:00
spend_e2e_client.py test(e2e): tag the remaining quota_management tests and record budget and spend client steps (#44966) 2026-10-07 10:33:12 -07:00
spend_reconciliation.py test(e2e): tag the remaining quota_management tests and record budget and spend client steps (#44966) 2026-10-07 10:33:12 -07:00
SPEND_TRACKING_COVERAGE_MATRIX.md ci: run every CircleCI check from the integration workflow (#45938) 2026-10-11 07:39:16 -07:00
test_cache_cost_accounting_e2e.py test(e2e): typed per-test metadata for the e2e suite (#42044) 2026-09-30 21:03:21 -07:00
test_cost_headers_e2e.py test(e2e): typed per-test metadata for the e2e suite (#42044) 2026-09-30 21:03:21 -07:00
test_guardrail_cost_spend_e2e.py test(e2e): retire the quiet_stack lock and batch the claude_code model registration (#49984) 2026-11-04 09:55:53 -08:00
test_key_attribution_e2e.py fix(e2e): restore main qualification across providers and UI (#49763) 2026-11-03 20:38:47 +00:00
test_provider_edge_spend_e2e.py test(e2e): typed per-test metadata for the e2e suite (#42044) 2026-09-30 21:03:21 -07:00
test_service_tier_pricing_e2e.py test(e2e): tag the remaining quota_management tests and record budget and spend client steps (#44966) 2026-10-07 10:33:12 -07:00
test_spend_routes.py test(e2e): tag the remaining quota_management tests and record budget and spend client steps (#44966) 2026-10-07 10:33:12 -07:00
test_spend_surface_consistency_e2e.py test(e2e): tag the remaining quota_management tests and record budget and spend client steps (#44966) 2026-10-07 10:33:12 -07:00
test_spend_tracking_e2e.py fix(e2e): restore main qualification across providers and UI (#49763) 2026-11-03 20:38:47 +00:00
test_team_daily_activity_e2e.py test(e2e): typed per-test metadata for the e2e suite (#42044) 2026-09-30 21:03:21 -07:00
test_websearch_interception_session_e2e.py fix(e2e): restore main qualification across providers and UI (#49763) 2026-11-03 20:38:47 +00:00