Skip to content

refactor(pr): wait for the monitor checks with gh pr checks --watch - #7527

Closed
dan-petty wants to merge 2 commits into
mainfrom
refactor/7509-monitor-watch-gh
Closed

dan-petty wants to merge 2 commits into
mainfrom
refactor/7509-monitor-watch-gh

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

While a check runs, devops pr monitor and devops pr wait now wait with gh pr checks <n> --watch --interval <s> in a process limited to the time left, and read the pull request again when gh ends. Before, they read the pull request, checks, threads, files and reviews again each interval. A watch past the timeout gives exit 3.

The monitor waits an interval itself only for a head with no check yet, a check that still runs after a watch, and an active Copilot review or settle time, because gh has no watch of reviews. After a watch it reads at once, but watches again only after an interval, so no loop runs with no pause.

No --fail-fast (it ends at the first failure, against the #998 rule to name every blocker) and no --required (3 of 29 checks on PR #7481). A live run on PR #7518 waited 72 s in gh for the last check, then exited 2.

Closes #7509
Change: openspec/changes/archive/2026-11-28-7509-monitor-watch-gh/

While a check runs, `devops pr monitor` waits with
`gh pr checks --watch --interval` within the time left, and reads the
pull request again when gh ends, in place of reading the whole verdict
each interval. The Copilot settle time, the exit codes and the
read-failure rule stay.
@dan-petty dan-petty added type/refactor Type refactor: a new structure, same behavior scope/pr The devops pr commands labels Nov 28, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Closed: vetting found it adds a second wait beside the custom loop (+129/−27) and moves reads out of the pacing ledger; evidence on #7509.

@dan-petty dan-petty closed this Nov 28, 2026
@dan-petty
dan-petty deleted the refactor/7509-monitor-watch-gh branch November 28, 2026 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/pr The devops pr commands type/refactor Type refactor: a new structure, same behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(pr): wait for the monitor checks with gh pr checks --watch

1 participant