tests: run both PowerShell shells in parallel in startup_run_ps1 #2479
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2487"
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-25T18:14:51Z.
Part of #870 (no open CI-time issue found; nearest orchestration issue)
What this unblocks: shorter Windows checks per merge.
startup_run_ps1runs the whole check once per PowerShell found (Windows PowerShell 5.1, then PowerShell 7), one after the other. PowerShell start-up dominates, so the test takes about 30-37 s on Windows. This change runs the per-shell work in one thread per shell. Expected saving: about 15-20 s of wall time for this test.Coverage is identical:
shell_failures(shell, script, tmp). Same cases, same mutants, same asserts, same messages.tempfile.mkdtempdirectory, so the two shells share no files.startup_run_ps1is unchanged (no CMake change), so name-pinning checks are not affected.Verification:
python3 -m py_compile tests/startup_run_ps1_check.py: OKpython3 tests/startup_run_ps1_check.py --text-only:startup run.ps1 exit code: 0 failed (text only: requested)python3 tests/startup_run_ps1_check.py(Linux):0 failed (text only: not a Windows host)AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T18:55:37Z.
Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
dec44b2ba37c71c598c4fed20775f4ee607ed496:--preset dev):cmake --build --preset dev --target startup_debug_probe startup_debug_calls cpu_xchg cpu_xchg_lifted cpu_xchg_oneway cpu_xchg_plain cpu_sse_fp_pd_original cpu_sse_fp_pd_original_lifted cpu_sse_fp_pd_altered_lifted cpu_sse_fp_harness cpu_x87_harness cpu_x87_fprem cpu_x87_fprem_d63 cpu_x87_fprem_halfnear cpu_x87_fprem_lifted cpu_x87_fprem_nonan cpu_x87_fprem_nopartial cpu_x87_fprem_qswap cpu_x87_fprem_tieup cpu_x87_fprem_truncate1 cpu_x87_fprem_zerosign cpu_x87_scale cpu_x87_scale_chop cpu_x87_scale_floor cpu_x87_scale_lifted cpu_x87_scale_neginf cpu_x87_scale_pc53 cpu_x87_scale_swap cpu_x87_scale_zeroinf -- -j 2):0.09s(configure1.67s)ctest --preset dev -R '^(startup_debug|startup_run_ps1|cpu_aot_sse_fp_pd|cpu_aot_x87_fprem|cpu_aot_x87_scale|cpu_aot_xchg)' --parallel 4 --no-tests=error --output-on-failure): 8/8 passed (47.61s:startup_run_ps18.49s,cpu_aot_sse_fp_pd21.23s,cpu_aot_x87_fprem20.26s,cpu_aot_xchg33.21s,cpu_aot_sse_fp_pd_logic0.82s,cpu_aot_sse_fp_pd_moves_cmp6.12s,cpu_aot_x87_scale15.27s,startup_debug47.51s)/O2(--preset release):cmake --build --preset release --target startup_debug_probe startup_debug_calls cpu_xchg cpu_xchg_lifted cpu_xchg_oneway cpu_xchg_plain cpu_sse_fp_pd_original cpu_sse_fp_pd_original_lifted cpu_sse_fp_pd_altered_lifted cpu_sse_fp_harness cpu_x87_harness cpu_x87_fprem cpu_x87_fprem_d63 cpu_x87_fprem_halfnear cpu_x87_fprem_lifted cpu_x87_fprem_nonan cpu_x87_fprem_nopartial cpu_x87_fprem_qswap cpu_x87_fprem_tieup cpu_x87_fprem_truncate1 cpu_x87_fprem_zerosign cpu_x87_scale cpu_x87_scale_chop cpu_x87_scale_floor cpu_x87_scale_lifted cpu_x87_scale_neginf cpu_x87_scale_pc53 cpu_x87_scale_swap cpu_x87_scale_zeroinf -- -j 2):47.61s(configure1.68s)ctest --preset release -R '^(startup_debug|startup_run_ps1|cpu_aot_sse_fp_pd|cpu_aot_x87_fprem|cpu_aot_x87_scale|cpu_aot_xchg)' --parallel 4 --no-tests=error --output-on-failure): 8/8 passed (47.72s:startup_run_ps18.53s,cpu_aot_sse_fp_pd21.22s,cpu_aot_x87_fprem19.99s,cpu_aot_xchg31.33s,cpu_aot_sse_fp_pd_logic0.84s,cpu_aot_sse_fp_pd_moves_cmp6.09s,cpu_aot_x87_scale15.04s,startup_debug47.62s)tests/startup_run_ps1_check.pyok (7.7s)114.9sImported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T21:17:09Z.
Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
89039b22a23a7b52b97da467ee1b1cf40f6d4ad3:tests/startup_run_ps1_check.pyok (8.4s)18.5sAI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-25T21:46:38Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
89039b2ℹ️ 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.