From cc68beb2afd4aca684d6ced3246c0984e2937c85 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sun, 15 Nov 2026 06:13:08 -0800 Subject: [PATCH] host_ram_device: the window assertion names the chunk counts and the import tax A Windows run (UHD 630) failed it with no more than the two ahead counts; the message now carries what the device's thread did between them. Verified: cargo fmt; the run follows on the Windows node. --- .../src/tests/host_ram_device.rs | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/crates/metal2vulkan-runtime/src/tests/host_ram_device.rs b/crates/metal2vulkan-runtime/src/tests/host_ram_device.rs index 07e3cc13c..6aef77c2e 100644 --- a/crates/metal2vulkan-runtime/src/tests/host_ram_device.rs +++ b/crates/metal2vulkan-runtime/src/tests/host_ram_device.rs @@ -870,8 +870,19 @@ fn settled(device: &Device, done: impl Fn(&crate::WorkCounts) -> bool) -> crate: std::thread::sleep(Duration::from_millis(300)); let later = device.work_counts(); assert_eq!( - later.host_ram_chunks_imported_ahead, reached.host_ram_chunks_imported_ahead, - "the device's thread went on past the window" + later.host_ram_chunks_imported_ahead, + reached.host_ram_chunks_imported_ahead, + "the device's thread went on past the window: chunks imported {} then {}, released {} \ + then {}, given back {} then {}, live {} then {}; held imports tax submissions: {:?}", + reached.host_ram_chunks_imported, + later.host_ram_chunks_imported, + reached.host_ram_chunks_released, + later.host_ram_chunks_released, + reached.host_ram_chunks_given_back, + later.host_ram_chunks_given_back, + reached.host_ram_chunks_live, + later.host_ram_chunks_live, + device.pointer_imports_tax_submissions(), ); later }