fix(tools): report sanitizer_report symlink-loop summary paths without traceback #13189
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/13189"
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 rooklz on 2026-10-30T05:48:28Z.
What
sanitizer_reportcompares--summaryagainst--junit/--knownwithPath.resolve(). On Python 3.9–3.12, a looping symbolic link used as--summaryraisesRuntimeError: Symlink loopfromresolve(), which is not handled by the tool's(OSError, ET.ParseError, ValueError)handler, so the user gets a traceback and exit status 1 instead of the usualsanitizer_report:message and exit status 2. The alias check now usesos.path.realpath, matching the other CI summary tools.Tested
test_symlink_loop_summary_reports_error_without_tracebackpasses; existingSummaryInputAliasTestsunchanged.python3 tools/check_conventions.py --base upstream/main— PASS.python3 tools/pr_overlap.py --branch fix/sanitizer-report-symlink-loop— merge-order with PR #12872 attools/sanitizer_report.pyL1 (import line only; rebase onto #12872 or land second with a one-line port).ctest --test-dir build-relinker -j 8: 513/513.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-11-22T09:04:51Z.
Review: APPROVED
Reviewed — looks good
The change uses
os.path.realpathfor summary alias checks and adds a subprocess regression test for a looping summary symlink at head69fe810b1113b8199ff899718ca6617ca56ef1c4; source inspection supports the described error handling, but I did not run tests.What I ran
Read the prepared diff and both changed files through
repo_read.py. No commands or tests were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The author reports macOS test and convention-check passes and a 513/513 CTest run; these results were not independently verified. No runtime or platform-specific checks were run. Both changed files listed in the manifest were read; no exclusions were listed in the manifest.
files.jsonwas not available through the reader.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T01:04:22Z.
Review: COMMENTED
I checked the reported failure on Python 3.12.13 on Linux, where
Path.resolve()still raisesRuntimeErroron a symlink loop. Currentmain(ac7ee4bb) already exits 2, emits a singlesanitizer_report: Symlink loopdiagnostic with empty stdout, and leaves the input unchanged. The PR head gives the same contract with an OS error message. The current main handler came from0109bf14d2and catchesRuntimeErrordirectly. That explains why the previous negative control also passed. As the PR now conflicts with main, I'd keep the real-loop CLI fixture only if its subprocess coverage is still wanted.AI-assisted: yes.
Pull request closed