Skip to content

Scripts: run smoke.ps1 on Windows PowerShell 5.1 - #318

Closed
SandimL wants to merge 2 commits into
xcl-dev:mainfrom
SandimL:smoke-ps51-followup
Closed

SandimL wants to merge 2 commits into
xcl-dev:mainfrom
SandimL:smoke-ps51-followup

Conversation

@SandimL

@SandimL SandimL commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Stacked on #281; only commit f52ae3d belongs here.

Windows PowerShell 5.1 does not provide New-TemporaryFile, and its Start-Process fails when the process environment contains both Path and PATH. That made scripts/smoke.ps1 abort before it could run a title on some Windows machines, including the contributor machine used here.

What is in it

  • scripts/smoke.ps1: use System.Diagnostics.ProcessStartInfo with asynchronous stdout/stderr reads instead of New-TemporaryFile plus Start-Process. This works with Windows PowerShell 5.1 and avoids the duplicate-case environment failure.

Tested

Not tested

  • PowerShell 7 on this machine (the pwsh.exe app alias is present but inaccessible).
  • A retail title; the repository test title was used only to exercise the process and report path.

AI use

  • Codex; the exact model name was not exposed in this session. It diagnosed the local failure, wrote the script change, and ran the validation.

grahamster2 and others added 2 commits November 23, 2026 17:21
The gpu line took the first Win32_VideoController that is not the basic
display adapter. On a machine with an iGPU and a discrete GPU that is often
the iGPU: on an RTX 3080 + AMD RDNA2 iGPU machine the block said
"AMD Radeon(TM) Graphics" while XCL ran on the RTX 3080.

The line now comes from d3d12.adapter in the run's report.json (next to the
log; XCL removes the previous run's report at start), without the VRAM
suffix. The Win32 query stays as the fallback when the report or the field
is missing.
@ivall

ivall commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

Merged by cherry-picking both commits (yours and #281's, which it is stacked on) into a6f5f7a. Checked on an RX 9070 (RDNA4) on main a6f5f7a, together with #335, #322, #331, #330, #338, #318 and #332: cargo test --workspace -- --test-threads=4 - 636 unit tests passed, 0 failed; the retail game reaches its menu and draws it (frame dump) and goes on past it.

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.

3 participants