tests: make startup_run_ps1_check stable under parallel load #2721
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!2721
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2721/head"
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?
@tedin7 on GitHub · 2026-11-26 03:31 UTC · original
tedin7:test/run-ps1-stable-under-load→main· +30 −1 · 1 files · 2 commits · merged 2026-11-26 05:03 UTCPart 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.
@tedin7 on GitHub · 2026-11-26 03:47 UTC · original
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.
@tedin7 on GitHub · 2026-11-26 03:48 UTC · original
@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.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-26 03:48 UTC · original · edited 2026-11-26 03:56 UTC
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.
@MasterDomino on GitHub · 2026-11-26 05:02 UTC · original · approved these changes
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.
@RonLogic on GitHub · 2026-11-26 16:16 UTC · original
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.