Repository navigation
fix(reporters): include retry count for unfinished checks on --max-failures - #1566
Conversation
|
Thanks! A bit surprised my Claude let that through to be honest. Based on your activity history, I presume that you're not actually using our CLI and are actively checking commits in various repositories, is that right? Just curious because I didn't expect anyone to be using our main branch directly :) |
Haha .. guilty as charged! :) Ihave been reading recent commits in a few TS dev-tool repos I like to learn the codebases and see if I can spot small edge cases before they ship.funny enough Claude updated the json reporter for |
Summary
Fixes #1565
When
--max-failuresstops a run early, checks that have already completed one or more retry attempts (entry.numRetries > 0) before being stopped are rendered under theNOT_FINISHEDsummary section inAbstractListReporter.onMaxFailuresReached.Previously,
onMaxFailuresReachedcalledformatCheckTitle(CheckStatus.NOT_FINISHED, entry.check)without passing{ includeSourceFile: false, retries: entry.numRetries }, dropping the retry count (unlikeonCheckEndandJsonBuilder, which both includenumRetries).Changes
{ includeSourceFile: false, retries: entry.numRetries }toformatCheckTitle(CheckStatus.NOT_FINISHED, entry.check, ...)inAbstractListReporter.onMaxFailuresReached(packages/cli/src/reporters/abstract-list.ts).Visual Proof