fix(tools): reject thread filters on collapsed samples #13812
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/13812"
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:40:30Z.
What
Reject --thread on collapsed-stack records, which contain no thread IDs. Previously the filter was silently ignored and --out could overwrite an existing output with unfiltered samples. Reject during parsing before report/output generation; preserve ordinary address-capture filtering.
Tested
38 symbolizer tests run on Windows: 37 pass, one existing filesystem test skips. The new subprocess regression reproduces ignored filtering on main and passes after the fix with exit 2, empty stdout and unchanged existing output. The existing address-thread test remains green. Conventions and whitespace checks pass. No C++ build, title/GPU, Linux or macOS run.
Overlap review: the initial scan reported test-class insertion conflicts with #12498 and #12499. Moved the regression to a separate test class and preserved existing class whitespace.
git merge-tree --write-treenow merges this head cleanly with both PR heads and with the independent output-preflight branch. Neither open PR implements this input-format rejection.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:52:18Z.
Review: APPROVED
Reviewed — looks good
The CLI now rejects
--threadfor collapsed stacks, which contain no thread IDs, before emitting a report or writing--out.What I ran
Reviewed head
e6a5d64332e9e80f1a0deadf2aaee19587bc0dacagainst base828ac0b2ae74aac181ba128fb59b08a1534f2041; its merge preview is clean. Environment: Linux x86_64, kernel 6.1.0-54-amd64, Python 3.11.2.Results
tools.tests.test_symbolize_samplesUnedited output from the precheck
Negative control
--threadis rejected without printing or changing the output file828ac0b2ae74aac181ba128fb59b08a1534f2041Findings
Blocking
None found.
Non-blocking
None.
Sources
Not verified
No C++ build or product runtime test was relevant or run. Two Python tests were skipped; the macOS relinker CI jobs were queued at the last snapshot.