get_flaky_tests
Analyze recent test runs to detect flaky tests based on pass/fail patterns. Identify tests that fail intermittently to improve CI stability.
Instructions
Detect flaky tests by analyzing pass/fail patterns across recent runs. Returns tests that fail intermittently (e.g., "failed 3 of 10 runs"). Killer feature for CI stability.
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": {
"job_name": "<job_name>"
},
"name": "get_flaky_tests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Number of days to analyze (default: 7) | |
| job_name | Yes | Job name to analyze (e.g., "Test (Blacksmith/Self-Hosted)") | |
| min_runs | No | Minimum number of runs a test must appear in to be considered (default: 3) | |
| threshold | No | Flakiness threshold 0-1, e.g., 0.2 means test failed 20%+ of runs (default: 0.1) |