Repository navigation
Find fork PRs in the review-threads reconciliation - #130491
Closed
Algunenano wants to merge 1 commit into
Closed
Algunenano wants to merge 1 commit into
Algunenano wants to merge 1 commit into
Conversation
`commits/<sha>/pulls` returns nothing for a commit that lives in a fork, and
`workflow_run.pull_requests` is empty for fork PRs. So a completed `PR` run of
a fork PR was never reconciled ("No PR associated with the event"), and only
the scheduled poll could re-run the skipped jobs. The same lookup made
`retry_infra_failures.yml` skip fork PRs, and made the shared-head-commit
checks (`shared_sha_prs`, `other_open_prs_on_head`) blind to fork PRs.
Resolve the PR of a run by its head branch instead, and find the other PRs
with a given head commit with a search by the commit as well.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
Workflow [PR], commit [1e22b7a] Summary: ✅ AI ReviewSummaryAdds fork-aware PR discovery and extends Missing context / blind spots
Final VerdictStatus: ✅ Approve for the reviewed Python change. |
Algunenano
marked this pull request as draft
November 10, 2026 13:53
Member
Author
|
The main change was reverted |
Member
Author
|
Included in #130509 |
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.
commits/<sha>/pullsreturns nothing for a commit that lives in a fork, andworkflow_run.pull_requestsis empty for fork PRs. So when thePRworkflow of a fork PR finished after its review threads were resolved,rerun_on_review_threads.ymlloggedNo PR associated with the event - nothing to do.and the skipped jobs were only re-run if the scheduledpolljob succeeded later. For example, #130354 stayed atresolved during the run - the full CI suite will be re-rununtil the reconciliation was dispatched by hand.The same lookup made
retry_infra_failures.ymlskip fork PRs, and made the shared-head-commit checks (shared_sha_prsin the workflow,other_open_prs_on_headincan_be_merged.py) never see fork PRs.This change resolves the PR of a run by its head branch (
pulls?head=<owner>:<branch>), and finds the other open PRs with a given head commit with a GitHub search by the commit as well.Related: #114729
Changelog category (leave one):
Workflow [PR]
Sync PR [sync-upstream/pr/130491]