fix(tools): count skipped frame replay bytes exactly #28844
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/28844"
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 JJenkx on 2026-12-04T04:12:50Z.
What
Replay results now include the exact number of skipped bytes. A single skipped 4 KiB page rounds to
0.0in the olderskipped_mibfield, so some incomplete runs could count as healthy. The report checks the exact count in new results and saved assessments. It retains the rounded field for older results.Tested
Plyxen independently applied the diff to
main63b98e5bf8on Windows 11. The Release replay tool built with no format warning, three replay CTests and 64 Python cases passed, and reverting the reporter reproduced the exact-count failures. The native CTests exercised the replay executable. Plyxen's test reportBaejoe ran both focused Python suites on Windows 11 x64 (MSYS2 UCRT64 Python 3.14.10) at
68697da8fa8f. All 42 tests passed, including the three Windows-only cases. In two saved bundles, exact zero stayed healthy and 4,096 skipped bytes were flagged by the PR reporter. Both reporters left the saved inputs unchanged. Baejoe's test reportLinux x86_64 Release build of
agc_frame_replay.The focused Python replay suite passed 39 tests with 3 skipped. Coverage includes a skipped 4 KiB page, a saved assessment with a skipped page, exact zero, legacy results and invalid exact counts.
Conventions check against
e3cd13806921passed.Checklist
mainand checked for overlapping open PRsSummary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-04T05:05:44Z.
Review: COMMENTED
Reviewed — comments
Nothing blocks this; the points below are optional.
What I ran
Reviewed head
68697da8fa8fe295ef471668beb52ce62bed63e5against basemain(fd6e0ff2e13cb5b96092c98940231de6aa1ff9e3). No merged preview was run. I inspected the prepared diff and relevant Python and documentation ranges. The pinned reader could not readFrameReplay.cppbecause it attempted to write its call log in the read-only run directory. I ran no tests or build; the test and build results in the PR description are author-reported.Commands run:
Results
Negative control
Not run. I made no test changes and did not execute the reported Python suite.
Findings
Blocking
None verified in the inspected diff and Python/documentation context.
Non-blocking
None.
Sources
The parser validates
skipped_bytesas a nonnegative unsigned 64-bit integer and flags a nonzero exact count or legacyskipped_mibvalue. Saved assessments receive the same skipped-memory check before trial health is computed. Parser at the reviewed head · Saved assessment handlingThe added tests cover a skipped 4 KiB page, a saved assessment, exact zero, legacy results, and invalid exact counts. Tests at the reviewed head
Not verified
core/libs/prx/libSceAgcDriver/tools/FrameReplay.cppwas not present underfiles/, although the manifest marks it included, and the pinned reader could not access it because of the read-only log path. I therefore verified only the C++ JSON format and argument changes shown in the diff, not their surrounding types or callers.docs/dev/BUILD.md,tools/frame_replay_report.py, andtools/tests/test_frame_replay_report.pywere inspected at the relevant changed and caller ranges; their full text was not read.files.jsonlists no rule-excluded files. No tests, build, hardware run, or conventions check were performed in this review.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by Plyxen on 2026-12-04T12:20:17Z.
Review: APPROVED
Verified on Windows 11: Python 3.13.7 for the report tool, WinLibs GCC 15.2.0 r7 (Release) for
agc_frame_replay. I applied the diff of68697da8fatomain63b98e5bf8.test_frame_replay_report,test_frame_replay_compareandtest_frame_capture_minimize_replay: 64 tests, OK.frame_replay_report.pyreverted:test_exact_skipped_page_disqualifies_an_otherwise_healthy_runfails ([] != ['native replay skipped memory ranges']forskipped_bytes=4096, skipped_mib=0.0), and so do the four invalid-count subtests oftest_invalid_exact_skip_count_fails_native_result_validation.agc_frame_replaybuilds with the newprintfargument, with no format warning.agc_driver_frame_replay_submits,_shader_outputand_run_report, which run the tool, pass.Not run: Linux, a real replay with skipped ranges.
AI-assisted: yes (Claude Code)
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.