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

Merged
tedin7 merged 3 commits from upstream-pr/2487 into main 2026-11-26 00:21:28 +00:00
tedin7 commented 2026-11-25 18:14:51 +00:00 (Migrated from github.com)

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_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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6610814885 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2487). Originally posted by [tedin7](https://github.com/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_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 commented 2026-11-25 19:04:17 +00:00 (Migrated from github.com)

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:

  • 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
<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7171590411 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2487#issuecomment-7171590411). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T18:55:37Z. --- 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 commented 2026-11-25 22:02:17 +00:00 (Migrated from github.com)

Imported 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:

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

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7174868741 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2487#issuecomment-7174868741). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T21:17:09Z. --- 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.
chatgpt-codex-connector[bot commented 2026-11-25 22:02:22 +00:00 (Migrated from github.com)

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.

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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7175524048 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2487#issuecomment-7175524048). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-25T21:46:38Z. --- <!-- 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>
upstream-sync closed this pull request 2026-11-26 01:01:51 +00:00
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
R0Y00/Xbox2Windows!2479
No description provided.