Scripts: apply smoke overrides to the same child environment #3460

Merged
andrewDoing merged 1 commit from upstream-pr/3460 into main 2026-11-29 22:10:02 +00:00
andrewDoing commented 2026-11-29 20:32:54 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by andrewDoing on 2026-11-29T20:32:54Z.


Follow-up to #3453. Setting XCL_PREPARE through ProcessStartInfo.EnvironmentVariables snapshots the environment before the smoke script sets its other overrides. The child can inherit enabled networking, the caller's run duration, and disabled activity logging. Reproduction on #3453

What is in it

  • Put all four smoke overrides in the child environment snapshot created by #3453. This also leaves the caller's values in place, which is related to #521.
  • Verify the mock child receives the requested settings even when the caller has deliberately conflicting values. Document the staged-corpus exception to skipping startup preparation.

Tested

  • Windows 11 build 26300.10075, Ryzen 7 5700X3D, RTX 5070. The tests ran on exact head 50f29611, parent 1bd9cee1.
  • scripts/test-smoke-artifacts.tests.ps1 and scripts/smoke-title.tests.ps1 passed on PowerShell 7.6.9 and Windows PowerShell 5.1.26100.10068.
  • With the caller set to XCL_PREPARE=1 XCL_NETWORK=1 XCL_RUN_SECONDS=777 XCL_ACTIVITY=0, the unchanged #3453 script launched the mock with 0, 1, 777, 0. With the fix it received 0, 0, 5, 1 for a five-second smoke. The merged main version of the script matches that baseline.

Not tested

Retail title launch, shader preparation, and actual network I/O. The fixture uses a mock process.

AI use

OpenAI Codex with GPT-6.2 Sol investigated, implemented the fix, and ran the script checks.

<!-- greyfinch-sync:ivall/xcl:issue:5554825875 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3460). Originally posted by [andrewDoing](https://github.com/andrewDoing) on 2026-11-29T20:32:54Z. --- Follow-up to #3453. Setting `XCL_PREPARE` through `ProcessStartInfo.EnvironmentVariables` snapshots the environment before the smoke script sets its other overrides. The child can inherit enabled networking, the caller's run duration, and disabled activity logging. [Reproduction on #3453](https://github.com/xcl-dev/xcl/pull/3453#issuecomment-7261097839) **What is in it** - Put all four smoke overrides in the child environment snapshot created by #3453. This also leaves the caller's values in place, which is related to #521. - Verify the mock child receives the requested settings even when the caller has deliberately conflicting values. Document the staged-corpus exception to skipping startup preparation. **Tested** - Windows 11 build 26300.10075, Ryzen 7 5700X3D, RTX 5070. The tests ran on exact head `50f29611`, parent `1bd9cee1`. - `scripts/test-smoke-artifacts.tests.ps1` and `scripts/smoke-title.tests.ps1` passed on PowerShell 7.6.9 and Windows PowerShell 5.1.26100.10068. - With the caller set to `XCL_PREPARE=1 XCL_NETWORK=1 XCL_RUN_SECONDS=777 XCL_ACTIVITY=0`, the unchanged #3453 script launched the mock with `0, 1, 777, 0`. With the fix it received `0, 0, 5, 1` for a five-second smoke. The merged main version of the script matches that baseline. **Not tested** Retail title launch, shader preparation, and actual network I/O. The fixture uses a mock process. **AI use** OpenAI Codex with GPT-6.2 Sol investigated, implemented the fix, and ran the script checks.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!3460
No description provided.