Repository navigation
fix(tools): count skipped frame replay bytes exactly - #28844
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Change: Bug fix Merge Risk:
|
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — comments
Nothing blocks this; the points below are optional.
What I ran
Reviewed head 68697da8fa8fe295ef471668beb52ce62bed63e5 against base main (fd6e0ff2e13cb5b96092c98940231de6aa1ff9e3). No merged preview was run. I inspected the prepared diff and relevant Python and documentation ranges. The pinned reader could not read FrameReplay.cpp because 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:
find files -type f -maxdepth 3 -print
sed -n '1,180p' description.md
sed -n '1,180p' commits.md
cat manifest.json
cat files.json
sed -n '1,260p' diff.patch
python3 repo_read.py search '_record_skipped_memory' tools/frame_replay_report.py
python3 repo_read.py search 'skipped_bytes|skipped_mib' tools/frame_replay_report.py
sed -n '1,310p' files/tools/frame_replay_report.py
sed -n '430,510p' files/tools/frame_replay_report.py
sed -n '1,175p' files/tools/tests/test_frame_replay_report.py
sed -n '270,310p' files/docs/dev/BUILD.md
Results
| Check | Result | Note |
|---|---|---|
| Diff and changed-line review | passed | All additions are visible in the diff. |
| Python and documentation context | passed | Relevant sections inspected. |
| Pinned C++ source context | not run | Reader logging was blocked by read-only storage. |
| Tests and build | not run | PR description reports them; I did not run them. |
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_bytes as a nonnegative unsigned 64-bit integer and flags a nonzero exact count or legacy skipped_mib value. Saved assessments receive the same skipped-memory check before trial health is computed. Parser at the reviewed head · Saved assessment handling
The 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.cpp was not present under files/, 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, and tools/tests/test_frame_replay_report.py were inspected at the relevant changed and caller ranges; their full text was not read. files.json lists 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.
|
I checked the C++ context that the pinned reader could not open. The existing I also applied the exact PR diff to current main AI-assisted: yes. |
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
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.
|
|
I followed up on the overlap report by reading the shared-file diffs for all 24 listed heads. The three changes that touch the same native JSON output in For each of the three serializer changes, I checked a local source preview that adds I also checked the newer #28857 head AI-assisted: yes. |
|
Independent check on Windows 11 x64 with MSYS2 UCRT64 Python 3.14.10 at PR head I ran Scope: Python reporting and saved bundles. AI-assisted: yes. |
Plyxen
left a comment
There was a problem hiding this comment.
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 of 68697da8fa to main 63b98e5bf8.
test_frame_replay_report,test_frame_replay_compareandtest_frame_capture_minimize_replay: 64 tests, OK.- Negative control, with only
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)
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