Skip placeholder tests where Wine does not answer the query #402

Closed
github-bot wants to merge 1 commit from github-bot/gh-402 into main AGit
Owner

@⁠zmelumian972 on GitHub · 2026-11-28 08:14 UTC · original
zmelumian972:fix/wine-test-skips → main · +26 −1 · 1 files · 1 commits · closed without merging

Under Wine/Proton, the parallel victory-gpu lib suite failed four tests on every run. None of the failures came from the code under test.

  • ambient::tests::indirect_hold_only_changes_the_texture_after_nonempty_dispatches called .expect() on a WARP adapter, and Proton has none (WarpHarness::new() refuses the hardware adapter DXGI returns there). It now returns early, as the other WarpHarness tests do.
  • watch::tests::what_is_left_alone_is_no_known_hole, watch::many_askers_tests::holes_are_known_until_the_runtime_tells and watch::many_askers_tests::no_mapping_is_lost_between_askers check what placeholder finds through NtQueryVirtualMemory(MemoryRegionInformationEx = 7). Wine answers that class with STATUS_INVALID_INFO_CLASS (0xC0000003), confirmed with a probe. The runtime doesn't need the query under Wine, because xmem reports placeholders through title_memory_placeholder. So these tests now return early, with a message, when the system doesn't answer the query. The query moves into region_type so the tests can ask it. placeholder behaves as before.

Tested

CachyOS, RTX 5090, NVIDIA 620.73.04. The test binary was built with cargo xwin and run under GE-Proton11-14 Wine.

Before After
watch:: 47 passed, 3 failed (every run, also one at a time) 50 passed, 0 failed (3 skipped with a message)
ambient:: 1 failed 7 passed
Full lib suite 520 passed, 4 failed 524 passed, 0 failed

The full-suite runs leave out three indirect::tests that hang under Wine (argument_clamp_builds, host_list_reuses_and_grows_scratch_across_submissions, host_list_window_executions_need_no_barrier_of_their_own). This PR doesn't touch them. On Windows, the class-7 query answers, so the three watch tests run as before.

🤖 Generated with Claude Code

**@⁠zmelumian972** on GitHub · 2026-11-28 08:14 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/402) `zmelumian972:fix/wine-test-skips` → `main` · +26 −1 · 1 files · 1 commits · closed without merging Under Wine/Proton, the parallel `victory-gpu` lib suite failed four tests on every run. None of the failures came from the code under test. - `ambient::tests::indirect_hold_only_changes_the_texture_after_nonempty_dispatches` called `.expect()` on a WARP adapter, and Proton has none (`WarpHarness::new()` refuses the hardware adapter DXGI returns there). It now returns early, as the other `WarpHarness` tests do. - `watch::tests::what_is_left_alone_is_no_known_hole`, `watch::many_askers_tests::holes_are_known_until_the_runtime_tells` and `watch::many_askers_tests::no_mapping_is_lost_between_askers` check what `placeholder` finds through `NtQueryVirtualMemory(MemoryRegionInformationEx = 7)`. Wine answers that class with `STATUS_INVALID_INFO_CLASS` (0xC0000003), confirmed with a probe. The runtime doesn't need the query under Wine, because xmem reports placeholders through `title_memory_placeholder`. So these tests now return early, with a message, when the system doesn't answer the query. The query moves into `region_type` so the tests can ask it. `placeholder` behaves as before. ### Tested CachyOS, RTX 5090, NVIDIA 620.73.04. The test binary was built with `cargo xwin` and run under GE-Proton11-14 Wine. | | Before | After | | --- | --- | --- | | `watch::` | 47 passed, 3 failed (every run, also one at a time) | 50 passed, 0 failed (3 skipped with a message) | | `ambient::` | 1 failed | 7 passed | | Full lib suite | 520 passed, 4 failed | 524 passed, 0 failed | The full-suite runs leave out three `indirect::tests` that hang under Wine (`argument_clamp_builds`, `host_list_reuses_and_grows_scratch_across_submissions`, `host_list_window_executions_need_no_barrier_of_their_own`). This PR doesn't touch them. On Windows, the class-7 query answers, so the three `watch` tests run as before. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Under Wine/Proton the parallel victory-gpu suite failed four tests every
run, none of them from the code under test:

- `ambient::tests::indirect_hold_only_changes_the_texture_after_nonempty_dispatches`
  expected a WARP adapter; Proton has none. It now returns early like the
  other WARP tests do.
- Three `watch` tests check what `placeholder` finds through
  `NtQueryVirtualMemory(MemoryRegionInformationEx)`, which Wine answers
  with STATUS_INVALID_INFO_CLASS. The runtime does not need it there
  (xmem reports placeholders through `title_memory_placeholder`), so the
  tests return early, with a message, when the system does not answer.
  The query moves into `region_type` so the tests can ask.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013YhYveEj8Y5ZZys8eqzHAx
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 08:25:30 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-29 11:36 UTC · original

Thanks for identifying the unsupported Wine query and WARP harness limitations. Please keep skipped tests visible as skipped rather than treating them as executed passes. The three hanging indirect tests remain a separate issue, and native Windows coverage should stay intact.

**@⁠TaynanGT** on GitHub · 2026-11-29 11:36 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/402#issuecomment-7255221602) Thanks for identifying the unsupported Wine query and WARP harness limitations. Please keep skipped tests visible as skipped rather than treating them as executed passes. The three hanging indirect tests remain a separate issue, and native Windows coverage should stay intact.
github-bot changed title from Skip tests that need what Wine does not provide to Skip placeholder tests where Wine does not answer the query 2026-11-30 17:08:24 +00:00
github-bot force-pushed github-bot/gh-402 from 3ff81f0375 to d463b303e6 2026-11-30 17:08:25 +00:00 Compare
github-bot closed this pull request 2026-11-30 17:14:31 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-30 17:09 UTC · original

main has moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the current main and open a new PR; I'll review it there.

**@⁠TaynanGT** on GitHub · 2026-11-30 17:09 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/402#issuecomment-7285804150) `main` has moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the current `main` and open a new PR; I'll review it there.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.