Rank tests by flakiness
flake.rankRank tests by flakiness using historical run data, returning scores, run counts, and explanations to identify flaky tests before retrying failures or judging if a red build is a regression.
Instructions
Runs flake-detector's scorer over the ingested run history (.flake/history.db in the repository) and returns the most flaky tests first, each with a 0-1 score, run count, the signals behind the score and a plain-language explanation. Use it before retrying a failing test or deciding whether a red build is a regression.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | How many tests to return, most flaky first | |
| repo | No | Repository root to run in; defaults to TOOLKIT_REPO |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runs | No | ||
| tests | Yes | ||
| generatedAt | No |