Repository navigation
skills: stop the /open-pr CI monitor reporting green off a partial check set - #10883
Conversation
…eck set The monitor treated "at least one check reported and none pending" as the end of the run. For a minute or two after a push — and again after every force-push — `gh pr checks` reports only the fast PR-level checks, and all of those can already be pass/skipping while the pipeline has yet to register, so the loop declared a green run that had not started. This happened on #10882. Require the `pr-validation` gate to have been registered before an all-terminal payload counts. It `needs:` every other job, so its presence and terminal state imply the whole pipeline's, and there is no per-lane list to keep in sync. A stalled counter aborts after 20 such polls so renaming that job surfaces loudly instead of hanging the monitor.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c8727f71e4
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| # it cannot be terminal until they all are — no per-lane list to maintain. | ||
| # Matched as a name prefix, since reusable-workflow checks report as | ||
| # "<job> / <child job> / <leaf>". | ||
| required=(pr-validation) |
There was a problem hiding this comment.
Include Link Check in the required sentinel set
On Markdown PRs, this sentinel is too narrow: .github/workflows/link-check.yml runs for **.md changes, including this skill file, but pr-validation only waits for the jobs in event-pull_request.yml and does not depend on Link Check. Because gh pr checks --json name,bucket reports only the checks currently registered, the same registration window described below can still let the loop see pr-validation: pass plus the fast terminal checks and print CI GREEN before Link Check has appeared or failed. Add a required sentinel for Link Check when Markdown paths are in the PR, or otherwise wait for that workflow, so the monitor's green handoff includes all CI that must pass.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Unnecessary.



Describe the changes in the pull request
/open-prstep 11 treats "at least one check reported and none pending" as the end of the run. For the first minute or two after a push — and again after every force-push —gh pr checksreports only the fast PR-level checks (check-release-notes,labeler,license/cla, the skipped benchmark triggers), and every one of those can already bepassorskippingwhile the pipeline has yet to register. The loop then announces a green run that has not started.pr-validationgate must have been registered before an all-terminal payload counts as a finished run. One name suffices because that jobneeds:every other one, so its presence and terminal state imply the whole pipeline's — there is no per-lane list to keep in sync. A stalled counter aborts after 20 such polls, so renaming that job fails loudly instead of hanging the monitor. Drafts are unchanged: they do not run the!draft-gated lanes, so the existing caveat path still applies./open-prcan no longer report a green CI run that never ran, which is what makes the rest of that workflow's gating trustworthy.Which additional issues this PR fixes
Observed on #10882, which reported
CI GREENoff seven checks while every pipeline job was still unregistered.Main objects this PR modified
.skills/open-pr/SKILL.md— the step 11 monitor snippet, plus the "load-bearing" notes under it that explain why each guard exists.Mark if applicable
Release Notes