Proposal: deterministic PR governance pipeline (lessons from AnyPS5's 24k+ PR workflow) #2486
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by rbolsoni on 2026-11-25T14:46:06Z.
Following up on #1026 (and complementary to #1633 and #1698):
boykopovar/AnyPS5hit the exact same wave of high-volume / AI-assisted PRs (~24,600+ PRs, ~2,600 open) and solved review/CI bottlenecks with a fully deterministic, zero-LLM GitHub Actions pipeline that maps cleanly to VIctory's Rust/xtasksetup:pr-intake.yml) —pull_request_targetcaps open PRs per author by merged history (e.g., 1 with 0 merged, 20 with ≥1, unlimited at 20+) and auto-closes overflow with a polite note to reopen later. Immediately curbs drive-by PR floods without blocking trusted contributors.pull_request_target(no untrusted code execution) — instead of blocking every fork PR on manual CI approval, run fast checks (e.g.xtask policy, PR template, basic conventions) frommainagainst fetched PR Git objects.workflow_dispatchbuilds (up to N PRs at once) — allow maintainers to triggerci.ymlwith a space-separated list of PR numbers; the job merges them withgit merge --no-ffontomainand runscargo clippy+cargo testonce with sharedrust-cache. Lets a single Windows runner validate 20–40 PRs in one pass before batch-merging.git merge-tree --write-tree) — hourly/on-push scan over open PR heads in memory (no checkout) to comment on PRs touching the same lines/shader lowerings/HLE exports, catching collisions that bypass manual claiming in #1633.review queue(GraphQL) — filters open PRs down to those with zero blockers (no draft, no conflict, green checks, and anyCHANGES_REQUESTEDexplicitly answered with a re-request), sorts critical-path labels first then FIFO, and labels only the top 30 (plus an optional--explain <PR>CLI for contributors).Reference implementations (GPL-2.0, concise Python/YAML):
boykopovar/AnyPS5:.github/workflows/pr-intake.yml,conventions.yml,build.yml(workflow_dispatchbatching),pr-overlap.yml,pr-ready.ymlandtools/pr_ready.py/tools/pr_overlap.py.Happy to help adapt a minimal subset (starting with
pr-intake+ batchedci.yml+review queue) if maintainers want this direction.Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T18:50:47Z.
Automated triage for the maintainers.
This is a proposal about how the repository handles pull requests, not about VIctory's code. Whether to adopt PR quotas, batched CI, overlap detection or a review queue is the maintainer's decision, so it is labelled as a request and left for him. It belongs with the existing discussion in #1026, #1633 and #1698.
If any part is adopted, it would need to be written for this repository's workflows under this repository's licence. Copying workflow files from another project means checking whether its licence is compatible.
Generated by Claude Code