Scripts: keep smoke settings out of the calling shell #2714
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2714
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@luckyteagirl on GitHub · 2026-11-26 08:05 UTC · original
luckyteagirl:codex/smoke-child-environment→main· +24 −4 · 3 files · 1 commits · draftscripts/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
@RavenCurseBurg on GitHub · 2026-11-26 08:42 UTC · original · edited 2026-11-26 09:06 UTC
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.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.