Skip to content

[SDTEST-3211] Use Datadog test suite durations endpoint#49

Draft
anmarchenko wants to merge 3 commits intomainfrom
anmarchenko/use_backend_api
Draft

[SDTEST-3211] Use Datadog test suite durations endpoint#49
anmarchenko wants to merge 3 commits intomainfrom
anmarchenko/use_backend_api

Conversation

@anmarchenko
Copy link
Copy Markdown
Member

@anmarchenko anmarchenko commented Apr 14, 2026

No description provided.

Introduces TestSuiteDurationsClient that calls POST /api/v2/ci/ddtest/test_suite_durations
to fetch historical test suite duration percentiles (p50, p90) for optimizing
parallel test splitting. Follows the same layered architecture as the existing
TestOptimizationClient with interface-based dependency injection for testability.

Made-with: Cursor
@anmarchenko anmarchenko changed the title Add API client for test suite durations endpoint [SDTEST-3211] Use Datadog test suite durations endpoint Apr 14, 2026
Fetch backend test suite durations during optimization setup, store them in memory for later use, and keep planning behavior unchanged when the API is empty or errors.

Made-with: Cursor
Add debug logging for the raw backend response body when fetching test suite durations to match the visibility we already have for settings.

Made-with: Cursor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant