Flaky tests API

The Flaky test API endpoint provides information about tests detected as flaky in a test suite.

List all flaky tests

Returns a paginated list of the flaky tests detected in a test suite.

curl "https://api.buildkite.com/v2/analytics/organizations/{org.slug}/suites/{suite.slug}/flaky-tests"
[
  {
    "id": "01867216-8478-7fde-a55a-0300f88bb49b",
    "web_url": "https://buildkite.com/organizations/my_great_org/analytics/suites/my_suite_name/tests/01867216-8478-7fde-a55a-0300f88bb49b",
    "scope": "User#email",
    "name": "is correctly formatted",
    "location": "./spec/models/user_spec.rb:42",
    "file_name": "./spec/models/user_spec.rb",
    "instances": 1,
    "most_recent_instance_at": "2023-02-14T23:19:03.223Z"
  }
]

Required scope: read_suites

Success response: 200 OK