test(mistralai): stabilize integration tests with rate limiting and retries (#37588)

Mistral integration tests have been flaky against the live API. This
adds a shared, xdist-aware rate limiter and a global retry policy so
transient 429s no longer fail the suite.
This commit is contained in:
Mason Daugherty
2026-05-20 19:49:25 -05:00
committed by GitHub
parent 5197dd5985
commit 4d2efcd756
6 changed files with 51 additions and 7 deletions

View File

@@ -21,7 +21,7 @@ test_watch:
integration_test integration_tests:
uv run --group test --group test_integration pytest -v --tb=short -n auto $(TEST_FILE)
uv run --group test --group test_integration pytest -v --tb=short -n auto --retries 3 --retry-delay 2 $(TEST_FILE)
######################