Scripts: keep smoke runs on the JIT path #3453
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3453"
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 bmjask on 2026-11-29T19:04:22Z.
Smoke is a bounded runtime regression check, but it inherited
XCL_PREPAREfrom the caller and could spend its startup timeout preparing a full corpus. ForceXCL_PREPARE=0only in the launched child process so smoke consistently exercises the runtime/JIT path without changing the caller's environment.What is in it
scripts/smoke.ps1: launch smoke runs with startup preparation disabled and document the intended split between smoke and AOT testing.scripts/test-smoke-artifacts.tests.ps1: prove the child receivesXCL_PREPARE=0while the caller's existing value remains unchanged.Tested
./scripts/test-smoke-artifacts.tests.ps1: all assertions passed../scripts/smoke-title.tests.ps1: passed../scripts/test.ps1: 2,737 passed, 0 failed, 49 ignored; 29 GPU tests explicitly reportedSKIPPEDfor unsupported adapter/configuration features.Not tested
crates/xcl/src, and the child environment is covered with the mock launcher.AI use
Imported from ivall/xcl. Originally posted by andrewDoing on 2026-11-29T19:12:42Z.
I ran the same mock launcher through clean main
0fe06eb0and PR head3ad7e458on PowerShell 7.6.9 and Windows PowerShell 5.1.26100.10068. The caller started withXCL_PREPARE=1 XCL_NETWORK=1 XCL_RUN_SECONDS=777 XCL_ACTIVITY=0and requested a five-second smoke.XCL_PREPAREXCL_NETWORKXCL_RUN_SECONDSXCL_ACTIVITYAccessing
ProcessStartInfo.EnvironmentVariablesto setXCL_PREPAREsnapshots the caller's environment. The later$env:writes therefore change the caller without reaching the child. Leaving the three other settings inherited can enable networking, lose the guest's exit timer, and suppress activity samples during a smoke.I put all four overrides in the same child environment in this companion commit, with assertions for the child and caller. The new assertion failed as expected against the unchanged PR script. The companion passed both
scripts/test-smoke-artifacts.tests.ps1andscripts/smoke-title.tests.ps1on both shells. It also clarifies the staged-corpus exception in the header. The runtime honorsXCL_PREPARE=0only when the title lacks.xcl/pso-corpus.Windows 11 build 26300.10075, RTX 5070, Ryzen 7 5700X3D. The tests launched only a mock process. No title, network request, or AOT preparation ran. Codex with GPT-6.2 Sol wrote and tested the fixture and companion change.