Map of open PRs that change the same files (read-only, 2026-11-27) #617

Open
opened 2026-11-27 14:18:57 +00:00 by github-bot · 0 comments
Owner

@⁠AccelArch on GitHub · 2026-11-27 14:12 UTC · original

A read-only map of the open pull requests into a-publier, to help with ordering and de-duplicating the queue. It lists which files several open PRs change, and which PRs change exactly the same few files. It is generated with the GitHub CLI (gh pr list) and changes nothing; the script is at the end if you want to rerun it.

Snapshot: 2026-11-27 14:12 UTC. 195 open pull requests; 114 files changed by 2+ of them

Files changed by the most open PRs (number of PRs, file):

35  crates/victory-gpu/src/host.rs
22  README.md
18  crates/victory-shader/src/emit/lower.rs
17  crates/victory-gpu/src/descriptor/host.rs
17  crates/victory-gpu/src/draw.rs
14  scripts/play.ps1
12  crates/victory-shader/src/emit/mod.rs
11  crates/victory-gpu/src/resource.rs
11  crates/victory-gpu/src/watch.rs
11  crates/victory-shader/src/emit/host.rs
10  crates/victory-gpu/src/descriptor.rs
10  crates/victory-gpu/src/pipeline.rs

Also: docs/config-only PRs: 6; tiny (20 lines or fewer): 20; drafts: 11; conflicting with the base branch: 7.

PRs that change exactly the same 1-3 files (possible duplicates, or PRs where one has to land first):

4 PRs [518, 402, 375, 254]  ->  crates/victory-hle/src/modules/dstorage.rs
3 PRs [602, 601, 321]  ->  crates/victory-loader/src/profile.rs
3 PRs [580, 563, 459]  ->  scripts/play.ps1
3 PRs [504, 503, 407]  ->  crates/victory-hle/src/modules/xmem.rs
3 PRs [497, 426, 23]  ->  crates/victory-hle/src/modules/audio.rs
3 PRs [235, 88, 70]  ->  crates/victory-shader/src/emit/lower.rs
2 PRs [615, 508]  ->  crates/victory-formats/src/xma.rs
2 PRs [606, 605]  ->  crates/victory-hle/src/modules/xgamesave.rs
2 PRs [604, 603]  ->  crates/victory-hle/src/modules/audio/capture.rs
2 PRs [586, 378]  ->  crates/victory-loader/src/crash.rs
2 PRs [576, 485]  ->  crates/victory-core/src/config.rs
2 PRs [562, 62]  ->  crates/victory-gpu/src/descriptor.rs
2 PRs [561, 553]  ->  README.md
2 PRs [560, 401]  ->  crates/victory-gpu/src/host/upq.rs
2 PRs [556, 441]  ->  crates/victory-gpu/src/shader_cache.rs
2 PRs [554, 548]  ->  crates/victory-gpu/src/descriptor/host.rs

Limits: the grouping is by file, not by content, so two PRs in the same file can be independent; and it only covers PRs whose base is a-publier (there are also open PRs into main and rx9070xt, not included here).

pr_overlap.py (standard library only, needs `gh` signed in)
"""List open pull requests that change the same files, so duplicates and merge-order problems show up at once.

Usage: python -I pr_overlap.py OWNER/REPO [--base BRANCH] [--min N]
Needs the GitHub CLI (`gh`) signed in. Read-only: it only lists pull requests.
"""
import argparse, collections, json, subprocess, sys


def main():
    ap = argparse.ArgumentParser()
    ap.add_argument("repo")
    ap.add_argument("--base", default=None, help="only pull requests into this branch")
    ap.add_argument("--min", type=int, default=2, help="smallest group of pull requests sharing a file")
    a = ap.parse_args()
    out = subprocess.run(
        ["gh", "pr", "list", "-R", a.repo, "--state", "open", "--limit", "1000", "--json",
         "number,title,author,baseRefName,isDraft,additions,deletions,files,mergeable"],
        capture_output=True, text=True, encoding="utf-8", check=False)
    if out.returncode:
        sys.exit(out.stderr.strip() or "gh failed")
    prs = [p for p in json.loads(out.stdout) if not a.base or p["baseRefName"] == a.base]
    by_file = collections.defaultdict(list)
    for p in prs:
        for f in p["files"]:
            by_file[f["path"]].append(p["number"])
    info = {p["number"]: p for p in prs}
    print(f"{len(prs)} open pull requests; {sum(1 for v in by_file.values() if len(v) >= a.min)} files changed by {a.min}+ of them\n")
    rows = sorted(((f, n) for f, n in by_file.items() if len(n) >= a.min), key=lambda r: -len(r[1]))
    for f, nums in rows[:40]:
        print(f"{len(nums):4d}  {f}")
    docs_only = [p["number"] for p in prs if p["files"] and all(x["path"].endswith((".md", ".toml", ".yml", ".yaml")) for x in p["files"])]
    small = [p["number"] for p in prs if p["additions"] + p["deletions"] <= 20]
    authors = collections.Counter(p["author"]["login"] for p in prs)
    print(f"\ndocs/config only: {len(docs_only)}   tiny (<=20 lines): {len(small)}   drafts: {sum(p['isDraft'] for p in prs)}")
    print("conflicting with base:", sum(1 for p in prs if p["mergeable"] == "CONFLICTING"))
    print("authors with 3+ open PRs:", ", ".join(f"{k} ({v})" for k, v in authors.most_common() if v >= 3))
    # pairs of PRs with the same file set (likely the same fix twice)
    sig = collections.defaultdict(list)
    for p in prs:
        key = tuple(sorted(x["path"] for x in p["files"]))
        if key and len(key) <= 3:
            sig[key].append(p["number"])
    print("\nPRs touching exactly the same 1-3 files (possible duplicates):")
    for key, nums in sorted(sig.items(), key=lambda kv: -len(kv[1])):
        if len(nums) >= 2:
            print(f"  {len(nums)} PRs {nums[:8]}  ->  {', '.join(key)[:90]}")


main()

Run: python -I pr_overlap.py Belobug/VIctory-Belobug-AMD --base a-publier

AI-assisted.

**@⁠AccelArch** on GitHub · 2026-11-27 14:12 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/617) A read-only map of the open pull requests into `a-publier`, to help with ordering and de-duplicating the queue. It lists which files several open PRs change, and which PRs change exactly the same few files. It is generated with the GitHub CLI (`gh pr list`) and changes nothing; the script is at the end if you want to rerun it. Snapshot: 2026-11-27 14:12 UTC. 195 open pull requests; 114 files changed by 2+ of them **Files changed by the most open PRs** (number of PRs, file): ``` 35 crates/victory-gpu/src/host.rs 22 README.md 18 crates/victory-shader/src/emit/lower.rs 17 crates/victory-gpu/src/descriptor/host.rs 17 crates/victory-gpu/src/draw.rs 14 scripts/play.ps1 12 crates/victory-shader/src/emit/mod.rs 11 crates/victory-gpu/src/resource.rs 11 crates/victory-gpu/src/watch.rs 11 crates/victory-shader/src/emit/host.rs 10 crates/victory-gpu/src/descriptor.rs 10 crates/victory-gpu/src/pipeline.rs ``` Also: docs/config-only PRs: 6; tiny (20 lines or fewer): 20; drafts: 11; conflicting with the base branch: 7. **PRs that change exactly the same 1-3 files** (possible duplicates, or PRs where one has to land first): ``` 4 PRs [518, 402, 375, 254] -> crates/victory-hle/src/modules/dstorage.rs 3 PRs [602, 601, 321] -> crates/victory-loader/src/profile.rs 3 PRs [580, 563, 459] -> scripts/play.ps1 3 PRs [504, 503, 407] -> crates/victory-hle/src/modules/xmem.rs 3 PRs [497, 426, 23] -> crates/victory-hle/src/modules/audio.rs 3 PRs [235, 88, 70] -> crates/victory-shader/src/emit/lower.rs 2 PRs [615, 508] -> crates/victory-formats/src/xma.rs 2 PRs [606, 605] -> crates/victory-hle/src/modules/xgamesave.rs 2 PRs [604, 603] -> crates/victory-hle/src/modules/audio/capture.rs 2 PRs [586, 378] -> crates/victory-loader/src/crash.rs 2 PRs [576, 485] -> crates/victory-core/src/config.rs 2 PRs [562, 62] -> crates/victory-gpu/src/descriptor.rs 2 PRs [561, 553] -> README.md 2 PRs [560, 401] -> crates/victory-gpu/src/host/upq.rs 2 PRs [556, 441] -> crates/victory-gpu/src/shader_cache.rs 2 PRs [554, 548] -> crates/victory-gpu/src/descriptor/host.rs ``` Limits: the grouping is by file, not by content, so two PRs in the same file can be independent; and it only covers PRs whose base is `a-publier` (there are also open PRs into `main` and `rx9070xt`, not included here). <details> <summary>pr_overlap.py (standard library only, needs `gh` signed in)</summary> ```python """List open pull requests that change the same files, so duplicates and merge-order problems show up at once. Usage: python -I pr_overlap.py OWNER/REPO [--base BRANCH] [--min N] Needs the GitHub CLI (`gh`) signed in. Read-only: it only lists pull requests. """ import argparse, collections, json, subprocess, sys def main(): ap = argparse.ArgumentParser() ap.add_argument("repo") ap.add_argument("--base", default=None, help="only pull requests into this branch") ap.add_argument("--min", type=int, default=2, help="smallest group of pull requests sharing a file") a = ap.parse_args() out = subprocess.run( ["gh", "pr", "list", "-R", a.repo, "--state", "open", "--limit", "1000", "--json", "number,title,author,baseRefName,isDraft,additions,deletions,files,mergeable"], capture_output=True, text=True, encoding="utf-8", check=False) if out.returncode: sys.exit(out.stderr.strip() or "gh failed") prs = [p for p in json.loads(out.stdout) if not a.base or p["baseRefName"] == a.base] by_file = collections.defaultdict(list) for p in prs: for f in p["files"]: by_file[f["path"]].append(p["number"]) info = {p["number"]: p for p in prs} print(f"{len(prs)} open pull requests; {sum(1 for v in by_file.values() if len(v) >= a.min)} files changed by {a.min}+ of them\n") rows = sorted(((f, n) for f, n in by_file.items() if len(n) >= a.min), key=lambda r: -len(r[1])) for f, nums in rows[:40]: print(f"{len(nums):4d} {f}") docs_only = [p["number"] for p in prs if p["files"] and all(x["path"].endswith((".md", ".toml", ".yml", ".yaml")) for x in p["files"])] small = [p["number"] for p in prs if p["additions"] + p["deletions"] <= 20] authors = collections.Counter(p["author"]["login"] for p in prs) print(f"\ndocs/config only: {len(docs_only)} tiny (<=20 lines): {len(small)} drafts: {sum(p['isDraft'] for p in prs)}") print("conflicting with base:", sum(1 for p in prs if p["mergeable"] == "CONFLICTING")) print("authors with 3+ open PRs:", ", ".join(f"{k} ({v})" for k, v in authors.most_common() if v >= 3)) # pairs of PRs with the same file set (likely the same fix twice) sig = collections.defaultdict(list) for p in prs: key = tuple(sorted(x["path"] for x in p["files"])) if key and len(key) <= 3: sig[key].append(p["number"]) print("\nPRs touching exactly the same 1-3 files (possible duplicates):") for key, nums in sorted(sig.items(), key=lambda kv: -len(kv[1])): if len(nums) >= 2: print(f" {len(nums)} PRs {nums[:8]} -> {', '.join(key)[:90]}") main() ``` Run: `python -I pr_overlap.py Belobug/VIctory-Belobug-AMD --base a-publier` </details> AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 14:18:57 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.