fix(tools): preserve backticks in overlap report paths #10916
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10916"
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 Cankiee on 2026-10-25T09:54:16Z.
What
Fix Markdown code span formatting for file paths containing backticks in the PR overlap reports.
Previously, file paths were always wrapped in single backticks, causing malformed Markdown when a filename contained backtick characters.
This PR:
code_span()helper that chooses a delimiter longer than any backtick sequence in the filename.cell()andspans().Tested
Environment: Windows, Git Bash, Python.
python -m unittest discover -s tools/tests -p "test_pr_overlap.py" -v— 28 tests, OK (5 skipped due to platform-specific requirements).python -m py_compile tools/pr_overlap.py tools/tests/test_pr_overlap.py— passed.git diff --check— passed.mainimplementation produces malformed Markdown for the reproduced example.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](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file (not applicable).mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T10:02:16Z.
Review: APPROVED
Reviewed exact head
e75ee1d1e175d6b2d51171385ecab0d460d05236. The delimiter is longer than any backtick run in the path, ordinary names retain their existing Markdown, and the link path still percent-encodes backticks. I ranpython3 -m py_compile tools/pr_overlap.py tools/tests/test_pr_overlap.pyand the focused test file (python3 -m unittest discover -s tools/tests -p test_pr_overlap.py -v): all 28 tests pass, including the five new formatting cases. Hosted conventions, intake, relinker cross-platform, and ASan checks pass; product jobs are skipped by path policy.Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-25T12:10:30Z.
Review: APPROVED
Reviewed head
e75ee1d1e175d6b2d51171385ecab0d460d05236. No actionable findings in the backtick-preservation change.Both table-cell and conflict-span rendering now choose a code-span delimiter longer than every backtick run in the path, with padding where needed. This preserves literal backticks without changing ordinary filename output, sorting or the URL-encoded conflict links. The added cases cover one and two embedded backticks and verify the encoded line link.
Validation: Windows/Python 3.11.9:
tools/tests/test_pr_overlap.py -vruns 28 tests, 23 passed and 5 skipped; baseline has 18 passed and 5 skipped. New tests against baseline production fail exactly four formatting assertions. Conventions, whitespace and script registration pass. Hosted relinker matrix, ASan and policy checks pass; product jobs are skipped.Scope: Report generation and Git fixtures. The five local skips concern POSIX filenames/shell fixtures; no live bot comment synchronization or application execution was performed.