Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

test(verify): fix audio Project after the fixture-name merge; serialise WARP rendering tests

Richie McIlroy0cad08ae606d
diff --git a/.config/nextest.toml b/.config/nextest.toml
index 758fd9300..a56162588 100644
--- a/.config/nextest.toml
+++ b/.config/nextest.toml
@@ -30,3 +30,13 @@ store-failure-output = true
[[profile.ci.overrides]]
filter = 'binary_id(cap-rendering) and test(/^decoder::model::/)'
threads-required = 3
+
+# Windows hosted runners render through WARP; concurrent wgpu devices in
+# parallel test processes lose the device. One rendering test at a time there.
+[test-groups]
+warp = { max-threads = 1 }
+
+[[profile.ci.overrides]]
+platform = 'cfg(windows)'
+filter = 'package(cap-verify) and not binary_id(cap-verify::codec) and not binary_id(cap-verify)'
+test-group = 'warp'
diff --git a/crates/verify/tests/audio_support/mod.rs b/crates/verify/tests/audio_support/mod.rs
index 98636abbe..9b5ba0d2f 100644
--- a/crates/verify/tests/audio_support/mod.rs
+++ b/crates/verify/tests/audio_support/mod.rs
@@ -34,7 +34,12 @@ pub fn project(spec: &FixtureSpec) -> Project {
.unwrap_or_else(|e| panic!("fixture {}: {e:?}", spec.name));
let meta = RecordingMeta::load_for_project(&path).expect("fixture meta");
let truth = SourceTruth::read(&path).expect("fixture truth");
- Project { path, meta, truth }
+ Project {
+ name: spec.name.clone(),
+ path,
+ meta,
+ truth,
+ }
}
pub fn audio_model(project: &Project, config: &ProjectConfiguration) -> AudioModel {