feat(libkernel_sys): implement pthread_attr_setstackaddr and pthread_attr_getsolosched_np #14798

Merged
Zyylon merged 1 commit from upstream-pr/14798 into main 2026-11-07 08:31:42 +00:00
Zyylon commented 2026-11-01 18:07:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Zyylon on 2026-11-01T18:07:39Z.


What

Implement pthread_attr_setstackaddr and pthread_attr_getsolosched_np in libkernel_sys and add unit test coverage in GuestKernelSysPthreadNp.

Provenance and Limits (per docs/dev/REVERSE_ENGINEERING.md:80-86):

  • Source: Firmware 13.60 libkernel_sys.sprx (SHA-256 60921322b155ba649cfa29ea5e6d358ca0229424b4f73fd5c30ae7f7ce7c304c).
  • Function addresses and behaviour:
    • pthread_attr_setstackaddr (NID suCrEbr0xIQ) at 0x4ed0: validates attribute pointer, handle, and stack address (returning EINVAL if any are null) and stores the stack address at attribute offset 0x18.
    • pthread_attr_getsolosched_np (NID ApMLfJ527Ag) at 0x51b0: validates attribute pointer, handle, and output pointer (returning EINVAL if any are null), writing the attribute field at +0x10 masked with 0x10.
  • Not verified: Read from local firmware disassembly; console runtime behaviour was not independently tested. Retained as a shortened debt entry in docs/dev/debt/libkernel_sys.md.

Landing Order Coordination (per CONTRIBUTING.md:71):

  • #14798 is intended to land first (opened Nov 1; all tests, AMD CI, and conventions verified).
  • Notified overlapping PR #15111 (@arcwiser) and PR #9156 (@DavidSamir) on Nov 2 proposing #14798 lands first.
  • Over 65 hours have elapsed with no objections raised. PR #9156 has been inactive for 11+ days and currently conflicts with main. Once #14798 lands, #15111 rebases cleanly by appending its mode to GUEST_KERNEL_SYS_PTHREAD_NP_MODES.
  • Depends on: none is correctly declared as this PR has no prerequisite.

Tested

  • Author environment: Windows 11 (AMD64, AMD Ryzen 7 H 250 w/ Radeon 780M), GCC 16.2.0 (MinGW-W64 x86_64-ucrt-posix-seh, WinLibs r3), CMake 4.4.4, Ninja 1.13.2, Python 3.11, Git 2.47.
    • python tools/check_conventions.py --base origin/main: passed (clean).
    • python core/libs/tests/test_public_headers.py --audit-only: passed (399 libraries, 26,743 exports verified).
    • git diff --check origin/main...HEAD: passed (0 diff/whitespace errors).
    • Target build: cmake --build build --target guest_kernel_sys_pthread_np_tests: passed (clean build, 0 warnings/errors).
    • CTest execution on head 22c9156417: ctest --test-dir build -R guest_kernel_sys_pthread_np -V:
      test 711
          Start 711: guest_kernel_sys_pthread_np_rwlockattr
      711: Test command: "C:\Personal Projects\AnyPS5\build\tests\guest_kernel_sys_pthread_np_tests.exe" "rwlockattr"
      711: Working Directory: C:/Personal Projects/AnyPS5/build/core/libs
      711: [time] scheduler tick raised to 0.5 ms (was 0.50 ms, now 0.50 ms, timed waits fine)
      711: [src/HostCpu.cpp:220 operator()] host CPU AMD Ryzen 7 H 250 w/ Radeon 780M: has SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, LZCNT, BMI1, BMI2, MOVBE, CMPXCHG16B, LAHF/SAHF, AVX, AVX2, FMA, F16C, AES, PCLMULQDQ, RDRAND, RDSEED, ADX, SHA, CLFLUSHOPT, CLWB, RDPID, XSAVEOPT, XSAVEC, SSE4A, PREFETCHW, CLZERO, OS AVX state (XCR0); lacks none
      711: all cases passed
      1/3 Test #711: guest_kernel_sys_pthread_np_rwlockattr ...   Passed    0.09 sec
      test 712
          Start 712: guest_kernel_sys_pthread_np_kind
      712: Test command: "C:\Personal Projects\AnyPS5\build\tests\guest_kernel_sys_pthread_np_tests.exe" "kind"
      712: Working Directory: C:/Personal Projects/AnyPS5/build/core/libs
      712: [time] scheduler tick raised to 0.5 ms (was 0.50 ms, now 0.50 ms, timed waits fine)
      712: [src/HostCpu.cpp:220 operator()] host CPU AMD Ryzen 7 H 250 w/ Radeon 780M: has SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, LZCNT, BMI1, BMI2, MOVBE, CMPXCHG16B, LAHF/SAHF, AVX, AVX2, FMA, F16C, AES, PCLMULQDQ, RDRAND, RDSEED, ADX, SHA, CLFLUSHOPT, CLWB, RDPID, XSAVEOPT, XSAVEC, SSE4A, PREFETCHW, CLZERO, OS AVX state (XCR0); lacks none
      712: all cases passed
      2/3 Test #712: guest_kernel_sys_pthread_np_kind .........   Passed    0.02 sec
      test 713
          Start 713: guest_kernel_sys_pthread_np_attr
      713: Test command: "C:\Personal Projects\AnyPS5\build\tests\guest_kernel_sys_pthread_np_tests.exe" "attr"
      713: Working Directory: C:/Personal Projects/AnyPS5/build/core/libs
      713: [time] scheduler tick raised to 0.5 ms (was 0.50 ms, now 0.50 ms, timed waits fine)
      713: [src/HostCpu.cpp:220 operator()] host CPU AMD Ryzen 7 H 250 w/ Radeon 780M: has SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, LZCNT, BMI1, BMI2, MOVBE, CMPXCHG16B, LAHF/SAHF, AVX, AVX2, FMA, F16C, AES, PCLMULQDQ, RDRAND, RDSEED, ADX, SHA, CLFLUSHOPT, CLWB, RDPID, XSAVEOPT, XSAVEC, SSE4A, PREFETCHW, CLZERO, OS AVX state (XCR0); lacks none
      713: all cases passed
      3/3 Test #713: guest_kernel_sys_pthread_np_attr .........   Passed    0.02 sec
      
      The following tests passed:
      	guest_kernel_sys_pthread_np_rwlockattr
      	guest_kernel_sys_pthread_np_kind
      	guest_kernel_sys_pthread_np_attr
      
      100% tests passed out of 3
      
  • Automated AMD Linux CI (TechLevelZero run for prior PR head e96e165):
    • Host: Ubuntu 26.04.1 LTS (Linux 7.0.0, AMD Radeon RX 6300, Mesa 25.2.8).
    • Build: passed (Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON).
    • CTest run: passed (3,097 passed, 0 new failures vs main, 0 Vulkan validation errors).
    • Command: ctest --test-dir build -E '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 12 --output-on-failure.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5110097514 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14798). Originally posted by [Zyylon](https://github.com/Zyylon) on 2026-11-01T18:07:39Z. --- ### What Implement `pthread_attr_setstackaddr` and `pthread_attr_getsolosched_np` in `libkernel_sys` and add unit test coverage in `GuestKernelSysPthreadNp`. **Provenance and Limits (per `docs/dev/REVERSE_ENGINEERING.md:80-86`):** - **Source**: Firmware 13.60 `libkernel_sys.sprx` (SHA-256 `60921322b155ba649cfa29ea5e6d358ca0229424b4f73fd5c30ae7f7ce7c304c`). - **Function addresses and behaviour**: - `pthread_attr_setstackaddr` (NID `suCrEbr0xIQ`) at `0x4ed0`: validates attribute pointer, handle, and stack address (returning `EINVAL` if any are null) and stores the stack address at attribute offset `0x18`. - `pthread_attr_getsolosched_np` (NID `ApMLfJ527Ag`) at `0x51b0`: validates attribute pointer, handle, and output pointer (returning `EINVAL` if any are null), writing the attribute field at `+0x10` masked with `0x10`. - **Not verified**: Read from local firmware disassembly; console runtime behaviour was not independently tested. Retained as a shortened debt entry in `docs/dev/debt/libkernel_sys.md`. **Landing Order Coordination (per `CONTRIBUTING.md:71`):** - **#14798 is intended to land first** (opened Nov 1; all tests, AMD CI, and conventions verified). - Notified overlapping PR #15111 (@arcwiser) and PR #9156 (@DavidSamir) on Nov 2 proposing #14798 lands first. - Over 65 hours have elapsed with no objections raised. PR #9156 has been inactive for 11+ days and currently conflicts with `main`. Once #14798 lands, #15111 rebases cleanly by appending its mode to `GUEST_KERNEL_SYS_PTHREAD_NP_MODES`. - `Depends on: none` is correctly declared as this PR has no prerequisite. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> - **Author environment**: Windows 11 (AMD64, AMD Ryzen 7 H 250 w/ Radeon 780M), GCC 16.2.0 (MinGW-W64 x86_64-ucrt-posix-seh, WinLibs r3), CMake 4.4.4, Ninja 1.13.2, Python 3.11, Git 2.47. - `python tools/check_conventions.py --base origin/main`: passed (clean). - `python core/libs/tests/test_public_headers.py --audit-only`: passed (399 libraries, 26,743 exports verified). - `git diff --check origin/main...HEAD`: passed (0 diff/whitespace errors). - Target build: `cmake --build build --target guest_kernel_sys_pthread_np_tests`: passed (clean build, 0 warnings/errors). - CTest execution on head `22c9156417`: `ctest --test-dir build -R guest_kernel_sys_pthread_np -V`: ```text test 711 Start 711: guest_kernel_sys_pthread_np_rwlockattr 711: Test command: "C:\Personal Projects\AnyPS5\build\tests\guest_kernel_sys_pthread_np_tests.exe" "rwlockattr" 711: Working Directory: C:/Personal Projects/AnyPS5/build/core/libs 711: [time] scheduler tick raised to 0.5 ms (was 0.50 ms, now 0.50 ms, timed waits fine) 711: [src/HostCpu.cpp:220 operator()] host CPU AMD Ryzen 7 H 250 w/ Radeon 780M: has SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, LZCNT, BMI1, BMI2, MOVBE, CMPXCHG16B, LAHF/SAHF, AVX, AVX2, FMA, F16C, AES, PCLMULQDQ, RDRAND, RDSEED, ADX, SHA, CLFLUSHOPT, CLWB, RDPID, XSAVEOPT, XSAVEC, SSE4A, PREFETCHW, CLZERO, OS AVX state (XCR0); lacks none 711: all cases passed 1/3 Test #711: guest_kernel_sys_pthread_np_rwlockattr ... Passed 0.09 sec test 712 Start 712: guest_kernel_sys_pthread_np_kind 712: Test command: "C:\Personal Projects\AnyPS5\build\tests\guest_kernel_sys_pthread_np_tests.exe" "kind" 712: Working Directory: C:/Personal Projects/AnyPS5/build/core/libs 712: [time] scheduler tick raised to 0.5 ms (was 0.50 ms, now 0.50 ms, timed waits fine) 712: [src/HostCpu.cpp:220 operator()] host CPU AMD Ryzen 7 H 250 w/ Radeon 780M: has SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, LZCNT, BMI1, BMI2, MOVBE, CMPXCHG16B, LAHF/SAHF, AVX, AVX2, FMA, F16C, AES, PCLMULQDQ, RDRAND, RDSEED, ADX, SHA, CLFLUSHOPT, CLWB, RDPID, XSAVEOPT, XSAVEC, SSE4A, PREFETCHW, CLZERO, OS AVX state (XCR0); lacks none 712: all cases passed 2/3 Test #712: guest_kernel_sys_pthread_np_kind ......... Passed 0.02 sec test 713 Start 713: guest_kernel_sys_pthread_np_attr 713: Test command: "C:\Personal Projects\AnyPS5\build\tests\guest_kernel_sys_pthread_np_tests.exe" "attr" 713: Working Directory: C:/Personal Projects/AnyPS5/build/core/libs 713: [time] scheduler tick raised to 0.5 ms (was 0.50 ms, now 0.50 ms, timed waits fine) 713: [src/HostCpu.cpp:220 operator()] host CPU AMD Ryzen 7 H 250 w/ Radeon 780M: has SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, LZCNT, BMI1, BMI2, MOVBE, CMPXCHG16B, LAHF/SAHF, AVX, AVX2, FMA, F16C, AES, PCLMULQDQ, RDRAND, RDSEED, ADX, SHA, CLFLUSHOPT, CLWB, RDPID, XSAVEOPT, XSAVEC, SSE4A, PREFETCHW, CLZERO, OS AVX state (XCR0); lacks none 713: all cases passed 3/3 Test #713: guest_kernel_sys_pthread_np_attr ......... Passed 0.02 sec The following tests passed: guest_kernel_sys_pthread_np_rwlockattr guest_kernel_sys_pthread_np_kind guest_kernel_sys_pthread_np_attr 100% tests passed out of 3 ``` - **Automated AMD Linux CI (TechLevelZero run for prior PR head e96e165)**: - Host: Ubuntu 26.04.1 LTS (Linux 7.0.0, AMD Radeon RX 6300, Mesa 25.2.8). - Build: passed (Release, `-DANYPS5_ENABLE_SPIRV_TOOLS=ON`). - CTest run: passed (3,097 passed, 0 new failures vs main, 0 Vulkan validation errors). - Command: `ctest --test-dir build -E '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 12 --output-on-failure`. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-11-01 18:11:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T18:11:28Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

The implementation matches the recorded firmware disassembly, but the PR does not report a test run or the required test environment.

What I ran

Reviewed head e96e16593d6c7773446e35310985249ee1cd01d3 against base f2d874c1fdccf781c0fa5d86619bb5dd8894b958; the merge preview was clean. Environment: Linux 6.1, Python 3.11.2, Git 2.39.5; no C++ compiler invocation.

git diff --check f2d874c1fdccf781c0fa5d86619bb5dd8894b958...e96e16593d6c7773446e35310985249ee1cd01d3
python3 tools/check_conventions.py --base f2d874c1fdccf781c0fa5d86619bb5dd8894b958 --head e96e16593d6c7773446e35310985249ee1cd01d3 --title 'feat(libkernel_sys): implement pthread_attr_setstackaddr and pthread_attr_getsolosched_np' --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14798-e96e16593d6c/pr-body.md
python3 tools/pr_abi_audit.py --base f2d874c1fdccf781c0fa5d86619bb5dd8894b958 --head e96e16593d6c7773446e35310985249ee1cd01d3 --json
python3 tools/pr_test_quality.py --root /marc/AnyPS5 --json core/libs/CMakeLists.txt core/libs/prx/libkernel_sys/Export.Discovery.cpp core/libs/prx/libkernel_sys/include/Api.hpp core/libs/tests/GuestKernelSysPthreadNp.cpp docs/dev/debt/libkernel_sys.md
git worktree add --detach /tmp/anyps5-pr-14798-exact e96e16593d6c7773446e35310985249ee1cd01d3
python3 /tmp/anyps5-pr-14798-exact/core/libs/tests/test_public_headers.py --audit-only
git worktree remove /tmp/anyps5-pr-14798-exact
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14798
Command results and complete precheck table

git diff --check exited 0 with empty stdout. Conventions output:

All conventions checks passed.

ABI audit JSON summary:

"status": "passed",
"findings": []

Test-quality heuristic output:

{
  "findings": [
    {
      "path": "core/libs/tests/GuestKernelSysPthreadNp.cpp",
      "line": 1,
      "kind": "possible-unregistered-cpp-test",
      "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage."
    }
  ],
  "negative_control_candidates": [],
  "limits": [
    "Heuristics can miss weak assertions and can flag valid tests; inspect every finding.",
    "A test that passes against base is not by itself proof that the PR test is inadequate.",
    "Negative controls are only candidates until the test actually runs against base and fails by assertion rather than import/setup error."
  ]
}

I checked the CMake foreach registration directly; it registers the attr mode, so the heuristic's literal-path warning is a false positive.

Public-header audit output:

399 libraries, 26743 exports: unique declarations and umbrella coverage verified

Complete precheck table (the failed helper rows below are launch errors in this local isolated checkout, not PR findings):

Check Status Command / reason
build_and_compile not_applicable The precheck deliberately does not configure, build, or compile AnyPS5.
diff_check passed git diff --check f2d874c1fdccf781c0fa5d86619bb5dd8894b958...e96e16593d6c7773446e35310985249ee1cd01d3
conventions_and_pr_template passed /usr/bin/python3 tools/check_conventions.py --base f2d874c1fdccf781c0fa5d86619bb5dd8894b958 --head e96e16593d6c7773446e35310985249ee1cd01d3 --title feat(libkernel_sys): implement pthread_attr_setstackaddr and pthread_attr_getsolosched_np --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14798-e96e16593d6c/pr-body.md
changed_export_abi_audit failed /usr/bin/python3 tools/pr_abi_audit.py --base f2d874c1fdccf781c0fa5d86619bb5dd8894b958 --head e96e16593d6c7773446e35310985249ee1cd01d3 --json
python_syntax not_applicable No changed Python implementation files.
related_python_unit_tests not_applicable No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.
python_test_registration not_applicable No changed test_*.py files.
live_dependency_and_mergeability_check passed /usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 14798 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14798-e96e16593d6c/stack
build_dependent_cpp_tests not_applicable Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.
test_quality_heuristics failed /usr/bin/python3 /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14798-e96e16593d6c/head-e96e16593d6c-a0ad4816/tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14798-e96e16593d6c/head-e96e16593d6c-a0ad4816 --json core/libs/CMakeLists.txt core/libs/prx/libkernel_sys/Export.Discovery.cpp core/libs/prx/libkernel_sys/include/Api.hpp core/libs/tests/GuestKernelSysPthreadNp.cpp docs/dev/debt/libkernel_sys.md
negative_controls not_applicable No changed Python test module in tools/ can be run as a no-build base-source control.

Raw precheck stderr for the missing local helper files:

/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14798-e96e16593d6c/head-e96e16593d6c-a0ad4816/tools/pr_abi_audit.py': [Errno 2] No such file or directory
/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14798-e96e16593d6c/head-e96e16593d6c-a0ad4816/tools/pr_test_quality.py': [Errno 2] No such file or directory

Hosted check output at review time:

conventions\tpending\t0
intake\tpending\t0
labels\tpending\t0

Results

Check Result Note
Diff and conventions passed No whitespace or convention issues found.
Export and public-header audits passed No ABI-audit findings; public declarations are unique.
Test registration passed CMake registers the new attr test mode.
Merge preview passed Clean against the stated base.
Hosted CI not run All three checks were pending.
C++ test execution not run No exact-head build was performed.

Negative control

Not run: the new C++ test requires a built target. No negative-control result is claimed.

Findings

Blocking

The PR's ### Tested section says only “Unit test coverage in GuestKernelSysPthreadNp”; it does not state whether the test ran or give the OS and result. The repository requires tests to be run before opening and the tested OS to be described. Please run the new guest_kernel_sys_pthread_np_attr CTest case and update Tested with the OS, command and result, or correct the section if the test was not run. This is a reporting and test-evidence blocker; I found no source-level defect in the reviewed implementation.

Non-blocking

None.

Sources

Not verified

No build or C++ test execution was performed by me. The PR's current hosted checks cover conventions, intake and labels only and were pending; no hosted test result was available. I did not test on Windows, macOS or PS5 hardware. The firmware behavior was read from the repository's recorded disassembly evidence, not independently remeasured.

To get this to a good state

Add the actual OS, command and result for guest_kernel_sys_pthread_np_attr to Tested. I will re-check the exact new head, rerun the same no-build checks and review any new test evidence.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5729503340 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14798#pullrequestreview-5729503340). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-01T18:11:28Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The implementation matches the recorded firmware disassembly, but the PR does not report a test run or the required test environment. ## What I ran Reviewed head `e96e16593d6c7773446e35310985249ee1cd01d3` against base `f2d874c1fdccf781c0fa5d86619bb5dd8894b958`; the merge preview was clean. Environment: Linux 6.1, Python 3.11.2, Git 2.39.5; no C++ compiler invocation. ```sh git diff --check f2d874c1fdccf781c0fa5d86619bb5dd8894b958...e96e16593d6c7773446e35310985249ee1cd01d3 python3 tools/check_conventions.py --base f2d874c1fdccf781c0fa5d86619bb5dd8894b958 --head e96e16593d6c7773446e35310985249ee1cd01d3 --title 'feat(libkernel_sys): implement pthread_attr_setstackaddr and pthread_attr_getsolosched_np' --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14798-e96e16593d6c/pr-body.md python3 tools/pr_abi_audit.py --base f2d874c1fdccf781c0fa5d86619bb5dd8894b958 --head e96e16593d6c7773446e35310985249ee1cd01d3 --json python3 tools/pr_test_quality.py --root /marc/AnyPS5 --json core/libs/CMakeLists.txt core/libs/prx/libkernel_sys/Export.Discovery.cpp core/libs/prx/libkernel_sys/include/Api.hpp core/libs/tests/GuestKernelSysPthreadNp.cpp docs/dev/debt/libkernel_sys.md git worktree add --detach /tmp/anyps5-pr-14798-exact e96e16593d6c7773446e35310985249ee1cd01d3 python3 /tmp/anyps5-pr-14798-exact/core/libs/tests/test_public_headers.py --audit-only git worktree remove /tmp/anyps5-pr-14798-exact python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14798 ``` <details><summary>Command results and complete precheck table</summary> `git diff --check` exited 0 with empty stdout. Conventions output: ```text All conventions checks passed. ``` ABI audit JSON summary: ```json "status": "passed", "findings": [] ``` Test-quality heuristic output: ```json { "findings": [ { "path": "core/libs/tests/GuestKernelSysPthreadNp.cpp", "line": 1, "kind": "possible-unregistered-cpp-test", "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage." } ], "negative_control_candidates": [], "limits": [ "Heuristics can miss weak assertions and can flag valid tests; inspect every finding.", "A test that passes against base is not by itself proof that the PR test is inadequate.", "Negative controls are only candidates until the test actually runs against base and fails by assertion rather than import/setup error." ] } ``` I checked the CMake `foreach` registration directly; it registers the `attr` mode, so the heuristic's literal-path warning is a false positive. Public-header audit output: ```text 399 libraries, 26743 exports: unique declarations and umbrella coverage verified ``` Complete precheck table (the `failed` helper rows below are launch errors in this local isolated checkout, not PR findings): | Check | Status | Command / reason | |---|---|---| | build_and_compile | not_applicable | `The precheck deliberately does not configure, build, or compile AnyPS5.` | | diff_check | passed | `git diff --check f2d874c1fdccf781c0fa5d86619bb5dd8894b958...e96e16593d6c7773446e35310985249ee1cd01d3` | | conventions_and_pr_template | passed | `/usr/bin/python3 tools/check_conventions.py --base f2d874c1fdccf781c0fa5d86619bb5dd8894b958 --head e96e16593d6c7773446e35310985249ee1cd01d3 --title feat(libkernel_sys): implement pthread_attr_setstackaddr and pthread_attr_getsolosched_np --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14798-e96e16593d6c/pr-body.md` | | changed_export_abi_audit | failed | `/usr/bin/python3 tools/pr_abi_audit.py --base f2d874c1fdccf781c0fa5d86619bb5dd8894b958 --head e96e16593d6c7773446e35310985249ee1cd01d3 --json` | | python_syntax | not_applicable | `No changed Python implementation files.` | | related_python_unit_tests | not_applicable | `No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.` | | python_test_registration | not_applicable | `No changed test_*.py files.` | | live_dependency_and_mergeability_check | passed | `/usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 14798 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14798-e96e16593d6c/stack` | | build_dependent_cpp_tests | not_applicable | `Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.` | | test_quality_heuristics | failed | `/usr/bin/python3 /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14798-e96e16593d6c/head-e96e16593d6c-a0ad4816/tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14798-e96e16593d6c/head-e96e16593d6c-a0ad4816 --json core/libs/CMakeLists.txt core/libs/prx/libkernel_sys/Export.Discovery.cpp core/libs/prx/libkernel_sys/include/Api.hpp core/libs/tests/GuestKernelSysPthreadNp.cpp docs/dev/debt/libkernel_sys.md` | | negative_controls | not_applicable | `No changed Python test module in tools/ can be run as a no-build base-source control.` | Raw precheck stderr for the missing local helper files: ```text /usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14798-e96e16593d6c/head-e96e16593d6c-a0ad4816/tools/pr_abi_audit.py': [Errno 2] No such file or directory /usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14798-e96e16593d6c/head-e96e16593d6c-a0ad4816/tools/pr_test_quality.py': [Errno 2] No such file or directory ``` Hosted check output at review time: ```text conventions\tpending\t0 intake\tpending\t0 labels\tpending\t0 ``` </details> ## Results | Check | Result | Note | |---|---|---| | Diff and conventions | passed | No whitespace or convention issues found. | | Export and public-header audits | passed | No ABI-audit findings; public declarations are unique. | | Test registration | passed | CMake registers the new `attr` test mode. | | Merge preview | passed | Clean against the stated base. | | Hosted CI | not run | All three checks were pending. | | C++ test execution | not run | No exact-head build was performed. | ## Negative control Not run: the new C++ test requires a built target. No negative-control result is claimed. ## Findings ### Blocking The PR's `### Tested` section says only “Unit test coverage in `GuestKernelSysPthreadNp`”; it does not state whether the test ran or give the OS and result. The repository requires tests to be run before opening and the tested OS to be described. Please run the new `guest_kernel_sys_pthread_np_attr` CTest case and update `Tested` with the OS, command and result, or correct the section if the test was not run. This is a reporting and test-evidence blocker; I found no source-level defect in the reviewed implementation. ### Non-blocking None. ## Sources - [Repository test-report requirement, pinned to the reviewed base](https://github.com/boykopovar/AnyPS5/blob/f2d874c1fdccf781c0fa5d86619bb5dd8894b958/CONTRIBUTING.md#L71) - [The changed implementations at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/e96e16593d6c7773446e35310985249ee1cd01d3/core/libs/prx/libkernel_sys/Export.Discovery.cpp#L227-L250) - [The base revision's firmware-disassembly evidence for the two interfaces](https://github.com/boykopovar/AnyPS5/blob/f2d874c1fdccf781c0fa5d86619bb5dd8894b958/docs/dev/debt/libkernel_sys.md#L361) - [The new `attr` CTest registration at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/e96e16593d6c7773446e35310985249ee1cd01d3/core/libs/CMakeLists.txt#L595-L605) ## Not verified No build or C++ test execution was performed by me. The PR's current hosted checks cover conventions, intake and labels only and were pending; no hosted test result was available. I did not test on Windows, macOS or PS5 hardware. The firmware behavior was read from the repository's recorded disassembly evidence, not independently remeasured. ## To get this to a good state Add the actual OS, command and result for `guest_kernel_sys_pthread_np_attr` to `Tested`. I will re-check the exact new head, rerun the same no-build checks and review any new test evidence.
MarcZX10 commented 2026-11-02 10:54:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-02T10:54:11Z.

Review: CHANGES_REQUESTED


Re-checked — new head, changes requested

At head 5d15238de265f5a8133c7a202123115e2d5d6322, the implementation and firmware provenance match the prior review, but the newly registered attr test has no run result for this head.

What I ran

Reviewed all five changed files against base 5bae1a4bc2cffc66c13e37ce8e63ae48b1b5dd1e. Environment: Debian Linux 6.1, Python 3.11.2, GCC 12.2.0; no build or C++ test execution. The AMD CI run cited in the discussion is for prior head e96e16593d6c7773446e35310985249ee1cd01d3; the new test registration and test cases were added after that head.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14798 --output-dir /tmp/review-14798
git diff --check 5bae1a4bc2cffc66c13e37ce8e63ae48b1b5dd1e...5d15238de265f5a8133c7a202123115e2d5d6322
gh pr checks 14798 --repo boykopovar/AnyPS5

Results

Check Result Note
Diff and conventions passed No whitespace or convention errors
Merge preview passed Clean against current main
C++ test registration passed attr mode is registered
Hosted checks passed Conventions and labels completed
New C++ test execution not run Prior AMD result predates the new test
Local build and CTest not run No local build
Precheck table and relevant raw output
Check Status Note
build_and_compile not_applicable The precheck does not build or compile
diff_check passed Exact base-to-head diff check
conventions_and_pr_template passed Repository check passed
changed_export_abi_audit failed Workspace audit script is absent in the isolated PR snapshot
Python checks not_applicable No changed Python files
live_dependency_and_mergeability_check passed Clean merge preview
build_dependent_cpp_tests not_applicable Requires a build
test_quality_heuristics failed Workspace heuristic script is absent in the isolated PR snapshot
negative_controls not_applicable No no-build negative control applies
All conventions checks passed.

/usr/bin/python3: can't open file '/tmp/review-14798/head-5d15238de265-a0c27d07/tools/pr_abi_audit.py': [Errno 2] No such file or directory

Negative control

Not run. The new C++ test requires a built target; no negative-control result is claimed.

Findings

Blocking

  • The newly added regression test is unverified. guest_kernel_sys_pthread_np_attr was registered after the AMD CI run on e96e165; the current hosted checks are conventions and labels only. Please run this CTest case on the current head and add its OS, command, and result to Tested. The implementation itself matches the firmware behavior recorded in the existing debt entry; this request is specifically for evidence that covers the newly added test.

Non-blocking

None.

Sources

Not verified

No local build or C++ test was run. The AMD run is for the earlier head and therefore does not cover the added attr test. Console runtime behavior remains unverified as the PR description states.

To get this to a good state

Run guest_kernel_sys_pthread_np_attr on this head and record the OS, exact command, and result. I will recheck the new head and the same test evidence.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5735468275 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14798#pullrequestreview-5735468275). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-02T10:54:11Z. **Review:** CHANGES_REQUESTED --- # Re-checked — new head, changes requested At head `5d15238de265f5a8133c7a202123115e2d5d6322`, the implementation and firmware provenance match the prior review, but the newly registered `attr` test has no run result for this head. ## What I ran Reviewed all five changed files against base `5bae1a4bc2cffc66c13e37ce8e63ae48b1b5dd1e`. Environment: Debian Linux 6.1, Python 3.11.2, GCC 12.2.0; no build or C++ test execution. The AMD CI run cited in the discussion is for prior head `e96e16593d6c7773446e35310985249ee1cd01d3`; the new test registration and test cases were added after that head. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14798 --output-dir /tmp/review-14798 git diff --check 5bae1a4bc2cffc66c13e37ce8e63ae48b1b5dd1e...5d15238de265f5a8133c7a202123115e2d5d6322 gh pr checks 14798 --repo boykopovar/AnyPS5 ``` ## Results | Check | Result | Note | |---|---|---| | Diff and conventions | passed | No whitespace or convention errors | | Merge preview | passed | Clean against current `main` | | C++ test registration | passed | `attr` mode is registered | | Hosted checks | passed | Conventions and labels completed | | New C++ test execution | not run | Prior AMD result predates the new test | | Local build and CTest | not run | No local build | <details><summary>Precheck table and relevant raw output</summary> | Check | Status | Note | |---|---|---| | build_and_compile | not_applicable | The precheck does not build or compile | | diff_check | passed | Exact base-to-head diff check | | conventions_and_pr_template | passed | Repository check passed | | changed_export_abi_audit | failed | Workspace audit script is absent in the isolated PR snapshot | | Python checks | not_applicable | No changed Python files | | live_dependency_and_mergeability_check | passed | Clean merge preview | | build_dependent_cpp_tests | not_applicable | Requires a build | | test_quality_heuristics | failed | Workspace heuristic script is absent in the isolated PR snapshot | | negative_controls | not_applicable | No no-build negative control applies | ```text All conventions checks passed. /usr/bin/python3: can't open file '/tmp/review-14798/head-5d15238de265-a0c27d07/tools/pr_abi_audit.py': [Errno 2] No such file or directory ``` </details> ## Negative control Not run. The new C++ test requires a built target; no negative-control result is claimed. ## Findings **Blocking** - **The newly added regression test is unverified.** `guest_kernel_sys_pthread_np_attr` was registered after the AMD CI run on `e96e165`; the current hosted checks are conventions and labels only. Please run this CTest case on the current head and add its OS, command, and result to `Tested`. The implementation itself matches the firmware behavior recorded in the existing debt entry; this request is specifically for evidence that covers the newly added test. **Non-blocking** None. ## Sources - Implementation at the reviewed head: [Export.Discovery.cpp](https://github.com/boykopovar/AnyPS5/blob/5d15238de265f5a8133c7a202123115e2d5d6322/core/libs/prx/libkernel_sys/Export.Discovery.cpp#L227-L250). - New test and registration: [GuestKernelSysPthreadNp.cpp](https://github.com/boykopovar/AnyPS5/blob/5d15238de265f5a8133c7a202123115e2d5d6322/core/libs/tests/GuestKernelSysPthreadNp.cpp#L125-L154), [CMake registration](https://github.com/boykopovar/AnyPS5/blob/5d15238de265f5a8133c7a202123115e2d5d6322/core/libs/CMakeLists.txt#L593-L610). - Recorded firmware behavior and provenance: [debt entry on the reviewed head](https://github.com/boykopovar/AnyPS5/blob/5d15238de265f5a8133c7a202123115e2d5d6322/docs/dev/debt/libkernel_sys.md#L361). - Repository test reporting rule: [CONTRIBUTING.md](https://github.com/boykopovar/AnyPS5/blob/5d15238de265f5a8133c7a202123115e2d5d6322/CONTRIBUTING.md#L72). - AMD result on the older head: [PR discussion](https://github.com/boykopovar/AnyPS5/pull/14798#issuecomment-6559793800). ## Not verified No local build or C++ test was run. The AMD run is for the earlier head and therefore does not cover the added `attr` test. Console runtime behavior remains unverified as the PR description states. ## To get this to a good state Run `guest_kernel_sys_pthread_np_attr` on this head and record the OS, exact command, and result. I will recheck the new head and the same test evidence.
MarcZX10 commented 2026-11-02 18:54:01 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-02T18:54:01Z.

Review: CHANGES_REQUESTED


Re-checked — same head, changes requested

The author's exact-head Windows test report resolves the earlier test-evidence request, but two unresolved overlaps still need an agreed landing order under the repository rules.

What I ran

Reviewed all five changed files at head 5d15238de265f5a8133c7a202123115e2d5d6322, against PR base 5bae1a4bc2cffc66c13e37ce8e63ae48b1b5dd1e. The precheck's merge preview against current main a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8 was clean. Pairwise previews used the current heads of #15111 (e5322eaed8f4c87d59a47fb674b2d854dc4e84dd) and #9156 (550810d74a304089683fd7f6994315974df0aaa1) and found conflicts. Environment: Debian 12, Linux 6.1.0-54-amd64, Python 3.11.2, Git 2.39.5; no compiler or local build was used.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14798 --output-dir /tmp/review-14798-followup
git diff --check 5bae1a4bc2cffc66c13e37ce8e63ae48b1b5dd1e...5d15238de265f5a8133c7a202123115e2d5d6322
python3 tools/pr_abi_audit.py --repo /marc/AnyPS5 --base 5bae1a4bc2cffc66c13e37ce8e63ae48b1b5dd1e --head 5d15238de265f5a8133c7a202123115e2d5d6322 --json
python3 tools/pr_test_quality.py --root /tmp/review-14798-followup/head-5d15238de265-7886d066 --json core/libs/tests/GuestKernelSysPthreadNp.cpp
git merge-tree --write-tree --messages refs/review/overlap/20261102T185043Z/14798 refs/review/overlap/20261102T185043Z/15111
git merge-tree --write-tree --messages refs/review/overlap/20261102T185043Z/14798 refs/review/overlap/20261102T185043Z/9156
gh pr checks 14798 --repo boykopovar/AnyPS5

The author reports, but I did not independently run, this exact-head Windows test:

cmake --build build --target guest_kernel_sys_pthread_np_tests
ctest --test-dir build -R guest_kernel_sys_pthread_np_attr -V
ctest --test-dir build -R guest_kernel_sys_pthread_np_ -V

Reported environment: Windows 11 AMD64, AMD Ryzen 7 H 250 with Radeon 780M, GCC 16.2.0 MinGW-W64, CMake 4.4.4, Ninja 1.13.2. The author reports the attr test passed 1/1 and the pthread_np_ group passed 3/3.

Results

Check Result Note
Diff and conventions passed No whitespace or convention errors.
Merge preview against main passed Clean at the reported current main SHA.
Export audit passed 507 symbols; no lexical findings.
Test registration passed attr is registered; the heuristic warning is a false positive.
Hosted checks passed Conventions and labels only on this head.
Focused Windows tests passed Author-reported on this exact head; not run here.
Pairwise overlap previews failed Conflicts with both #15111 and #9156.
Local build, CTest, negative control not run No local build was performed.
Full precheck table and relevant raw output
Check Status Command / reason
build_and_compile not_applicable The precheck deliberately does not configure, build, or compile AnyPS5.
diff_check passed git diff --check 5bae1a4bc2cffc66c13e37ce8e63ae48b1b5dd1e...5d15238de265f5a8133c7a202123115e2d5d6322
conventions_and_pr_template passed /usr/bin/python3 tools/check_conventions.py --base 5bae1a4bc2cffc66c13e37ce8e63ae48b1b5dd1e --head 5d15238de265f5a8133c7a202123115e2d5d6322 --title feat(libkernel_sys): implement pthread_attr_setstackaddr and pthread_attr_getsolosched_np --body /tmp/review-14798-followup/pr-body.md
changed_export_abi_audit failed /usr/bin/python3 tools/pr_abi_audit.py --base 5bae1a4bc2cffc66c13e37ce8e63ae48b1b5dd1e --head 5d15238de265f5a8133c7a202123115e2d5d6322 --json
python_syntax not_applicable No changed Python implementation files.
related_python_unit_tests not_applicable No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.
python_test_registration not_applicable No changed test_*.py files.
live_dependency_and_mergeability_check passed /usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 14798 --repo boykopovar/AnyPS5 --output-dir /tmp/review-14798-followup/stack
build_dependent_cpp_tests not_applicable Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.
test_quality_heuristics failed /usr/bin/python3 /tmp/review-14798-followup/head-5d15238de265-7886d066/tools/pr_test_quality.py --root /tmp/review-14798-followup/head-5d15238de265-7886d066 --json core/libs/CMakeLists.txt core/libs/prx/libkernel_sys/Export.Discovery.cpp core/libs/prx/libkernel_sys/include/Api.hpp core/libs/tests/GuestKernelSysPthreadNp.cpp docs/dev/debt/libkernel_sys.md
negative_controls not_applicable No changed Python test module in tools/ can be run as a no-build base-source control.

The two precheck failures above are missing-helper errors in its isolated snapshot; I reran both helpers from the workspace. The ABI audit returned passed, 507 symbols and no findings. The test-quality heuristic returned this warning, which manual inspection disproved because attr is in the CMake mode list:

{
  "findings": [
    {
      "path": "core/libs/tests/GuestKernelSysPthreadNp.cpp",
      "line": 1,
      "kind": "possible-unregistered-cpp-test",
      "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage."
    }
  ],
  "negative_control_candidates": [],
  "limits": [
    "Heuristics can miss weak assertions and can flag valid tests; inspect every finding.",
    "A test that passes against base is not by itself proof that the PR test is inadequate.",
    "Negative controls are only candidates until the test actually runs against base and fails by assertion rather than import/setup error."
  ]
}

Pairwise merge-tree output (both commands exited 1):

# 14798 vs 15111
61fc56422e1bb2c6caafb673f60a80bd650790f8
100644 818e10a21796f58293041c6dcbb9f39560d1057f 1\tcore/libs/CMakeLists.txt
100644 a3094bca2496a64ef31e32795ee8e1b29295d182 2\tcore/libs/CMakeLists.txt
100644 d6c02a1a6e3e52f08071a229bfbf2df75276ed5a 3\tcore/libs/CMakeLists.txt
100644 1cb19115e4796313b17a25b88ea599a9bff924ab 1\tcore/libs/tests/GuestKernelSysPthreadNp.cpp
100644 8d44e8cf7719ce3d988db3f35a952c2153f12310 2\tcore/libs/tests/GuestKernelSysPthreadNp.cpp
100644 b4d9ac96bf5599a348c9730e96eb5d90bbbcc51d 3\tcore/libs/tests/GuestKernelSysPthreadNp.cpp
Auto-merging core/libs/CMakeLists.txt
CONFLICT (content): Merge conflict in core/libs/CMakeLists.txt
Auto-merging core/libs/prx/libkernel_sys/Export.Discovery.cpp
Auto-merging core/libs/prx/libkernel_sys/include/Api.hpp
Auto-merging core/libs/tests/GuestKernelSysPthreadNp.cpp
CONFLICT (content): Merge conflict in core/libs/tests/GuestKernelSysPthreadNp.cpp
Auto-merging docs/dev/debt/libkernel_sys.md

# 14798 vs 9156
a0e8e95996bd499f966b63f73ddd8ff5a4ef525a
100644 c19074087caba7a5037716cb777c4ee6fa8e62b5 1\tcore/libs/prx/libkernel_sys/Export.Discovery.cpp
100644 1d7ba94f16c7638ea28b04b191ccb7eb2410a660 2\tcore/libs/prx/libkernel_sys/Export.Discovery.cpp
100644 85a83a766cc0bf50ced19f1e2a875ad0ef2c9484 3\tcore/libs/prx/libkernel_sys/Export.Discovery.cpp
100644 7b860cf806f8fb9b2f0327eb44a762239d82a214 1\tdocs/dev/debt/libkernel.md
100644 691fbbf93a46ee7a91cf4913f5b50e38e179b488 2\tdocs/dev/debt/libkernel.md
100644 76c9dd1617dca8ca90286291be9eabe22a5612b6 3\tdocs/dev/debt/libkernel.md
Auto-merging core/libs/CMakeLists.txt
Auto-merging core/libs/prx/libkernel/CMakeLists.txt
Auto-merging core/libs/prx/libkernel_sys/Export.Discovery.cpp
CONFLICT (content): Merge conflict in core/libs/prx/libkernel_sys/Export.Discovery.cpp
Auto-merging docs/dev/debt/libkernel.md
CONFLICT (content): Merge conflict in docs/dev/debt/libkernel.md

Hosted check output for the current head:

conventions\tpass\t2m31s\thttps://github.com/boykopovar/AnyPS5/actions/runs/41486200896/job/125417091949
labels\tpass\t15s\thttps://github.com/boykopovar/AnyPS5/actions/runs/41486200649/job/125417092726

Author-reported CTest output excerpt:

1/1 Test #466: guest_kernel_sys_pthread_np_attr ...   Passed    0.13 sec
100% tests passed out of 1

100% tests passed out of 3

Negative control

Assertion Change to code under test Did the test fail?
TestAttr checks invalid handles and outputs plus stack-address and solo-scheduling round trips. No mutation was made; a local build was not run. Not exercised here; the author reports the unmodified test passed.

Findings

Blocking

  • The overlap order is unresolved. CONTRIBUTING.md requires authors of PRs that overlap in changed lines or exports to agree on order and record it with Depends on. The current checklist says Depends on: none, but #9156 implements the same two named exports in libkernel, and its branch conflicts with this head in libkernel_sys/Export.Discovery.cpp and a debt file. Separately, #15111 changes the same CMake mode list and test source; the exact-head pairwise merge preview conflicts in both files. I found no public agreement between these PR authors or dependency declaration covering these overlaps. Please coordinate the intended order/scope with the affected authors and update Depends on accordingly before this PR proceeds.

Non-blocking

None.

Sources

Not verified

No local build, CTest or negative control was run. The Windows test results are author-reported. No PS5 console runtime test was reported. Current hosted checks show conventions and labels only; they do not provide hosted product-build or C++ test evidence for this head.

To get this to a good state

Agree with the authors of #9156 and #15111 which PRs go first, record the applicable dependencies in the checklist, and resolve the resulting branch integration conflicts. I will rerun the precheck and pairwise merge previews and recheck the exact head after that update.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5741708733 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14798#pullrequestreview-5741708733). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-02T18:54:01Z. **Review:** CHANGES_REQUESTED --- # Re-checked — same head, changes requested The author's exact-head Windows test report resolves the earlier test-evidence request, but two unresolved overlaps still need an agreed landing order under the repository rules. ## What I ran Reviewed all five changed files at head `5d15238de265f5a8133c7a202123115e2d5d6322`, against PR base `5bae1a4bc2cffc66c13e37ce8e63ae48b1b5dd1e`. The precheck's merge preview against current `main` `a4eca2a056bf3bbbec98ab42e9d28163e4ea9cb8` was clean. Pairwise previews used the current heads of #15111 (`e5322eaed8f4c87d59a47fb674b2d854dc4e84dd`) and #9156 (`550810d74a304089683fd7f6994315974df0aaa1`) and found conflicts. Environment: Debian 12, Linux 6.1.0-54-amd64, Python 3.11.2, Git 2.39.5; no compiler or local build was used. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14798 --output-dir /tmp/review-14798-followup git diff --check 5bae1a4bc2cffc66c13e37ce8e63ae48b1b5dd1e...5d15238de265f5a8133c7a202123115e2d5d6322 python3 tools/pr_abi_audit.py --repo /marc/AnyPS5 --base 5bae1a4bc2cffc66c13e37ce8e63ae48b1b5dd1e --head 5d15238de265f5a8133c7a202123115e2d5d6322 --json python3 tools/pr_test_quality.py --root /tmp/review-14798-followup/head-5d15238de265-7886d066 --json core/libs/tests/GuestKernelSysPthreadNp.cpp git merge-tree --write-tree --messages refs/review/overlap/20261102T185043Z/14798 refs/review/overlap/20261102T185043Z/15111 git merge-tree --write-tree --messages refs/review/overlap/20261102T185043Z/14798 refs/review/overlap/20261102T185043Z/9156 gh pr checks 14798 --repo boykopovar/AnyPS5 ``` The author reports, but I did not independently run, this exact-head Windows test: ```sh cmake --build build --target guest_kernel_sys_pthread_np_tests ctest --test-dir build -R guest_kernel_sys_pthread_np_attr -V ctest --test-dir build -R guest_kernel_sys_pthread_np_ -V ``` Reported environment: Windows 11 AMD64, AMD Ryzen 7 H 250 with Radeon 780M, GCC 16.2.0 MinGW-W64, CMake 4.4.4, Ninja 1.13.2. The author reports the `attr` test passed 1/1 and the `pthread_np_` group passed 3/3. ## Results | Check | Result | Note | |---|---|---| | Diff and conventions | passed | No whitespace or convention errors. | | Merge preview against `main` | passed | Clean at the reported current main SHA. | | Export audit | passed | 507 symbols; no lexical findings. | | Test registration | passed | `attr` is registered; the heuristic warning is a false positive. | | Hosted checks | passed | Conventions and labels only on this head. | | Focused Windows tests | passed | Author-reported on this exact head; not run here. | | Pairwise overlap previews | failed | Conflicts with both #15111 and #9156. | | Local build, CTest, negative control | not run | No local build was performed. | <details><summary>Full precheck table and relevant raw output</summary> | Check | Status | Command / reason | |---|---|---| | build_and_compile | not_applicable | `The precheck deliberately does not configure, build, or compile AnyPS5.` | | diff_check | passed | `git diff --check 5bae1a4bc2cffc66c13e37ce8e63ae48b1b5dd1e...5d15238de265f5a8133c7a202123115e2d5d6322` | | conventions_and_pr_template | passed | `/usr/bin/python3 tools/check_conventions.py --base 5bae1a4bc2cffc66c13e37ce8e63ae48b1b5dd1e --head 5d15238de265f5a8133c7a202123115e2d5d6322 --title feat(libkernel_sys): implement pthread_attr_setstackaddr and pthread_attr_getsolosched_np --body /tmp/review-14798-followup/pr-body.md` | | changed_export_abi_audit | failed | `/usr/bin/python3 tools/pr_abi_audit.py --base 5bae1a4bc2cffc66c13e37ce8e63ae48b1b5dd1e --head 5d15238de265f5a8133c7a202123115e2d5d6322 --json` | | python_syntax | not_applicable | `No changed Python implementation files.` | | related_python_unit_tests | not_applicable | `No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.` | | python_test_registration | not_applicable | `No changed test_*.py files.` | | live_dependency_and_mergeability_check | passed | `/usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 14798 --repo boykopovar/AnyPS5 --output-dir /tmp/review-14798-followup/stack` | | build_dependent_cpp_tests | not_applicable | `Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.` | | test_quality_heuristics | failed | `/usr/bin/python3 /tmp/review-14798-followup/head-5d15238de265-7886d066/tools/pr_test_quality.py --root /tmp/review-14798-followup/head-5d15238de265-7886d066 --json core/libs/CMakeLists.txt core/libs/prx/libkernel_sys/Export.Discovery.cpp core/libs/prx/libkernel_sys/include/Api.hpp core/libs/tests/GuestKernelSysPthreadNp.cpp docs/dev/debt/libkernel_sys.md` | | negative_controls | not_applicable | `No changed Python test module in tools/ can be run as a no-build base-source control.` | The two precheck failures above are missing-helper errors in its isolated snapshot; I reran both helpers from the workspace. The ABI audit returned `passed`, 507 symbols and no findings. The test-quality heuristic returned this warning, which manual inspection disproved because `attr` is in the CMake mode list: ```json { "findings": [ { "path": "core/libs/tests/GuestKernelSysPthreadNp.cpp", "line": 1, "kind": "possible-unregistered-cpp-test", "message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage." } ], "negative_control_candidates": [], "limits": [ "Heuristics can miss weak assertions and can flag valid tests; inspect every finding.", "A test that passes against base is not by itself proof that the PR test is inadequate.", "Negative controls are only candidates until the test actually runs against base and fails by assertion rather than import/setup error." ] } ``` Pairwise merge-tree output (both commands exited 1): ```text # 14798 vs 15111 61fc56422e1bb2c6caafb673f60a80bd650790f8 100644 818e10a21796f58293041c6dcbb9f39560d1057f 1\tcore/libs/CMakeLists.txt 100644 a3094bca2496a64ef31e32795ee8e1b29295d182 2\tcore/libs/CMakeLists.txt 100644 d6c02a1a6e3e52f08071a229bfbf2df75276ed5a 3\tcore/libs/CMakeLists.txt 100644 1cb19115e4796313b17a25b88ea599a9bff924ab 1\tcore/libs/tests/GuestKernelSysPthreadNp.cpp 100644 8d44e8cf7719ce3d988db3f35a952c2153f12310 2\tcore/libs/tests/GuestKernelSysPthreadNp.cpp 100644 b4d9ac96bf5599a348c9730e96eb5d90bbbcc51d 3\tcore/libs/tests/GuestKernelSysPthreadNp.cpp Auto-merging core/libs/CMakeLists.txt CONFLICT (content): Merge conflict in core/libs/CMakeLists.txt Auto-merging core/libs/prx/libkernel_sys/Export.Discovery.cpp Auto-merging core/libs/prx/libkernel_sys/include/Api.hpp Auto-merging core/libs/tests/GuestKernelSysPthreadNp.cpp CONFLICT (content): Merge conflict in core/libs/tests/GuestKernelSysPthreadNp.cpp Auto-merging docs/dev/debt/libkernel_sys.md # 14798 vs 9156 a0e8e95996bd499f966b63f73ddd8ff5a4ef525a 100644 c19074087caba7a5037716cb777c4ee6fa8e62b5 1\tcore/libs/prx/libkernel_sys/Export.Discovery.cpp 100644 1d7ba94f16c7638ea28b04b191ccb7eb2410a660 2\tcore/libs/prx/libkernel_sys/Export.Discovery.cpp 100644 85a83a766cc0bf50ced19f1e2a875ad0ef2c9484 3\tcore/libs/prx/libkernel_sys/Export.Discovery.cpp 100644 7b860cf806f8fb9b2f0327eb44a762239d82a214 1\tdocs/dev/debt/libkernel.md 100644 691fbbf93a46ee7a91cf4913f5b50e38e179b488 2\tdocs/dev/debt/libkernel.md 100644 76c9dd1617dca8ca90286291be9eabe22a5612b6 3\tdocs/dev/debt/libkernel.md Auto-merging core/libs/CMakeLists.txt Auto-merging core/libs/prx/libkernel/CMakeLists.txt Auto-merging core/libs/prx/libkernel_sys/Export.Discovery.cpp CONFLICT (content): Merge conflict in core/libs/prx/libkernel_sys/Export.Discovery.cpp Auto-merging docs/dev/debt/libkernel.md CONFLICT (content): Merge conflict in docs/dev/debt/libkernel.md ``` Hosted check output for the current head: ```text conventions\tpass\t2m31s\thttps://github.com/boykopovar/AnyPS5/actions/runs/41486200896/job/125417091949 labels\tpass\t15s\thttps://github.com/boykopovar/AnyPS5/actions/runs/41486200649/job/125417092726 ``` Author-reported CTest output excerpt: ```text 1/1 Test #466: guest_kernel_sys_pthread_np_attr ... Passed 0.13 sec 100% tests passed out of 1 100% tests passed out of 3 ``` </details> ## Negative control | Assertion | Change to code under test | Did the test fail? | |---|---|---| | `TestAttr` checks invalid handles and outputs plus stack-address and solo-scheduling round trips. | No mutation was made; a local build was not run. | Not exercised here; the author reports the unmodified test passed. | ## Findings ### Blocking - **The overlap order is unresolved.** `CONTRIBUTING.md` requires authors of PRs that overlap in changed lines or exports to agree on order and record it with `Depends on`. The current checklist says `Depends on: none`, but #9156 implements the same two named exports in `libkernel`, and its branch conflicts with this head in `libkernel_sys/Export.Discovery.cpp` and a debt file. Separately, #15111 changes the same CMake mode list and test source; the exact-head pairwise merge preview conflicts in both files. I found no public agreement between these PR authors or dependency declaration covering these overlaps. Please coordinate the intended order/scope with the affected authors and update `Depends on` accordingly before this PR proceeds. ### Non-blocking None. ## Sources - [Repository overlap-order rule](https://github.com/boykopovar/AnyPS5/blob/5d15238de265f5a8133c7a202123115e2d5d6322/CONTRIBUTING.md#L71) - [This PR's two `libkernel_sys` implementations](https://github.com/boykopovar/AnyPS5/blob/5d15238de265f5a8133c7a202123115e2d5d6322/core/libs/prx/libkernel_sys/Export.Discovery.cpp#L227-L249) - [#9156 implementations of the same named exports in `libkernel`](https://github.com/boykopovar/AnyPS5/blob/550810d74a304089683fd7f6994315974df0aaa1/core/libs/prx/libkernel/Pthread/Posix/AttrNp.cpp#L33-L54) - [#15111 CMake mode list](https://github.com/boykopovar/AnyPS5/blob/e5322eaed8f4c87d59a47fb674b2d854dc4e84dd/core/libs/CMakeLists.txt#L598-L609) - [#15111 test mode and shared test source](https://github.com/boykopovar/AnyPS5/blob/e5322eaed8f4c87d59a47fb674b2d854dc4e84dd/core/libs/tests/GuestKernelSysPthreadNp.cpp#L142-L174) - [#14798 CMake registration of `attr`](https://github.com/boykopovar/AnyPS5/blob/5d15238de265f5a8133c7a202123115e2d5d6322/core/libs/CMakeLists.txt#L598-L609) ## Not verified No local build, CTest or negative control was run. The Windows test results are author-reported. No PS5 console runtime test was reported. Current hosted checks show conventions and labels only; they do not provide hosted product-build or C++ test evidence for this head. ## To get this to a good state Agree with the authors of #9156 and #15111 which PRs go first, record the applicable dependencies in the checklist, and resolve the resulting branch integration conflicts. I will rerun the precheck and pairwise merge previews and recheck the exact head after that update.
MarcZX10 commented 2026-11-03 00:04:17 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-03T00:04:17Z.

Review: CHANGES_REQUESTED


Re-checked — same head, changes requested

The exact-head test evidence now covers the earlier test request, but the two overlapping PRs still lack an agreed landing order.

What I ran

Refreshed open PR #14798 at head 5d15238de265f5a8133c7a202123115e2d5d6322, base 5bae1a4bc2cffc66c13e37ce8e63ae48b1b5dd1e; no code changes have been pushed since my prior full review of this exact head. Environment: Debian Linux 6.1, Python 3.11.2, Git 2.39.5. I did not build or run CTest locally.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14798
gh pr checks 14798 --repo boykopovar/AnyPS5
git merge-tree --write-tree --messages 5d15238de265f5a8133c7a202123115e2d5d6322 e5322eaed8f4c87d59a47fb674b2d854dc4e84dd
git merge-tree --write-tree --messages 5d15238de265f5a8133c7a202123115e2d5d6322 550810d74a304089683fd7f6994315974df0aaa1

Results

Check Result Note
Diff and conventions passed Exact-head diff check and conventions pass.
Base merge preview passed Clean against the PR base and current main.
Pairwise overlap previews failed Conflicts remain with #15111 and #9156.
Hosted checks passed Current conventions and labels checks passed.
Windows CTest passed Author-reported on this exact head; not run by me.
AMD Linux run passed Author-reported; 3,096 passed, 15 failures also seen on main, 58 skipped, and no new Vulkan validation IDs.
Local build and tests not run No local build or CTest.
Check output
All conventions checks passed.

labels\tpass\t15s\thttps://github.com/boykopovar/AnyPS5/actions/runs/41486200649/job/125417092726
conventions\tpass\t2m31s\thttps://github.com/boykopovar/AnyPS5/actions/runs/41486200896/job/125417091949
5d15238 vs e5322ea exit=1
CONFLICT (content): Merge conflict in core/libs/CMakeLists.txt
CONFLICT (content): Merge conflict in core/libs/tests/GuestKernelSysPthreadNp.cpp

5d15238 vs 550810d exit=1
CONFLICT (content): Merge conflict in core/libs/prx/libkernel_sys/Export.Discovery.cpp
CONFLICT (content): Merge conflict in docs/dev/debt/libkernel.md

The precheck’s diff, conventions and current-base stack checks passed. Its isolated snapshot lacked the optional ABI and test-quality scripts; the same-head ABI audit had already passed with no findings in my prior review. The precheck did not build or run C++ tests.

Negative control

Not run locally. The reported Windows and AMD runs used the unmodified PR head; they are not negative controls.

Findings

Blocking

The proposed landing order is still not agreed. #14798 conflicts pairwise with #15111 in the shared CMake registration and test file, and with #9156 in the libkernel_sys export and debt files. The author has proposed landing #14798 first on both PR discussions, but neither affected author has replied; the current checklist still says Depends on: none. Please agree the order with the affected authors and record the dependency/order in the checklist. The new Windows and AMD evidence resolves the prior test-evidence request; it does not resolve these overlap conflicts.

Non-blocking

None.

Sources

Not verified

I did not independently reproduce the author’s Windows or AMD runs, build locally, run CTest, or test PS5 console behavior. Current hosted checks cover conventions and labels; no hosted C++ test job is shown for this head.

To get this to a good state

Get agreement on the landing order from the affected authors and update Depends on accordingly. I will rerun the exact-head precheck and pairwise merge previews after the order or either head changes.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5745192263 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14798#pullrequestreview-5745192263). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-03T00:04:17Z. **Review:** CHANGES_REQUESTED --- # Re-checked — same head, changes requested The exact-head test evidence now covers the earlier test request, but the two overlapping PRs still lack an agreed landing order. ## What I ran Refreshed open PR #14798 at head `5d15238de265f5a8133c7a202123115e2d5d6322`, base `5bae1a4bc2cffc66c13e37ce8e63ae48b1b5dd1e`; no code changes have been pushed since my prior full review of this exact head. Environment: Debian Linux 6.1, Python 3.11.2, Git 2.39.5. I did not build or run CTest locally. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14798 gh pr checks 14798 --repo boykopovar/AnyPS5 git merge-tree --write-tree --messages 5d15238de265f5a8133c7a202123115e2d5d6322 e5322eaed8f4c87d59a47fb674b2d854dc4e84dd git merge-tree --write-tree --messages 5d15238de265f5a8133c7a202123115e2d5d6322 550810d74a304089683fd7f6994315974df0aaa1 ``` ## Results | Check | Result | Note | |---|---|---| | Diff and conventions | passed | Exact-head diff check and conventions pass. | | Base merge preview | passed | Clean against the PR base and current `main`. | | Pairwise overlap previews | failed | Conflicts remain with #15111 and #9156. | | Hosted checks | passed | Current conventions and labels checks passed. | | Windows CTest | passed | Author-reported on this exact head; not run by me. | | AMD Linux run | passed | Author-reported; 3,096 passed, 15 failures also seen on `main`, 58 skipped, and no new Vulkan validation IDs. | | Local build and tests | not run | No local build or CTest. | <details><summary>Check output</summary> ```text All conventions checks passed. labels\tpass\t15s\thttps://github.com/boykopovar/AnyPS5/actions/runs/41486200649/job/125417092726 conventions\tpass\t2m31s\thttps://github.com/boykopovar/AnyPS5/actions/runs/41486200896/job/125417091949 ``` ```text 5d15238 vs e5322ea exit=1 CONFLICT (content): Merge conflict in core/libs/CMakeLists.txt CONFLICT (content): Merge conflict in core/libs/tests/GuestKernelSysPthreadNp.cpp 5d15238 vs 550810d exit=1 CONFLICT (content): Merge conflict in core/libs/prx/libkernel_sys/Export.Discovery.cpp CONFLICT (content): Merge conflict in docs/dev/debt/libkernel.md ``` The precheck’s diff, conventions and current-base stack checks passed. Its isolated snapshot lacked the optional ABI and test-quality scripts; the same-head ABI audit had already passed with no findings in my prior review. The precheck did not build or run C++ tests. </details> ## Negative control Not run locally. The reported Windows and AMD runs used the unmodified PR head; they are not negative controls. ## Findings ### Blocking The proposed landing order is still not agreed. #14798 conflicts pairwise with #15111 in the shared CMake registration and test file, and with #9156 in the `libkernel_sys` export and debt files. The author has proposed landing #14798 first on both PR discussions, but neither affected author has replied; the current checklist still says `Depends on: none`. Please agree the order with the affected authors and record the dependency/order in the checklist. The new Windows and AMD evidence resolves the prior test-evidence request; it does not resolve these overlap conflicts. ### Non-blocking None. ## Sources - [Current implementation at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/5d15238de265f5a8133c7a202123115e2d5d6322/core/libs/prx/libkernel_sys/Export.Discovery.cpp#L227-L250). - [Author’s exact-head Windows test report](https://github.com/boykopovar/AnyPS5/pull/14798#issuecomment-6583006317) and [AMD CI report for this head](https://github.com/boykopovar/AnyPS5/pull/14798#issuecomment-6586435922). - [Proposed order on #15111](https://github.com/boykopovar/AnyPS5/pull/15111#issuecomment-6591536799) and [proposed order on #9156](https://github.com/boykopovar/AnyPS5/pull/9156#issuecomment-6591533644); neither discussion has a reply from the affected author. - [#15111 head used in the pairwise preview](https://github.com/boykopovar/AnyPS5/commit/e5322eaed8f4c87d59a47fb674b2d854dc4e84dd) and [#9156 head used in the pairwise preview](https://github.com/boykopovar/AnyPS5/commit/550810d74a304089683fd7f6994315974df0aaa1). - [Repository overlap-order rule](https://github.com/boykopovar/AnyPS5/blob/5bae1a4bc2cffc66c13e37ce8e63ae48b1b5dd1e/CONTRIBUTING.md#L66-L72). ## Not verified I did not independently reproduce the author’s Windows or AMD runs, build locally, run CTest, or test PS5 console behavior. Current hosted checks cover conventions and labels; no hosted C++ test job is shown for this head. ## To get this to a good state Get agreement on the landing order from the affected authors and update `Depends on` accordingly. I will rerun the exact-head precheck and pairwise merge previews after the order or either head changes.
Sign in to join this conversation.
No reviewers
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!14798
No description provided.