Most open-PR conflicts come from the debt docs and libSceAgcDriver/CMakeLists.txt #12521

Closed
opened 2026-10-28 17:11:39 +00:00 by janzezno · 0 comments
janzezno commented 2026-10-28 17:11:39 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by janzezno on 2026-10-28T17:11:39Z.


@oneandonlydean @adriadam10, most of the 274 open PRs that conflict with main conflict in a few shared list files, not in code. I'd like to fix the worst one, core/libs/prx/libSceAgcDriver/CMakeLists.txt, but the change would itself conflict with many open PRs, so I'm asking before writing it.

Numbers

Measured on 2026-10-28 against main at 7fea87746b. I test-merged each conflicting PR head with git merge-tree --write-tree upstream/main <head>.

  • 1362 PRs are open and 274 of them conflict. A PR's chance of conflicting grows with age: 3% on its first day, 26% at 2 days, 49% at 10 days or more. The median merge takes 24 hours, so a PR that waits longer than that usually needs a rebase.
Conflicting PRs whose conflicts include PRs
a docs/dev/debt/*.md file 158
a CMakeLists.txt 65
only debt docs, CMake files or other docs, no code about 75
  • Debt conflicts (199 hunks): 136 are both sides changing the same lines (each entry is one long line), and 63 are both sides inserting at the same place. The files hit most are libSceAgcDriver.md (33 PRs), libSceLibreSsl.md (28), libkernel.md (24) and libc.md (19).
  • libSceAgcDriver/CMakeLists.txt is touched by 151 open PRs and got 93 commits on main in the last 3 days. It is 4306 lines long. From line 437 to the end it registers tests: 162 test executables, each in a block of add_test_executable, target_*, configure_windows_unwind and add_test. Most PRs that touch it add one such block, in the same few places.

CI is not the bottleneck: a PR build takes about 7 minutes.

Proposal: one CMake fragment per AGC test

Move each test block into its own fragment, for example tests/cmake/<Name>.cmake. CMakeLists.txt would include all of them in sorted order:

file(GLOB agcTestFragments CONFIGURE_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/tests/cmake/*.cmake)
list(SORT agcTestFragments)
foreach(fragment IN LISTS agcTestFragments)
    include(${fragment})
endforeach()

A new test then adds a file instead of editing shared lines. A test that reuses another test's executable, like the agc_driver_recorder_tests modes, goes in that executable's fragment, so set_tests_properties never comes before its add_test.

  • Check: ctest -N lists the same tests, with the same properties, before and after, on Linux and on Windows (MSYS2).
  • Rebasing open PRs: I'd include a script that takes a PR's added block in CMakeLists.txt and moves it into a new fragment, so the rebase is mechanical.
  • Timing: it conflicts once with every open PR that touches the file. It's best merged when you choose, with nothing else touching that file merged just before it.

If it works well, the same split could go to the libc, libkernel and LibreSsl CMake files.

Questions

  1. Are new .cmake files OK, given the "Add no other files" rule in AGENTS.md? Is there a layout you'd prefer to tests/cmake/?
  2. Is there a time when you'd want this merged, and would you like the rebase script in the PR?
  3. The debt docs cause more conflicts than CMake does. Are you open to changing their format? Most of those conflicts are two PRs editing the same entry, so splitting lines would only partly help. I don't have a proposal I'm confident in yet and would rather know whether you want one first.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6083826824 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/12521). Originally posted by [janzezno](https://github.com/janzezno) on 2026-10-28T17:11:39Z. --- @oneandonlydean @adriadam10, most of the 274 open PRs that conflict with `main` conflict in a few shared list files, not in code. I'd like to fix the worst one, `core/libs/prx/libSceAgcDriver/CMakeLists.txt`, but the change would itself conflict with many open PRs, so I'm asking before writing it. ### Numbers Measured on 2026-10-28 against `main` at 7fea87746b. I test-merged each conflicting PR head with `git merge-tree --write-tree upstream/main <head>`. - 1362 PRs are open and 274 of them conflict. A PR's chance of conflicting grows with age: 3% on its first day, 26% at 2 days, 49% at 10 days or more. The median merge takes 24 hours, so a PR that waits longer than that usually needs a rebase. | Conflicting PRs whose conflicts include | PRs | |---|---| | a `docs/dev/debt/*.md` file | 158 | | a `CMakeLists.txt` | 65 | | only debt docs, CMake files or other docs, no code | about 75 | - Debt conflicts (199 hunks): 136 are both sides changing the same lines (each entry is one long line), and 63 are both sides inserting at the same place. The files hit most are `libSceAgcDriver.md` (33 PRs), `libSceLibreSsl.md` (28), `libkernel.md` (24) and `libc.md` (19). - `libSceAgcDriver/CMakeLists.txt` is touched by 151 open PRs and got 93 commits on `main` in the last 3 days. It is 4306 lines long. From line 437 to the end it registers tests: 162 test executables, each in a block of `add_test_executable`, `target_*`, `configure_windows_unwind` and `add_test`. Most PRs that touch it add one such block, in the same few places. CI is not the bottleneck: a PR build takes about 7 minutes. ### Proposal: one CMake fragment per AGC test Move each test block into its own fragment, for example `tests/cmake/<Name>.cmake`. `CMakeLists.txt` would include all of them in sorted order: ```cmake file(GLOB agcTestFragments CONFIGURE_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/tests/cmake/*.cmake) list(SORT agcTestFragments) foreach(fragment IN LISTS agcTestFragments) include(${fragment}) endforeach() ``` A new test then adds a file instead of editing shared lines. A test that reuses another test's executable, like the `agc_driver_recorder_tests` modes, goes in that executable's fragment, so `set_tests_properties` never comes before its `add_test`. - **Check:** `ctest -N` lists the same tests, with the same properties, before and after, on Linux and on Windows (MSYS2). - **Rebasing open PRs:** I'd include a script that takes a PR's added block in `CMakeLists.txt` and moves it into a new fragment, so the rebase is mechanical. - **Timing:** it conflicts once with every open PR that touches the file. It's best merged when you choose, with nothing else touching that file merged just before it. If it works well, the same split could go to the libc, libkernel and LibreSsl CMake files. ### Questions 1. Are new `.cmake` files OK, given the "Add no other files" rule in AGENTS.md? Is there a layout you'd prefer to `tests/cmake/`? 2. Is there a time when you'd want this merged, and would you like the rebase script in the PR? 3. The debt docs cause more conflicts than CMake does. Are you open to changing their format? Most of those conflicts are two PRs editing the same entry, so splitting lines would only partly help. I don't have a proposal I'm confident in yet and would rather know whether you want one first.
Sign in to join this conversation.
No labels
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.

Reference
boykopovar/AnyPS5#12521
No description provided.