Skip to content

Resolve relative game path in smoke runs - #2684

Open
luckyteagirl wants to merge 1 commit into
xcl-dev:mainfrom
luckyteagirl:codex/smoke-resolve-relative-game
Open

luckyteagirl wants to merge 1 commit into
xcl-dev:mainfrom
luckyteagirl:codex/smoke-resolve-relative-game

Conversation

@luckyteagirl

Copy link
Copy Markdown
Contributor

smoke.ps1 passes -Game to a native launcher. When the caller has changed PowerShell's location, a relative game path can resolve differently in the child, and the same folder can get a different title hash.

What is in it

  • Resolve relative -Game paths against the caller's PowerShell location before computing the title hash and launching XCL.
  • Add a stand-in launcher fixture for a path with spaces and for -Game ..

Tested

  • The focused fixture failed on main b49be183 and passed at this patch on Windows PowerShell 5.1 and PowerShell 7. Absolute, relative, and . forms of the same folder produced the same title hash.
  • The existing smoke title and artifact fixtures passed on both shells.
  • Combined cleanly with open Resolve relative smoke launcher path #2672, which resolves relative -Xcl; both focused fixtures and a temporary case with both arguments relative passed on both shells.
  • git diff --check passed.

Regression run

  • Not applicable. The change affects only the smoke script and uses a stand-in launcher.

Not tested

  • A retail title, native xcl.exe, or GPU tests.

AI use

  • Codex (GPT-6.2 Sol) implemented and reviewed the fix and ran the PowerShell fixtures.

@luckyteagirl luckyteagirl left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On a9d11d6c6f85367c10c77e3b5275987405b50904, the new relative-path resolution turns -Game . into a drive-root path when the caller is at that root (for example C:\). The unchanged native argument assembly then appends run "C:\"; under Windows command-line parsing, that trailing backslash escapes the closing quote, so XCL receives C:" rather than the root path. A small native argv probe using this exact resolution/assembly reproduced the difference: base-style . arrives as ., while the new resolved root arrives with an extra quote. Could this PR include the trailing-backslash escaping from #2721, or land after that fix, and add a native -Game . fixture from a drive root? The .cmd-only fixture does not exercise this native path. This is a CPU-only argument probe, not a title run.

AI use: OpenAI Codex (GPT-6.2 Sol) found and probed the interaction; OpenAI Codex (GPT-6.2 Astra) checked the current source and drafted this review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant