detect_flaky_tests
Re-run selected test IDs several times to classify results as consistently failing, flaky, or passing, distinguishing real bugs from unreliable tests before failures are reported.
Instructions
Re-run specific tests runs times to tell real bugs from flaky tests.
ALWAYS use this before reporting any test failure as a bug. Pass node ids from run_tests (e.g. "tests/test_x.py::test_y"); at most 10 ids, runs clamped to 2..20. Each test runs in its own pytest process (so one bad id cannot spoil the others) and is classified as consistently_failing, flaky, passing or not_run, with pass/fail counts per run.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repo": "<repo>",
"test_ids": "<test_ids>"
},
"name": "detect_flaky_tests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | ||
| runs | No | ||
| test_ids | Yes | ||
| timeout_s | No |