Skip to content

Resolve relative smoke launcher path - #2672

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

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

Conversation

@luckyteagirl

Copy link
Copy Markdown
Contributor

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.

@luckyteagirl
luckyteagirl marked this pull request as ready for review November 26, 2026 05:48
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

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.

@Foniass

Foniass commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Triage (#1607) – head da68350

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.

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

Labels

stale No activity for 3 days; closed 4 days later unless something happens

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants