Scripts: keep smoke settings out of the calling shell #2704
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2714"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-26T08:05:50Z.
scripts/smoke.ps1currently changes the calling PowerShell session: it leavesXCL_NETWORK=0and removes any pre-existingXCL_RUN_SECONDSandXCL_ACTIVITYafter a run. Set these three overrides on the launched XCL process instead, so repeated or interactive smoke runs do not change the caller's settings.What is in it
scripts/smoke.ps1: put the three run settings inProcessStartInfo.EnvironmentVariables.scripts/test-smoke-artifacts.tests.ps1: check that the mock child receives0,5,1while the caller retains its original settings. This assertion failed on the parent commit before the fix.README.md: document the launcher's environment scope.Tested
powershell.exe -NoProfile -File .\scripts\test-smoke-artifacts.tests.ps1: passed.pwsh.exe -NoProfile -File .\scripts\test-smoke-artifacts.tests.ps1: passed.powershell.exe -NoProfile -File .\scripts\smoke-title.tests.ps1: passed.pwsh.exe -NoProfile -File .\scripts\smoke-title.tests.ps1: passed..\scripts\test.ps1: workspace build passed; the unfilteredxcl --librun aborted with0xc0000005in the known RX 6800M DXIL test path, so it produced no complete suite count. A subsequent run with--skip gpu::dxil::core_tests::raw_loads_in_root_windows_respect_exec_and_boundscompleted its library harness with 1111 passed, 197 failed, 27 ignored, 1 filtered out; many failures reported an unavailable D3D12 device and a suspect driver state after the abort. These runs do not establish a passing GPU suite.Not tested
AI use
9f48d39f, assisted by OpenAI Codex (GPT-6) for implementation and Windows CPU verification.Imported from ivall/xcl. Originally posted by RavenCurseBurg on 2026-11-26T08:42:10Z.
On
e07279eb34ae634f863b88d15f9b99fd85953067, the caller kept its original environment across a successful launch, a process-start failure and a child that returned without a log path. I checked absent and pre-existing values in both shells, plus present-but-empty values in PowerShell 7 (15 cases). On runs that started a child, its actual environment containedXCL_NETWORK=0,XCL_RUN_SECONDS=3andXCL_ACTIVITY=1.The artifact test fixture itself had a separate caller-visible effect. In PowerShell 7.6.9 I removed all three variables, invoked
scripts/test-smoke-artifacts.tests.ps1in that same process, then read them back. Its assertions passed, but cleanup recreated all three as empty strings. On 5.1 they stayed absent. The fixture cleanup fix explicitly removes previously absent entries and restores saved strings. All five restoration cases passed on the candidate (absent/seeded on both shells and empty on 7). The smoke launcher is unchanged by this commit. I also exercised the debug-switch interaction on the #2039 rebase.Windows PowerShell 5.1 and PowerShell 7.6.9 on Windows 11. OpenAI Codex (GPT-6) prepared and ran the fixtures. Synthetic logs, reports and immediately exiting launchers only; no game, GPU workload or workspace build.
Retest on
9f48d39fc42d957cd7bd01e648afab93c78012d2The head now includes the fixture cleanup commit tested above. I reran
scripts/test-smoke-artifacts.tests.ps1in the same shell and read back all three caller settings after each run. All five restoration cases passed: absent and seeded values on Windows PowerShell 5.1 and PowerShell 7, plus present-empty values on PowerShell 7. The checked-in fixture also verified the child received0,5,1.OpenAI Codex (GPT-6) ran the synthetic fixtures on Windows 11. No retail title, GPU workload or Rust workspace build was used.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:47:29Z.
Triage (#1607) – head
9f48d39Main already has this change. Commit
50f2961(#3460) movedXCL_NETWORK,XCL_RUN_SECONDSandXCL_ACTIVITYinscripts/smoke.ps1to$psi.EnvironmentVariablesand removed theRemove-Item Env:.... That is the same change as here. It also extendedtest-smoke-artifacts.tests.ps1to check both the child values and the caller's values. #521 fixes the same problem by saving and restoring$env:aroundStart().Only the README sentence is not on main.
Recommendation: close (superseded by main commit
50f2961/ #3460).AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Imported from ivall/xcl. Originally posted by throny on 2026-12-01T12:59:00Z.
Closing as superseded: this change is already on
main(50f2961). main smoke.ps1 sets XCL_NETWORK/XCL_RUN_SECONDS/XCL_ACTIVITY on $psi.EnvironmentVariables (lines 57-61,50f2961#3460), no Remove-Item of the caller's env; only README sentence differsTwo independent checks found this: Foniass's close list on #1607 and ours against current
main. If something here is still missing onmain, say so and reopen it, or ask and I will.AI use: Claude Code (Claude Opus 5.5); the per-PR comparison was done by Claude Sonnet 5.5 sub-agents.
Pull request closed