Proposal: unblock the PR backlog (~2,390 open, 0 approved) without lowering review or test reliability #28700
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 boykopovar/AnyPS5. Originally posted by jagrat04 on 2026-12-03T01:32:06Z.
Follow-up to #5503 (
625open PRs in October) and #28168, with current repository numbers and an engineering plan to raise merge throughput outside the mainagc/shaderlane without relaxing review or test guarantees.1. Live Snapshot (measured 2026-12-03)
Overall throughput on
mainis very high (1,017 PRs merged in the last 7 days,merged:>=2026-11-26), so the bottleneck is not inactivity — it is extreme lane asymmetry and queue saturation:total/ non-draft)#5503(Oct 2026)pr-ready)47009531114:1245 of 2396 ... have no blocker; 30 queuedreview:none2,306,changes_requested85,approved0review queue30/30carryunblocks title)#9335(2026-10-21) to#27893(2026-11-27)unblocks title143review:none)review queuecapacityneeds rebaseprx/libSceNKWebKitPRsprx/ 241libSceNKWebKitlibSceNKWebKitPR is#10409(2026-10-23); 660 merged59/60merged byoneandonlydean56/60explicitlyAPPROVED,0/60merged without human review;MarcZX10posted 159 review events across those 60 PRs (~2.65 rounds/PR)agc(38),shader(7),libSceNKWebKit(7),libc(6),libkernel(5),relinker(4)unblockssubsystems clear slowly2. Root Causes of Slow Progress
Single-merger chokepoint + unbounded intake above 20 merges
.github/workflows/pr-intake.yml, authors with>= 20merged PRs have no open-PR cap.0/60recent merges lacked human review) and59/60recent merges went through one maintainer (oneandonlydean). Applying Little's Law, unconstrained PR generation against a 1-merger / few-reviewer capacity produces the2,393backlog and heavy hourly automation load (pr-overlap.yml,pr-ready.yml,conflict-label.yml).Strict queue starvation in
tools/pr_ready.pyQUEUE_SIZE = 30andranked()sorts strictly by(UNBLOCKS_LABEL not in pr["labels"], pr["created"], pr["number"]).158open PRs haveunblocks title, non-unblocks titlePRs (nearly alllibSceNKWebKit,libSceIcu, utilitylibc/prxwork) literally never enterreview queue.Remaining unsplit monoliths in PRX libraries (
409needs rebase, review truncation)docs/dev/debt/changes/andtests/cmake/*.cmakefragments inlibSceAgcDriver,libc, andlibkernel.origin/main,core/libs/prx/libSceNKWebKit/Export.cppis still 20,773 lines andinclude/InventoryExports.hppis 5,477 lines. Parallel WebKit PRs edit and delete stubs inside the same files, causing cross-PR conflicts, forced rebases, and automated review bundle truncation due to file size.Coarse header invalidation on PR CI vs. unused
tools/select_tests.py.github/workflows/build.ymlsavestest-graph.jsononpushtomainand supportstools/select_tests.py(ninja -t query) only onworkflow_dispatch(inputs.select).pull_requestWindows runs invoketools/build_mingw_host_only_tests.pyandtools/build_changed_guest_tests.py, both of which setbroad_change = Truefor any.h,.hpp,.hh,.inl,.cmake, orCMakeLists.txtundercore/libs/— rebuildinglibsand running all guest/hostcore/libstest targets even when changing a private header in one leaf PRX.linuxonly runs onpushtomainor manualworkflow_dispatch(which batches up to 40 PRs), integration and Linux verification rely on manual maintainer batch dispatches.Manual review load on speculative clean-room PRXs
agc/libc, implementations are anchored to Vulkan validation (VUID-) or POSIX/C++ specs. In large C++ libraries likelibSceNKWebKit, clean-room host reimplementations written from symbol names pass self-written unit tests while still requiring multiple human review rounds (MarcZX10,mihiii1337,PrivacyOnion) to catch missing edge cases, silent no-ops violatingTechnicalDebt.md, or invented behavior.3. Proposed Fixes (Preserving Full Reliability)
Split and auto-generate stub/export boilerplate in large PRXs (like
libSceNKWebKit)tools/stubgen.pymodel) from a declarative inventory manifest rather than checking a 20k-line hand-editedExport.cppinto git..cppunits (WKPageSessionState.cpp, etc.) that suppress the matching generated stub, with a build-time invariant ensuring every manifest NID maps 1:1 to either an implementation (public_headers+nid_*checked) or aNotImplemented_nid_no_patchstub.Fair-share multi-lane queue in
tools/pr_ready.py+CODEOWNERSdelegationunblocks titleand split remaining slots acrossagc/shader/relinkerandprx/libc/libkernel/tools), or publish separate per-area queue sections so subsystem reviewers always see clean PRs in their domain.CODEOWNERS/ subsystem merge delegation for low-risk/non-GPU PRX libraries sooneandonlydeanis not the sole merge path for59/60PRs.WIP-capped active queue + stacked draft support in
pr-intake.yml>= 20merged) with a cap on active non-draft / unreviewed PRs per author (e.g., 5–10 active PRs), while allowing unlimited draft stacked PRs (which skip CI/review-queue churn until earlier PRs land).needs rebasecascades, and hourlypr-overlapscans without slowing down authors.Dependency-exact PR test selection + two-tier automated batching
#include/test-graph.json(select_tests.py) reachability inbuild_changed_guest_tests.pyandbuild_mingw_host_only_tests.pywhen.hpp/.hfiles change, keeping fullbroad_changeonly for rootCMakeLists.txt/.cmake/ workflow edits, while always keepingpublic_headers/nid_*/patched_libraries_testsstrict for changed library interfaces.#28182+ hosted Windows dependency-scoped tests, automated speculative batching + bisect on failure) from the self-hosted GPU / relinker lane (core/shader/,core/libs/prx/libSceAgcDriver/,video_out,relinker/, VM/memory primitives). Related CI work already open:#28432,#28182,#28499.Automated pre-review contract checks for PRXs
tools/check_conventions.py/tools/guest_pointer_audit.pywith static AST checks beforereview queueeligibility: flag exportedAPS5_VABIfunctions that return constant success without callingNotImplemented_nid_no_patch, mutating real backend state, or having aSilent stubsdebt entry; validate parameter counts/types against extracted firmware inventories where available.3rdparty/upstream sources perAGENTS.md.4. Phased Plan of Action
Phase 1 — Immediate Queue & Intake Relief (zero C++ risk, CI/scripts only)
tools/pr_ready.pyto allocate guaranteed quota slots per subsystem alongsideunblocks titlepriority (--issuesummary grouped by area)..github/workflows/pr-intake.ymlto enforce active non-draft WIP limits instead of unlimited open PRs at>= 20merges, encouraging stacked drafts.#28182) and single-pass Windows PR builds (#28432) + flake quarantine reporting (#28499).Phase 2 — Graph-Exact PR Testing & Contract Automation (
tools/)4. Replace the blanket
core/libs/**/*.hppbroad_changetrigger intools/build_changed_guest_tests.pyandtools/build_mingw_host_only_tests.pywith#include/test-graph.jsontransitive dependency resolution (with a nightly/push full safety sweep remaining intact).5. Add automated silent-stub and export-signature inventory verification to PR checks so
MarcZX10/ reviewers only inspect real semantics rather than catching dummy stubs manually.Phase 3 — Structural Monolith Elimination & Delegated Merge Queue
6. Migrate
libSceNKWebKit(Export.cpp/InventoryExports.hpp) to generated NID stub fallback tables + per-domain implementation units (matching thetests/cmake/*.cmakeanddocs/dev/debt/changes/conflict-free pattern).7. Introduce
CODEOWNERSper subsystem and split automated speculative batch merging into a hosted non-GPU queue lane + the self-hosted GPU/relinker lane.