Tests: the XAudio2 voice tests wait 30 s for playback and skip a slow audio device (#1487) #1590
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ivall/xcl. Originally posted by upipibi on 2026-11-24T18:07:44Z.
Refs #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 (https://github.com/xcl-dev/xcl/pull/1600#issuecomment-7140463609), 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
Imported from ivall/xcl. Originally posted by eizispark on 2026-11-24T18:18:41Z.
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
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T20:21:56Z.
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!
upstream-sync referenced this pull request2026-11-25 07:04:28 +00:00
Imported from ivall/xcl. Originally posted by Decodere on 2026-11-27T11:58:48Z.
Independent desktop NVIDIA verification of PR #1600 at head
5b59db2db544e491f8c8b7fc3fd621cf28968e80(1commit; exact parent & merge-base:9e3831e1f570d3646e53ab753b19ec07eb8f1485, pre-#2555ancestor ofmain).Environment
7956 MiBreported by D3D12, Wave32-only Ada), driver32.0.16.2114(NVIDIA621.14, WDDM 3.2)31.9 GiBusable), Windows 11 Home26200(Developer Mode off)rustc 1.100.0 (0ef1bc386 2026-11-09)MSVC, DXC1.9.2609.5,--releaseTargeted tests & build (
5b59db2d)cargo test --release -p xcl --lib hle::xaudio2:: -- --nocapture(3 consecutive runs)10 passed; 0 failed; 0 ignored; 739 filtered out× 3 (0.16s,0.14s,0.14s,0skipped; includes the newslow_audio_devices_are_skipped_not_failedunit test plus live Windows 11 systemXAudio2 2.9OpusMSOpusDecoderandXMA2voice playback tests)cargo build --release -p xcl1m 04s, exit0,0new warnings inxaudio2.rs)Paired quiet 60 s retail smoke (
title: 29640639)(Note:
scripts/smoke.ps1at9e3831e1predates9683e7a6and printed the local folder basename ontitle:; replaced below with the standard9683e7a6title hash29640639, with all measured fields verbatim.)Exact parent & merge-base (
9e3831e1f570d3646e53ab753b19ec07eb8f1485):PR #1600 (
5b59db2db544e491f8c8b7fc3fd621cf28968e80):Limits of coverage
crates/xcl/src/hle/xaudio2.rs#[cfg(test)],0production-code changes); all10/10hle::xaudio2::tests executed cleanly against Windows 11 systemXAudio2 2.9(0skipped) in0.14s–0.16s, with the slow-device skip threshold covered byslow_audio_devices_are_skipped_not_failed(this host's audio device opened fast and did not trigger a live slow-device skip).AI disclosure: test execution and report drafting assisted by Google Antigravity (Gemini 4 Neon).
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:14:06Z.
Triage (#1607) – head
5b59db2No open or merged PR makes the same change: main's XAudio2 voice tests still wait 3 s for playback. #3551 also edits these tests but only serialises the XMA counters with a lock; it does not touch the wait or the slow-device skip. #1520, #1628 and #1671 (same issue #1487) change other tests.
No problems found in the diff.
Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.