Test runs
list_flaky_cases
Read grantRead-onlyIdempotent
List a product's flaky cases by lane, an environment and a coverage level: for each, its latest 20 finished CI runs unless you ask for more or fewer, how many passed every first attempt, and each case that failed its first attempt in them, with how often, the failures' kinds, the latest one's run and the case's ticket. CI runs are those an account API key published against a site not on the machine running it; runs of quarantined cases only are left out. Needs read access.
Inputs
productstringRequiredThe product to report on, by slug, such as storefront.
environmentstringOnly this environment's lanes, by slug, such as production.
coveragestringOnly lanes that ran this coverage level.
One of
criticalacceptanceregressionexhaustiverunsintegerHow many of each lane's latest CI runs to count; 20 unless given.
From 1 to 200
tools/callJSON-RPC
{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "list_flaky_cases", "arguments": { "product": "storefront", "environment": "production" } }}POST/clanker/v1/test-runs:flaky-cases
curl -X POST https://api.clankership.com/clanker/v1/test-runs:flaky-cases \ -H "Authorization: Bearer $CLANKER_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "product": "storefront", "environment": "production" }'