fix(tools): validate sampler output before printing reports #13813
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/13813"
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 dr-hoseyn on 2026-10-31T07:42:30Z.
What
Reject --out on address-only sampler captures before symbolization and report printing. Previously the CLI emitted a complete report to stdout before exiting with a usage error. Preserve the existing error message and module-file protection.
Tested
37 symbolizer tests run on Windows: 36 pass, one existing filesystem test skips. The strengthened existing address-output regression fails on main because stdout contains a report and passes after the fix; the module input remains unchanged. Conventions and whitespace checks pass. No C++ build, title/GPU, Linux or macOS run.
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)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-31T07:51:23Z.
Review: APPROVED
Reviewed — looks good
The CLI now rejects
--outfor address-only input before printing a report, and the regression test verifies stdout stays empty without modifying the module input.What I ran
Reviewed head
79ba86d6fdb7dafd38889958d6ff9730b7af6dadagainst base828ac0b2ae74aac181ba128fb59b08a1534f2041; the PR merges cleanly. Environment: Linux x86_64, kernel 6.1.0-54-amd64, Python 3.11.2.Results
tools.tests.test_symbolize_samples828ac0b2ae74aac181ba128fb59b08a1534f2041.Unedited output from the precheck
Negative control
--outproduces no report and preserves module input828ac0b2ae74aac181ba128fb59b08a1534f2041Findings
Blocking
None found.
Non-blocking
None.
Sources
Not verified
No C++ build, title/GPU, Linux/macOS/Windows product run was performed in this review. Two Python tests were skipped by the suite; the macOS relinker CI jobs were queued at the last snapshot.