Skip to content

skills: stop the /open-pr CI monitor reporting green off a partial check set - #10883

Merged
LukeMathWalker merged 1 commit into
masterfrom
fix-open-pr-monitor
Aug 12, 2026
Merged

LukeMathWalker merged 1 commit into
masterfrom
fix-open-pr-monitor

Conversation

@LukeMathWalker

Copy link
Copy Markdown
Collaborator

Describe the changes in the pull request

  1. Current: the CI monitor in /open-pr step 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 checks reports only the fast PR-level checks (check-release-notes, labeler, license/cla, the skipped benchmark triggers), and every one of those can already be pass or skipping while the pipeline has yet to register. The loop then announces a green run that has not started.
  2. Change: on a ready PR, the pr-validation gate must have been registered before an all-terminal payload counts as a finished run. One name suffices because that job needs: 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.
  3. Outcome: internal-only, agent tooling — no module or CI behavior changes. An agent following /open-pr can 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 GREEN off seven checks while every pipeline job was still unregistered.

Main objects this PR modified

  1. .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

  • This PR introduces API changes
  • This PR introduces serialization changes

Release Notes

  • This PR requires release notes
  • This PR does not require release notes

…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.
@sonarqubecloud

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread .skills/open-pr/SKILL.md
# 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)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary.

@LukeMathWalker
LukeMathWalker added this pull request to the merge queue Aug 12, 2026
Merged via the queue into master with commit 4f2b28a Aug 12, 2026
20 checks passed
@LukeMathWalker
LukeMathWalker deleted the fix-open-pr-monitor branch August 12, 2026 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants