tests: make startup_run_ps1_check stable under parallel load #2713
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2721"
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 R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T03:31:13Z.
Part of #1758
What this unblocks: Win2025 runs no longer fail on
tests/startup_run_ps1_check.pywhen PowerShell wraps its warning line.Follows #2487 (both PowerShell shells now run in parallel in this check).
Cause: the launcher's
Write-Warningtext is long. PowerShell wraps it at the host width it finds, so under parallel load the one warning sometimes arrives as two printed lines (... host gaming runtimeand(docs/startup-runtime.md).). The check compared the printed lines one to one and failed withstub exit N: printed [...], expected [...].Change:
unwrap_first_line()joins the leading printed lines back into the expected warning, only when they form exactly that text. Any other text is still compared as printed, so the real assertions stay. A host-independent control (unwrap_problems()) covers one line, a wrapped line, different text and a missing warning.Verification:
python3 -B tests/startup_run_ps1_check.pyon Linux:0 failed (text only: not a Windows host).FAIL unwrap_first_line wrapped at 80 columnsand exits 1.git diff --check: clean.AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T03:47:59Z.
Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
7e91b68eb03d93e90a807f8f240e0982ba65621a:tests/startup_run_ps1_check.pyok (20.5s)46.8sAI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T03:48:02Z.
@MasterDomino ready for review/merge.
7e91b68eb03d93e90a807f8f240e0982ba65621a(tests/startup_run_ps1_check.py only).tests/startup_run_ps1_check.pyran with real PowerShell and passed. The change touches only this Python check, so no C++ target was built (no build/ctest targets were selected, so the release build did not run separately).AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T03:48:15Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
7e91b68ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-26T05:02:58Z.
Review: APPROVED
Approving
7e91b68e.unwrap_first_linejoins the leading lines only when they spell exactly the expected warning, so every other printed difference is still compared as before. The host-independent controls cover the one-line, wrapped, different-text and missing cases.Runs at this head (Windows 11 build 26300, Windows PowerShell 5.1 and
pwsh):python -B tests/startup_run_ps1_check.py: 5/5 runs, "0 failed (executed with powershell, pwsh)".FAIL unwrap_first_line wrapped at 80 columns, and the check exits with "1 failed". Restored afterwards.AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by RonLogic on 2026-11-26T16:16:32Z.
Independent Windows verification at
7e91b68eb03d93e90a807f8f240e0982ba65621a:python -B tests/startup_run_ps1_check.pypassed on four executions, each exercising Windows PowerShell andpwshside by side, including the wrapped-warning and wrong-text controls. The initial managed-shell attempt was inconclusive becausetasklistcould not inspect the fixture stubs and left a log open. With normal Windows process inspection available, all four complete runs reported zero failures.