test: organize library tests and label CTest suites #6044
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6044"
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 TaymKal on 2026-10-14T20:27:16Z.
What
Group 400 shared library test and fixture files into 14 subject directories, keeping library-local tests and standalone test entry points in place. Update CMake source paths, CI path filters, fixture includes and documentation links.
Add component labels (
libs,relinker,tools,shader,decoder) to all project CTest cases and subject labels to library cases through shared registration helpers. Preserve existing labels, including TLS function coverage. Document how to place and register tests and how to filter test runs by label.Tested
Windows Release, WinLibs GCC 15.2, Python 3.13:
git diff --checkpassed.Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by fma-rc on 2026-10-14T20:42:48Z.
The labels would help a lot (
ctest -L shaderinstead of long regexes), but moving 400 test files in the same change is what makes this hard to merge. The overlap check already lists 49 open PRs that conflict with it, and every open PR that adds or edits a test in a moved file would need a rebase.Could it be split? First a small PR with the label helpers applied to the tests where they are now, which conflicts with little and gives the filtering right away. Then the moves as a separate PR, if the maintainers want them, timed for when the queue is short.
Also, the
linuxandwindowsbuild jobs were skipped here, so the moved tests have only been built on your Windows setup. I can run the full suite of the head on Linux (NVIDIA, RADV and lavapipe) againstmainif that helps.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T20:48:16Z.
I opened #6945 with the alarm-range fix from issue #6940. Its regression updates
GuestGetitimer.cpp; this PR moves that file unchanged totests/time/GuestGetitimer.cpp. I compared the moved file with currentmain; there is no test-content overlap, only the path move. Would you prefer #6945 to merge first, or should I carry the alarm test hunk to the relocated path if #6044 lands first? I will preserve the regression through either ordering.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-16T21:20:35Z.
Review: CHANGES_REQUESTED
Thanks, the labels are a good idea (
ctest -L shaderinstead of long regexes). The size is the blocker, as @fma-rc said:mainnow, and moving ~400 test files overlaps with dozens of open PRs (the overlap bot lists 49; #6945 already has to decide whether to carry itsGuestGetitimer.cpphunk to the new path). Every one of them needs a rebase after this lands.cmake/TestLabels.cmakeand the label calls applied to the tests where they are today (small, conflicts with little, gives the filtering right away), then the directory moves as a separate PR, when the queue allows it.main.Also, linux/windows Build was not run on this head, so the 1,225-test count is only from your Windows run. Happy to review the labels PR as soon as it is up.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T02:09:32Z.
I have a small offline-profile follow-up for issue #1794 that adds a test to
GuestNpManager.cppand updatesGuestUserService.cpp. The overlap checker could not compare these shared test paths because this PR currently conflicts with the base branch. Does your test organization change move or otherwise rewrite these files, and do you have a preferred merge order?Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T02:15:19Z.
Manual merge-tree check confirms my two test updates are carried into
core/libs/tests/services/GuestNpManager.cppandGuestUserService.cppafter your rename. No merge conflict or dependency is needed.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T22:57:40Z.
I’m updating PR #7681 after a Windows run found that
guest_shader_linkstill assumes the legacy and versioned defaults getters return the same pointer. Your PR renames this test tocore/libs/tests/graphics/GuestShaderLink.cppwithout changing its contents, so the assertion change touches the file you are moving. Would you prefer that #6044 lands first and I rebase #7681 onto the renamed path, or should I carry the test correction on the current path and mark #7681 as depending on #6044?Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T22:58:49Z.
I manually checked the interaction with current
main: merging your branch together with the updated #7681 test carries the pointer/count assertion intocore/libs/tests/graphics/GuestShaderLink.cppwithout a conflict. I’ll leave #7681 independent (Depends on: none) and resolve the rename during a rebase if either branch lands first. The other merge-tree conflicts are in unrelated build/test files.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-21T18:37:37Z.
Overlap coordination for a follow-up to #9321: I added regression cases to
GuestWideConversion.cpp, which this PR renames tocore/libs/tests/runtime/GuestWideConversion.cpp. The test logic is independent of your organization changes, but the path will move. Would you prefer that follow-up to depend on this PR and target the renamed file after it merges, or do you have another sequence in mind?Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T01:36:13Z.
The current overlap scan flags #9442’s additions to
GuestKernelSys.cpp. This PR renames that test tocore/libs/tests/process/GuestKernelSys.cpp; #9442 adds lchflags coverage at the old path. Please coordinate with its author so the regression cases land in the renamed registered test source, and record a dependency if the rename must come first.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-22T01:40:51Z.
I am reviewing #9543, which adds and registers
GuestNetOobInline.cppinlibSceNet/CMakeLists.txt. Its overlap scan cannot compare this shared CMake file because this branch conflicts with base; your PR relocates networking tests and switches their registration toadd_library_test(networking ...). Could you coordinate with @Queuse on the merge order and ensure the new OOB test is carried into the reorganization? #9543 already declares a dependency on #9525; the ordering with this PR is still to be agreed.Imported from boykopovar/AnyPS5. Originally posted by Queuse on 2026-10-22T01:45:48Z.
@TaymKal I have two new networking tests affected by this reorganization:
GuestNetBooleanReadback.cppin #9542 andGuestNetOobInline.cppin #9543.My preference would be to land #9523 → #9542 and #9525 → #9543 before #6044, then carry both tests into
core/libs/tests/networkingwithadd_library_test(networking ...). Their CTest names and coverage should stay intact.Would that order work for you? If #6044 needs to land first, I can rebase both PRs after it merges, adapt the source paths and registrations there, add #6044 to their dependencies while keeping #9523/#9525, and rerun the focused tests.
This extends the order proposed on #9542 to include the OOB test flagged by @MarcZX10. Nothing is agreed yet; happy to use whichever order is easier for your reorganization.
Imported from boykopovar/AnyPS5. Originally posted by Gruzzberry on 2026-10-22T06:49:12Z.
Several of my open PRs add cases to test files this PR moves: #9442 (
GuestKernelSys.cpp), #9469, #9487 and #9496 (GuestFilesystem.cpp) and #9474 (GuestAccess.cpp). If this lands first, I will move those cases to the new paths when rebasing; no change needed here.Imported from boykopovar/AnyPS5. Originally posted by DavidSamir on 2026-10-22T08:50:07Z.
Hi @TaymKal, a note for two of mine that touch tests this PR moves:
core/libs/tests/CpuTopology.cppand registerscpu_topologyforLinux OR WIN32.core/libs/tests/GuestKqueue.cppand aguest_kqueue_cleared_raceregistration.If this PR lands first, I'll move those additions to
tests/process/CpuTopology.cppand the newGuestKqueue.cpppath, and keep them registered. If mine land first, the additions just come along with your move. Neither PR needs to wait. Does that work for you? I'll record it in both checklists.AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by DavidSamir on 2026-10-22T10:21:25Z.
Hi @TaymKal, one more for the same note: #9585 adds a separate
if(WIN32)registration ofexception_personalityincore/libs/prx/libc/CMakeLists.txt, just above theif(UNIX)exception-test block this PR reorganizes.git merge-treeshows no new conflict hunk between the two. If this PR lands first, I'll point the Windows registration at the movedtests/exceptions/ExceptionPersonality.cppand useadd_library_test(exceptions ...)like the rest. Neither needs to wait.AI-assisted: yes
Imported from boykopovar/AnyPS5. Originally posted by Queuse on 2026-10-22T15:26:45Z.
@TaymKal following up on the proposed order for #9542 and #9543. I am refreshing my branches onto current main. The same reorganization also affects registrations or test paths in #9523, #9525, #9544, #8873, #9000 and #9001.
My preference is still to land the focused changes first, retaining #9523 before #9542 and #9525 before #9543. If your reorganization lands first, I will adapt the paths and registrations on my branches and rerun their focused tests. Please confirm which order works for you; I will keep the coordination marked pending until you reply.
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-24T01:30:30Z.
Review: CHANGES_REQUESTED
Re-checking after a week with no update: the PR still conflicts with
main, and the situation from the earlier review hasn't changed.cmake/TestLabels.cmakeand the label calls applied to the tests where they are today (small, conflicts with little, givesctest -Lfiltering right away), then the directory moves as a separate PR.main.If there is no update and the conflict stays, this will be closed as stale; feel free to reopen it rebased.
Pull request closed