Skip to content

fix(pr): retry a failed read in pr checks --watch - #1841

Merged
igorjs merged 3 commits into
mainfrom
fix/pr-checks-watch-transient-read
Nov 15, 2026
Merged

igorjs merged 3 commits into
mainfrom
fix/pr-checks-watch-transient-read

Conversation

@igorjs

@igorjs igorjs commented Nov 15, 2026

Copy link
Copy Markdown
Member

Summary

pr checks --watch ended with UNREADABLE on one failed gh read, because the failed read became an empty check list and an empty list settles as NONE. It now reads again up to WATCH_READ_ATTEMPTS (3) times, one interval apart, before it reports UNREADABLE. A plain snapshot still reads once.

Notes for reviewers

  • The retry is a small read_with_retry helper with an injected read and sleep, so the three tests (recovers, gives up with the last error, snapshot does not wait) need no gh.
  • The reference doc line for pr checks states the retry. Follow-up from the CLI audit stack (S17, feat(cli): add pr checks with --watch and failure triage #1824).

A single failed gh read ended the watch with UNREADABLE. It now reads
again up to WATCH_READ_ATTEMPTS times, one interval apart, and a plain
snapshot still reads once.

Signed-off-by: igorjs <2278164+igorjs@users.noreply.github.com>
Signed-off-by: igorjs <2278164+igorjs@users.noreply.github.com>
@igorjs
igorjs marked this pull request as ready for review November 15, 2026 07:27
@igorjs
igorjs enabled auto-merge November 15, 2026 07:28
… built from

Signed-off-by: igorjs <2278164+igorjs@users.noreply.github.com>
@igorjs
igorjs added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit f2202b5 Nov 15, 2026
29 of 30 checks passed
@igorjs
igorjs deleted the fix/pr-checks-watch-transient-read branch November 15, 2026 07:47
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.

1 participant