Merge throughput: 83% of open PRs have no CI run (372 runs await approval) #1026

Open
opened 2026-11-26 04:17:33 +00:00 by github-bot · 3 comments
Owner

@⁠Makto94 on GitHub · 2026-11-24 15:10 UTC · original

Thanks for VIctory and for merging so fast. I measured where pull requests wait, using the GitHub API on 24 Nov ~15:00 UTC. A few repository settings could raise the merge rate without extra review work.

Numbers

  • 672 PRs since 23 Nov 22:37 UTC: 499 open, 89 merged, 84 closed. Peak 36 merges/hour, median 3.3 h from open to merge.
  • In a random sample of 150 open PRs, 125 (83%) have no CI run on their head commit.
    • 372 workflow runs are in action_required: they wait for a manual "Approve and run".
    • ci.yml landed on 24 Nov 08:55 UTC, so older PRs without a later push never got a run.
  • Same sample: 22 (15%) have merge conflicts; 38 have failing or pending checks.

Suggestions, by expected effect

  1. Settings → Actions → General → "Approval for running fork pull request workflows from contributors": switch to Require approval for first-time contributors who are new to GitHub. CI then runs on most PRs without a click. The workflow already has permissions: contents: read.
  2. Auto-merge or a merge queue on main with CI as the required check. Add merge_group: to the on: triggers of ci.yml for the queue.
  3. A stale bot (e.g. actions/stale) that labels PRs with conflicts or red CI and closes them after a few days without a push. Contributors then rebase before you look.
  4. Group duplicates: several PRs address the same thing (e.g. PR templates in #9, #113, #543).

This is complementary to #763, which proposes an external review tool; these are built-in GitHub settings. Happy to send a PR for the merge_group: trigger or a stale workflow if useful.

🤖 Generated with Claude Code

**@⁠Makto94** on GitHub · 2026-11-24 15:10 UTC · [original](https://github.com/Marvisak/VIctory/issues/1026) Thanks for VIctory and for merging so fast. I measured where pull requests wait, using the GitHub API on 24 Nov ~15:00 UTC. A few repository settings could raise the merge rate without extra review work. ## Numbers - 672 PRs since 23 Nov 22:37 UTC: 499 open, 89 merged, 84 closed. Peak 36 merges/hour, median 3.3 h from open to merge. - In a random sample of 150 open PRs, **125 (83%) have no CI run on their head commit**. - **372 workflow runs are in `action_required`**: they wait for a manual "Approve and run". - `ci.yml` landed on 24 Nov 08:55 UTC, so older PRs without a later push never got a run. - Same sample: 22 (15%) have merge conflicts; 38 have failing or pending checks. ## Suggestions, by expected effect 1. **Settings → Actions → General → "Approval for running fork pull request workflows from contributors"**: switch to *Require approval for first-time contributors who are new to GitHub*. CI then runs on most PRs without a click. The workflow already has `permissions: contents: read`. 2. **Auto-merge or a merge queue** on `main` with CI as the required check. Add `merge_group:` to the `on:` triggers of `ci.yml` for the queue. 3. **A stale bot** (e.g. `actions/stale`) that labels PRs with conflicts or red CI and closes them after a few days without a push. Contributors then rebase before you look. 4. **Group duplicates**: several PRs address the same thing (e.g. PR templates in #9, #113, #543). This is complementary to #763, which proposes an external review tool; these are built-in GitHub settings. Happy to send a PR for the `merge_group:` trigger or a stale workflow if useful. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:17:33 +00:00
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 06:57 UTC · original

Automated triage for the maintainers.

These are suggestions about repository settings (fork workflow approval, a merge queue, a stale bot), not about VIctory's code. They concern how the project is run, so they are left for the maintainers to decide on. The related proposal of an outside review tool is #763.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 06:57 UTC · [original](https://github.com/Marvisak/VIctory/issues/1026#issuecomment-7155339810) <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-24T15:10:48Z at=2026-11-25T06:57:44Z --> Automated triage for the maintainers. These are suggestions about repository settings (fork workflow approval, a merge queue, a stale bot), not about VIctory's code. They concern how the project is run, so they are left for the maintainers to decide on. The related proposal of an outside review tool is #763. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠HoLa-Lee on GitHub · 2026-11-26 12:07 UTC · original

Five more in this queue, all from one account, as a concrete case for the settings change above.

HoLa-Lee has five open pull requests on 63bcca4-based main and every head has exactly one run, all action_required (check-runs empty on each): #2478, #2892, #2937, #3000, #3077. That is one account, one approval, five unblocked runs - and every later pull request from the same account runs without asking again, which is what the "Require approval for first-time contributors" setting buys back.

They are also pre-verified with the commands ci.yml runs, on the same heads, so an approval is unlikely to be spent on a red run:

  • cargo clippy --workspace --all-targets --locked -- -D warnings and the --all-features twin: both pass on #2478 and #3000.
  • cargo test --workspace --locked: 193 and 229 passed, with the same two failures on both - FIND-9's view-heap pair, which fail only on a card that caps shader-visible view heaps at 1,000,000 (a GPU-less runner takes WARP, where they pass), and #2937 is the pull request that stops them failing on cards.

Not a request for a review, only for the click: the queue is the bottleneck, not the patches.

**@⁠HoLa-Lee** on GitHub · 2026-11-26 12:07 UTC · [original](https://github.com/Marvisak/VIctory/issues/1026#issuecomment-7191594328) Five more in this queue, all from one account, as a concrete case for the settings change above. `HoLa-Lee` has five open pull requests on `63bcca4`-based main and every head has exactly one run, all `action_required` (`check-runs` empty on each): #2478, #2892, #2937, #3000, #3077. That is one account, one approval, five unblocked runs - and every later pull request from the same account runs without asking again, which is what the "Require approval for first-time contributors" setting buys back. They are also pre-verified with the commands `ci.yml` runs, on the same heads, so an approval is unlikely to be spent on a red run: - `cargo clippy --workspace --all-targets --locked -- -D warnings` and the `--all-features` twin: both pass on #2478 and #3000. - `cargo test --workspace --locked`: 193 and 229 passed, with the same two failures on both - `FIND-9`'s view-heap pair, which fail only on a card that caps shader-visible view heaps at 1,000,000 (a GPU-less runner takes WARP, where they pass), and #2937 is the pull request that stops them failing on cards. Not a request for a review, only for the click: the queue is the bottleneck, not the patches.
Author
Owner

@⁠pedrimhp777-oss on GitHub · 2026-11-26 19:46 UTC · original

Measuring the same queue from another angle, since this issue is about where pull requests wait. I fetched the commits of all open PRs (GitHub API, 26 Nov, 1,509 PRs) and looked for overlap that needs no similarity threshold.

  • 4,682 commits across the 1,509 open PRs.
  • 102 PRs share a commit with another open PR. The other ~1,400 do not overlap at all.
  • 48 PRs are stacked on another open PR (58 links, deepest 4 deep), so 42 root PRs have to merge before their children can.
  • 0 exact duplicates: nobody submitted the same commits under two PR numbers.
  • 32 rebase copies: the same author+subject pairs under a different SHA, i.e. someone's change carried into a new PR. For example #240 (Quat3rnion) also lives in #2483 (kais7654, rebased to pass clippy) and #3332 (thebigredder).

The redundancy is therefore small and structural, not a flood of duplicates. Two things follow, both cheap:

  1. Merge roots before tips. #223 and #2176 each unblock 3 PRs; #402, #959, #1868, #2242 and #2871 unblock 2. A tip reviewed first pays for its ancestors' lines again, and the tip rebases for nothing when the root lands.
  2. The 32 rebase copies are the queue's only real double review — original and copy are the same change with different SHAs, so one of each pair can be closed without losing work.

Method and what I would not act on: the stack and copy counts are set arithmetic over commit lists and involve no threshold. I also tried clustering PRs by the distinctive lines they add; that found 158 PRs in cross-author clusters, but six pairs read by hand came out around 50-60% precise as "duplicates" — most clusters turned out to be declared stacks or coordinated drafts. I would not close anything on that basis; the commit facts are the part worth acting on.

Snapshot and scripts are reproducible, and I can post the per-PR list of roots with their children if that helps with merge order. AI-assisted (Claude); every number here comes from the API reply, none are estimates.

**@⁠pedrimhp777-oss** on GitHub · 2026-11-26 19:46 UTC · [original](https://github.com/Marvisak/VIctory/issues/1026#issuecomment-7201938630) Measuring the same queue from another angle, since this issue is about where pull requests wait. I fetched the commits of all open PRs (GitHub API, 26 Nov, 1,509 PRs) and looked for overlap that needs no similarity threshold. - 4,682 commits across the 1,509 open PRs. - **102 PRs share a commit with another open PR.** The other ~1,400 do not overlap at all. - **48 PRs are stacked** on another open PR (58 links, deepest 4 deep), so **42 root PRs** have to merge before their children can. - **0 exact duplicates**: nobody submitted the same commits under two PR numbers. - **32 rebase copies**: the same author+subject pairs under a different SHA, i.e. someone's change carried into a new PR. For example #240 (Quat3rnion) also lives in #2483 (kais7654, rebased to pass clippy) and #3332 (thebigredder). The redundancy is therefore small and structural, not a flood of duplicates. Two things follow, both cheap: 1. **Merge roots before tips.** #223 and #2176 each unblock 3 PRs; #402, #959, #1868, #2242 and #2871 unblock 2. A tip reviewed first pays for its ancestors' lines again, and the tip rebases for nothing when the root lands. 2. **The 32 rebase copies are the queue's only real double review** — original and copy are the same change with different SHAs, so one of each pair can be closed without losing work. Method and what I would not act on: the stack and copy counts are set arithmetic over commit lists and involve no threshold. I also tried clustering PRs by the distinctive lines they add; that found 158 PRs in cross-author clusters, but six pairs read by hand came out around 50-60% precise as "duplicates" — most clusters turned out to be declared stacks or coordinated drafts. I would not close anything on that basis; the commit facts are the part worth acting on. Snapshot and scripts are reproducible, and I can post the per-PR list of roots with their children if that helps with merge order. AI-assisted (Claude); every number here comes from the API reply, none are estimates.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory#1026
No description provided.