Scripts: preserve trailing backslashes in native smoke paths #2711
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2721"
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 ivall/xcl. Originally posted by luckyteagirl on 2026-11-26T08:26:13Z.
For a native
xcl.exelauncher,scripts/smoke.ps1constructs a quotedrunargument. If the-Gamepath ends in a backslash, that backslash escapes the closing quote in Windows argument parsing: the executable receives a trailing"instead of the requested path. Double only the terminal backslashes before the closing quote.What is in it
scripts/smoke.ps1: escape terminal backslashes in the native.exeargument path; keep the separate.cmd/.batlaunch path intact.scripts/smoke-native-arguments.tests.ps1: use a real Python executable as a synthetic launcher and check the exact received path for zero, one, and two terminal backslashes and a drive root.Tested
powershell.exe -NoProfile -File .\scripts\smoke-native-arguments.tests.ps1andpwsh.exe -NoProfile -File .\scripts\smoke-native-arguments.tests.ps1: both passed on this head.scripts/test-smoke-artifacts.tests.ps1andscripts/smoke-title.tests.ps1: each passed in both PowerShell versions (six focused invocations passed in total).git diff HEAD^ HEAD --check: passed.Not tested
PATH.AI use
Imported from ivall/xcl. Originally posted by RavenCurseBurg on 2026-11-26T08:42:16Z.
I compared exact heads
18d6817af378and #588 at1707802. On both, a native stand-in received exactlyrunand the supplied directory argument in both shells. Cases covered a spaced Unicode directory, one and two trailing backslashes, a drive root, and a relative path ending in a backslash. On mainb49be183, the native child received the wrong argument for all four backslash-ending cases. On this head the batch launcher also received the original argument in all five cases per shell.The change merges cleanly with #2684 at
a9d11d6c6f85(tree2bcfce2842f47a079940736b28e9158bb689f68a). With the PowerShell working location deliberately different from the process directory, the combined script sent the path resolved against the PowerShell location to both launchers. This head alone preserved the relative spelling. The native quoting behavior therefore overlaps with #588, while relative-path resolution was supplied by #2684. The native-arguments, artifact and title fixtures on this head all passed in both shells; the fixtures used a stand-in for adapter discovery.Windows PowerShell 5.1 and PowerShell 7.6.9 on Windows 11. OpenAI Codex (GPT-6) prepared and ran the fixtures. Synthetic logs, reports and immediately exiting launchers only; no game, GPU workload or workspace build.
Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-27T06:59:33Z.
Superseded by #588, which fixes the same trailing-backslash argument quoting in smoke.ps1. Its native fixture covers zero, one, and two trailing backslashes; the same doubling also covers a drive root. Keeping #588 as the single implementation for review.
Pull request closed