Skip to content

docs(source-control): REST-poll CI waits; queued vs running (#3955) - #4834

Merged
cursor[bot] merged 3 commits into
mainfrom
cursor/3955-ci-wait-rest-polling-37e9
Sep 28, 2026
Merged

cursor[bot] merged 3 commits into
mainfrom
cursor/3955-ci-wait-rest-polling-37e9

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Closes #3955

Summary

babysit-prs and pull-request now say how to wait for a pending check: REST on a fixed schedule, never gh pr checks --watch, and a queued job is reported as queued (with its runs-on labels) rather than as a slow job.

Decision

Fix

  • pull-request/reference/monitor.md gains "Waiting on a pending check": --watch is named as the thing not to use (GraphQL cost grows with queue time; a job that has not started still burns the budget). The wait is the existing REST check-runs read at 30s (Monitor) or 60-90s (blocking / cloud).
  • Before the first wait, unfinished Actions jobs are read and split into queued vs running. A queued job is reported with its labels and age; pool occupancy (N/M busy) is added only when the token can list runners (admin). A 403 is reported as unread, not guessed.
  • babysit-prs loop.md and stuck-checks.md, and the pull-request cadence line, point at that section.
  • source-control 0.62.2.

Test plan

  • Grep: checks --watch now appears as the forbidden form in monitor.md, loop.md, and stuck-checks.md.
  • The jobs-API snippet and the queued/running action table are in monitor.md "Waiting on a pending check".
  • changelog-parity for source-control 0.62.2.
Open in Web Open in Cursor 

cursoragent and others added 2 commits September 28, 2026 03:08
Forbid gh pr checks --watch for a long wait (GraphQL cost grows with
queue time). Before the first poll, report each pending Actions job as
queued (with runs-on labels) or running.

Closes #3955

Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
…est-polling-37e9

Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
@github-actions

github-actions Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

PR body contract — issue linkage

This PR body does not yet satisfy the issue-linkage contract:

  • Missing a "## Verification" section. Record concrete evidence the change works (commands, gates, output).
  • Missing a "## Related" section. List related PRs, ADRs, or decision-log entries this PR does not close.

Edit the body and this comment updates itself on the next run.

@cursor
cursor Bot marked this pull request as ready for review September 28, 2026 03:30
…est-polling-37e9

Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
@cursor
cursor Bot merged commit f365a4c into main Sep 28, 2026
19 checks passed
@cursor
cursor Bot deleted the cursor/3955-ci-wait-rest-polling-37e9 branch September 28, 2026 03:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

source-control/babysit-prs and pull-request: codify REST polling and a queued-vs-running distinction for CI waits

2 participants