Skip to content

runtime, tests: bound dstorage and dxgi tests with ctest timeouts and route device filter tools through wine (TEST-WINE-TIMEOUTS-DEVICE-FILTER) - #1176

Merged
aslan2142 merged 1 commit into
ProjectLeonida:mainfrom
abnalstlll-byte:feat/test-wine-timeouts-device-filter
Nov 25, 2026
Merged

aslan2142 merged 1 commit into
ProjectLeonida:mainfrom
abnalstlll-byte:feat/test-wine-timeouts-device-filter

Conversation

@abnalstlll-byte

Copy link
Copy Markdown
Contributor

Addresses finding on Linux/Wine test execution (TEST-WINE-TIMEOUTS-DEVICE-FILTER):

1. CTest Execution Bounds (runtime/CMakeLists.txt, tests/test_ctest_registration.py)

  • Adds TIMEOUT 120 to dstorage, dxgi_host_parity, and dxgi_waitable_latency.
  • Prevents indefinite test hangs under Wine (such as during winedbg crash attaches or OpenFile: null or empty path stalls) from blocking continuous test runs.
  • Adds test coverage in tests/test_ctest_registration.py (test_host_parity_and_storage_tests_have_timeouts) verifying that these tests enforce explicit CTest timeouts.

2. Linux / Wine Executable Routing (runtime/test/check_device_filter_tools.py)

  • Routes Windows .exe invocations (vk_descriptor_bench.exe, vk_sandbox.exe) through wine when running on a non-Windows host (os.name != "nt").
  • Gracefully returns UNSUPPORTED (77) if wine is unavailable or if execution fails, resolving OSError: [Errno 8] Exec format error during host Python execution on Linux.

Verification

  • python -I tests/test_ctest_registration.py: 5/5 PASSED.
  • python -m compileall runtime/test/check_device_filter_tools.py tests/test_ctest_registration.py: Clean.
  • python -I scripts/check_no_game_data.py: 0 violations (100% clean-room).
  • AI-assisted: yes.

@KernelSmoker KernelSmoker left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed exact head b7049814bebf32d1484ccd3f550b4892aad5ea58 as KernelSmoker.

Independent Linux verification: python3 -I tests/test_ctest_registration.py passed 5/5; py_compile, scripts/check_no_game_data.py, and git diff --check passed. Three isolated mocks verified the new .exe routing through WINE, and that missing Wine or an OSError returns the documented UNSUPPORTED result.

This host has no Wine executable, so I did not run the Windows binaries or a Wine integration test. The Windows and macOS hosted checks were queued when I checked them; this review does not claim those jobs passed.

@madhyn

madhyn commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Tested b7049814b on Arch Linux + Wine 11.22 + NVIDIA RTX 3060 Ti (clang-cl + xwin cross-build):

  • python3 -m unittest tests/test_ctest_registration.py: 5/5 passed (0.041 s)
  • vulkan_device_filter: Passed (5.40 s)
  • vk_device_filter_tools (check_device_filter_tools.py routed through Wine): Passed (16.10 s)
  • The three Wine-bounded tests fail cleanly inside their timeouts rather than hanging:
    • dstorage (15.70 s): 329 checks, 2 failures (FAIL: the copy reached the guard page, FAIL: a running request is pending)
    • dxgi_host_parity (11.09 s): crashes in Wine's wined3d+0x54143 from dxgi_host_parity_test.cpp:263
    • dxgi_waitable_latency (11.39 s): Failed (11.39 s)

AI-assisted: yes

@Deedlyy

Deedlyy commented Nov 24, 2026

Copy link
Copy Markdown

Recommendation: [MERGE]

Reasoning: Adds 120 s CTest timeouts to dstorage, dxgi_host_parity and dxgi_waitable_latency, and routes the device-filter tool's .exe calls through Wine on non-Windows hosts (skip 77 if Wine is missing). Small test-infrastructure change. Verified by madhyn (Wine + RTX 3060 Ti) and KernelSmoker. CI (label, change-scope, no-game-data and the Runtime jobs) is still queued awaiting maintainer workflow approval, so nothing has run in CI yet; GitHub reports no merge conflict with main. Merge once the queued checks are green.

Impact level: 2/10

@github-actions github-actions Bot added the needs rebase Conflicts with the base branch: rebase it on main label Nov 24, 2026
@azsekazvamdimitar

Copy link
Copy Markdown
Contributor

Overlap note: the device filter tools half of this is also in #1086 (commit f43536b), done the other way: CMake passes CMAKE_CROSSCOMPILING_EMULATOR to check_device_filter_tools.py as --runner, the way the neighbouring tests get -DRUNNER, instead of the script looking for wine on PATH. That way a Proton build (emulator set to Proton's files/bin/wine) runs the tools with Proton's Wine rather than whatever wine is installed. Tested on Linux natively, under WineHQ 11.22 and under GE-Proton11-14. Whichever lands first, the other should drop that part; the ctest timeouts here don't overlap.

AI-assisted (Claude).

@abnalstlll-byte
abnalstlll-byte force-pushed the feat/test-wine-timeouts-device-filter branch from b704981 to e1d9819 Compare November 25, 2026 10:49
@aslan2142

Copy link
Copy Markdown
Collaborator

The timeouts look good; the device-filter half needs a fix or should be dropped.

AI-assisted (Claude Code, Claude Opus 5.5).

@github-actions github-actions Bot removed the needs rebase Conflicts with the base branch: rebase it on main label Nov 25, 2026
…ST-WINE-TIMEOUTS-DEVICE-FILTER)

Bound dstorage, dxgi_host_parity, and dxgi_waitable_latency with 120 s ctest timeouts.

AI-assisted (Claude Code, Claude Opus 5.5).
@abnalstlll-byte
abnalstlll-byte force-pushed the feat/test-wine-timeouts-device-filter branch from e1d9819 to 10e2ae8 Compare November 25, 2026 21:43
@abnalstlll-byte

Copy link
Copy Markdown
Contributor Author

Updated in commit 10e2ae8:

AI-assisted (Claude Code, Claude Opus 5.5).

@aslan2142
aslan2142 merged commit 33bd07c into ProjectLeonida:main Nov 25, 2026
2 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants