test(tools): shell-quote Windows sentinel paths passed to Bash - #63641
test(tools): shell-quote Windows sentinel paths passed to Bash#63641LceAn wants to merge 1 commit into
Conversation
cf090c9 to
9efa4dd
Compare
|
Gentle ping for review. (Rebased onto current main — the branch is now mergeable again.) Two things worth flagging on this one beyond the diff itself:
No production code touched; no-op on POSIX where |
|
Thanks for the focused Windows regression fix. Current main still formats the two No blocking issue found in this two-line test-only change. The related direct shell-path interpolations in Automated hermes-sweeper review. |
9efa4dd to
d0e27df
Compare
|
Maintenance update: rebased onto current |
d0e27df to
74b24c6
Compare
|
Second-pass maintenance: the original separator fix was not sufficient for spaces or shell metacharacters. The two sentinels now use |
SummaryThree PRs are associated with this complex. #52000 and #52001 propagate session_id through execute_code and its local and remote nested-tool RPC paths, while #63641 only shell-quotes Windows sentinel paths in an unrelated test file. Related pull requests
Duplicates#52000 and #52001 implement substantially the same session_id propagation; #52001 is the closed duplicate of #52000. #63641 is not part of that duplicate set. Suggested consolidationKeep #52000 open with a salvage path: preserve its explicit registry contract, local and remote RPC propagation, rpc_token handling, and focused regressions; this follows the recorded best-fix designation and the maintainer-bot keep_open review without making a merge recommendation. Keep #52001 closed as duplicate of #52000, and keep #63641 open for separate triage of its reviewed Windows path-quoting fix rather than associating it with #51931. Cross-PR triage: Reviewed 3 pull requests and 1 issue in this complex. Each diff was read against this issue; Assessment working set: 24 kB of PR diffs, 19 kB of issue/PR text, 8 kB of discussion (13 comments), 3 verify verdicts. verdicts reflect diff content, not PR titles. Part of an automated triage batch. |
What & why
These two regression tests interpolate a
pathlib.Pathinto a Bash command. On native Windows, the terminal uses Git Bash: backslashes are consumed as escapes, and an unquoted path with spaces can be split into multiple arguments. The originalas_posix()fix addressed separators but not shell metacharacters or spaces.Change
shlex.quote(sentinel.as_posix()).Validation
ruffandpy_compilepass.This remains a focused test-only fix. Related direct Bash path interpolations in
test_file_tools_live.pyare separate follow-up work.