Skip to content

fix(reporters): include retry count for unfinished checks on --max-failures - #1566

Merged
sorccu merged 1 commit into
checkly:mainfrom
shafiktanbir:patch-1
Oct 25, 2026
Merged

sorccu merged 1 commit into
checkly:mainfrom
shafiktanbir:patch-1

Conversation

@shafiktanbir

Copy link
Copy Markdown
Contributor

Summary

Fixes #1565

When --max-failures stops a run early, checks that have already completed one or more retry attempts (entry.numRetries > 0) before being stopped are rendered under the NOT_FINISHED summary section in AbstractListReporter.onMaxFailuresReached.

Previously, onMaxFailuresReached called formatCheckTitle(CheckStatus.NOT_FINISHED, entry.check) without passing { includeSourceFile: false, retries: entry.numRetries }, dropping the retry count (unlike onCheckEnd and JsonBuilder, which both include numRetries).

Changes

  • Pass { includeSourceFile: false, retries: entry.numRetries } to formatCheckTitle(CheckStatus.NOT_FINISHED, entry.check, ...) in AbstractListReporter.onMaxFailuresReached (packages/cli/src/reporters/abstract-list.ts).

Visual Proof

checkly-cli --max-failures retry count proof

@sorccu
sorccu merged commit 9874a26 into checkly:main Oct 25, 2026
1 check passed
@sorccu

sorccu commented Oct 25, 2026

Copy link
Copy Markdown
Member

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 :)

@shafiktanbir

shafiktanbir commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor Author

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 --max-failures .... just forgot the list reporter right next to it lol. happy to help with any real backlog issues if you ever need an extra pair of hands!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AbstractListReporter.onMaxFailuresReached and GithubMdBuilder omit retry count for unfinished checks stopped by --max-failures

2 participants