test(libSceAjm.native): cover the statistics job sceAjmBatchJobGetStatistics appends #12231
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12231"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-28T04:06:10Z.
What
GuestAjm.cppgetsTestGetStatistics. It builds one batch with asceAjmBatchJobGetStatisticsjob (interval 1.0) followed by asceAjmBatchJobGetInfoof an instance that was never initialized, then starts and waits for it:sceAjmBatchStartandsceAjmBatchWaitreturn 0);sceAjmBatchJobGetStatisticsgives the job) as zeros, and the bytes after them keep their fill;TestGetInfoexpects for an uninitialized instance.The zeros are what this library reports for the statistics; the test pins that and that the job doesn't stop the batch. Valid inputs only.
Crimson Desert (PPSA25286) has one call site of
sceAjmBatchJobGetStatisticsin its relinkedeboot.bin(callsites.py), and no test called it until now.Changed:
core/libs/tests/GuestAjm.cpp. Test only, no change to the library.Tested
Linux (Ubuntu 26.04, GCC 15.2), Release:
cmake --build build --target guest_ajm_tests, thenctest -R '^guest_ajm$'passes 3 of 3 runs on this branch (currentmain82d5f01f28plus the test, rebased from061cdb66b0). As a red control, a statistics job that writes nothing failsguest_ajm.tools/check_conventions.py --base upstream/mainpasses.tools/pr_overlap.pyfinds no overlap. It could not compare #3205, which also editsGuestAjm.cpp, because #3205 already conflicts withmainin that file; its hunks sit elsewhere in the file (the declarations at the top, a new case after the ATRAC9 tests, andmain).Windows 11 VM (GT 1030, WinLibs GCC 15.2.0):
guest_ajmpasses 3 of 3 onmain82d5f01f28and 3 of 3 on this branch42146e8180.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)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T04:07:13Z.
Review: CHANGES_REQUESTED
The test setup is coherent: the statistics job is queued before
GetInfo, its 24-byte output is checked while the eight-byte tail must remain at the fill value, and the subsequent uninitialized-instance format query verifies that the batch continues. The reported red control (no statistics output) is useful. I independently reviewed the exact diff;git diff --checkpasses and the current-main merge preview is clean. Hosted conventions, intake, labels, and eligibility pass; Windows is running and the other build jobs are skipped. The author reports three successful focused runs on Linux and Windows.Please update the branch to current
mainand rerun affected checks before approval, per CONTRIBUTING. It is seven commits behind7fe69e276fc4e000ccb2a360ea8faeb3d7fcc137; those commits do not touchGuestAjm.cpp, and the merge preview is clean. I found no functional issue in the test as reviewed.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T09:19:11Z.
Review: APPROVED
Rechecked the rebased head
42146e81801ac93adac64ecc73fa69ce45f87617. The test queuesGetStatisticsbefore aGetInfojob whose instance is intentionally uninitialized, verifies exactly the documented 24-byte statistics region and untouched tail, then confirms the later job still completes. The added test is the only code change. The author reports Linux and Windows focused passes on the current head with a red control; conventions and Windows CI pass. No remaining blocker found.Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-29T07:00:38Z.
Review: APPROVED
Reviewed
42146e81801ac93adac64ecc73fa69ce45f87617against82d5f01f28b3d63dd811f4424b3d5e4de5845eca. The AJM fixture submits a statistics job followed by a format-info job and checks exactly the 24-byte statistics write, the untouched trailing guard bytes and the following job result. Instance cleanup remains after completion. No actionable finding in this scoped test review.Windows/GCC 15.3 Release: configured and built the registered target from pinned sources; focused CTest: 1 passed, 0 skipped. Checked that the fixture assertions remain active in Release. Production source is unchanged from the author base; baseline was source-compared, not rebuilt/rerun here. Matching cached dependency source pins and the existing matching FFmpeg package are used. No game, physical-console or GPU validation is claimed.