From 2b034aa3b03385de5010e15fba42da93e64895c9 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Tue, 17 Nov 2026 22:45:41 -0800 Subject: [PATCH] rt tests: the render device test finds the pipeline's file under its generation Its cache directory helper read pipelines/ at the directory's root, where the generation store no longer keeps it, so it found no file (lavapipe, job m3-max-44584). It now reads each generation's pipelines/ directory. --- crates/metal2vulkan-rt/src/tests/render.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/crates/metal2vulkan-rt/src/tests/render.rs b/crates/metal2vulkan-rt/src/tests/render.rs index 6277eac89..aa8d41ab6 100644 --- a/crates/metal2vulkan-rt/src/tests/render.rs +++ b/crates/metal2vulkan-rt/src/tests/render.rs @@ -255,12 +255,17 @@ mod on_device { }); } - /// The pipelines' files under `dir`, by path, with their lengths and times. + /// The pipelines' files under `dir`'s generations, by path, with their lengths and times. fn pipeline_files(dir: &Path) -> Vec<(String, u64, SystemTime)> { let mut all = Vec::new(); - let Ok(uuids) = std::fs::read_dir(dir.join("pipelines")) else { + let Ok(generations) = std::fs::read_dir(dir) else { return all; }; + let pipelines = generations + .flatten() + .map(|generation| generation.path().join("pipelines")); + let uuids = + pipelines.flat_map(|pipelines| std::fs::read_dir(pipelines).into_iter().flatten()); for uuid in uuids.flatten() { for file in std::fs::read_dir(uuid.path()) .expect("a directory")