You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
smoke.ps1 checks a relative -Xcl path against PowerShell's current location. The process launcher can resolve that same string from a different working directory after Push-Location, so the launcher fails to start or starts the wrong file.
What is in it
Resolve -Xcl to a filesystem path before passing it to the process launcher.
Add a mock launcher regression that changes PowerShell's location and passes -Xcl .\xcl.cmd.
Tested
The relative launcher fixture failed against main b49be183 on PowerShell 5.1 and 7.6.9, and passed with the patch.
scripts/test-smoke-relative-xcl.tests.ps1 and scripts/test-smoke-artifacts.tests.ps1 passed on both shells. A separate run with spaces in the mock launcher directory also passed on both.
git diff --check passed.
Regression run
Not applicable. This changes only the smoke script and its test.
Not tested
A retail run or the Rust/GPU suite. The regression runs a mock .cmd launcher.
AI use
Codex (GPT-6.2 Sol) implemented the change and test, verified behavior against main, and drafted this description.
Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
No open or merged PR resolves -Xcl. #2684 fixes the same kind of problem for -Game, and #2351 resolves -Xcl only to infer the build profile and still passes the relative path to the process. Its shared lines with #2667, #2684 and #2654 are test fixture boilerplate. ProcessStartInfo resolves a relative FileName (and cmd /c its argument) against the process's current directory, not the PowerShell location. Resolving $Xcl after the Test-Path check fixes that.
Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
staleNo activity for 3 days; closed 4 days later unless something happens
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
smoke.ps1checks a relative-Xclpath against PowerShell's current location. The process launcher can resolve that same string from a different working directory afterPush-Location, so the launcher fails to start or starts the wrong file.What is in it
-Xclto a filesystem path before passing it to the process launcher.-Xcl .\xcl.cmd.Tested
b49be183on PowerShell 5.1 and 7.6.9, and passed with the patch.scripts/test-smoke-relative-xcl.tests.ps1andscripts/test-smoke-artifacts.tests.ps1passed on both shells. A separate run with spaces in the mock launcher directory also passed on both.git diff --checkpassed.Regression run
Not tested
.cmdlauncher.AI use