Skip to content

[upstream #1760] Scripts: derive smoke timeout status from the child process - #372

Open
ufoptg wants to merge 1 commit into
mainfrom
upstream-pr/1760
Open

ufoptg wants to merge 1 commit into
mainfrom
upstream-pr/1760

Conversation

@ufoptg

@ufoptg ufoptg commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Set the timeout flag from the child process’s wait result on every run. This keeps a completed run from inheriting a caller’s timeout flag or failing under PowerShell strict mode.

What is in it

  • scripts/smoke.ps1 sets the flag on both wait outcomes.
  • scripts/smoke-exit.tests.ps1 covers a normal exit under strict mode, a caller with $timedOut = $true, and termination after a timeout.

Tested

  • At 389e54f, powershell.exe -NoProfile -ExecutionPolicy Bypass -File scripts/smoke-exit.tests.ps1 and pwsh.exe -NoProfile -File scripts/smoke-exit.tests.ps1 both exited 0 on Windows with a simulated child process.

Not tested

  • Full Cargo workspace suite on a GPU and smoke runs with a retail title.

AI use

  • OpenAI Codex (GPT-6, exact variant unavailable) wrote the fix and regression test, ran the PowerShell checks, and drafted this description.

Mirror of xcl-dev#1760 (auto-synced, do not edit).

Set the timeout flag on both wait outcomes so a caller's variable
or strict mode does not change the report for a completed run.

Assisted-by: OpenAI Codex (GPT-6, exact variant unavailable)
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.

2 participants