Tests: the XAudio2 voice tests wait 30 s for playback and skip a slow audio device (#1487) #1600
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1600
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1600"
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?
@upipibi on GitHub · 2026-11-24 18:07 UTC · original
upipibi:tests/xaudio2-start-wait→main· +40 −2 · 1 files · 1 commits · openRefs #1487: the XAudio2 part.
hle::xaudio2::tests::opus_source_voice_decodes_and_manages_lifetimeandxma2_source_voice_decodes_and_manages_lifetimeplay their buffers on the real audio device and give them 3 s to start and end. Two ways that fails without anything being wrong in XCL:Test-only: everything is inside
xaudio2.rs's#[cfg(test)] mod tests.What is in it
PLAYBACK_WAIT: the two tests wait up to 30 s for their buffers instead of 3 s. An idle PC still finishes in well under a second, so only a slow run waits longer.slow_audio_device: when creating the mastering voice took more than 10 s, the test destroys it, releases the engine and is skipped with aSKIPPED <test>: the default audio device took N s to openline (runner::skip_test), instead of failing. That measures the device, not XCL's shims.slow_audio_devices_are_skipped_not_failed: unit test of the threshold and the message.Tested
NVIDIA GeForce RTX 3070, driver 616.56; Windows 11 Pro 26100; Rust 1.100.0 MSVC; debug;
main9e3831e.main, each of the two tests alone: fail (STARTED: left 0, right 12291). With only the wait raised to 60 s, both pass in 113 s: the mastering voice took 56.0 s and the buffers 56.2 s.cargo test -p xcl --lib hle::xaudio2: 10 passed, 0 failed. Both voice tests printSKIPPED …: the default audio device took 56.5 s to open(168.9 s for the one running next toclamped_and_silenced_buffers_accepted_by_windows_xaudio2).cargo test -p xcl --lib(default threads), twice on this head without #1523. The first run ended with0xc0000005: #1487's access violation, which #1523 fixes. The second gave 728 passed, 0 failed, 21 ignored. SKIPPED: the two voice tests (device took 168.5 s / 56.2 s to open),gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware(no wave64).Regression run
From eizispark's run (#1600), thanks (AMD RX 9070 XT; the diff is test-only, so it shows only that nothing else changed):
main:
PR:
Not tested
AI use
🤖 Generated with Claude Code
@eizispark on GitHub · 2026-11-24 18:18 UTC · original
Hardware test report — commit
5b59db2Checked
5b59db2db544e491f8c8b7fc3fd621cf28968e80(based onmain9e3831e1f570d3646e53ab753b19ec07eb8f1485): pass.Tested
rustc 1.100.0 (0ef1bc386 2026-11-09), release + test profilecargo test --workspace --no-fail-fast -- --test-threads=4:777 passed, 0 failed, 41 ignored(1skipped:heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows), includinghle::xaudio2::tests::slow_audio_devices_are_skipped_not_failed,hle::xaudio2::tests::opus_source_voice_decodes_and_manages_lifetime, andhle::xaudio2::tests::xma2_source_voice_decodes_and_manages_lifetimeRegression run
main(9e3831e):PR (
5b59db2):Not tested
CreateMasteringVoice, Wine/vkd3d-proton, NVIDIA/Intel GPUs,XCL_SAMPLE_*AI use
@DavidM1911 on GitHub · 2026-11-24 20:21 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~22 ignored. (Intermittent 0xc0000005 abort under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.