Repository navigation
feat(libSceVoiceQoS): implement sceVoiceQoSGetLocalEndpointAttribute validation from 4.03 module - #14277
Conversation
|
@akkadbakkad89 reviewed at
|
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
7454981 to
52e1b2c
Compare
|
@oneandonlydean All three addressed at
|
|
A Windows run with GCC 16: Windows 11 Pro 10.0.22631, i9-9900K, MSYS2 UCRT64 GCC 16.1.0, Release, this PR (
Looks good on Windows 👍 AI-assisted: yes (Claude Code) |
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — no blocking findings
sceVoiceQoSGetLocalEndpointAttribute now validates its arguments the way the debt entry describes the 4.03 module doing: a local id other than 0 or a null output returns the invalid-argument error, and so do a selector outside the table and a size that does not match the selector. A valid read throws, as an unimplemented path must. The Windows CTest run passed guest_voice_qos, which covers the argument errors.
What I ran
- Head
52e1b2c0416d9384fd4deb075fa3ec63b6f659cd; basec674f8c14da93df7a6b37657117ca3f58357477f. 3 files:core/libs/prx/libSceVoiceQoS/Export.cpp(the function body: the validation and the throw),core/libs/tests/GuestVoiceQoS.cpp(the argument error cases) anddocs/dev/debt/libSceVoiceQoS.md(the entry for the function). - Read the function diff, the new test assertions, and the debt entry's text.
- Hosted: the Windows CTest run passed
guest_voice_qos(Test #2697, 0.01 s). The run reports 2 of 2 cases. - Read-only checks from the trusted main checkout: diff check, conventions and PR template, and the stack check all passed. ABI audit passed: 25 symbols, no findings.
- No MarcZX10 review at this head.
Results
| Check | Result | Note |
|---|---|---|
| Diff check | passed | |
| Conventions and PR template | passed | conventions check from the main checkout |
| Mergeability and dependencies | passed | stack check passed; no declared dependencies |
| ABI audit (main-checkout tool) | passed | 25 symbols, no findings |
| Argument errors (local id, null output, selectors, sizes) (read) | passed by reading | the test asserts the error for each listed case |
| Selector size table (0, 2, 6 four bytes; 1, 3, 5 one byte; 8 two bytes) | not verified | taken from the 4.03 module named in the debt entry; the module was not read |
| Valid reads throw (not implemented) | passed by reading | the last line of the function |
guest_voice_qos (hosted, Windows) |
passed | Test #2697, 0.01 s |
| Linux build and runtime tests | not run | Linux is skipped on pull requests |
| Negative controls | not run | no local build |
| Hosted CI | passed | windows passed (2 of 2 cases); report, conventions and library-portability succeeded; linux, relinkers and write-watch skipped |
Read-only check output
Precheck was not run: no PR-head code is run here. Diff check: passed. Conventions: passed. ABI audit: passed (25 symbols). Stack check: passed. Hosted: gh api repos/boykopovar/AnyPS5/commits/52e1b2c0416d9384fd4deb075fa3ec63b6f659cd/check-runs, and the Windows job log.
Negative control
Not run here. A negative control needs a local build, and code from this head is not run here.
Findings
Blocking
None.
Non-blocking
- Valid reads throw, and no test pins that path. A test that checks the throw (with its message) would keep the unimplemented path visible in CI.
Sources
- Function: https://github.com/boykopovar/AnyPS5/blob/52e1b2c0416d9384fd4deb075fa3ec63b6f659cd/core/libs/prx/libSceVoiceQoS/Export.cpp
- Test: https://github.com/boykopovar/AnyPS5/blob/52e1b2c0416d9384fd4deb075fa3ec63b6f659cd/core/libs/tests/GuestVoiceQoS.cpp
- Debt entry: https://github.com/boykopovar/AnyPS5/blob/52e1b2c0416d9384fd4deb075fa3ec63b6f659cd/docs/dev/debt/libSceVoiceQoS.md
- Windows job log: check-run
windowson 52e1b2c
Not verified
- The 4.03 module's selector table and sizes (the debt entry names the module by SHA-256 and virtual address; the file was not read).
- The Linux behaviour.
To get this to a good state
- Nothing blocking. Optionally, add a test for the throw on a valid read.
…validation from 4.03 module Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
52e1b2c to
67bbc73
Compare
|
@MarcZX10 Done at Added a Require(NotImplementedMessage([&] { sceVoiceQoSGetLocalEndpointAttribute(local, 0, &attributeValue, sizeof(attributeValue)); }, "sceVoiceQoSGetLocalEndpointAttribute"));Placed right after the argument-rejection block for the same function, with Verified locally on the amended head: |
|
Tester run of Landing order with #14898:
It would help to agree, before either PR is rebased again, which one lands first, or whether #14898 carries this validation on its own. Small: AI-assisted: yes (Claude Code) |
|
@B-Howell Final newline restored at On the order, I'd propose this PR first, then #14898 — and one correction to the record: #14898's body declares Why this order:
@edubox — if this lands first, your side is: the same check table stays, your |
|
@akkadbakkad89 Thanks. On the order: that is for the maintainers to choose. For the record, either order works. In my run on #14898 (comment), this PR's getter validation loops pass unchanged on #14898's branch. The two PRs differ only on the selector-0 read, which this PR pins as throwing and #14898 implements. Whichever lands second replaces that pin. AI-assisted: yes (Claude Code) |
XairRrR
left a comment
There was a problem hiding this comment.
Reviewed — approved
sceVoiceQoSGetLocalEndpointAttribute now returns the not-initialized and invalid-argument errors in the order and for the selector and size table given in the debt entry, and it throws on a valid read. The new test assertions pass on Linux and fail when the old Export.cpp is restored.
What I ran
Head 6b3cf5029282178d10556a421d91499975709235, main 4f41f4c375f5abb487dbd184fbc150f31994d762, merged with --no-ff (merged tree 8136079d4b3d815bbfaacedd5197365240158024). Debian 13, GCC 14.2.0, Release, Ninja.
git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...6b3cf5029282178d10556a421d91499975709235
python3 tools/check_conventions.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762
ctest --test-dir build -R guest_voice_qos --output-on-failure
# negative control
git show 4f41f4c375f5abb487dbd184fbc150f31994d762:core/libs/prx/libSceVoiceQoS/Export.cpp > core/libs/prx/libSceVoiceQoS/Export.cpp
ninja -C build -j32 -l32
ctest --test-dir build -R guest_voice_qos --output-on-failure
git show 8136079d4b3d815bbfaacedd5197365240158024:core/libs/prx/libSceVoiceQoS/Export.cpp > core/libs/prx/libSceVoiceQoS/Export.cpp
ninja -C build -j32 -l32
ctest --test-dir build -R guest_voice_qos
git status --porcelain
Results
| Check | Result |
|---|---|
git diff --check |
passed |
check_conventions.py |
passed |
| Build of the merged tree (script) | passed |
| Selected tests (script): 823 run | 820 passed, 2 skipped as expected, 1 known failure from main (unwrap_self_UnwrapTest_test_new_output_inherits_the_destination_directory_group), no new failures |
guest_voice_qos, guest_voice_qos_app_type_0x10000000 |
passed, 0.01 s each |
| Negative control | both tests abort (see below) |
| Worktree restored to the merged tree | git status --porcelain is empty, and both tests pass again |
Negative control output
0% tests passed, 2 tests failed out of 2
The following tests FAILED:
3233 - guest_voice_qos (Subprocess aborted)
3234 - guest_voice_qos_app_type_0x10000000 (Subprocess aborted)
Negative control
I restored only core/libs/prx/libSceVoiceQoS/Export.cpp from main and kept the PR's test. Both registered app-type tests abort, because the old body throws where the test expects 0x804E0901/0x804E0902. After I restored the merged file, both pass again. This matches the Windows result in bunbeans2-arch's comment.
Findings
Blocking
None.
Non-blocking
- Two files lose their final newline.
core/libs/tests/GuestVoiceQoS.cpp:158anddocs/dev/debt/libSceVoiceQoS.md:18now end without\n; both have one onmain. I checked the bytes in the merged tree: the test file ends in}and the debt file ends inunchanged.. This confirms B-Howell's latest comment:6b3cf50292fixed onlyExport.cpp. Suggested fix: add the trailing newline to both files. - Overlap with #14898. This is not a defect in this PR, but the two PRs expect opposite results for
sceVoiceQoSGetLocalEndpointAttribute(local, 0, &v, 4): GuestVoiceQoS.cpp:116 requires it to throw, and #14898 makes it return 0. The landing order is still open, as B-Howell noted. Whichever lands second has to replace that pin, and the PR that lands second should declare the other underDepends on.
The code itself looks right. Export.cpp:184-191 checks initialization through Locked, then localId and value, then the selector and size, which is the order in the posted disassembly. The std::runtime_error thrown while Locked holds the lock_guard releases the mutex during unwinding, and the throw is the same one the neighbouring setters use. The test covers every rejected selector in the table and every wrong-size class, including negative sizes.
Not verified
- The 4.03
libSceVoiceQoS.sprxselector table (VA 0x1530, SHA-256 in the debt entry). I have no copy of the module, so the table rests on the disassembly the author posted in the discussion. - Windows/MinGW: I did not run it myself. Two other people reported passing Windows runs in the discussion.
- The validation-layer comparison was skipped because no AGC, shader or VideoOut file changed, and the change does not touch Vulkan.
MarcZX10
left a comment
There was a problem hiding this comment.
Re-checked — new head, approval withheld
The new head adds the previously requested assertion for valid-but-unimplemented reads, but I could not independently verify the cited firmware's selector and size table.
What I ran
Reviewed head 6b3cf5029282178d10556a421d91499975709235 against PR base b28bb772177768f99874ca38f6252cd0139acf2a; the stack checker previewed it cleanly against current main 4f41f4c375f5abb487dbd184fbc150f31994d762. Environment: Debian Linux x86_64, Python 3.11.2, GCC 12.2.0, Git 2.39.5. No local build or CTest was run.
git diff --check b28bb772177768f99874ca38f6252cd0139acf2a...6b3cf5029282178d10556a421d91499975709235
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14277
python3 tools/pr_abi_audit.py --base b28bb772177768f99874ca38f6252cd0139acf2a --head 6b3cf5029282178d10556a421d91499975709235
python3 tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14277-6b3cf5029282/head-6b3cf5029282-0197fe7c --json core/libs/tests/GuestVoiceQoS.cpp
gh pr checks 14277 --repo boykopovar/AnyPS5Results
| Check | Result | Note |
|---|---|---|
| Diff and conventions | passed | No whitespace or template issue. |
| ABI declaration/definition audit | passed | 25 symbols; no findings. |
| Test registration | passed | Both CTest cases are in the library CMake fragment. |
| Test-quality heuristic | failed | One registration warning; manual CMake inspection confirms registration. |
| Hosted Windows checks | passed | Windows job passed on this exact head. |
| Other applicable hosted checks | passed | Conventions, labels, portability, report and eligibility passed. |
| Local build and CTest | not run | No local compilation was performed. |
| Firmware selector-table verification | not run | The cited module was not available locally. |
Commands and unedited output
Diff-check command output:
git_diff_check_exit=0
Precheck summary stdout:
/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14277-6b3cf5029282/report.md
/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14277-6b3cf5029282/report.json
Conclusion: checks failed
Full precheck table:
| 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 b28bb772177768f99874ca38f6252cd0139acf2a...6b3cf5029282178d10556a421d91499975709235 |
| conventions_and_pr_template | passed | /usr/bin/python3 tools/check_conventions.py --base b28bb772177768f99874ca38f6252cd0139acf2a --head 6b3cf5029282178d10556a421d91499975709235 --title feat(libSceVoiceQoS): implement sceVoiceQoSGetLocalEndpointAttribute validation from 4.03 module --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14277-6b3cf5029282/pr-body.md |
| changed_export_abi_audit | failed | /usr/bin/python3 tools/pr_abi_audit.py --base b28bb772177768f99874ca38f6252cd0139acf2a --head 6b3cf5029282178d10556a421d91499975709235 --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 14277 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14277-6b3cf5029282/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-14277-6b3cf5029282/head-6b3cf5029282-0197fe7c/tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14277-6b3cf5029282/head-6b3cf5029282-0197fe7c --json core/libs/prx/libSceVoiceQoS/Export.cpp core/libs/tests/GuestVoiceQoS.cpp docs/dev/debt/libSceVoiceQoS.md |
| negative_controls | not_applicable | No changed Python test module in tools/ can be run as a no-build base-source control. |
Precheck stderr for the two missing optional helpers:
/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-14277-6b3cf5029282/head-6b3cf5029282-0197fe7c/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-14277-6b3cf5029282/head-6b3cf5029282-0197fe7c/tools/pr_test_quality.py': [Errno 2] No such file or directory
ABI audit stdout:
ABI audit: passed
sceVoiceQoSConnect: NID=kLU6hhXsa2A declarations=1 definitions=1 aliases=0
sceVoiceQoSCreateLocalEndpoint: NID=lvNClhNHzxI declarations=1 definitions=1 aliases=0
sceVoiceQoSCreateRemoteEndpoint: NID=iqQQW2cBmWU declarations=1 definitions=1 aliases=0
sceVoiceQoSDebugGetStatus: NID=D7P8dL0ZKsI declarations=1 definitions=1 aliases=0
sceVoiceQoSDeleteLocalEndpoint: NID=kE0kdvcHTiY declarations=1 definitions=1 aliases=0
sceVoiceQoSDeleteRemoteEndpoint: NID=H4zqFaDhHW4 declarations=1 definitions=1 aliases=0
sceVoiceQoSDisableChat: NID=8-voJZab+0E declarations=1 definitions=1 aliases=0
sceVoiceQoSDisconnect: NID=j9Xt85krooc declarations=1 definitions=1 aliases=0
sceVoiceQoSEnableChat: NID=2lOJJzw1t5o declarations=1 definitions=1 aliases=0
sceVoiceQoSEnd: NID=ATRGkmbolVM declarations=1 definitions=1 aliases=0
sceVoiceQoSGetConnectionAttribute: NID=XmvdN3atbXY declarations=1 definitions=1 aliases=0
sceVoiceQoSGetLocalEndpoint: NID=XPC8EyEuvyk declarations=1 definitions=1 aliases=0
sceVoiceQoSGetLocalEndpointAttribute: NID=eZu2RP0Ma3w declarations=1 definitions=1 aliases=0
sceVoiceQoSGetRemoteEndpoint: NID=9tfy4+aDxrM declarations=1 definitions=1 aliases=0
sceVoiceQoSGetRemoteEndpointAttribute: NID=3vmrvQ4rvgs declarations=1 definitions=1 aliases=0
sceVoiceQoSGetStatus: NID=Trpt2QBZHCI declarations=1 definitions=1 aliases=0
sceVoiceQoSInit: NID=U8IfNl6-Css declarations=1 definitions=1 aliases=0
sceVoiceQoSInitHQ: NID=RY0c7tYVBiw declarations=1 definitions=1 aliases=0
sceVoiceQoSReadPacket: NID=PWokFqab5q4 declarations=1 definitions=1 aliases=0
sceVoiceQoSSetConnectionAttribute: NID=KCGOxg8iX7s declarations=1 definitions=1 aliases=0
sceVoiceQoSSetLocalEndpointAttribute: NID=F7wS7FbfumQ declarations=1 definitions=1 aliases=0
sceVoiceQoSSetMode: NID=+0lOiPZjnBI declarations=1 definitions=1 aliases=0
sceVoiceQoSSetRemoteEndpointAttribute: NID=cpC-zyHoMik declarations=1 definitions=1 aliases=0
sceVoiceQoSTerminate: NID=FuXenJLkk-c declarations=1 definitions=1 aliases=0
sceVoiceQoSWritePacket: NID=SpxLratrO1Q declarations=1 definitions=1 aliases=0
limit: This lexical audit does not parse C++ fully, prove calling-convention or binary ABI correctness, verify runtime version tables, or replace compilation.
limit: An absent source declaration or explicit alias can be intentional for assembly exports, conditional platform code, or generated interfaces; inspect findings before treating them as defects.
Test-quality heuristic stdout:
{
"findings": [
{
"path": "core/libs/tests/GuestVoiceQoS.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."
]
}Hosted check output:
conventions pass 15s https://github.com/boykopovar/AnyPS5/actions/runs/41606462578/job/125817401665
labels pass 5s https://github.com/boykopovar/AnyPS5/actions/runs/41606462669/job/125817402537
library-portability pass 1m48s https://github.com/boykopovar/AnyPS5/actions/runs/41606465872/job/125817410685
report pass 57s https://github.com/boykopovar/AnyPS5/actions/runs/41606466022/job/125817411268
windows pass 9m22s https://github.com/boykopovar/AnyPS5/actions/runs/41606466003/job/125824956328
edge-watch skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41606466003/job/125824958015
linux skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41606466003/job/125824958684
register-context skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41606466003/job/125824957680
relinker skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41606466003/job/125824957657
relinker-asan skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41606466003/job/125824958672
write-watch skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41606466003/job/125824958128
eligibility pass 4s https://github.com/boykopovar/AnyPS5/actions/runs/41606466003/job/125817411610
Negative control
| Assertion | Change to code under test | Did the test fail? |
|---|---|---|
| A valid selector with the expected size reaches the unimplemented path and throws the named error. | No mutation was run. | Not tested. |
Findings
Blocking
None found in the source and test changes reviewed here.
Non-blocking
- I could not confirm the selector/size map (0/2/6 → 4 bytes, 1/3/5 → 1 byte, 8 → 2 bytes) against the cited 4.03 module. The PR identifies its SHA-256 and export address, but the module or a disassembly excerpt was not available in this workspace. This is why I am withholding approval.
- The PR description and debt entry say valid reads forward to voice-port getters, while the current function directly throws the “voice port attributes are not implemented” error. Please describe the current direct-throw behavior accurately; this PR implements validation, not that forwarding path.
Sources
- Getter implementation at this head
- New valid-read assertion
- CTest registration
- Debt entry containing the selector-table claim
Not verified
I did not inspect the cited 4.03 module, build locally, run CTest locally, or verify Linux or console behavior. Linux and specialized hosted jobs were skipped.
To get this to a good state
Please attach a short disassembly/evidence excerpt for the selector and size table and adjust the text to match the current direct-throw path. I will re-check the evidence and rerun the same no-build checks on the current head.
|
Done at Selector/size table evidence, from the cited module ( 1554: test edi,edi ; localId must be 0 -> else 0x804e0902
155f: test rdx,rdx ; value must be non-null -> else 0x804e0902
157f: cmp ebx,0x8 ; selector bounds: > 8 -> 0x804e0902
158a: lea rcx,[rip+0x303f] ; 0x45d0 — jump table, 9 x int32 offsets
1591: movsxd rax,[rcx+rax*4]
1598: jmp raxDecoded jump table at VA 0x45d0 (each case then compares i.e. accepted sizes 0/2/6→4, 1/3/5→1, 8→2; selectors 4 and 7 and any out-of-range id or wrong size return |
XairRrR
left a comment
There was a problem hiding this comment.
Re-checked — approved
The new commit a8ddcffefd puts back the final newlines of GuestVoiceQoS.cpp and docs/dev/debt/libSceVoiceQoS.md and rewrites the debt entry to describe the direct throw. Export.cpp has not changed since my last review, and both tests still pass.
What changed since my last review
- One new commit:
a8ddcffefd(docs). Compared with6b3cf5029282, it only:- adds the final
\ntocore/libs/tests/GuestVoiceQoS.cpp; - adds the final
\ntodocs/dev/debt/libSceVoiceQoS.md; - rewords the last sentence of the
sceVoiceQoSGetLocalEndpointAttributedebt entry. It used to say "forward to voice-port parameter getters … those throw". It now says "reach calls to voice-port parameter getters … this implementation throws … after validation instead of calling a getter".
- adds the final
- Description: now describes the direct throw.
- Author's comment: posts the jump-table disassembly for VA 0x1530/0x45d0, in reply to MarcZX10.
- Production code and test assertions: unchanged.
What I ran
Head a8ddcffefd6c4d237816067aa0e30a5bc1650558, main 4f41f4c375f5abb487dbd184fbc150f31994d762, merged tree 7832a507376fc168b981c0aa642d001718134076.
git diff 6b3cf5029282178d10556a421d91499975709235 a8ddcffefd6c4d237816067aa0e30a5bc1650558
git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...a8ddcffefd6c4d237816067aa0e30a5bc1650558
python3 tools/check_conventions.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762
tail -c 20 core/libs/tests/GuestVoiceQoS.cpp | od -c
tail -c 12 docs/dev/debt/libSceVoiceQoS.md | od -c
ctest --test-dir build -R guest_voice_qos --output-on-failure
git status --porcelain
| Check | Result |
|---|---|
git diff --check |
passed |
check_conventions.py |
passed |
| Build of the merged tree (script) | passed |
| Selected tests (script): 823 run | 820 passed, 2 skipped as expected. 1 known failure that also fails on main (unwrap_self_UnwrapTest_test_new_output_inherits_the_destination_directory_group). No new failures. |
guest_voice_qos, guest_voice_qos_app_type_0x10000000 |
passed, 0.01 s each |
| Final newlines | both files now end in \n |
| Worktree state | git status --porcelain is empty |
Negative control: I did not run it again. Since 6b3cf5029282, the only change to the test file is its final newline, and the production code is unchanged. My earlier control still applies: with Export.cpp restored from main, both tests aborted.
Previous findings
- Resolved: two files had lost their final newline. The byte check shows
GuestVoiceQoS.cppends in}\nand the debt file ends inunchanged.\n. The PR diff no longer shows\ No newline at end of file. - Still open, not a defect of this PR: overlap with #14898. Both PRs still expect opposite results for the valid selector-0 read. The landing order is for the maintainers to choose. Whichever PR lands second replaces the throw pin and should declare the other under
Depends on.
New findings
Blocking
None.
Non-blocking
- The debt entry names the wrong throw. The entry at
docs/dev/debt/libSceVoiceQoS.md:17says the function "throwsNotImplemented_nid_no_patchafter validation". The code at Export.cpp:189 does not call that helper. It throwsstd::runtime_error("sceVoiceQoSGetLocalEndpointAttribute: voice port attributes are not implemented")directly, as the setters do at lines 158 and 165. The behaviour is correct either way, because it throws. Suggested fix: change the wording to "throws after validation", or make the code match the text.
Not verified
- The 4.03 selector table: I have no copy of
libSceVoiceQoS.sprx, so it rests on the author's posted disassembly excerpt. - Windows/MinGW: I did not run it myself. Two people reported passing Windows runs in the discussion.
- Vulkan validation-layer comparison: skipped, because no AGC driver, shader recompiler or VideoOut file changed.
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — changes requested
The added 4.03 disassembly documents the selector and size table, but #14277 and overlapping #14898 still have no agreed landing order recorded as required by CONTRIBUTING.
What I ran
Reviewed all three changed files at head a8ddcffefd6c4d237816067aa0e30a5bc1650558 against PR base b28bb772177768f99874ca38f6252cd0139acf2a. The stack checker previewed the PR cleanly against current main 4f41f4c375f5abb487dbd184fbc150f31994d762. Environment: Debian 12, Linux x86_64, Python 3.11.2, Git 2.39.5, GCC 12.2.0. No local build or CTest was run.
git diff --check b28bb772177768f99874ca38f6252cd0139acf2a...a8ddcffefd6c4d237816067aa0e30a5bc1650558
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14277 --output-dir /tmp/anyps5-pr-precheck/14277-followup-20261103
python3 tools/pr_abi_audit.py --repo /marc/AnyPS5 --base b28bb772177768f99874ca38f6252cd0139acf2a --head a8ddcffefd6c4d237816067aa0e30a5bc1650558 --json
python3 tools/pr_test_quality.py --root /tmp/anyps5-14277-quality --json core/libs/tests/GuestVoiceQoS.cpp
python3 tools/pr_stack_check.py 14277 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/14277-followup-20261103/stack
gh pr checks 14277 --repo boykopovar/AnyPS5Results
| Check | Result | Note |
|---|---|---|
| Diff and conventions | passed | Whitespace and repository convention/template checks passed. |
| Current-main merge preview | passed | The exact head previews cleanly against current main. |
| ABI audit | passed | 25 exports checked; no findings. |
| Test discovery | passed | The heuristic warning is false-positive; CMake registers both guest tests. |
| Precheck helper coverage | failed | Two workspace-only helper scripts are absent from the isolated PR snapshot; see raw output. |
| Hosted checks | passed | Windows and policy checks passed; Linux and specialized jobs were skipped. |
| Local build and CTest | not run | No build was run. |
| PR overlap/order rule | failed | The order with #14898 is not agreed and recorded in the two PR descriptions. |
Full precheck table and relevant raw outputs
| 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 b28bb772177768f99874ca38f6252cd0139acf2a...a8ddcffefd6c4d237816067aa0e30a5bc1650558` |
| conventions_and_pr_template | passed | `/usr/bin/python3 tools/check_conventions.py --base b28bb772177768f99874ca38f6252cd0139acf2a --head a8ddcffefd6c4d237816067aa0e30a5bc1650558 --title feat(libSceVoiceQoS): implement sceVoiceQoSGetLocalEndpointAttribute validation from 4.03 module --body /tmp/anyps5-pr-precheck/14277-followup-20261103/pr-body.md` |
| changed_export_abi_audit | failed | `/usr/bin/python3 tools/pr_abi_audit.py --base b28bb772177768f99874ca38f6252cd0139acf2a --head a8ddcffefd6c4d237816067aa0e30a5bc1650558 --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 14277 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/14277-followup-20261103/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 | The helper script is absent in the isolated PR snapshot. |
| negative_controls | not_applicable | `No changed Python test module in tools/ can be run as a no-build base-source control.` |
Precheck helper stderr:
/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/14277-followup-20261103/head-a8ddcffefd6c-86eb5a61/tools/pr_abi_audit.py': [Errno 2] No such file or directory
/usr/bin/python3: can't open file '/tmp/anyps5-pr-precheck/14277-followup-20261103/head-a8ddcffefd6c-86eb5a61/tools/pr_test_quality.py': [Errno 2] No such file or directory
The direct ABI audit summary was:
passed 25 0 ['This lexical audit does not parse C++ fully, prove calling-convention or binary ABI correctness, verify runtime version tables, or replace compilation.', 'An absent source declaration or explicit alias can be intentional for assembly exports, conditional platform code, or generated interfaces; inspect findings before treating them as defects.']
The narrow test-quality helper output was:
{
"findings": [
{
"path": "core/libs/tests/GuestVoiceQoS.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."
]
}The CMake file registers GuestVoiceQoS.cpp through add_test_executable and defines both guest_voice_qos tests, so the heuristic warning is resolved by source inspection.
Negative control
| Assertion | Change to code under test | Did the test fail? |
|---|---|---|
| A valid local attribute read reaches the documented unimplemented path after argument validation. | No negative control run by me on this head. Earlier author/tester runs are reported in the PR discussion. | Not run by me. |
Findings
Blocking
- Unresolved overlap with #14898: both open PRs change
sceVoiceQoSGetLocalEndpointAttributeand the shared VoiceQoS test/debt files. #14898 explicitly supersedes this getter, while both descriptions currently sayDepends on: none. The #14277 checklist also says no other open PR implements the same function, which is no longer accurate. CONTRIBUTING requires the authors to agree which PR goes first and record that order withDepends on. Please resolve and record the order in both descriptions, and correct the duplicate-work checklist.
Non-blocking
- The latest discussion provides a detailed selector/size dispatch listing for the 4.03 module and records its hash and export VA. I did not independently retrieve or disassemble that firmware binary.
- The test-registration heuristic warning is a false positive; the CMake registration was confirmed by inspection.
Sources
- Contribution rules for PR ordering and overlap
- #14277 getter implementation at this head
- Overlapping getter implementation in #14898
- 4.03 module disassembly and selector table supplied in the PR discussion
Not verified
I did not compile or run the C++ tests locally, independently inspect the 4.03 module binary, or run the reported negative control on this exact head. The current hosted Linux and specialized jobs were skipped.
To get this to a good state
Agree with the #14898 author on the landing order and record it in both PR descriptions; correct the checklist claim that no other open PR implements this getter. I will refresh the heads and rerun the same no-build checks after that update.
✅ AMD GPU test: passedPR head
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)Failing on main too (4, not counted against this PR)Validation IDs already present on main (8 IDs in 468 tests)Skipped (7)ReproduceAutomated build and test on a contributor's AMD machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs. |
|
@MarcZX10 Landing-order record: proposed #14277 first, then #14898 — coordination posted at #14898 (comment) Order rationale (restating the earlier analysis): this head is the reviewed, twice-approved, all-green one; #14898 is the larger feature still in review and already declares it supersedes this getter. On that order its rebase only drops the Will update here if @edubox prefers the reverse; the debt entries and tests are written to survive either way. AI-assisted: yes. |
|
Checked the validation order, selector/size table and tests against the 4.03 disassembly cited in the debt entry and the neighbouring setter. The new assertions pin every rejection and the throwing valid read, and fail with |
What
Implements
sceVoiceQoSGetLocalEndpointAttributeargument validation from the 4.03libSceVoiceQoS.sprxexport (eZu2RP0Ma3w#D#A, VA 0x1530). The module checks initialization first (0x804E0901), then requireslocalId == 0and a non-nullvalue, then dispatches on a selector table: attributes 0/2/6 take a four-byte output, 1/3/5 one byte and 8 two bytes; attributes 4 and 7 and any other id or wrong size return0x804E0902. In the module, valid reads call voice-port parameter getters keyed by the two port handles. This implementation has no voice-port layer, so after validating it throws the same "voice port attributes are not implemented" error as the already-validated setters until that layer exists. Debt entry records the confirmed selector/size table and the direct throw.Tested
Windows 11, guest tests:
guest_voice_qosandguest_voice_qos_app_type_0x10000000both pass, including new cases covering the not-initialized result, non-zero local id, null output, unsupported selectors (4, 7, <0, >8), per-selector size rejection and the throwing valid path. Library builds clean under MinGW/Ninja.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)