ci: run the full Windows suites with CTest in parallel #1166

Merged
tedin7 merged 4 commits from upstream-pr/1173 into main 2026-11-25 00:44:30 +00:00
tedin7 commented 2026-11-24 02:26:28 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T02:26:28Z.


Change

Run CTest with --parallel 4 in the full Windows suites that now run on main and workflow_dispatch (Debug dev and /O2 release). The pull request job (--preset pr, a few focused tests) is left serial on purpose: it runs about a dozen tests that mostly use the WARP adapter, so parallelism would add contention for little gain.

Shared-state fixes that make the parallel run safe:

  • xgameruntime_thunks, xgameruntime_contracts and xgameruntime_pls_xpackage all use %TEMP%\\xbox-recomp-pls and %TEMP%\\xbox-recomp-packages. They now share a RESOURCE_LOCK.
  • cpu_native_worker_alive is timing-sensitive, so it is RUN_SERIAL.
  • tests/cpu/hang_probe.py tolerates a fixture that exits before reading its selector (broken pipe).

Reviewed and found safe: TLS carrier directory (random name), per-PID scratch, Python TemporaryDirectory, coverage record files (unique names), generated CPU sources (one per test), named events, no ports or pipes. Hardware tests stay excluded in CI and the local CTest presets are unchanged, so local runs stay serial.

Refs #448 (faster CI feedback; does not change the device-per-case cost).

AI-assisted.

Verification

CTest wall time ("Total Test time (real)"), full suite, -E '_hardware$':

Debug /O2
Before, serial, main (450 tests, runs 45298322316, 45298262059) 690.1 s, 693.6 s 708.6 s, 675.7 s
After, --parallel 4, this PR (491 tests, upstream run 45316202524) 197.2 s 196.6 s
After, --parallel 4, same branch on a fork, 2 runs (495 tests) 346.1 s, 363.0 s 331.7 s, 350.3 s

Whole job: about 1000 to 1040 s serial (limit 20 min) against 405 to 409 s in the upstream parallel run. A serial run of main on the fork hit the 20 minute limit; the parallel runs there took 11 to 15 minutes, so the fork runners were slower than upstream.

Failures found while enabling it, both fixed here:

  • cpu_native_worker_alive failed in both jobs of the first run (waits 2 s per launch, 0.5 s for EOF). It is now RUN_SERIAL.
  • Its no_worker fixture exits without reading stdin, so hang_probe.py could raise OSError on the stdin write or close. The probe now tolerates a broken pipe; the exit or timeout check still decides.

Flakiness: 3 full-suite runs after the fixes, all green (1 upstream, 2 on the fork via workflow_dispatch). gh run rerun needs admin rights, so the repeats used the fork. Since #1185 pull requests run only the pr preset, so the full suites run on main pushes and workflow_dispatch.

Evidence and follow-up

No fixtures added. After merge, the first main run is the check that the parallel suites stay green.

Checklist

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture. (No new fixture; the lock only removes a possible overlap.)
  • I updated README/docs when a capability or build requirement changed. (None changed.)
  • I did not include game files, dumps, distribution links or secrets.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6573222632 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1173). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T02:26:28Z. --- ## Change Run CTest with `--parallel 4` in the full Windows suites that now run on `main` and `workflow_dispatch` (Debug `dev` and `/O2` `release`). The pull request job (`--preset pr`, a few focused tests) is left serial on purpose: it runs about a dozen tests that mostly use the WARP adapter, so parallelism would add contention for little gain. Shared-state fixes that make the parallel run safe: - `xgameruntime_thunks`, `xgameruntime_contracts` and `xgameruntime_pls_xpackage` all use `%TEMP%\\xbox-recomp-pls` and `%TEMP%\\xbox-recomp-packages`. They now share a `RESOURCE_LOCK`. - `cpu_native_worker_alive` is timing-sensitive, so it is `RUN_SERIAL`. - `tests/cpu/hang_probe.py` tolerates a fixture that exits before reading its selector (broken pipe). Reviewed and found safe: TLS carrier directory (random name), per-PID scratch, Python `TemporaryDirectory`, coverage record files (unique names), generated CPU sources (one per test), named events, no ports or pipes. Hardware tests stay excluded in CI and the local CTest presets are unchanged, so local runs stay serial. Refs #448 (faster CI feedback; does not change the device-per-case cost). AI-assisted. ## Verification CTest wall time ("Total Test time (real)"), full suite, `-E '_hardware$'`: | | Debug | /O2 | |---|---:|---:| | Before, serial, `main` (450 tests, runs 45298322316, 45298262059) | 690.1 s, 693.6 s | 708.6 s, 675.7 s | | After, `--parallel 4`, this PR (491 tests, upstream run 45316202524) | 197.2 s | 196.6 s | | After, `--parallel 4`, same branch on a fork, 2 runs (495 tests) | 346.1 s, 363.0 s | 331.7 s, 350.3 s | Whole job: about 1000 to 1040 s serial (limit 20 min) against 405 to 409 s in the upstream parallel run. A serial run of `main` on the fork hit the 20 minute limit; the parallel runs there took 11 to 15 minutes, so the fork runners were slower than upstream. Failures found while enabling it, both fixed here: - `cpu_native_worker_alive` failed in both jobs of the first run (waits 2 s per launch, 0.5 s for EOF). It is now `RUN_SERIAL`. - Its `no_worker` fixture exits without reading stdin, so `hang_probe.py` could raise `OSError` on the stdin write or close. The probe now tolerates a broken pipe; the exit or timeout check still decides. Flakiness: 3 full-suite runs after the fixes, all green (1 upstream, 2 on the fork via `workflow_dispatch`). `gh run rerun` needs admin rights, so the repeats used the fork. Since #1185 pull requests run only the `pr` preset, so the full suites run on `main` pushes and `workflow_dispatch`. ## Evidence and follow-up No fixtures added. After merge, the first `main` run is the check that the parallel suites stay green. ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [x] I considered a negative control or failure case for a new fixture. (No new fixture; the lock only removes a possible overlap.) - [x] I updated README/docs when a capability or build requirement changed. (None changed.) - [x] I did not include game files, dumps, distribution links or secrets.
tedin7 commented 2026-11-24 06:50:12 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T02:58:18Z.


AI-assisted. Both Windows jobs failed on cpu_native_worker_alive only (12.5 s, every other test passed). That probe waits 2 s per launch and 0.5 s for end of input, so it fails when other tests share the CPU under --parallel 4. Marked it RUN_SERIAL so it runs alone with its limits unchanged. Not reproducible on this Linux host (the test is Windows only); the new CI run is the check.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7120650107 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1173#issuecomment-7120650107). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T02:58:18Z. --- AI-assisted. Both Windows jobs failed on cpu_native_worker_alive only (12.5 s, every other test passed). That probe waits 2 s per launch and 0.5 s for end of input, so it fails when other tests share the CPU under --parallel 4. Marked it RUN_SERIAL so it runs alone with its limits unchanged. Not reproducible on this Linux host (the test is Windows only); the new CI run is the check.
tedin7 commented 2026-11-24 06:50:13 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T03:12:13Z.


Update: after marking cpu_native_worker_alive RUN_SERIAL, both Windows jobs pass on the current head (Debug 6m45s against 14m31s serial, /O2 6m49s against 16m25s). That is one clean run after the fix: I could not re-run the workflow without admin rights, so the flakiness check is a single sample. Moving this to ready; it stays complementary to #1185 (it speeds up the full dev and release suites on main and workflow_dispatch), and I will rebase it if #1185 lands first.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7120868924 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1173#issuecomment-7120868924). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T03:12:13Z. --- Update: after marking cpu_native_worker_alive RUN_SERIAL, both Windows jobs pass on the current head (Debug 6m45s against 14m31s serial, /O2 6m49s against 16m25s). That is one clean run after the fix: I could not re-run the workflow without admin rights, so the flakiness check is a single sample. Moving this to ready; it stays complementary to #1185 (it speeds up the full dev and release suites on main and workflow_dispatch), and I will rebase it if #1185 lands first. AI-assisted.
chatgpt-codex-connector[bot commented 2026-11-24 06:50:13 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T03:12:28Z.


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-24T03:16:47.275216Z 822112a 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:7120872983 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1173#issuecomment-7120872983). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-24T03:12:28Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"822112a165b35ea27ef7e6da0f84a7b91b9f2e81","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-24T03:16:47.275216Z">2026-11-24T03:16:47.275216Z</relative-time> | `822112a` | 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>
tedin7 commented 2026-11-24 06:50:13 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T03:17:28Z.


Merged origin/main (#1185) into this branch. The workflow now keeps the pr preset serial and adds --parallel 4 to the full dev and release suites that run on main and workflow_dispatch, plus the RESOURCE_LOCK, RUN_SERIAL and broken-pipe fixes.

This pull request does not run the full suites any more, so they are not exercised by the checks here. The timings in the description (Debug 14m31s to 6m45s, /O2 16m25s to 6m49s) come from earlier runs of this branch, for example run 45316202524, taken before #1185.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7120950617 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1173#issuecomment-7120950617). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T03:17:28Z. --- Merged `origin/main` (#1185) into this branch. The workflow now keeps the `pr` preset serial and adds `--parallel 4` to the full `dev` and `release` suites that run on `main` and `workflow_dispatch`, plus the `RESOURCE_LOCK`, `RUN_SERIAL` and broken-pipe fixes. This pull request does not run the full suites any more, so they are not exercised by the checks here. The timings in the description (Debug 14m31s to 6m45s, /O2 16m25s to 6m49s) come from earlier runs of this branch, for example run 45316202524, taken before #1185. AI-assisted (Claude Code).
nanyoudegege commented 2026-11-24 06:50:13 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by nanyoudegege on 2026-11-24T03:21:37Z.


Independent check of the hang_probe.py change at ecbcd9cc (cloud Linux, Python 3.12.14; AI-assisted). I used a synthetic child that writes to both pipes and exits with code 7 before reading stdin. To make the order deterministic, the harness waits for the real child to exit before returning its Popen object to launch(); the pipe operations themselves are real.

  • Base b30ac9e5: launch() raised BrokenPipeError in 6/6 runs.
  • This head: 6/6 returned exit 7, the complete 6/22 stdout/stderr bytes, and EOF on both streams.
  • Control: a child that reads the selector still received its exact byte and returned EOF in 4/4 runs across base and head.

This covers the early-exit pipe branch only, not the Windows CTest scheduling, resource locks, or timings. No game files used.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7121014472 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1173#issuecomment-7121014472). Originally posted by [nanyoudegege](https://github.com/nanyoudegege) on 2026-11-24T03:21:37Z. --- Independent check of the `hang_probe.py` change at `ecbcd9cc` (cloud Linux, Python 3.12.14; AI-assisted). I used a synthetic child that writes to both pipes and exits with code 7 before reading stdin. To make the order deterministic, the harness waits for the real child to exit before returning its `Popen` object to `launch()`; the pipe operations themselves are real. - Base `b30ac9e5`: `launch()` raised `BrokenPipeError` in 6/6 runs. - This head: 6/6 returned exit 7, the complete 6/22 stdout/stderr bytes, and EOF on both streams. - Control: a child that reads the selector still received its exact byte and returned EOF in 4/4 runs across base and head. This covers the early-exit pipe branch only, not the Windows CTest scheduling, resource locks, or timings. No game files used.
tedin7 commented 2026-11-24 12:03:17 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T11:35:38Z.


Thanks @nanyoudegege: that confirms the early-exit pipe branch of hang_probe.py at ecbcd9cc. The Windows CTest scheduling and resource locks are covered by our Windows runs, not by your check.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7130296837 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1173#issuecomment-7130296837). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T11:35:38Z. --- Thanks @nanyoudegege: that confirms the early-exit pipe branch of hang_probe.py at ecbcd9cc. The Windows CTest scheduling and resource locks are covered by our Windows runs, not by your check.
R0Y00 commented 2026-11-24 12:03:17 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T11:36:58Z.


The timings and three green full runs are useful. This head only gets the fast PR check today, and the full Windows suite has acquired additional fixtures. Please update the branch to current main and attach both full Windows workflow_dispatch runs using parallel 4, including any resource-lock or timing failures and the elapsed CTest time. Leave the protected fast PR check serial.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7130326029 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1173#issuecomment-7130326029). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T11:36:58Z. --- The timings and three green full runs are useful. This head only gets the fast PR check today, and the full Windows suite has acquired additional fixtures. Please update the branch to current main and attach both full Windows workflow_dispatch runs using parallel 4, including any resource-lock or timing failures and the elapsed CTest time. Leave the protected fast PR check serial.
tedin7 commented 2026-11-24 13:00:52 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T12:14:32Z.


Updated to current main (rebased, 3 commits, head 97a524a6). The workflow still runs the protected pr check serially (ctest --preset pr, no --parallel). --parallel 4 is only on the full dev and release suites. These are 638 tests each.

I dispatched windows.yml twice on this head. Each run includes both the Debug job and the /O2 job:

Run Attempt 1: Debug (CTest) Attempt 1: /O2 (CTest)
45386098866 passed 1 failed: xmem_shim_page_runs, 477.71 s
45386168393 1 failed: dxr_facing_warp, 388.22 s passed

The failures were not resource-lock collisions:

  • xmem_shim_page_runs (/O2): the reader-without-retry case expected an access violation. The child reported reader survived, and the xmem log shows unmap ... failed (error 487) just before it.
  • dxr_facing_warp (Debug): WARP returned 16 of 96 ray mismatches. This is a numeric disagreement, not a lock or timeout. Neither test has a lock or timing dependency on the three xgameruntime_* fixtures.
  • I have not shown that either failure comes from --parallel 4. I did not run them serially on this head.

I re-ran the failed jobs once. Both runs then passed 638/638 in both jobs:

  • 45386098866 retry: /O2 479.67 s, Debug 489.46 s
  • 45386168393 retry: Debug 476.68 s, /O2 480.57 s

So the full CTest time is about 8 minutes (389 to 489 s), and I saw no resource-lock failures or timeouts. Two of the four jobs failed on first attempt, so 4 of 4 clean first-attempt jobs is not what I have. The xmem_shim_page_runs and dxr_facing_warp flakes are worth tracking separately. I can check whether they reproduce serially if you want.

AI-assisted (Claude Code).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7131163389 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1173#issuecomment-7131163389). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T12:14:32Z. --- Updated to current `main` (rebased, 3 commits, head `97a524a6`). The workflow still runs the protected `pr` check serially (`ctest --preset pr`, no `--parallel`). `--parallel 4` is only on the full `dev` and `release` suites. These are 638 tests each. I dispatched `windows.yml` twice on this head. Each run includes both the Debug job and the `/O2` job: | Run | Attempt 1: Debug (CTest) | Attempt 1: `/O2` (CTest) | | --- | --- | --- | | [45386098866](https://github.com/tedin7/Xbox2Windows/actions/runs/45386098866) | passed | **1 failed**: `xmem_shim_page_runs`, 477.71 s | | [45386168393](https://github.com/tedin7/Xbox2Windows/actions/runs/45386168393) | **1 failed**: `dxr_facing_warp`, 388.22 s | passed | The failures were not resource-lock collisions: - `xmem_shim_page_runs` (`/O2`): the `reader-without-retry` case expected an access violation. The child reported `reader survived`, and the xmem log shows `unmap ... failed (error 487)` just before it. - `dxr_facing_warp` (Debug): WARP returned 16 of 96 ray mismatches. This is a numeric disagreement, not a lock or timeout. Neither test has a lock or timing dependency on the three `xgameruntime_*` fixtures. - I have not shown that either failure comes from `--parallel 4`. I did not run them serially on this head. I re-ran the failed jobs once. Both runs then passed 638/638 in both jobs: - 45386098866 retry: `/O2` 479.67 s, Debug 489.46 s - 45386168393 retry: Debug 476.68 s, `/O2` 480.57 s So the full CTest time is about 8 minutes (389 to 489 s), and I saw no resource-lock failures or timeouts. Two of the four jobs failed on first attempt, so 4 of 4 clean first-attempt jobs is not what I have. The `xmem_shim_page_runs` and `dxr_facing_warp` flakes are worth tracking separately. I can check whether they reproduce serially if you want. AI-assisted (Claude Code).
R0Y00 commented 2026-11-24 16:03:34 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T15:38:47Z.


I verified both workflow_dispatch runs at 97a524a6. Two first-attempt Windows jobs failed, in xmem_shim_page_runs (/O2) and dxr_facing_warp (Debug), and both passed on retry. Please keep this open while we distinguish existing flakes from a parallel-suite regression. After syncing with #1520, attach matched serial and parallel Windows results for the two cases, including first-attempt results. Keep the protected PR preset serial.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7136375659 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1173#issuecomment-7136375659). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T15:38:47Z. --- I verified both workflow_dispatch runs at 97a524a6. Two first-attempt Windows jobs failed, in xmem_shim_page_runs (/O2) and dxr_facing_warp (Debug), and both passed on retry. Please keep this open while we distinguish existing flakes from a parallel-suite regression. After syncing with #1520, attach matched serial and parallel Windows results for the two cases, including first-attempt results. Keep the protected PR preset serial.
tedin7 commented 2026-11-24 16:03:36 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T15:57:22Z.


@R0Y00 Rebased onto main after #1520 at 6ee0b619f963449eab4a96b67ec70773ef6216ad, preserving the pip cache, sccache, and parallel pixel-binary checks from #1520. The protected PR preset (ctest --preset pr --no-tests=error) remains strictly serial; only the full dev and release suites pass --parallel 4.

Matched serial vs. parallel Windows results at 6ee0b619 (first-attempt results)

Executed on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP), first attempt for every cell (no retries):

Scope Preset CTest mode First-attempt result Total dxr_facing_warp xmem_shim_page_runs
Targeted pair (^(dxr_facing_warp|xmem_shim_page_runs)$) Debug (dev) --parallel 1 2/2 PASS 9.99s 0.06s 9.86s
Targeted pair (^(dxr_facing_warp|xmem_shim_page_runs)$) Debug (dev) --parallel 4 2/2 PASS 9.85s 0.07s 9.77s
Targeted pair (^(dxr_facing_warp|xmem_shim_page_runs)$) Release /O2 (release) --parallel 1 2/2 PASS 9.69s 0.05s 9.56s
Targeted pair (^(dxr_facing_warp|xmem_shim_page_runs)$) Release /O2 (release) --parallel 4 2/2 PASS 9.70s 0.06s 9.62s
Neighborhood (^(dxr_.*_warp|xmem_shim_mapped_pages|xmem_shim_page_runs|xmem_shim_working_set_warp)$, 13 tests) Debug (dev) --parallel 1 13/13 PASS 10.58s 0.05s 9.70s
Neighborhood (^(dxr_.*_warp|xmem_shim_mapped_pages|xmem_shim_page_runs|xmem_shim_working_set_warp)$, 13 tests) Debug (dev) --parallel 4 13/13 PASS 9.76s 0.06s 9.68s
Neighborhood (^(dxr_.*_warp|xmem_shim_mapped_pages|xmem_shim_page_runs|xmem_shim_working_set_warp)$, 13 tests) Release /O2 (release) --parallel 1 13/13 PASS 10.54s 0.05s 9.64s
Neighborhood (^(dxr_.*_warp|xmem_shim_mapped_pages|xmem_shim_page_runs|xmem_shim_working_set_warp)$, 13 tests) Release /O2 (release) --parallel 4 13/13 PASS 9.73s 0.06s 9.66s

Commands used (for both --preset dev and --preset release, --parallel 1 and --parallel 4):

ctest --preset <dev|release> -R '^(dxr_facing_warp|xmem_shim_page_runs)$' --parallel <1|4> --no-tests=error --output-on-failure
ctest --preset <dev|release> -R '^(dxr_.*_warp|xmem_shim_mapped_pages|xmem_shim_page_runs|xmem_shim_working_set_warp)$' --parallel <1|4> --no-tests=error --output-on-failure

CI and fork workflow_dispatch at 6ee0b619

  • PR checks on 6ee0b619: all green (Build and test on Windows, Assemble and translate gfx1013 fixtures, Run platform-independent Python checks on Linux).
  • Full workflow_dispatch run on the fork at 6ee0b619 (attempt 1): https://github.com/tedin7/Xbox2Windows/actions/runs/45429390186 (in progress at the time of posting; both Linux jobs already passed, Windows Debug and /O2 jobs running).

Notes on the two first-attempt failures at 97a524a6

  • xmem_shim_page_runs (/O2): attempt 1 failed in expect_access_violation(controls, "reader-without-retry", ...) with AssertionError: reader-without-retry: no fault: 'child: reader starts\nchild: reader survived\n' (5.38s). The test does not share files or state with other CTest jobs, but reader_while_toggling(shim, base, 3.0) with X2W_XMEM_NO_FAULT_RETRY=1 relies on the reader thread colliding with the transient unmapped window within 3.0s; under 4-way CPU contention, scheduling skew can let the reader survive the 3.0s window without faulting. No speculative RUN_SERIAL or test change was added here yet so we can separate that cleanly if it recurs.
  • dxr_facing_warp (Debug): attempt 1 failed in 0.06s with debug_errors=0 debug_warnings=0 and ray=48 flags=0x0 expected status=1 instance=5 primitive=0 distance=2 actual status=0 instance=0 primitive=0 distance=0 (mismatches=16). offscreen_check warp --dxr-facing uses an isolated in-memory D3D12 WARP device with no shared files or temp directories, and none of the serial or parallel runs on Windows Server 2025 reproduced the inline RayQuery mismatch.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7136889414 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1173#issuecomment-7136889414). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T15:57:22Z. --- @R0Y00 Rebased onto `main` after #1520 at `6ee0b619f963449eab4a96b67ec70773ef6216ad`, preserving the `pip` cache, `sccache`, and parallel `pixel-binary` checks from #1520. The protected PR preset (`ctest --preset pr --no-tests=error`) remains strictly serial; only the full `dev` and `release` suites pass `--parallel 4`. ### Matched serial vs. parallel Windows results at `6ee0b619` (first-attempt results) Executed on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP), first attempt for every cell (no retries): | Scope | Preset | CTest mode | First-attempt result | Total | `dxr_facing_warp` | `xmem_shim_page_runs` | | --- | --- | --- | --- | --- | --- | --- | | Targeted pair (`^(dxr_facing_warp\|xmem_shim_page_runs)$`) | Debug (`dev`) | `--parallel 1` | **2/2 PASS** | 9.99s | 0.06s | 9.86s | | Targeted pair (`^(dxr_facing_warp\|xmem_shim_page_runs)$`) | Debug (`dev`) | `--parallel 4` | **2/2 PASS** | 9.85s | 0.07s | 9.77s | | Targeted pair (`^(dxr_facing_warp\|xmem_shim_page_runs)$`) | Release `/O2` (`release`) | `--parallel 1` | **2/2 PASS** | 9.69s | 0.05s | 9.56s | | Targeted pair (`^(dxr_facing_warp\|xmem_shim_page_runs)$`) | Release `/O2` (`release`) | `--parallel 4` | **2/2 PASS** | 9.70s | 0.06s | 9.62s | | Neighborhood (`^(dxr_.*_warp\|xmem_shim_mapped_pages\|xmem_shim_page_runs\|xmem_shim_working_set_warp)$`, 13 tests) | Debug (`dev`) | `--parallel 1` | **13/13 PASS** | 10.58s | 0.05s | 9.70s | | Neighborhood (`^(dxr_.*_warp\|xmem_shim_mapped_pages\|xmem_shim_page_runs\|xmem_shim_working_set_warp)$`, 13 tests) | Debug (`dev`) | `--parallel 4` | **13/13 PASS** | 9.76s | 0.06s | 9.68s | | Neighborhood (`^(dxr_.*_warp\|xmem_shim_mapped_pages\|xmem_shim_page_runs\|xmem_shim_working_set_warp)$`, 13 tests) | Release `/O2` (`release`) | `--parallel 1` | **13/13 PASS** | 10.54s | 0.05s | 9.64s | | Neighborhood (`^(dxr_.*_warp\|xmem_shim_mapped_pages\|xmem_shim_page_runs\|xmem_shim_working_set_warp)$`, 13 tests) | Release `/O2` (`release`) | `--parallel 4` | **13/13 PASS** | 9.73s | 0.06s | 9.66s | Commands used (for both `--preset dev` and `--preset release`, `--parallel 1` and `--parallel 4`): ```powershell ctest --preset <dev|release> -R '^(dxr_facing_warp|xmem_shim_page_runs)$' --parallel <1|4> --no-tests=error --output-on-failure ctest --preset <dev|release> -R '^(dxr_.*_warp|xmem_shim_mapped_pages|xmem_shim_page_runs|xmem_shim_working_set_warp)$' --parallel <1|4> --no-tests=error --output-on-failure ``` ### CI and fork `workflow_dispatch` at `6ee0b619` - PR checks on `6ee0b619`: all green (`Build and test on Windows`, `Assemble and translate gfx1013 fixtures`, `Run platform-independent Python checks on Linux`). - Full `workflow_dispatch` run on the fork at `6ee0b619` (attempt 1): https://github.com/tedin7/Xbox2Windows/actions/runs/45429390186 (in progress at the time of posting; both Linux jobs already passed, Windows Debug and `/O2` jobs running). ### Notes on the two first-attempt failures at `97a524a6` - **`xmem_shim_page_runs` (`/O2`)**: attempt 1 failed in `expect_access_violation(controls, "reader-without-retry", ...)` with `AssertionError: reader-without-retry: no fault: 'child: reader starts\nchild: reader survived\n'` (5.38s). The test does not share files or state with other CTest jobs, but `reader_while_toggling(shim, base, 3.0)` with `X2W_XMEM_NO_FAULT_RETRY=1` relies on the reader thread colliding with the transient unmapped window within 3.0s; under 4-way CPU contention, scheduling skew can let the reader survive the 3.0s window without faulting. No speculative `RUN_SERIAL` or test change was added here yet so we can separate that cleanly if it recurs. - **`dxr_facing_warp` (Debug)**: attempt 1 failed in 0.06s with `debug_errors=0 debug_warnings=0` and `ray=48 flags=0x0 expected status=1 instance=5 primitive=0 distance=2 actual status=0 instance=0 primitive=0 distance=0` (`mismatches=16`). `offscreen_check warp --dxr-facing` uses an isolated in-memory D3D12 WARP device with no shared files or temp directories, and none of the serial or parallel runs on Windows Server 2025 reproduced the inline RayQuery mismatch. AI-assisted; commands listed were executed locally.
Makto94 commented 2026-11-24 18:02:57 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Makto94 on 2026-11-24T17:28:04Z.


Serial history of main for the two cases, to help separate existing flakes from a parallel-suite regression. main runs ctest --preset dev / release without --parallel, and neither windows.yml nor CMakePresets.json uses --repeat.

xmem_shim_page_runs failed once in a serial run on main. Run 45421896173 (push to main at 71be6f0f, attempt 1, Debug job 138545800299):

2026-11-24T15:20:42.8241182Z 269/727 Test #269: xmem_shim_page_runs .......................................***Failed    5.33 sec
2026-11-24T15:20:42.8262520Z AssertionError: reader-without-retry: no fault: 'child: reader starts\nchild: reader survived\n'

The /O2 job of the same run, on the same commit, passed it (Passed 10.22 sec). The 12:14Z comment describes the same reader-without-retry case with reader survived for the /O2 --parallel 4 failure in fork run 45386098866; I did not read that log. In all 48 Windows jobs of main push runs that started after #1306 merged (2026-11-24T08:54:38Z to 16:52Z), the test ran: 47 Passed (9.95-16.99 s), 1 Failed (the run above). One event gives no rate.

43 of those 48 jobs ended as cancelled at about 20.1 min (timeout-minutes: 20, annotation "The job has exceeded the maximum execution time of 20m0s"), for example runs 45429771527, 45434225604 and 45437184568. In each of them xmem_shim_page_runs had already run, so a failure there is only visible in the log, not in the step conclusion. I did not look into why the suite got slower.

dxr_facing_warp: no first-attempt serial failure in main push runs from 2026-11-23T12:04Z to 2026-11-24T16:52Z (304 runs, 608 Windows jobs). The step "Configure, build and run PC tests" succeeded in 501 jobs and failed in 4 (other tests: compute_root_warp, cpu_native_reloc_free, cpu_native_package_ordinal_startup, cpu_aot_jump_tables). The log shows dxr_facing_warp Passed (0.04-0.07 s) in those 4 jobs and in all 48 jobs since 08:54Z.

Limits: upstream runners only (Windows Server 2025, 10.0.26100). I did not run a matched --parallel 1 / --parallel 4 pair, and no cause is established. Method: GET /repos/R0Y00/Xbox2Windows/actions/runs/<id>/attempts/1/jobs plus the job logs.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7139238644 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1173#issuecomment-7139238644). Originally posted by [Makto94](https://github.com/Makto94) on 2026-11-24T17:28:04Z. --- Serial history of `main` for the two cases, to help separate existing flakes from a parallel-suite regression. `main` runs `ctest --preset dev` / `release` without `--parallel`, and neither `windows.yml` nor `CMakePresets.json` uses `--repeat`. **`xmem_shim_page_runs` failed once in a serial run on `main`.** Run [45421896173](https://github.com/R0Y00/Xbox2Windows/actions/runs/45421896173) (push to `main` at `71be6f0f`, attempt 1, Debug job 138545800299): ```text 2026-11-24T15:20:42.8241182Z 269/727 Test #269: xmem_shim_page_runs .......................................***Failed 5.33 sec 2026-11-24T15:20:42.8262520Z AssertionError: reader-without-retry: no fault: 'child: reader starts\nchild: reader survived\n' ``` The `/O2` job of the same run, on the same commit, passed it (`Passed 10.22 sec`). The 12:14Z comment describes the same `reader-without-retry` case with `reader survived` for the `/O2` `--parallel 4` failure in fork run 45386098866; I did not read that log. In all 48 Windows jobs of `main` push runs that started after #1306 merged (2026-11-24T08:54:38Z to 16:52Z), the test ran: 47 Passed (9.95-16.99 s), 1 Failed (the run above). One event gives no rate. 43 of those 48 jobs ended as `cancelled` at about 20.1 min (`timeout-minutes: 20`, annotation "The job has exceeded the maximum execution time of 20m0s"), for example runs 45429771527, 45434225604 and 45437184568. In each of them `xmem_shim_page_runs` had already run, so a failure there is only visible in the log, not in the step conclusion. I did not look into why the suite got slower. **`dxr_facing_warp`:** no first-attempt serial failure in `main` push runs from 2026-11-23T12:04Z to 2026-11-24T16:52Z (304 runs, 608 Windows jobs). The step "Configure, build and run PC tests" succeeded in 501 jobs and failed in 4 (other tests: `compute_root_warp`, `cpu_native_reloc_free`, `cpu_native_package_ordinal_startup`, `cpu_aot_jump_tables`). The log shows `dxr_facing_warp` `Passed` (0.04-0.07 s) in those 4 jobs and in all 48 jobs since 08:54Z. Limits: upstream runners only (Windows Server 2025, 10.0.26100). I did not run a matched `--parallel 1` / `--parallel 4` pair, and no cause is established. Method: `GET /repos/R0Y00/Xbox2Windows/actions/runs/<id>/attempts/1/jobs` plus the job logs.
tedin7 commented 2026-11-24 18:02:58 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T17:29:51Z.


Thanks for pulling that upstream main serial history, @Makto94 — that directly confirms xmem_shim_page_runs (reader-without-retry: reader survived) occurs under serial execution on main as well, and highlights that 43/48 recent serial main push jobs are hitting the 20-minute timeout ceiling, which is exactly what parallel CTest on the full dev/release suites here is meant to relieve.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7139282736 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1173#issuecomment-7139282736). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T17:29:51Z. --- Thanks for pulling that upstream `main` serial history, @Makto94 — that directly confirms `xmem_shim_page_runs` (`reader-without-retry: reader survived`) occurs under serial execution on `main` as well, and highlights that 43/48 recent serial `main` push jobs are hitting the 20-minute timeout ceiling, which is exactly what parallel CTest on the full `dev`/`release` suites here is meant to relieve. AI-assisted.
R0Y00 commented 2026-11-24 20:01:21 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T19:56:27Z.


#1848 is now on main. The reader-without-retry negative control uses a test-only event to hold the unmapped window, and I independently reran the page-run fixture in Release. Please retest the rebased candidate with the full Debug and /O2 suites at parallel 4. Link both runs and separate any remaining baseline failures from the page-run case. The PR smoke result cannot exercise this change to the full suites.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7142812747 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1173#issuecomment-7142812747). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T19:56:27Z. --- #1848 is now on main. The reader-without-retry negative control uses a test-only event to hold the unmapped window, and I independently reran the page-run fixture in Release. Please retest the rebased candidate with the full Debug and /O2 suites at parallel 4. Link both runs and separate any remaining baseline failures from the page-run case. The PR smoke result cannot exercise this change to the full suites.
tedin7 commented 2026-11-24 21:27:39 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T21:02:09Z.


@R0Y00 Retested the rebased candidate on top of #1848 with the full suites at --parallel 4.

Run on c56b1a36: https://github.com/tedin7/Xbox2Windows/actions/runs/45483049804

Job Result CTest time Job time xmem_shim_page_runs
Debug (dev) 820/820 passed (18 skipped, 0 failed) 516.81 s 17m10s Passed, 10.82 s
Release /O2 (release) 820/820 passed (18 skipped, 0 failed) 647.64 s 15m05s Passed, 11.38 s

Baseline failures: none in either job. The page-run case passed in both, and no other test failed or timed out. That leaves nothing to separate.

Why the head moved from bafc358a to c56b1a36: the first full run on bafc358a (https://github.com/tedin7/Xbox2Windows/actions/runs/45477137717) passed /O2 820/820 in 503.32 s, with xmem_shim_page_runs Passed in 11.02 s. The Debug job was cancelled by timeout-minutes: 20 after 772/820 tests: 755 passed, 17 skipped and 0 failed, and xmem_shim_page_runs Passed in 11.47 s. That run started with a cold compiler cache, so setup and the Debug build took about 10 minutes before the tests started. c56b1a36 changes only timeout-minutes on the two Windows jobs, from 20 to 30. The Debug job of the run above needed 17m10s with a warm cache, so the old limit leaves little margin.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7144388177 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1173#issuecomment-7144388177). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T21:02:09Z. --- @R0Y00 Retested the rebased candidate on top of #1848 with the full suites at `--parallel 4`. Run on `c56b1a36`: https://github.com/tedin7/Xbox2Windows/actions/runs/45483049804 | Job | Result | CTest time | Job time | `xmem_shim_page_runs` | | --- | --- | --- | --- | --- | | [Debug (`dev`)](https://github.com/tedin7/Xbox2Windows/actions/runs/45483049804/job/138761018007) | **820/820 passed** (18 skipped, 0 failed) | 516.81 s | 17m10s | Passed, 10.82 s | | [Release `/O2` (`release`)](https://github.com/tedin7/Xbox2Windows/actions/runs/45483049804/job/138761018042) | **820/820 passed** (18 skipped, 0 failed) | 647.64 s | 15m05s | Passed, 11.38 s | Baseline failures: none in either job. The page-run case passed in both, and no other test failed or timed out. That leaves nothing to separate. Why the head moved from `bafc358a` to `c56b1a36`: the first full run on `bafc358a` (https://github.com/tedin7/Xbox2Windows/actions/runs/45477137717) passed `/O2` 820/820 in 503.32 s, with `xmem_shim_page_runs` Passed in 11.02 s. The [Debug job](https://github.com/tedin7/Xbox2Windows/actions/runs/45477137717/job/138740236002) was cancelled by `timeout-minutes: 20` after 772/820 tests: 755 passed, 17 skipped and 0 failed, and `xmem_shim_page_runs` Passed in 11.47 s. That run started with a cold compiler cache, so setup and the Debug build took about 10 minutes before the tests started. `c56b1a36` changes only `timeout-minutes` on the two Windows jobs, from 20 to 30. The Debug job of the run above needed 17m10s with a warm cache, so the old limit leaves little margin. AI-assisted; commands listed were executed locally.
upstream-sync closed this pull request 2026-11-25 01:00:42 +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!1166
No description provided.