tests: run both PowerShell shells in parallel in startup_run_ps1 #2487

Manually merged
github merged 3 commits from gh-pr/2487/head into gh-pr/2487/base 2026-11-27 00:56:18 +00:00
Owner

@⁠tedin7 on GitHub · 2026-11-25 18:14 UTC · original
tedin7:x2w-speed-startup-run-ps1 → main · +41 −30 · 1 files · 3 commits · merged 2026-11-26 00:21 UTC

Part of #870 (no open CI-time issue found; nearest orchestration issue)

What this unblocks: shorter Windows checks per merge.

startup_run_ps1 runs 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:

  • The per-shell body moved unchanged into shell_failures(shell, script, tmp). Same cases, same mutants, same asserts, same messages.
  • Each case already uses its own tempfile.mkdtemp directory, so the two shells share no files.
  • Results are collected in shell order, so the FAIL lines and the final summary line are unchanged.
  • The ctest name startup_run_ps1 is unchanged (no CMake change), so name-pinning checks are not affected.

Verification:

  • python3 -m py_compile tests/startup_run_ps1_check.py: OK
  • python3 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)
  • Win2025 dev+release: pending Stage-2

AI-assisted; commands listed were executed locally.

**@⁠tedin7** on GitHub · 2026-11-25 18:14 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2487) `tedin7:x2w-speed-startup-run-ps1` → `main` · +41 −30 · 1 files · 3 commits · merged 2026-11-26 00:21 UTC Part of #870 (no open CI-time issue found; nearest orchestration issue) What this unblocks: shorter Windows checks per merge. `startup_run_ps1` runs 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: - The per-shell body moved unchanged into `shell_failures(shell, script, tmp)`. Same cases, same mutants, same asserts, same messages. - Each case already uses its own `tempfile.mkdtemp` directory, so the two shells share no files. - Results are collected in shell order, so the FAIL lines and the final summary line are unchanged. - The ctest name `startup_run_ps1` is unchanged (no CMake change), so name-pinning checks are not affected. Verification: - `python3 -m py_compile tests/startup_run_ps1_check.py`: OK - `python3 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)` - Win2025 dev+release: pending Stage-2 AI-assisted; commands listed were executed locally.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 00:56:16 +00:00
github manually merged commit 89039b22a2 into gh-pr/2487/base 2026-11-27 00:56:18 +00:00
Author
Owner

@⁠tedin7 on GitHub · 2026-11-25 18:55 UTC · original

Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit dec44b2ba37c71c598c4fed20775f4ee607ed496:

  • Debug (--preset dev):
    • Build (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 (configure 1.67s)
    • Test (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_ps1 8.49s, cpu_aot_sse_fp_pd 21.23s, cpu_aot_x87_fprem 20.26s, cpu_aot_xchg 33.21s, cpu_aot_sse_fp_pd_logic 0.82s, cpu_aot_sse_fp_pd_moves_cmp 6.12s, cpu_aot_x87_scale 15.27s, startup_debug 47.51s)
  • Release /O2 (--preset release):
    • Build (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 (configure 1.68s)
    • Test (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_ps1 8.53s, cpu_aot_sse_fp_pd 21.22s, cpu_aot_x87_fprem 19.99s, cpu_aot_xchg 31.33s, cpu_aot_sse_fp_pd_logic 0.84s, cpu_aot_sse_fp_pd_moves_cmp 6.09s, cpu_aot_x87_scale 15.04s, startup_debug 47.62s)
  • Windows Python checks: tests/startup_run_ps1_check.py ok (7.7s)
  • Wall: 114.9s
**@⁠tedin7** on GitHub · 2026-11-25 18:55 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2487#issuecomment-7171590411) Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit `dec44b2ba37c71c598c4fed20775f4ee607ed496`: - **Debug (`--preset dev`)**: - Build (`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` (configure `1.67s`) - Test (`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_ps1` `8.49s`, `cpu_aot_sse_fp_pd` `21.23s`, `cpu_aot_x87_fprem` `20.26s`, `cpu_aot_xchg` `33.21s`, `cpu_aot_sse_fp_pd_logic` `0.82s`, `cpu_aot_sse_fp_pd_moves_cmp` `6.12s`, `cpu_aot_x87_scale` `15.27s`, `startup_debug` `47.51s`) - **Release `/O2` (`--preset release`)**: - Build (`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` (configure `1.68s`) - Test (`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_ps1` `8.53s`, `cpu_aot_sse_fp_pd` `21.22s`, `cpu_aot_x87_fprem` `19.99s`, `cpu_aot_xchg` `31.33s`, `cpu_aot_sse_fp_pd_logic` `0.84s`, `cpu_aot_sse_fp_pd_moves_cmp` `6.09s`, `cpu_aot_x87_scale` `15.04s`, `startup_debug` `47.62s`) - **Windows Python checks**: `tests/startup_run_ps1_check.py` ok (`7.7s`) - Wall: `114.9s`
Author
Owner

@⁠tedin7 on GitHub · 2026-11-25 21:17 UTC · original

Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit 89039b22a23a7b52b97da467ee1b1cf40f6d4ad3:

  • Windows Python checks: tests/startup_run_ps1_check.py ok (8.4s)
  • Wall: 18.5s

AI-assisted; commands listed were executed locally.

**@⁠tedin7** on GitHub · 2026-11-25 21:17 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2487#issuecomment-7174868741) Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit `89039b22a23a7b52b97da467ee1b1cf40f6d4ad3`: - **Windows Python checks**: `tests/startup_run_ps1_check.py` ok (`8.4s`) - Wall: `18.5s` AI-assisted; commands listed were executed locally.
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-25 21:46 UTC · original · edited 2026-11-25 21:48 UTC

Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T21:48:31.551189Z 89039b2 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review" or "@⁠codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-25 21:46 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2487#issuecomment-7175524048) · edited 2026-11-25 21:48 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"89039b22a23a7b52b97da467ee1b1cf40f6d4ad3","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-25T21:48:31.551189Z">2026-11-25T21:48:31.551189Z</relative-time> | `89039b2` | Draft marked ready | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review" or "@⁠codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
This discussion has been locked. Commenting is limited to contributors.
No description provided.