runtime, tests: bound dstorage and dxgi tests with ctest timeouts and route device filter tools through wine (TEST-WINE-TIMEOUTS-DEVICE-FILTER) #1176
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!1176
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1176/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@abnalstlll-byte on GitHub · 2026-11-24 19:38 UTC · original
abnalstlll-byte:feat/test-wine-timeouts-device-filter→main· +12 −2 · 2 files · 1 commits · merged 2026-11-25 23:32 UTCAddresses finding on Linux/Wine test execution (
TEST-WINE-TIMEOUTS-DEVICE-FILTER):1. CTest Execution Bounds (
runtime/CMakeLists.txt,tests/test_ctest_registration.py)TIMEOUT 120todstorage,dxgi_host_parity, anddxgi_waitable_latency.winedbgcrash attaches orOpenFile: null or empty pathstalls) from blocking continuous test runs.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).exeinvocations (vk_descriptor_bench.exe,vk_sandbox.exe) throughwinewhen running on a non-Windows host (os.name != "nt").UNSUPPORTED(77) ifwineis unavailable or if execution fails, resolvingOSError: [Errno 8] Exec format errorduring 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).@KernelSmoker on GitHub · 2026-11-24 19:45 UTC · original · approved these changes
Reviewed exact head
b7049814bebf32d1484ccd3f550b4892aad5ea58asKernelSmoker.Independent Linux verification:
python3 -I tests/test_ctest_registration.pypassed 5/5;py_compile,scripts/check_no_game_data.py, andgit diff --checkpassed. Three isolated mocks verified the new.exerouting throughWINE, and that missing Wine or anOSErrorreturns the documentedUNSUPPORTEDresult.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 on GitHub · 2026-11-24 19:56 UTC · original
Tested
b7049814bon 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.pyrouted through Wine): Passed (16.10 s)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'swined3d+0x54143fromdxgi_host_parity_test.cpp:263dxgi_waitable_latency(11.39 s): Failed (11.39 s)AI-assisted: yes
@Deedlyy on GitHub · 2026-11-24 20:10 UTC · original
Recommendation: [MERGE]
Reasoning: Adds 120 s CTest timeouts to
dstorage,dxgi_host_parityanddxgi_waitable_latency, and routes the device-filter tool's.execalls 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 withmain. Merge once the queued checks are green.Impact level: 2/10
@azsekazvamdimitar on GitHub · 2026-11-25 07:46 UTC · original
Overlap note: the device filter tools half of this is also in #1086 (commit f43536b1b), done the other way: CMake passes
CMAKE_CROSSCOMPILING_EMULATORtocheck_device_filter_tools.pyas--runner, the way the neighbouring tests get-DRUNNER, instead of the script looking forwineonPATH. That way a Proton build (emulator set to Proton'sfiles/bin/wine) runs the tools with Proton's Wine rather than whateverwineis 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).
@aslan2142 on GitHub · 2026-11-25 11:22 UTC · original
The timeouts look good; the device-filter half needs a fix or should be dropped.
run()returns 77, butmain()reads that as a tool failure. The script printsFAIL: ... --list-devices exit 77and exits 1 instead of skipping. TheOSErrorpath ends the same way.vk_device_filter_toolspart was claimed earlier asTEST-WINE-PROTON-LEFTOVERS(#1086, which usesCMAKE_CROSSCOMPILING_EMULATOR). #1219 also does it, propagates 77 and has a unit test. Please drop that part here and keep theTIMEOUT 120changes.b7049814; the head is nowe1d98192.main,dstorage,dxgi_host_parity,dxgi_waitable_latencyandvk_device_filter_toolsgive the same results asmainunder Wine (lavapipe and an AMD iGPU).AI-assisted (Claude Code, Claude Opus 5.5).
@abnalstlll-byte on GitHub · 2026-11-25 21:43 UTC · original
Updated in commit
10e2ae881:AI-assisted (Claude Code, Claude Opus 5.5).