Scripts: preserve trailing backslashes in smoke game paths #588

Open
github-bot wants to merge 1 commit from github-bot/gh-588 into main AGit
Owner

@⁠luna020924 on GitHub · 2026-11-24 02:12 UTC · original
luna020924:smoke-windows-path → main · +48 −1 · 2 files · 1 commits · open

A directory passed to smoke.ps1 -Game can end in a backslash. On the Windows command line that backslash escapes the closing quote, so the child receives a quote in place of the separator. Double the trailing backslashes when quoting the argument.

What is in it

  • scripts/smoke.ps1 preserves the exact directory argument. The regression test uses a native fixture to check a path with spaces and zero, one or two trailing backslashes.

Tested

  • Windows 11 build 26200, Ryzen 7 2700X, GeForce RTX 5060 Ti 16 GB (driver 610.88), rustc 1.100.0 MSVC x64 and DXC 1.9.2609.5. Debug build in the Windows login session.
  • scripts\smoke-game-path.tests.ps1 failed against the 9ce2070 smoke script and passed at 1707802 in Windows PowerShell 5.1.26100.8875 and PowerShell 7.7.0. The fixture receives a literal trailing quote on main and the original argument on the PR head.
  • cargo build --locked --workspace --jobs 3 passed on 9ce2070 and 1707802.
  • cargo test --locked --workspace --no-fail-fast --jobs 3 -- --test-threads=4 --show-output reported 684 passed, 0 failed and 41 ignored on both 9ce2070 and 1707802.
  • SKIPPED on both revisions: gpu_geometry_wave32_prefix_count_over_a_mask and gpu_wave32_program_in_wave64_hardware (no native wave64). libtest includes both in the passed count.

Regression run

  • Script-only change.

Not tested

  • Retail titles, optional game samples, or AMD GPUs.

AI use

  • OpenAI Codex (GPT-6.2 Sol) wrote the fix, regression test and description and ran the checks.
**@⁠luna020924** on GitHub · 2026-11-24 02:12 UTC · [original](https://github.com/xcl-dev/xcl/pull/588) `luna020924:smoke-windows-path` → `main` · +48 −1 · 2 files · 1 commits · open A directory passed to `smoke.ps1 -Game` can end in a backslash. On the Windows command line that backslash escapes the closing quote, so the child receives a quote in place of the separator. Double the trailing backslashes when quoting the argument. **What is in it** - `scripts/smoke.ps1` preserves the exact directory argument. The regression test uses a native fixture to check a path with spaces and zero, one or two trailing backslashes. **Tested** - Windows 11 build 26200, Ryzen 7 2700X, GeForce RTX 5060 Ti 16 GB (driver 610.88), rustc 1.100.0 MSVC x64 and DXC 1.9.2609.5. Debug build in the Windows login session. - `scripts\smoke-game-path.tests.ps1` failed against the `9ce2070` smoke script and passed at `1707802` in Windows PowerShell 5.1.26100.8875 and PowerShell 7.7.0. The fixture receives a literal trailing quote on `main` and the original argument on the PR head. - `cargo build --locked --workspace --jobs 3` passed on `9ce2070` and `1707802`. - `cargo test --locked --workspace --no-fail-fast --jobs 3 -- --test-threads=4 --show-output` reported 684 passed, 0 failed and 41 ignored on both `9ce2070` and `1707802`. - `SKIPPED` on both revisions: `gpu_geometry_wave32_prefix_count_over_a_mask` and `gpu_wave32_program_in_wave64_hardware` (no native wave64). libtest includes both in the passed count. **Regression run** - Script-only change. **Not tested** - Retail titles, optional game samples, or AMD GPUs. **AI use** - OpenAI Codex (GPT-6.2 Sol) wrote the fix, regression test and description and ran the checks.
Windows treats a backslash before a quoted argument terminator as an escaped quote. Double the trailing backslashes so the child receives the complete path.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:26:30 +00:00
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-24 02:32 UTC · original

Tested exact head 1707802.

Tested

  • Windows 11 Home 26300, Windows PowerShell 5.1.26100.9818 (no PowerShell 7 on this machine).
  • powershell -NoProfile -File scripts/smoke-game-path.tests.ps1 on 1707802: passed (exit 0): Passed: paths with spaces and zero, one or two trailing backslashes.
  • Control: the same test file against scripts/smoke.ps1 of the parent commit 9ce2070: fails (exit 1) with Expected argv 'run', '...\Game With Spaces\'; received 'run', '...\Game With Spaces"' (the trailing backslash escaped the closing quote). So the test catches what the PR fixes.
  • scripts/test-native-stderr.tests.ps1 on 1707802: passed.

Not tested

  • PowerShell 7 (pwsh), a real scripts/smoke.ps1 run on a title (no title on this machine), the Rust suite (the PR changes no Rust).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and the control and wrote this report. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-24 02:32 UTC · [original](https://github.com/xcl-dev/xcl/pull/588#issuecomment-7120241440) Tested exact head `1707802`. **Tested** - Windows 11 Home 26300, Windows PowerShell 5.1.26100.9818 (no PowerShell 7 on this machine). - `powershell -NoProfile -File scripts/smoke-game-path.tests.ps1` on `1707802`: passed (exit 0): `Passed: paths with spaces and zero, one or two trailing backslashes.` - Control: the same test file against `scripts/smoke.ps1` of the parent commit `9ce2070`: fails (exit 1) with `Expected argv 'run', '...\Game With Spaces\'; received 'run', '...\Game With Spaces"'` (the trailing backslash escaped the closing quote). So the test catches what the PR fixes. - `scripts/test-native-stderr.tests.ps1` on `1707802`: passed. **Not tested** - PowerShell 7 (`pwsh`), a real `scripts/smoke.ps1` run on a title (no title on this machine), the Rust suite (the PR changes no Rust). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and the control and wrote this report. I checked it before posting.
Author
Owner

@⁠Alpha325 on GitHub · 2026-11-25 02:43 UTC · original

I expanded the native argv fixture to cover four path types with spaces and a Unicode character: local, extended-length local (\\?\), UNC, and extended-length UNC (\\?\UNC\). Each ran with zero through three trailing backslashes.

  • PR 1707802248c5caaf7971c9b6003d1c49cc53c908: all 16 cases passed per shell. The child received exactly run and the original path, including every trailing backslash.
  • Parent 9ce2070eccf436d7bd38601c90407da447df34f3: each path type passed with zero trailing backslashes and failed at one. The child received a literal quote at the end.

Tested on Windows 11 build 26200 with Windows PowerShell 5.1.26100.9818 and PowerShell 7.6.9 using scripts/smoke-game-path.tests.ps1. The fixture only recorded argv, so no network share or title files were accessed.

AI use — OpenAI Codex (GPT-6) extended the fixture, ran the tests, and drafted this report.

**@⁠Alpha325** on GitHub · 2026-11-25 02:43 UTC · [original](https://github.com/xcl-dev/xcl/pull/588#issuecomment-7151094106) I expanded the native argv fixture to cover four path types with spaces and a Unicode character: local, extended-length local (`\\?\`), UNC, and extended-length UNC (`\\?\UNC\`). Each ran with zero through three trailing backslashes. - PR `1707802248c5caaf7971c9b6003d1c49cc53c908`: all 16 cases passed per shell. The child received exactly `run` and the original path, including every trailing backslash. - Parent `9ce2070eccf436d7bd38601c90407da447df34f3`: each path type passed with zero trailing backslashes and failed at one. The child received a literal quote at the end. Tested on Windows 11 build 26200 with Windows PowerShell 5.1.26100.9818 and PowerShell 7.6.9 using `scripts/smoke-game-path.tests.ps1`. The fixture only recorded argv, so no network share or title files were accessed. AI use — OpenAI Codex (GPT-6) extended the fixture, ran the tests, and drafted this report.
Author
Owner

@⁠JJAutoCompare on GitHub · 2026-11-25 06:43 UTC · original

Empirical test report (17078022)

Hardware / environment

  • Tested commit 1707802248c5caaf7971c9b6003d1c49cc53c908 on Windows build 10.0.26200.9974 with Windows PowerShell 5.1.26100.9818 (Desktop).
  • CPU identifier reported by Windows is AMD64 Family 23 Model 113 Stepping 0, AuthenticAMD. This was a script-only run with a synthetic native executable and no Arc GPU mutex acquired.

Commands and results

  • powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -File $harness exited 0.
  • [System.Management.Automation.Language.Parser]::ParseFile($smoke, [ref]$tokens, [ref]$parseErrors) parsed scripts/smoke.ps1 with 0 errors (1 check passed, 0 failed).
  • & $compiler /nologo /target:exe "/out:$xcl" $source built the C# argument recorder with exit code 0.
  • & $smoke -Game $path -Seconds 1 -Xcl $xcl ran seven times. Each smoke block reported exit 0x0 from the recorder. Native argument checks finished with 7 passed, 0 failed.

Observed behavior

Directory names with and without spaces each passed with zero, one, and two trailing backslashes. The drive-root path passed with its trailing backslash intact. In every case the native process received exactly two arguments, run and the original game path, with an exact string match including the trailing backslash count. The harness ran the checked-out smoke script directly and supplied a synthetic log and adapter report. It intercepted the script's environment cleanup and cleared the same two variables through .NET.

Not tested

Real game smoke runs and Rust workspace GPU tests were omitted. The exit codes above come from the synthetic executable and its harness.

AI use

Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr588-focused.log and published.

**@⁠JJAutoCompare** on GitHub · 2026-11-25 06:43 UTC · [original](https://github.com/xcl-dev/xcl/pull/588#issuecomment-7155087395) ### Empirical test report (17078022) **Hardware / environment** - Tested commit `1707802248c5caaf7971c9b6003d1c49cc53c908` on Windows build `10.0.26200.9974` with Windows PowerShell `5.1.26100.9818` (Desktop). - CPU identifier reported by Windows is `AMD64 Family 23 Model 113 Stepping 0, AuthenticAMD`. This was a script-only run with a synthetic native executable and no Arc GPU mutex acquired. **Commands and results** - `powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -File $harness` exited 0. - `[System.Management.Automation.Language.Parser]::ParseFile($smoke, [ref]$tokens, [ref]$parseErrors)` parsed `scripts/smoke.ps1` with 0 errors (1 check passed, 0 failed). - `& $compiler /nologo /target:exe "/out:$xcl" $source` built the C# argument recorder with exit code 0. - `& $smoke -Game $path -Seconds 1 -Xcl $xcl` ran seven times. Each smoke block reported exit `0x0` from the recorder. Native argument checks finished with 7 passed, 0 failed. **Observed behavior** Directory names with and without spaces each passed with zero, one, and two trailing backslashes. The drive-root path passed with its trailing backslash intact. In every case the native process received exactly two arguments, `run` and the original game path, with an exact string match including the trailing backslash count. The harness ran the checked-out smoke script directly and supplied a synthetic log and adapter report. It intercepted the script's environment cleanup and cleared the same two variables through .NET. **Not tested** Real game smoke runs and Rust workspace GPU tests were omitted. The exit codes above come from the synthetic executable and its harness. **AI use** Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr588-focused.log and published.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 13:06 UTC · original

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-25 13:06 UTC · [original](https://github.com/xcl-dev/xcl/pull/588#issuecomment-7163312089) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
Author
Owner

@⁠RavenCurseBurg on GitHub · 2026-11-25 19:05 UTC · original · edited 2026-11-25 19:11 UTC

I reproduced the conflict in scripts/smoke.ps1. The tested merge commit has this PR's head 1707802 as its first parent and main at 2898511af1c0 as its second. It keeps main's batch-file launcher. Only the native executable path doubles the trailing backslashes before the closing quote.

  • The extended scripts/smoke-game-path.tests.ps1 passed on Windows PowerShell 5.1.26100.9711 and PowerShell 7.6.9. A native executable and a batch file each received exactly run and the supplied game path with a space and a Unicode character, with zero, one and two trailing backslashes (six cases per shell).
  • Two controls failed the new argument assertion in both shells. Testing main's unmodified argument handling failed for the native executable. Applying the native doubling to the batch branch as well failed for the batch file.
  • The existing scripts/smoke-title.tests.ps1 and scripts/test-smoke-artifacts.tests.ps1 also passed in both shells on the clean merge.

Windows 11 build 26100.9711, i7-13700. Synthetic launchers, logs and reports only. No retail files, Rust build or GPU workload. OpenAI Codex (GPT-6) resolved the conflict, extended the regression and ran the checks.

**@⁠RavenCurseBurg** on GitHub · 2026-11-25 19:05 UTC · [original](https://github.com/xcl-dev/xcl/pull/588#issuecomment-7171807432) · edited 2026-11-25 19:11 UTC I reproduced the conflict in `scripts/smoke.ps1`. The [tested merge commit](https://github.com/RavenCurseBurg/xcl/commit/72d11836d8f7a0bf3d6aba86b166060db87a0073) has this PR's head `1707802` as its first parent and `main` at `2898511af1c0` as its second. It keeps main's batch-file launcher. Only the native executable path doubles the trailing backslashes before the closing quote. - The extended `scripts/smoke-game-path.tests.ps1` passed on Windows PowerShell 5.1.26100.9711 and PowerShell 7.6.9. A native executable and a batch file each received exactly `run` and the supplied game path with a space and a Unicode character, with zero, one and two trailing backslashes (six cases per shell). - Two controls failed the new argument assertion in both shells. Testing main's unmodified argument handling failed for the native executable. Applying the native doubling to the batch branch as well failed for the batch file. - The existing `scripts/smoke-title.tests.ps1` and `scripts/test-smoke-artifacts.tests.ps1` also passed in both shells on the clean merge. Windows 11 build 26100.9711, i7-13700. Synthetic launchers, logs and reports only. No retail files, Rust build or GPU workload. OpenAI Codex (GPT-6) resolved the conflict, extended the regression and ran the checks.
This pull request has changes conflicting with the target branch.
  • scripts/smoke.ps1
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/588/head:github-bot/gh-588'
git switch 'github-bot/gh-588'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-588'
git switch 'github-bot/gh-588'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-588'
git switch 'github-bot/gh-588'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-588'
git switch 'main'
git merge --squash 'github-bot/gh-588'
git switch 'main'
git merge --ff-only 'github-bot/gh-588'
git switch 'main'
git merge 'github-bot/gh-588'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.