docs: the runtime ctest suite by host, Wine against native Windows, on one Pascal card (#1150) #1217

Merged
robot00f merged 2 commits from upstream-pr/1217 into main 2026-11-29 21:12:48 +00:00
robot00f commented 2026-11-24 20:27:59 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by robot00f on 2026-11-24T20:27:59Z.


Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7143569659 (ID RUNTIME-CTEST-HOST-PARITY; for #1150)

#1150 reports 24 runtime ctest failures under Wine 10.0 and asks for a Windows cross-check to separate ours from the host's. This is that cross-check, recorded so the classification does not live in one comment: the same suite, the same GPU model, Windows 10 natively.

Measured

  • 307 of 308 tests (1 disabled): 278 passed, 18 skipped, 11 failed (9 failed, 1 SegFault, 1 timeout), 96% in 452 s, no hang.
  • 19 of the reported failures pass natively and are host limits: xmem, file_system, bcrypt_rng(_seeded), d3d12_clear(_formats), dxgi_swapchain, dstorage, run_startup_cmdline, vk_device_filter_tools, root_sig, the host-comparison family, and all four hangs (d3d12_buffer_tiles, d3d12_texture_tiles, dxgi_host_parity, dxgi_waitable_latency).
  • 5 reproduce without Wine, so they are ours: d3d12_vulkan_device, d3d12_subresource_copy, d3d12_heap_properties, d3d12_existing_heap, d3d12_r9g9b9e5_uav.
  • 6 fail only natively, each deterministic 3/3 with --repeat until-fail:3 on this build: d3d12_subgroup (stack-layout-dependent SegFault in device slot 14, #1328), d3d12_set_descriptor_heaps (CHECK failed: !blob.empty(), #1353), root_signature_oracle (Windows 10 serializer refuses 0xC00, #988), d3d12_close_parity (#989), d3d12_pso_validation (DYNAMIC_DEPTH_BIAS parity at line 436, #967 / #1377), and xdxr_build_check, which is not a hang: it passes in 212 s with --timeout 400 (#1424).

The page lists each with the log line it produces and links the follow-up fixes measured since the run.

Tested

The full suite natively (MSVC 19.44, --parallel 4), the native-only failures isolated 3 times each, xgameruntime_offline(_hdr) interactively, and xdxr_build_check at a 400 s valve. check_no_game_data.py on both files -> exit 0; tests/test_docs_links.py, tests/test_docs_table_rows.py and tests/test_docs_repeated_lines.py -> OK.

Docs only. No game files, nothing run from the game.

GPUs tested: NVIDIA GPU (Pascal class, 4 GB), driver 582.28, Vulkan device 1.4.312, Windows 10 19045. Model and PCI id withheld.

AI-assisted: yes (OpenCode, DeepSeek V4.1 Flash; Antigravity)

Checklist

  • Based on current main and merges cleanly.
  • One topic.
  • No game data, keys or decryption (CONTRIBUTING.md).
  • A new translator rule is in the contract table of docs/design.md. (n/a: no translator change)
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5479787874 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1217). Originally posted by [robot00f](https://github.com/robot00f) on 2026-11-24T20:27:59Z. --- Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7143569659 (ID `RUNTIME-CTEST-HOST-PARITY`; for #1150) #1150 reports 24 runtime ctest failures under Wine 10.0 and asks for a Windows cross-check to separate ours from the host's. This is that cross-check, recorded so the classification does not live in one comment: the same suite, the same GPU model, Windows 10 natively. ### Measured - 307 of 308 tests (1 disabled): 278 passed, 18 skipped, 11 failed (9 failed, 1 SegFault, 1 timeout), 96% in 452 s, no hang. - 19 of the reported failures pass natively and are host limits: `xmem`, `file_system`, `bcrypt_rng(_seeded)`, `d3d12_clear(_formats)`, `dxgi_swapchain`, `dstorage`, `run_startup_cmdline`, `vk_device_filter_tools`, `root_sig`, the host-comparison family, and all four hangs (`d3d12_buffer_tiles`, `d3d12_texture_tiles`, `dxgi_host_parity`, `dxgi_waitable_latency`). - 5 reproduce without Wine, so they are ours: `d3d12_vulkan_device`, `d3d12_subresource_copy`, `d3d12_heap_properties`, `d3d12_existing_heap`, `d3d12_r9g9b9e5_uav`. - 6 fail only natively, each deterministic 3/3 with `--repeat until-fail:3` on this build: `d3d12_subgroup` (stack-layout-dependent SegFault in device slot 14, #1328), `d3d12_set_descriptor_heaps` (`CHECK failed: !blob.empty()`, #1353), `root_signature_oracle` (Windows 10 serializer refuses `0xC00`, #988), `d3d12_close_parity` (#989), `d3d12_pso_validation` (`DYNAMIC_DEPTH_BIAS` parity at line 436, #967 / #1377), and `xdxr_build_check`, which is not a hang: it passes in 212 s with `--timeout 400` (#1424). The page lists each with the log line it produces and links the follow-up fixes measured since the run. ### Tested The full suite natively (MSVC 19.44, `--parallel 4`), the native-only failures isolated 3 times each, `xgameruntime_offline(_hdr)` interactively, and `xdxr_build_check` at a 400 s valve. `check_no_game_data.py` on both files -> exit 0; `tests/test_docs_links.py`, `tests/test_docs_table_rows.py` and `tests/test_docs_repeated_lines.py` -> OK. Docs only. No game files, nothing run from the game. GPUs tested: NVIDIA GPU (Pascal class, 4 GB), driver 582.28, Vulkan device 1.4.312, Windows 10 19045. Model and PCI id withheld. AI-assisted: yes (OpenCode, DeepSeek V4.1 Flash; Antigravity) ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic. - [x] No game data, keys or decryption (CONTRIBUTING.md). - [x] A new translator rule is in the contract table of `docs/design.md`. (n/a: no translator change)
qhukz13 commented 2026-11-24 21:19:14 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by qhukz13 on 2026-11-24T21:19:14Z.


An independent run on the same card class, natively: GeForce GTX 1050 Ti 4 GB, NVIDIA 582.66, Windows 10 Pro 19045, MSVC (VS 2022 Build Tools), RelWithDebInfo at 6293c1c4f (20 commits before your 58be9cdf; none of them touches runtime/shims/d3d12_vulkan_device.cpp, runtime/src/vulkan_backend.h or the subgroup test). ctest --parallel 4, no --timeout, implicit layers left on. Result: 308 tests, 11 failed, 236 s.

Reproduced, same symptoms:

  • the five you classify as ours: d3d12_vulkan_device, d3d12_subresource_copy (line 391, CPU copies (host image copy): the steps differ from the host's), d3d12_heap_properties (CUSTOM write-back L0: ours 0x8007000e host 0x0), d3d12_existing_heap (slot-133 pages not imported, HRESULT 0x80004001, line 196) and d3d12_r9g9b9e5_uav (format not supported yet: 67);
  • d3d12_set_descriptor_heaps (CHECK failed: !blob.empty(), line 341) and d3d12_close_parity (3 failures of 113 cases);
  • d3d12_pso_validation fails here too; the failing check printed is line 436, check_gfx_parity("gfx: Flags=DYNAMIC_DEPTH_BIAS", ...), which may be worth naming next to the depth-stencil format lines;
  • xdxr_build_check is no hang: it passes in 201.9 s with ctest's default timeout, which agrees with your 212 s and with giving it its own TIMEOUT.

Not reproduced: d3d12_subgroup passes here, 3 of 3 with --repeat until-fail:3 (2.3-2.8 s each), on the same Pascal 4 GB class. With the code paths unchanged between the two commits, the SegFault after device slot 16 (CreateRootSignature) first call looks tied to something outside the repository: the driver (582.28 there, 582.66 here) or the disabled implicit layers are the first two differences I can see. It may be worth saying on the page that it is one machine's result until a second one crashes.

Three failures here that the page does not list, all of which look like host or session limits rather than the layer:

  • root_signature_oracle: FAIL 1.1 with every root-signature flag: Microsoft serializer accepts it. The 1.2 cases already SKIP on this Windows 10 runtime; the flags case may need the same guard. Did it pass on your 19045?
  • xgameruntime_offline and xgameruntime_offline_hdr: FAIL XDisplayAcquireTimeoutDeferral acquires a display power request handle. My run was started over SSH (a non-interactive session), which is a likely reason; I have not rerun it from a desktop session yet.

No game files. AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7144772946 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1217#issuecomment-7144772946). Originally posted by [qhukz13](https://github.com/qhukz13) on 2026-11-24T21:19:14Z. --- An independent run on the same card class, natively: GeForce GTX 1050 Ti 4 GB, NVIDIA 582.66, Windows 10 Pro 19045, MSVC (VS 2022 Build Tools), RelWithDebInfo at `6293c1c4f` (20 commits before your `58be9cdf`; none of them touches `runtime/shims/d3d12_vulkan_device.cpp`, `runtime/src/vulkan_backend.h` or the subgroup test). `ctest --parallel 4`, no `--timeout`, implicit layers left on. Result: 308 tests, 11 failed, 236 s. **Reproduced, same symptoms:** - the five you classify as ours: `d3d12_vulkan_device`, `d3d12_subresource_copy` (line 391, `CPU copies (host image copy): the steps differ from the host's`), `d3d12_heap_properties` (`CUSTOM write-back L0: ours 0x8007000e host 0x0`), `d3d12_existing_heap` (slot-133 pages not imported, HRESULT `0x80004001`, line 196) and `d3d12_r9g9b9e5_uav` (`format not supported yet: 67`); - `d3d12_set_descriptor_heaps` (`CHECK failed: !blob.empty()`, line 341) and `d3d12_close_parity` (3 failures of 113 cases); - `d3d12_pso_validation` fails here too; the failing check printed is line 436, `check_gfx_parity("gfx: Flags=DYNAMIC_DEPTH_BIAS", ...)`, which may be worth naming next to the depth-stencil format lines; - `xdxr_build_check` is no hang: it **passes in 201.9 s** with ctest's default timeout, which agrees with your 212 s and with giving it its own `TIMEOUT`. **Not reproduced:** `d3d12_subgroup` **passes** here, 3 of 3 with `--repeat until-fail:3` (2.3-2.8 s each), on the same Pascal 4 GB class. With the code paths unchanged between the two commits, the SegFault after `device slot 16 (CreateRootSignature) first call` looks tied to something outside the repository: the driver (582.28 there, 582.66 here) or the disabled implicit layers are the first two differences I can see. It may be worth saying on the page that it is one machine's result until a second one crashes. **Three failures here that the page does not list,** all of which look like host or session limits rather than the layer: - `root_signature_oracle`: `FAIL 1.1 with every root-signature flag: Microsoft serializer accepts it`. The 1.2 cases already SKIP on this Windows 10 runtime; the flags case may need the same guard. Did it pass on your 19045? - `xgameruntime_offline` and `xgameruntime_offline_hdr`: `FAIL XDisplayAcquireTimeoutDeferral acquires a display power request handle`. My run was started over SSH (a non-interactive session), which is a likely reason; I have not rerun it from a desktop session yet. No game files. AI-assisted (Claude Code).
robot00f commented 2026-11-25 01:05:03 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by robot00f on 2026-11-25T01:05:03Z.


Thanks @qhukz13 for the independent Pascal 4 GB cross-check — re-checked the saved _ctest.log from 58be9cdf and updated the page (rebased onto current main in c253e028):

  1. root_signature_oracle on 19045: it did fail here too (Test #122: FAIL 1.1 with every root-signature flag: Microsoft serializer accepts it / Unsupported bit-flag set (root signature flags c7f)). It was the missing 11th entry in 11 failed (the two tables previously listed 5 + 5 = 10). Added to the native-only table (now 5 + 6 = 11), and corrected the summary row from 279 passed, 11 failed, 47 skipped to the exact counts in _ctest.log: 278 passed, 11 failed (9 failed, 1 SegFault, 1 timeout), 18 skipped (278 + 11 + 18 = 307).
  2. Why d3d12_subgroup crashed 3/3 here and passed 3/3 on your build: we traced and fixed that crash in #1328. It was stack-layout-dependent rather than driver-dependent: in d3d12_xs_device.cpp slot 14 (CreateDescriptorHeap), console_heap_range_plausible() checked only size == NumDescriptors * 32 without requiring 64 KiB alignment, so when the caller's adjacent stack words after a PC D3D12_DESCRIPTOR_HEAP_DESC happened to hold 0x65626f72705f7370 ("ps_probe") and 32 in our MSVC 19.44 build, CreateRenderTargetView wrote to 0x65626f72705f7370. A different build/stack frame (clang-cl under Wine, or your VS Build Tools build) does not place 32 at +0x18. Recorded on the page alongside your 3/3 pass.
  3. d3d12_pso_validation and d3d12_r9g9b9e5_uav failing checks: updated d3d12_pso_validation to name line 436: check_gfx_parity("gfx: Flags=DYNAMIC_DEPTH_BIAS", ...) (noting the depth-stencil format lines are negative-case logs), and d3d12_r9g9b9e5_uav to name line 669: CreateCommittedResource(&custom_heap, ...) (the same Pascal HOST_TRANSFER CPU-heap failure your #1364 fixed — verified passing 3/3 on current main).
  4. xgameruntime_offline(_hdr): confirmed — our run was from an interactive desktop session, where both pass (0.11 s and 0.03 s). Added a bullet under Reading it noting the SSH / non-interactive XDisplayAcquireTimeoutDeferral difference, plus the follow-up PRs in What follows (#1364, #1389, #1458, #1328, #1353, #988, #989, #967/#1377, #1424).

AI-assisted: yes (Antigravity).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7149188307 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1217#issuecomment-7149188307). Originally posted by [robot00f](https://github.com/robot00f) on 2026-11-25T01:05:03Z. --- Thanks @qhukz13 for the independent Pascal 4 GB cross-check — re-checked the saved `_ctest.log` from `58be9cdf` and updated the page (rebased onto current `main` in `c253e028`): 1. **`root_signature_oracle` on 19045:** it **did** fail here too (`Test #122: FAIL 1.1 with every root-signature flag: Microsoft serializer accepts it` / `Unsupported bit-flag set (root signature flags c7f)`). It was the missing 11th entry in `11 failed` (the two tables previously listed `5 + 5 = 10`). Added to the native-only table (now `5 + 6 = 11`), and corrected the summary row from `279 passed, 11 failed, 47 skipped` to the exact counts in `_ctest.log`: **`278 passed, 11 failed (9 failed, 1 SegFault, 1 timeout), 18 skipped`** (`278 + 11 + 18 = 307`). 2. **Why `d3d12_subgroup` crashed 3/3 here and passed 3/3 on your build:** we traced and fixed that crash in #1328. It was stack-layout-dependent rather than driver-dependent: in `d3d12_xs_device.cpp` slot 14 (`CreateDescriptorHeap`), `console_heap_range_plausible()` checked only `size == NumDescriptors * 32` without requiring 64 KiB alignment, so when the caller's adjacent stack words after a PC `D3D12_DESCRIPTOR_HEAP_DESC` happened to hold `0x65626f72705f7370` (`"ps_probe"`) and `32` in our MSVC 19.44 build, `CreateRenderTargetView` wrote to `0x65626f72705f7370`. A different build/stack frame (`clang-cl` under Wine, or your VS Build Tools build) does not place `32` at `+0x18`. Recorded on the page alongside your 3/3 pass. 3. **`d3d12_pso_validation` and `d3d12_r9g9b9e5_uav` failing checks:** updated `d3d12_pso_validation` to name `line 436: check_gfx_parity("gfx: Flags=DYNAMIC_DEPTH_BIAS", ...)` (noting the depth-stencil format lines are negative-case logs), and `d3d12_r9g9b9e5_uav` to name `line 669: CreateCommittedResource(&custom_heap, ...)` (the same Pascal `HOST_TRANSFER` CPU-heap failure your #1364 fixed — verified passing 3/3 on current `main`). 4. **`xgameruntime_offline(_hdr)`:** confirmed — our run was from an interactive desktop session, where both pass (`0.11 s` and `0.03 s`). Added a bullet under `Reading it` noting the SSH / non-interactive `XDisplayAcquireTimeoutDeferral` difference, plus the follow-up PRs in `What follows` (#1364, #1389, #1458, #1328, #1353, #988, #989, #967/#1377, #1424). AI-assisted: yes (Antigravity).
zmasi commented 2026-11-29 01:07:44 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-29T01:07:44Z.


Independent verification on Windows 11 (10.0.26200, x64, Python 3.12.10) of 5f33b4ff30 merged onto origin/main (aa52446f7d, 0 merge conflicts):

  • Suite & table checks:
    • python -I tests/test_docs_table_rows.py (2/2), python -I tests/test_docs_repeated_lines.py (3/3), and python -I tests/test_text_write_line_endings.py (3/3) all exited 0.
    • python -I tests/test_docs_links.py and python -I tests/test_docs_cli_flags.py add 0 errors on docs/README.md or docs/runtime_ctest_hosts.md relative to origin/main.
    • Verified native Windows breakdown totals (278 + 11 + 18 = 307, 9 + 1 + 1 = 11, 5 reproduced + 6 native-only = 11, and the 19 Wine-only table entries account for all 19 tests).
  • Minor non-blocking notes:
    1. In docs/runtime_ctest_hosts.md:16-17 (The two runs), the Wine column states Tests run: 304 of 304 and Result: 239 passed, 19 failed, 5 timeouts, 40 skipped, which sums to 303: #1150's 3aa97542 row had 1 disabled (303 of 304 (one disabled)).
    2. A few PRs described as open in What follows (e.g. #1424) have since merged on main.
  • Hygiene: git diff --check and python -I scripts/check_no_game_data.py docs/README.md docs/runtime_ctest_hosts.md both exited 0.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7248578253 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1217#issuecomment-7248578253). Originally posted by [zmasi](https://github.com/zmasi) on 2026-11-29T01:07:44Z. --- Independent verification on Windows 11 (`10.0.26200`, x64, `Python 3.12.10`) of `5f33b4ff30` merged onto `origin/main` (`aa52446f7d`, `0` merge conflicts): - **Suite & table checks**: - `python -I tests/test_docs_table_rows.py` (`2/2`), `python -I tests/test_docs_repeated_lines.py` (`3/3`), and `python -I tests/test_text_write_line_endings.py` (`3/3`) all exited `0`. - `python -I tests/test_docs_links.py` and `python -I tests/test_docs_cli_flags.py` add `0` errors on `docs/README.md` or `docs/runtime_ctest_hosts.md` relative to `origin/main`. - Verified native Windows breakdown totals (`278 + 11 + 18 = 307`, `9 + 1 + 1 = 11`, `5` reproduced + `6` native-only = `11`, and the `19` Wine-only table entries account for all `19` tests). - **Minor non-blocking notes**: 1. In `docs/runtime_ctest_hosts.md:16-17` (`The two runs`), the Wine column states `Tests run: 304 of 304` and `Result: 239 passed, 19 failed, 5 timeouts, 40 skipped`, which sums to `303`: `#1150`'s `3aa97542` row had `1 disabled` (`303 of 304 (one disabled)`). 2. A few PRs described as open in `What follows` (e.g. `#1424`) have since merged on `main`. - **Hygiene**: `git diff --check` and `python -I scripts/check_no_game_data.py docs/README.md docs/runtime_ctest_hosts.md` both exited `0`. AI-assisted.
OreoFR commented 2026-11-29 19:17:48 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-29T19:17:48Z.


Verified by OreoFR on macOS 27.2.1 (26B131), Apple M5, APFS (case-insensitive), Python 3.12.16, spirv-tools + llvm-mc, main 7c330c76d (also merges cleanly on current main dd87aa405; does not force a rebase of #2566), PR head 5f33b4ff3 : docs only, doc tests green

  • The 13 tests/test_docs_*.py pass on the merge, 0 skipped (same as main). No red possible for a docs-only change. Reviews: none.
  • Diff: one index line in docs/README.md and a new docs/runtime_ctest_hosts.md (105 lines). No game data.

Verdict: READY (docs only)

AI-assisted: Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7261166519 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1217#issuecomment-7261166519). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-29T19:17:48Z. --- Verified by OreoFR on macOS 27.2.1 (26B131), Apple M5, APFS (case-insensitive), Python 3.12.16, spirv-tools + llvm-mc, main 7c330c76d (also merges cleanly on current main dd87aa405; does not force a rebase of #2566), PR head 5f33b4ff3 : docs only, doc tests green - The 13 `tests/test_docs_*.py` pass on the merge, 0 skipped (same as main). No red possible for a docs-only change. Reviews: none. - Diff: one index line in `docs/README.md` and a new `docs/runtime_ctest_hosts.md` (105 lines). No game data. **Verdict: READY** (docs only) AI-assisted: Claude Code
MoonEyes commented 2026-11-29 21:12:45 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T21:12:45Z.


Merging. Head 5f33b4ff3 has red/green verdicts from reviewers other than the author (above), merges cleanly with main f359be5e6, does not force a rebase of #2566, and carries a claim ID. Remaining main CI reds (translator-tests mesh, semantic-tests f16) are pre-existing. Merged by MoonEyes.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7262694375 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/1217#issuecomment-7262694375). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-29T21:12:45Z. --- Merging. Head `5f33b4ff3` has red/green verdicts from reviewers other than the author (above), merges cleanly with `main` `f359be5e6`, does not force a rebase of #2566, and carries a claim ID. Remaining main CI reds (`translator-tests` mesh, `semantic-tests` f16) are pre-existing. Merged by MoonEyes. AI-assisted (Claude Code).
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
ProjectLeonida/mandy!1217
No description provided.