Make PR Tooling Safety Check resilient to GitHub MCP list_pull_requests timeouts#19861
Draft
Copilot wants to merge 2 commits into
Draft
Make PR Tooling Safety Check resilient to GitHub MCP list_pull_requests timeouts#19861Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
Co-authored-by: T-Gro <46543583+T-Gro@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix PR tooling safety check failure
Make PR Tooling Safety Check resilient to GitHub MCP list_pull_requests timeouts
May 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
labelops-pr-security-scanworkflow repeatedly aborts withreport_incompletewhen the GitHub MCP server times out (module closed with context deadline exceeded) while listing open PRs in one shot. The agent treats a single transient timeout as terminal, which generates a failure issue every run.Changes
All edits are to the prompt body of
.github/workflows/labelops-pr-security-scan.md(no logic/lock changes — the body is{{#runtime-import}}-ed, so the compiled.lock.ymlis unchanged):perPage: 30, sort newest-first, and stop paginating once a page reaches a PR older than the existing2026-05-12cutoff. This keeps each call small enough to stay under the MCP deadline instead of fetching the entire open-PR set at once.context deadline exceeded,module closed,EOF) up to 3 times before giving up; skip a single unreadable PR and continue rather than aborting the whole scan; onlyreport_incompleteafter retries are exhausted.Notes